Julian M. Rodriguez
c801c8d2bb
feat: use extcodesize for isContract to reduce gas ( #2311 )
...
* feat: use extcodesize for isContract to reduce gas
* feat: add changelog entry
5 years ago
renovate[bot]
98e862e162
Update all non-major dependencies ( #2309 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
5 years ago
Francisco Giordano
b9d72d2991
Clean up build directory when publishing
5 years ago
Francisco Giordano
c6612871fb
Fix remaining preset links
5 years ago
Francisco Giordano
b991fca341
Fix presets link
5 years ago
Francisco Giordano
ef3bbbcf40
Add readme notices with link to docs site ( #2300 )
...
* add readme notices
* remove period after url
5 years ago
Andrew B Coathup
32f0fe5d08
Add to ERC1155 doc and minor fixes ( #2282 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Nicolás Venturo
6d987f1418
Merge branch 'release-v3.1.0'
5 years ago
Nicolás Venturo
de99bccbfd
3.1.0
5 years ago
Clément Lesaege
0cc882ef9d
typo fix: forwared -> forwarded ( #2290 )
5 years ago
Oleg Kuzmenko
3f4420527b
Separate mapping keyword by whitespace ( #2287 )
...
Co-authored-by: pm_468 <oleg.kuzmenko@lindenvalley.de>
5 years ago
Francisco Giordano
21d06999f6
delete dependabot config
5 years ago
dependabot-preview[bot]
f3803d3a5d
Bump mocha from 7.2.0 to 8.0.1 ( #2280 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 7.2.0 to 8.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.2.0...v8.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
5 years ago
Francisco Giordano
c6da044dc5
Update ERC20 Supply guide ( #2276 )
...
* update for ERC20PresetMinterPauser
* fix erc20 supply guide to use hooks
5 years ago
Nicolás Venturo
02a6b05bde
Update functionCall docs
...
(cherry picked from commit 242400e9ea
)
5 years ago
Nicolás Venturo
242400e9ea
Update functionCall docs
5 years ago
Nicolás Venturo
8c1daaab57
3.1.0-rc.0
5 years ago
Francisco Giordano
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>
5 years ago
Nicolás Venturo
e2876b947d
Fix docs link
5 years ago
Nicolás Venturo
ed3a513f86
Fix broken links
5 years ago
Nicolás Venturo
b72088a90a
Add 'available since' notices
5 years ago
Julian M. Rodriguez
8b58fc7191
feat: add wrapper function for low level calls ( #2264 )
...
* feat: add wrapper function for low level calls
* add error message parameter
* adding unit tests and required mocks
* implement error message on SafeERC20
* fixed variable name in tests
* Add missing tests
* Improve docs.
* Add functionCallWithValue
* Add functionCallWithValue
* Skip balance check on non-value functionCall variants
* Increase out of gas test timeout
* Fix compile errors
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* Add missing tests
* Add changelog entry
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Nicolás Venturo
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>
5 years ago
Brendan Graetz
13e2132b69
docs: minor - spelling, grammar ( #2273 )
5 years ago
Nicolás Venturo
298e1b5fdc
Merge branch 'release-v3.0.0'
5 years ago
Nicolás Venturo
5294f3b9b7
3.0.2
5 years ago
Nicolás Venturo
b191e67552
Add changelog entry
5 years ago
Nicolás Venturo
fac773ac99
Add SPX license identifier ( #2235 )
...
(cherry picked from commit 56de324afe
)
5 years ago
Nicolás Venturo
82769e54c3
Fix 721 preset docs
5 years ago
Nicolás Venturo
022f2bc177
Improve SignedSafeMath docs
5 years ago
Nicolás Venturo
ccf79ee483
Fix SafeMath docs
5 years ago
GuiCz
ecf0725dd1
Documentation/erc721 contracts ( #2218 )
...
* Adds / Updates documentation of ERC721 contract
* Improve ERC721Burnable documentation
* Fix typo
* Revert changes on ERC721 private functions
* Add documentation to the ERC721 contract's constructor
* Add IERC721Receiver & ERC721Holder documentations
* Add references to IERC721 functions
* Add references to IERC721Metadata/Receiver
* PR fixes
* Fixes to ERC721 documentation
* Add missing fixes
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
5 years ago
Nicolás Venturo
d3ef93a9a5
Deprecate SafeERC20.safeApprove ( #2268 )
...
* Deprecate SafeERC20.safeApprove
* Add changelog entry
5 years ago
dependabot-preview[bot]
47a7a575e8
[Security] Bump websocket-extensions from 0.1.3 to 0.1.4 ( #2269 )
...
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node ) from 0.1.3 to 0.1.4. **This update includes a security fix.**
- [Release notes](https://github.com/faye/websocket-extensions-node/releases )
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md )
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
5 years ago
dependabot-preview[bot]
ff8fe4be7e
[Security] Bump acorn from 6.4.0 to 6.4.1 ( #2270 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1. **This update includes security fixes.**
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
5 years ago
Julian M. Rodriguez
d7a6e7be2e
Feature/uint enumerable set tests #2253 ( #2254 )
...
* feature: setting sublevel test scenario for AddressSet
* feat: adding tests for EnumerableSet.UintSet
* feat: adding Behavior and AddressSet and UintSet tests
5 years ago
Robert Kaiser
a81e948fc9
Add a simple catch-all implementation of the metadata URI interface ( #2029 )
...
* Initial ERC1155 implementation with some tests (#1803 )
* Initial ERC1155 implementation with some tests
* Remove mocked isERC1155TokenReceiver
* Revert reason edit nit
* Remove parameters associated with isERC1155TokenReceiver call
* Add tests for approvals and single transfers
* Add tests for transferring to contracts
* Add tests for batch transfers
* Make expectEvent.inTransaction tests async
* Renamed "owner" to "account" and "holder"
* Document unspecified balanceOfBatch reversion on zero behavior
* Ensure accounts can't set their own operator status
* Specify descriptive messages for underflow errors
* Bring SafeMath.add calls in line with OZ style
* Explicitly prevent _burn on the zero account
* Implement batch minting/burning
* Refactored operator approval check into isApprovedForAll calls
* Renamed ERC1155TokenReceiver to ERC1155Receiver
* Added ERC1155Holder
* Fix lint issues
* Migrate tests to @openzeppelin/test-environment
* port ERC1155 to Solidity 0.6
* make ERC1155 constructor more similar to ERC721 one
* also migrate mock contracts to Solidity 0.6
* mark all non-view functions as virtual
* add simple catch-all implementation for the metadata URI interface
* include an internal function to set the URI so users can implement functionality to switch URIs
* add tests for ERC1155 metadata URI
* fix nits, mostly pointed out by linter
* convert ERC1155 metadata URI work to Solidity 0.6
* mark all non-view functions as virtual
* Port ERC 1155 branch to Solidity 0.6 (and current master) (#2130 )
* port ERC1155 to Solidity 0.6
* make ERC1155 constructor more similar to ERC721 one
* also migrate mock contracts to Solidity 0.6
* mark all non-view functions as virtual
* Update contracts/token/ERC1155/IERC1155MetadataURI.sol
Starting on Solidity v0.6.2, interfaces can now inherit. \o/
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
* Fix compile errors
* Remove URI event
* Merge MetadataCatchAll into ERC1155
* Improve documentation.
* Simplify tests
* Move tests into ERC1155 tests
* Update documentation
* Bump minimum compiler version for inteface inheritance
* Fix holder tests
* Improve setUri docs
* Fix docs generation
Co-authored-by: Alan Lu <alanlu1023@gmail.com>
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Francisco Giordano
ccfd370b89
Update Test Helpers to 0.5.6 ( #2261 )
...
* update test-helpers to 0.5.6-rc.0
* remove comment that no longer applies
* fix uses of expectEvent.notEmitted
* remove mocha only
* update to final version
* Update test/token/ERC777/ERC777.test.js
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
5 years ago
Nicolás Venturo
91516b2318
Allow overriding of ERC1155 functions ( #2263 )
...
* Make receiver functions private
* Make external functions public
5 years ago
tincho
52f7b6e03b
Remove TokenVesting reference from Timelock docs ( #2262 )
5 years ago
Jordan
64ab594ad6
Modify token presets "mint" function as virtual to allow extending ( #2257 )
...
* Modify token presets "mint" function as virtual to allow extending in parent contracts
* Update ERC20PresetMinterPauser.sol
* Update ERC721PresetMinterPauserAutoId.sol
* Update CHANGELOG.md
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
5 years ago
Nicolás Venturo
394987f365
Fix ERC777 hook docs, fixes #2256
5 years ago
Peter
df4b317fb3
Update start docs command line ( #2255 )
5 years ago
Francisco Giordano
142f6c3f05
configure renovate to run weekly
5 years ago
renovate[bot]
414adb94f0
Update dependency ethereumjs-util to v7.0.2 ( #2250 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
5 years ago
renovate[bot]
7ee98cf525
Configure Renovate ( #2248 )
...
* Add renovate.json
* configure renovatebot
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Anton Bukov
d418da6b91
Decrease CREATE2 address computation gas usage from 623 to 539 ( #2244 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Ross Campbell
2a0f2a8ba8
Update LICENSE ( #2247 )
...
bump to 2020 reference for (c)
5 years ago
Julian M. Rodriguez
5513dfd3cf
Adding SafeCast variants for signed integers ( #2243 )
...
* feat: Adding SafeCast variants for signed integers
* Add newline at EOF
* Update CHANGELOG.md
* Update contracts/utils/SafeCast.sol
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
5 years ago
dependabot-preview[bot]
c18ffd7c81
Bump mocha from 7.1.2 to 7.2.0 ( #2245 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 7.1.2 to 7.2.0.
- [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.1.2...v7.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
5 years ago