18a8ae5a8a
Change styling for headings in API pages
2020-11-30 18:09:32 -03:00
e12cb97e16
Only display own modifiers in contract docs index
2020-11-20 13:37:22 -03:00
a3a7e6fa34
Remove Context from function index in docs site
2020-11-20 13:12:15 -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
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
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
7f62c8e145
Fix docs links to overloaded functions ( #2275 )
...
* fix links to overloaded functions
* fix Address xrefs
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com >
2020-06-11 16:50:00 -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
a4320108d5
Remove prerelease tag from docs
2020-04-20 20:24:24 -03:00
05085aa605
Merge branch 'master' into release-v3.0.0
2020-04-20 20:21:14 -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
0292d793f3
add passthrough delimiters to avoid italics from underscores ( #2169 )
...
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com >
2020-04-03 20:51:14 -03:00
f4566aaade
Fix rc generator
2020-04-03 17:55:36 -03:00
d8a5ffeee9
Fix prerelease marker
2020-04-03 17:23:57 -03:00
bbb245fc43
Add rc marker to docs
2020-04-03 17:13:56 -03:00
63a3665a17
3.0.0-rc.1
2020-04-03 16:22:56 -03:00
92a60b2587
Merge branch 'master' into release-v3.0.0
2020-04-03 16:22:25 -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
3ae631c81d
Fix display of array arguments in documentation ( #2141 )
...
* remove pass:normal from docs template
* add back pass:normal for auto links
2020-03-20 19:22:24 -03:00
865aae0106
Temporarily hide hooks page
2020-03-17 11:49:05 -03:00
5ccecab631
Add prerelease marker
2020-03-17 11:48:13 -03:00
a3c6e5f088
3.0.0-rc.0
2020-03-16 20:47:28 -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
04a1b21874
update docs-utils to keep docs version in sync
2020-02-11 19:04:17 -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
62651e8147
Docs overhaul ( #2045 )
...
* Reorder navbar
* Adapt content to new docsite structure, add links
* Fix list
* fix list
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
* Update index.adoc
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-01-13 13:44:34 -03:00