60205944bb
Adopt new Solidity features interfaceId, try/catch, keccak constants ( #2487 )
...
* Clean code
- using type().interfaceId to improve readeability of ERC165 registration
- hardcoding some keccak256 that are otherwise computed at construction.
* hardcode keccak256 result
* Improve code readeability using try/catch
* Remove hardcoded hash
tests show that solc 0.8.0 does the optimization as expected
* Use try/catch to improve readability
* ERC165Checker: Do not revert when returndata is empty + new test
* Address PR comments
* improve testing of ERC721Receiver errors
* put back comment about invalid interface id
* coverage does not support 0.8.1. Reverting back to 0.8.0
* bubble all data with length > 0 if onERC721Receive fails.
* Fix test: revert without message trigger is bubble with the default message
* using enum object to improve readability
2021-01-29 22:20:49 +01:00
03832c130c
Make Context._msgData return "bytes calldata" ( #2492 )
2021-01-29 12:51:51 -03:00
9f93e25b88
Merge branch 'solc-0.7' into 'solc-0.8'
2021-01-27 18:36:46 -03:00
afaebc3869
Disable solhint until Solidity 0.8 supported
2021-01-27 18:17:13 -03:00
fdf57a9788
Lint
2021-01-27 18:14:15 -03:00
5609cd4c74
Fix merge errors
2021-01-27 18:04:52 -03:00
a0323d446c
Transition from buidler to hardhat
2021-01-27 11:37:18 +01:00
0db76e98f9
Merge branch 'solc-0.7' into solc-0.8
2021-01-27 11:28:23 +01:00
fa33fbce75
Allow manual dispatch of Test CI job
...
(cherry picked from commit bcc7192af7 )
2021-01-26 18:21:49 -03:00
bcc7192af7
Allow manual dispatch of Test CI job
2021-01-26 18:20:33 -03:00
0d27b7a7ff
Add package-lock.json
2021-01-26 18:18:58 -03:00
6d202894b6
Merge branch 'master'
2021-01-26 18:58:15 +01:00
ff300b10e1
3.4.0-rc.0
v3.4.0-rc.0
2021-01-26 13:31:55 -03:00
18c7efe800
Make view and pure functions virtual ( #2473 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-26 13:23:23 -03:00
0931062a3f
Use Address.sendValue instead of address.transfer in RefundEscrow ( #2480 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-26 13:07:19 -03:00
3b4c951838
Fix ERC777 potential reentrancy issues ( #2483 )
2021-01-26 10:57:18 -03:00
c2c08af16d
Add ERC165Checker.getSupportedInterfaces ( #2469 )
...
Co-authored-by: conspyrosy <1027439+Spyros-Stylianou@users.noreply.github.com >
Co-authored-by: kamiebisu <kamiebisu@protonmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-19 17:55:22 -03:00
9e49be41b6
Add ERC1167 library (minimal proxy) ( #2449 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-19 17:54:47 -03:00
dd86c97e18
Fix scripts/prepare-docs.sh
2021-01-19 14:56:17 -03:00
5a8e6bda51
Update pull request template
2021-01-19 13:41:00 -03:00
c34211417c
Refactor SafeMath to avoid memory leaks ( #2462 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-18 18:06:27 -03: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
5a58fd2de0
Update lockfile ( #2467 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-01-13 21:06:06 -03:00
faec973e09
Make non-view functions virtual ( #2468 )
2021-01-13 18:25:39 -03:00
65b7e515a2
Align comments ( #2458 )
2021-01-11 16:43:45 -03:00
318c4b44ea
Move Context from GSN to utils directory ( #2453 )
...
Co-authored-by: Hadrien Croubois <hadrien@openzeppelin.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-07 13:04:13 -03:00
b6e5187973
Use Address.sendValue for PaymentSplitter ( #2456 )
...
* use Address.sendValue instead of .transfer
* changelog entry
Co-authored-by: Hadrien Croubois <hadrien@openzeppelin.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-01-07 13:03:20 -03:00
1e8cb4b4a4
Bubble revert reasons in proxy initialization ( #2454 )
...
Co-authored-by: Hadrien Croubois <hadrien@openzeppelin.com >
2021-01-07 12:45:36 -03:00
9daa0d4d2f
Update lockfile ( #2447 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-01-04 15:19:03 -03:00
ceb7324657
Update TimelockController.sol ( #2446 )
2020-12-23 20:25:01 -03:00
da00d28cb7
Rename "amount" to "value" in permit ( #2445 )
2020-12-23 12:09:16 -03:00
c23d5e0143
Update lockfile ( #2444 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2020-12-22 16:31:03 -03:00
d8658dbc47
Update actions/setup-node action to v2 ( #2440 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2020-12-22 16:06:12 -03:00
a6a4c042f5
Adjust for chainid becoming view in 0.8.0. ( #2443 )
...
Co-authored-by: Alex Beregszaszi <alex@rtfs.hu >
Co-authored-by: Daniel Kirchner <daniel@ekpyron.org >
2020-12-21 18:14:21 -03:00
6be0b410dc
Use explicit conversions between addresses and numbers ( #2439 )
...
Co-authored-by: hrkrshnn <webmail.hari@gmail.com >
Co-authored-by: cameel <cameel2@gmail.com >
2020-12-17 22:51:48 -03:00
051d340171
Use bytes1 and avoid using the obsolete byte type ( #2438 )
2020-12-14 16:42:01 -03:00
0a4233f0f6
Update lockfile ( #2435 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2020-12-14 13:50:33 -03:00
ecc66719bd
Add ERC20 Permit (EIP-2612) ( #2237 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: Santiago Palladino <spalladino@gmail.com >
2020-12-11 13:34:02 -03:00
03d51c5677
Bump ini from 1.3.5 to 1.3.7 ( #2430 )
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-10 19:14:51 -03:00
268c6ab36c
Edit ERC20 API index to make it clearer
2020-12-09 20:04:08 -03:00
0786f31f22
Update lockfile ( #2428 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2020-12-09 13:32:42 -03:00
883116e4af
Add ERC20 and ERC777 fixed supply presets #2377 ( #2399 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-12-02 14:51:33 -03:00
5748034cd3
Add EIP 712 helpers ( #2418 )
2020-12-02 13:17:24 -03:00
061e7f0da7
Fix Solidity warning
2020-12-01 18:33:58 -03:00
a138dc3970
Remove stalebot
2020-12-01 12:33:09 -03:00
fa2b204535
Update TimelockController docs ( #2415 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-11-30 20:14:02 -03:00
73c7af102b
Configure Codecov parameters
2020-11-30 19:03:58 -03:00
18a8ae5a8a
Change styling for headings in API pages
2020-11-30 18:09:32 -03:00
fa65bf89be
Remove inheritance that conflicts with upgradeable transpiler
2020-11-30 16:34:07 -03:00
60c8b0e02f
Update lockfile ( #2416 )
...
* Update lockfile
* fix ERC1155Pausable test
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-11-30 16:16:58 -03:00