Francisco Giordano
21d2b90d74
allow running specific test files on their own
5 years ago
dependabot-preview[bot]
ab19138f1f
Bump @openzeppelin/test-environment from 0.1.2 to 0.1.3 ( #2101 )
...
Bumps [@openzeppelin/test-environment](https://github.com/OpenZeppelin/openzeppelin-test-environment ) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-test-environment/releases )
- [Changelog](https://github.com/OpenZeppelin/openzeppelin-test-environment/blob/master/CHANGELOG.md )
- [Commits](https://github.com/OpenZeppelin/openzeppelin-test-environment/compare/v0.1.2...v0.1.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
dependabot-preview[bot]
970122a9d5
Bump solhint from 3.0.0-rc.2 to 3.0.0-rc.3 ( #2096 )
...
Bumps [solhint](https://github.com/protofire/solhint ) from 3.0.0-rc.2 to 3.0.0-rc.3.
- [Release notes](https://github.com/protofire/solhint/releases )
- [Changelog](https://github.com/protofire/solhint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/protofire/solhint/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
Francisco Giordano
62065cf043
add prepare-docs script to subpackage
5 years ago
dependabot-preview[bot]
03b61e074e
Bump @openzeppelin/cli from 2.7.0-rc.2 to 2.7.1 ( #2097 )
...
Bumps [@openzeppelin/cli](https://github.com/OpenZeppelin/openzeppelin-sdk ) from 2.7.0-rc.2 to 2.7.1.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-sdk/releases )
- [Commits](https://github.com/OpenZeppelin/openzeppelin-sdk/compare/v2.7.0-rc.2...v2.7.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
dependabot-preview[bot]
1350f49939
Bump openzeppelin-docs-utils from `af3466e` to `459f171` ( #2094 )
...
Bumps [openzeppelin-docs-utils](https://github.com/OpenZeppelin/docs-utils ) from `af3466e` to `459f171`.
- [Release notes](https://github.com/OpenZeppelin/docs-utils/releases )
- [Commits](af3466e234...459f1710a0
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
dependabot-preview[bot]
1c22c79a32
[Security] Bump eslint-utils from 1.4.0 to 1.4.3 ( #2093 )
...
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils ) from 1.4.0 to 1.4.3. **This update includes security fixes.**
- [Release notes](https://github.com/mysticatea/eslint-utils/releases )
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.4.0...v1.4.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
Luca Daniel
08cea10aa7
Fix `operatorBurn` description typo. ( #2091 )
5 years ago
dependabot-preview[bot]
82147dc2ee
[Security] Bump handlebars from 4.1.2 to 4.7.3 ( #2095 )
...
Bumps [handlebars](https://github.com/wycats/handlebars.js ) from 4.1.2 to 4.7.3. **This update includes a security fix.**
- [Release notes](https://github.com/wycats/handlebars.js/releases )
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md )
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.7.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
Nicolás Venturo
e4d2830f1d
Update release script for major releases
5 years ago
Anton Bukov
19417c7cd5
Rename CREATE2 argument from bytecodeHash to bytecode and add new method for precomputed bytecode hash ( #2087 )
...
* Rename CREATE2 argument from bytecodeHash to bytecode and add new method for precomputed bytecode hash
* Remove only from test
* Fix linter error
5 years ago
Nicolás Venturo
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
5 years ago
Francisco Giordano
04a1b21874
update docs-utils to keep docs version in sync
5 years ago
Nicolás Venturo
f905a14f5f
Fix docsite link
5 years ago
Nicolás Venturo
4a531fe588
Add note about gas costs ( #2079 )
...
* Add note about gas costs
* Update wording
5 years ago
Nicolás Venturo
25dec297bf
Bump solidity-docgen ( #2078 )
5 years ago
Nicolás Venturo
8e58cda8c3
Revert "Fix ignoring mock artifacts on release"
...
This reverts commit e7bded655b
.
5 years ago
Nicolás Venturo
e7bded655b
Fix ignoring mock artifacts on release
5 years ago
Nicolás Venturo
5f357d85de
Merge branch 'release-v2.5.0'
5 years ago
Nicolás Venturo
58a3368215
2.5.0
5 years ago
Nicolás Venturo
941d305044
Update docs
5 years ago
Nicolás Venturo
1b938e39a8
EnumerableSet improvements ( #2077 )
...
* Remove newAddressSet
* Add count and get functions.
* Fix lint
(cherry picked from commit 7988c044e0
)
5 years ago
Nicolás Venturo
7988c044e0
EnumerableSet improvements ( #2077 )
...
* Remove newAddressSet
* Add count and get functions.
* Fix lint
5 years ago
Alberto Cuesta Cañada
0ac83ce289
Fix EnumerableSetMock for 2.5.rc1 ( #2069 )
...
* 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
* Simplified mock.
* Fixed comment.
* Revert "Fixed comment."
This reverts commit 39627f9a6f
.
* Revert "Simplified mock."
This reverts commit 67468e464b
.
* Simplified mock.
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
(cherry picked from commit 8975289c6b
)
5 years ago
Alberto Cuesta Cañada
8975289c6b
Fix EnumerableSetMock for 2.5.rc1 ( #2069 )
...
* 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
* Simplified mock.
* Fixed comment.
* Revert "Fixed comment."
This reverts commit 39627f9a6f
.
* Revert "Simplified mock."
This reverts commit 67468e464b
.
* Simplified mock.
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
5 years ago
Andrew B Coathup
6102ddf675
Update README link to learn guide ( #2070 )
...
Reported from Community Member via Intercom
5 years ago
dependabot-preview[bot]
5a67a69f80
[Security] Bump eslint-utils from 1.4.0 to 1.4.3 ( #2064 )
...
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils ) from 1.4.0 to 1.4.3. **This update includes security fixes.**
- [Release notes](https://github.com/mysticatea/eslint-utils/releases )
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.4.0...v1.4.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
dependabot-preview[bot]
f2512a4f7b
[Security] Bump handlebars from 4.1.2 to 4.7.2 ( #2065 )
...
Bumps [handlebars](https://github.com/wycats/handlebars.js ) from 4.1.2 to 4.7.2. **This update includes a security fix.**
- [Release notes](https://github.com/wycats/handlebars.js/releases )
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md )
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.7.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
dependabot-preview[bot]
06be0ab39a
Bump mocha from 7.0.0 to 7.0.1 ( #2066 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v7.0.0...v7.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
Nicolás Venturo
d775e315cc
Update package homepage.
5 years ago
Nicolás Venturo
e4a8a5533e
2.5.0-rc.0
5 years ago
Nicolás Venturo
88dc1ca6fc
Reorder functions to prevent shadowing warning
5 years ago
Alberto Cuesta Cañada
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>
5 years ago
Mick de Graaf
73abd54cbe
Made private methods internal to allow for overriding ( #2027 )
...
* Made private methods internal to allow for overriding
* Revert package.lock changes.
* Make _move private again
* Expose the ERC1820 registry address
* Add changelog entry
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
5 years ago
Hao (Alan) Tang
7d7cbcad14
Fix/improve revert reason #1727 ( #2018 )
...
* adding mock contacts, test code
* adding changes to ERC721.sol per @frangio's comments on original PR #1943
* fix solhint warnings
* Update contracts/token/ERC721/ERC721.sol
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* same revert wording per @frangio's review suggestion
* per @frangio's feedback, changing the inline assembly to accomplish: we want to ignore the first 4 bytes of content, so we should read the length and decrease it by 4, then take the memory location and add 4 to it, then store the new length at the new memory location, then that is the new byte array that we want.
* change revert msg assembly per PR comment by @frangio
* unify revert msg in test code
* fix some failed tests, wording change
* Update contracts/token/ERC721/ERC721.sol
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Update contracts/token/ERC721/ERC721.sol
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* fix test case, revert without reason
* fix 'ERC721ReceiverRevertsMock: Transaction rejected by receiver'
* style change per review by @frangio
* fix revert reason forwarding
* remove duplicate contracts/mocks/ERC721ReceiverRevertsMock.sol per review https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2018\#issuecomment-574381034
* Add changelog entry
* Fix tests
* Make tests more clear
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
5 years ago
Nicolás Venturo
e493fb3e95
Add 'available since' notes. Fixes #2054
5 years ago
Francisco Giordano
8c40a5b275
Create2 feature pending tasks ( #2013 )
...
* Add Create2 library (#1744 )
* feat(contracts): Add Create2 library to use create2 evm opcode
* Upgrade sol-coverage
* Add changelog entry
* Update comments and code style
* Remove create2 helper
* Fix linter error
* Fix truffle dependency
* Fix linter error
* refactor(Create2): Remove _deploy internal function
* test(Create2): test Create2 with inline assembly code
* fix(Create2): Check address returned form create2 instead of codesize of created contract
* refactor(Create2):Add revert reason when Create2 deploy fails (#2062 )
* fix merge with master
* fix test
Co-authored-by: Augusto Lemble <me@augustol.com>
5 years ago
Nicolás Venturo
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>
5 years ago
Nicolás Venturo
b1e811430a
Upgrade test-environment dependency
5 years ago
Francisco Giordano
06983a2075
add note suggesting reentrancy post ( #2059 )
5 years ago
Andrew B Coathup
d037217769
Update README ( #2056 )
...
* Update README to use releases-stability URL
Change https://docs.openzeppelin.com/contracts/api-stability to https://docs.openzeppelin.com/contracts/releases-stability (even though it redirects)
* Update README to include CLI as dev env
Add OpenZeppelin CLI to list of development environments
* Update README to use releases-stability URL
Change https://docs.openzeppelin.com/contracts/api-stability to https://docs.openzeppelin.com/contracts/releases-stability (even though it redirects)
5 years ago
Nicolás Venturo
410e4f8ab9
Fix link to GSN overview ( #2053 )
...
* Fix link to GSN overview
* Update contracts/GSN/README.adoc
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Peter
54d2aec232
issue#1980 ( #2038 )
...
* issue#1980
* fix public to external
5 years ago
dependabot-preview[bot]
d006a750ee
Bump eslint-plugin-import from 2.18.2 to 2.20.0 ( #2051 )
...
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import ) from 2.18.2 to 2.20.0.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases )
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.18.2...v2.20.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
dependabot-preview[bot]
5376e5d349
Bump @openzeppelin/gsn-helpers from 0.2.1 to 0.2.3 ( #2052 )
...
Bumps [@openzeppelin/gsn-helpers](https://github.com/OpenZeppelin/openzeppelin-gsn-helpers ) from 0.2.1 to 0.2.3.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-gsn-helpers/releases )
- [Commits](https://github.com/OpenZeppelin/openzeppelin-gsn-helpers/compare/v0.2.1...v0.2.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
dependabot-preview[bot]
e5805c4979
Bump openzeppelin-docs-utils from `dc7ce30` to `f6b5291` ( #2050 )
...
Bumps [openzeppelin-docs-utils](https://github.com/OpenZeppelin/docs-utils ) from `dc7ce30` to `f6b5291`.
- [Release notes](https://github.com/OpenZeppelin/docs-utils/releases )
- [Commits](dc7ce3006b...f6b5291a2e
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
Francisco Giordano
73cbd6a38b
fix typo
5 years ago
Nicolás Venturo
7014d94108
Fix doc links
5 years ago
Nicolás Venturo
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>
5 years ago
Gabriel Cardona
f9650b4cb8
Remove .gitkeep as it's not needed. ( #2046 )
5 years ago