4a53ee5a13
Review structure of Proxies API docs ( #2645 )
2021-04-27 09:29:13 -03:00
3c4a18f0df
Update Stability document with current practices
2021-04-22 11:51:17 -03:00
07b48484ff
Fix ERC721 guide for 4.x
2021-04-20 12:37:15 -03:00
f17624194b
typo: remove duplicate word ( #2631 )
2021-04-16 20:07:09 -03:00
e0a2b195e4
Add modifier & internal function with standard revert message in AccessControl ( #2609 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-04-16 12:15:09 -03:00
538b6d21b1
Update ERC721 guide for 4.0 ( #2630 )
2021-04-15 23:49:53 -03:00
3157aff844
Update docs for setting ERC20 decimals ( #2629 )
2021-04-14 16:00:22 +00:00
7f6a1666fa
Add Multicall module ( #2608 )
2021-04-07 17:26:40 +00:00
5ecd2b850c
Add Contracts Wizard docs page ( #2624 )
2021-04-05 17:46:57 -03:00
ba1d773176
Fix link to TimelockController
2021-03-02 15:53:03 -03:00
583146f9d6
Fix typo Controler -> Controller
2021-03-02 15:32:10 -03:00
f7c8252611
Remove GSNv1 contracts ( #2521 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-02-18 15:27:18 +00:00
24660c3e48
Fix keccak256 typo ( #2525 )
2021-02-17 13:34:39 +01:00
0db76e98f9
Merge branch 'solc-0.7' into solc-0.8
2021-01-27 11:28:23 +01:00
974c534210
Update contracts to support Solidity 0.8.x ( #2442 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-14 19:38:53 -03:00
4972bf4f23
Merge branch 'master' into solc-0.7
2020-11-16 14:11:46 -03:00
5272799bdd
Fix ERC1155 URI example ( #2401 )
2020-11-12 18:23:35 -03:00
1a230e3aa5
Rename upgrade-safe package to upgradeable
2020-11-12 16:10:01 -03:00
5472eedbad
Add guide about OZ Contracts Upgrade Safe ( #2403 )
...
Co-authored-by: Andrew B Coathup <28278242+abcoathup@users.noreply.github.com >
2020-11-10 18:24:47 -03:00
e5fbbda9ba
Add audit links to readme and doc index ( #2392 )
2020-10-21 15:59:43 -03:00
7f3eee750a
Add TimelockController ( #2354 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-09-17 16:16:05 -03:00
22de765f3c
Merge branch 'release-v3.2.0' into release-v3.2.0-solc-0.7
2020-09-08 20:14:42 -03:00
885b76f66f
Fix AsciiDoc missing attribute references
2020-09-01 18:48:43 -03:00
ded2b0a55c
Fix minor typos and grammar in docs ( #2338 )
...
* Fix typos and formatting
* Add Solidity release dates: releases-stability
2020-09-01 15:19:17 -03:00
04fc35707d
Migrate contracts to Solidity 0.7 ( #2319 )
...
* Update contract pragmas to solidity 0.7
* Remove internal declaration on constructors
* Reference SafeMath explicitely
* Remove public constructor declaration from abstract contracts
* Remove public constructor declaration from non-abstract contracts
2020-07-29 18:11:32 -03:00
c6612871fb
Fix remaining preset links
2020-07-01 17:37:25 -03:00
b991fca341
Fix presets link
2020-07-01 12:25:05 -03:00
32f0fe5d08
Add to ERC1155 doc and minor fixes ( #2282 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-06-25 14:28:50 -03:00
c6da044dc5
Update ERC20 Supply guide ( #2276 )
...
* update for ERC20PresetMinterPauser
* fix erc20 supply guide to use hooks
2020-06-12 20:20:33 -03:00
d9fa59f30a
Address ERC1155 changes ( #2267 )
...
* Make holder fns public
* Add context, remove msg.sender from check
* Fix location of Holder arguments
* Add beforeTransfer hook
* Minor test improvements
* Add ERC1155Burnable and tests
* Add ERC1155Pausable
* Add ERC1155PresetMinterPauser.sol
* Add uri constructors
* Improved revert reasons
* Initial docs improvements
* Add missing docs
* Improve acceptance checks revert reasons
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
* Remove note about 1155 preset uri in mint
* Add rquirements to balanceOfBatch
* Add note about URI and uri
* Fix list in docs
* Fix lint errors
* Use natural sorting for API titles
* Fix doc references
* Escape {id} references to remove docgen warnings
* Added intro docs, fixed links
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
* Add changelog entry
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-06-09 14:47:51 -03:00
dd226e1987
Add latest audit notice
2020-04-24 16:35:24 -03:00
32f55009af
Remove outdated notes to v2.x docs
2020-04-20 20:37:20 -03:00
528c23d679
Remove ethpm.json and update releasing docs ( #2205 )
...
* remove ethpm.json
* update releasing document
* fix release documentation to be more realistic
2020-04-20 20:10:30 -03:00
5bb8d0245b
Improve Hooks documentation ( #2199 )
...
* Improve Hooks docs
* Improve Utils docs
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
* Add enumerable code samples
* Remove import statement from example
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-04-20 16:43:05 -03:00
05d1618d01
Update Contracts docs to make examples compile ( #2170 )
...
* Update access-control.adoc to make compile
Add call to `ERC20("MyToken", "TKN")` in `MyToken` constructor
* Update access-control.adoc to make compile
Add call to `ERC20("MyToken", "TKN")` in `MyToken` constructor
* Update access-control.adoc MyToken formatting
* Update erc20-supply.adoc to make compile
Add call to `ERC20("MyToken", "TKN")` in `ERC20FixedSupply` constructor
* Update erc20-supply.adoc to make compile
Add constructor to `ERC20WithMinerReward`
* Update erc20-supply.adoc to make compile
In `MinerRewardMinter` use `ERC20MinterPauser`
* Update erc20-supply.adoc to make compile
Add constructor and override to `ERC20WithAutoMinerReward`
* Update erc777.adoc to make compile
* Update gsn-strategies.adoc to make compile
* Update gsn-strategies.adoc to make compile
Fix imports, add overrides, and revert reason to `MyContract`
2020-04-07 08:45:48 -03:00
885378e421
Fix some of the code formatting in docs
2020-04-03 21:13:55 -03:00
402c6ab4cc
Update docs ( #2168 )
...
* Update docs for ERC20 and ERC721
* Add EnumerableMap to docs
* Update misc guides
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-04-03 13:17:24 -03:00
5b5d91c9d4
Remove 'external' functions ( #2162 )
...
* Remove _grantRole and _revokeRole, replace with _setupRole
* Make all external AccessControl functions public
* Remove Ownable._transferOwnership
* Rename ERC721's _safeTransferFrom and _transferFrom to _safeTransfer and _transfer
* Make all ERC721 external functions public
* Make all miscelaneous external functions public instead
* Add changelog entry
* Move calldata arguments to memory
* Update contracts/access/AccessControl.sol
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
* Restrict setupRole to the constructor
* Replace isConstructor for !isContract
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-04-02 15:29:58 -03:00
1bc923b6a2
fix use of asciidoc quotes
2020-03-30 20:13:30 -03:00
0f9adc1749
Fix broken xrefs ( #2153 )
...
* fix mentions of drafts.adoc
* fix 721.adoc
2020-03-30 12:47:13 -03:00
c173392e15
Revamped Access Control ( #2112 )
...
* Remove Roles
* Add AccessControl and tests
* Removed IAccessControl
* Add RoleGranted and RoleRevoked events
* Make roles grantable and revokable regardless of their previous status
* Fix typo
* Add documentation
* Cleanup tests
* Add enumeration tests
* Add _setRoleAdmin tests
* Fix lint error
* Fix AccessControl link in docs
* WIP on access control guide
* Rename getRoleMembersCount
* Add tests for new role admin
* Make AccessControl GSN compatible
* Update access control guide
* Rename admin to adminRole
* Rename roleIds to roles
* Add 'operator' to RoleGranted and RoleRevoked events.
* Only emit events if the roles were not previously granted/revoked
* Uncomment expectEvent.not tests
* Rename operator to sender
* Add changelog entry
2020-03-16 17:41:24 -03:00
c9630526e2
Draft and lifecycles directories cleanup ( #2122 )
...
* Move Pausable into utils
* Move Strings into utils
* Move Counters into utils
* Move SignedSafeMath into math
* Remove ERC1046
* Make ERC20Snapshot.snapshot internal
* Move ERC20Snapshot into ERC20
* Add drafts deprecation notice
* Remove drafts directory
* Add changelog entry
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-03-16 16:27:15 -03:00
8176a901a9
Cleanup of Ownership directory ( #2120 )
...
* Remove Ownable.isOwner.
* Remove ownable behavior from tests
* Make Escrow use Ownable instead of Secondary
* Migrate GSNRecipientERC20Fee to Ownable
* Remove Secondary
* Move Ownable to access directory
* Remove mentions of Secondary
* Add changelog entry
* Move Ownable tests to access
* Remove unused mock
2020-03-16 15:12:29 -03:00
7acd60d152
Add notice about deprecated Crowdsales ( #2116 )
...
* Remove crowdsales from sidebar documentation, add links to old version
* Remove mentions of Crowdsales from the documentation
2020-03-11 15:26:21 -03:00
5dfe7215a9
Migrate Contracts to Solidity v0.6 ( #2080 )
...
* Initial migration to Solidity 0.6.x - v3.0 first steps (#2063 )
* Initial migration, missing GSN, 721, 777 and Crowdsales.
* Add _beforeTokenOperation and _afterTokenOperation.
* Add documentation for hooks.
* Add hooks doc
* Add missing drafts
* Add back ERC721 with hooks
* Bring back ERC777
* Notes on hooks
* Bring back GSN
* Make functions virtual
* Make GSN overrides explicit
* Fix ERC20Pausable tests
* Remove virtual from some view functions
* Update linter
* Delete examples
* Remove unnecessary virtual
* Remove roles from Pausable
* Remove roles
* Remove users of roles
* Adapt ERC20 tests
* Fix ERC721 tests
* Add all ERC721 hooks
* Add ERC777 hooks
* Fix remaining tests
* Bump compiler version
* Move 721BurnableMock into mocks directory
* Remove _before hooks
* Fix tests
* Upgrade linter
* Put modifiers last
* Remove _beforeTokenApproval and _beforeOperatorApproval hooks
2020-02-14 11:12:32 -03:00
4a531fe588
Add note about gas costs ( #2079 )
...
* Add note about gas costs
* Update wording
2020-02-06 15:26:19 -03:00
1e0f07751e
Implementation of an address Enumerable Set ( #2061 )
...
* Drafted Enumerable.sol.
* Drafted test framework.
* Tweaked the tests to follow oz structure.
* Coded EnumerableSet.
* Moved EnumerableSet to `utils`.
* Fixed linting.
* Improved comments.
* Tweaked contract description.
* Renamed struct to AddressSet.
* Relaxed version pragma to 0.5.0
* Removed events.
* Revert on useless operations.
* Small comment.
* Created AddressSet factory method.
* Failed transactions return false.
* Transactions now return false on failure.
* Remove comments from mock
* Rename mock functions
* Adapt tests to code style, use test-helpers
* Fix bug in remove, improve tests.
* Add changelog entry
* Add entry on Utils doc
* Add optimization for removal of last slot
* Update docs
* Fix headings of utilities documentation
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com >
2020-01-24 14:50:24 -03:00
d6698c3bfb
Copy docsite landing to readme ( #2058 )
...
* Copy docsite landing to readme
* Fix code sample
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
* Update code sample
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-01-23 13:36:21 -03:00
73cbd6a38b
fix typo
2020-01-13 15:52:29 -03:00
7014d94108
Fix doc links
2020-01-13 13:46:53 -03:00