7c4a2a0a29
Fix comment reference for function hash ( #2307 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-07-21 17:06:36 -03:00
c801c8d2bb
feat: use extcodesize for isContract to reduce gas ( #2311 )
...
* feat: use extcodesize for isContract to reduce gas
* feat: add changelog entry
2020-07-14 17:08:41 -03:00
98e862e162
Update all non-major dependencies ( #2309 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2020-07-13 14:39:19 -03:00
b9d72d2991
Clean up build directory when publishing
2020-07-07 21:15:26 -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
ef3bbbcf40
Add readme notices with link to docs site ( #2300 )
...
* add readme notices
* remove period after url
2020-06-29 17:23:53 -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
6d987f1418
Merge branch 'release-v3.1.0'
2020-06-23 16:10:59 -03:00
de99bccbfd
3.1.0
v3.1.0
2020-06-23 16:09:01 -03:00
0cc882ef9d
typo fix: forwared -> forwarded ( #2290 )
2020-06-23 14:25:30 -03:00
3f4420527b
Separate mapping keyword by whitespace ( #2287 )
...
Co-authored-by: pm_468 <oleg.kuzmenko@lindenvalley.de >
2020-06-19 11:00:05 -03:00
21d06999f6
delete dependabot config
2020-06-16 19:40:06 -03:00
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>
2020-06-16 15:48:42 -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
02a6b05bde
Update functionCall docs
...
(cherry picked from commit 242400e9ea )
2020-06-12 13:23:07 -03:00
242400e9ea
Update functionCall docs
2020-06-12 13:22:52 -03:00
8c1daaab57
3.1.0-rc.0
v3.1.0-rc.0
2020-06-11 16:53:19 -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
e2876b947d
Fix docs link
2020-06-11 16:49:14 -03:00
ed3a513f86
Fix broken links
2020-06-11 16:48:00 -03:00
b72088a90a
Add 'available since' notices
2020-06-11 16:46:33 -03:00
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 >
2020-06-11 16:25:46 -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
13e2132b69
docs: minor - spelling, grammar ( #2273 )
2020-06-09 13:18:38 -03:00
298e1b5fdc
Merge branch 'release-v3.0.0'
2020-06-08 13:14:15 -03:00
5294f3b9b7
3.0.2
v3.0.2
2020-06-08 13:09:47 -03:00
b191e67552
Add changelog entry
2020-06-08 13:07:02 -03:00
fac773ac99
Add SPX license identifier ( #2235 )
...
(cherry picked from commit 56de324afe )
2020-06-08 13:05:11 -03:00
82769e54c3
Fix 721 preset docs
2020-06-05 19:26:40 -03:00
022f2bc177
Improve SignedSafeMath docs
2020-06-05 18:42:28 -03:00
ccf79ee483
Fix SafeMath docs
2020-06-05 18:42:28 -03:00
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 >
2020-06-05 14:29:06 -03:00
d3ef93a9a5
Deprecate SafeERC20.safeApprove ( #2268 )
...
* Deprecate SafeERC20.safeApprove
* Add changelog entry
2020-06-05 14:13:53 -03:00
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>
2020-06-05 14:12:27 -03:00
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>
2020-06-05 14:12:10 -03:00
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
2020-06-04 14:57:35 -03:00
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 >
2020-06-03 11:56:58 -03:00
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 >
2020-06-02 17:00:56 -03:00
91516b2318
Allow overriding of ERC1155 functions ( #2263 )
...
* Make receiver functions private
* Make external functions public
2020-06-02 15:06:34 -03:00
52f7b6e03b
Remove TokenVesting reference from Timelock docs ( #2262 )
2020-06-02 13:32:14 -03:00
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 >
2020-06-01 17:17:32 -03:00
394987f365
Fix ERC777 hook docs, fixes #2256
2020-06-01 13:17:15 -03:00
df4b317fb3
Update start docs command line ( #2255 )
2020-06-01 11:53:04 -03:00
142f6c3f05
configure renovate to run weekly
2020-05-30 23:15:48 -03:00
414adb94f0
Update dependency ethereumjs-util to v7.0.2 ( #2250 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2020-05-29 17:01:43 -03:00
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 >
2020-05-29 16:43:57 -03:00
d418da6b91
Decrease CREATE2 address computation gas usage from 623 to 539 ( #2244 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-05-28 20:47:45 -03:00
2a0f2a8ba8
Update LICENSE ( #2247 )
...
bump to 2020 reference for (c)
2020-05-28 19:15:43 -03:00
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 >
2020-05-26 19:17:34 -03:00