365aca6d60
Improve tests for ERC1155 and ERC721 error handling ( #3781 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-06-20 03:20:02 +00:00
2477534260
Change behavior of ceilDiv(0, 0) and improve test coverage ( #4348 )
2023-06-14 17:21:42 -03:00
5cc1ea0a39
Add GUIDELINES.md for marking abstract contracts ( #4010 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-06-14 19:01:33 +00:00
b425a72240
Replace revert strings with custom errors ( #4261 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco <fg@frang.io >
2023-06-12 23:41:52 +00:00
4c713f8cea
Merge branch 'master' into next-v5.0
2023-05-30 17:02:47 -03:00
7bb5592ad5
Bump minimum pragma version to 0.8.19 ( #4288 )
2023-05-29 21:37:37 +02:00
5420879d9b
Ability to set starting token id for ERC721Consecutive ( #4097 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2023-05-26 10:07:16 -06:00
8de6eba8a3
Merge branch 'master' into next-v5.0
2023-05-16 00:07:07 -03:00
e58c6d8ff4
Fix linter error
2023-03-02 19:47:41 -03:00
8ba26f388f
Merge pull request from GHSA-878m-3g6q-594q
...
* Test batch minting of 1
* Fix balance tracking
* fix lint
* add changeset
* rename UNSAFE -> unsafe
* fix docs
* fix changeset
* grammar
* add explanation of preserved invariant
* add fuzz tests
* rename variable
* improve property definition
* add burn
* add test ownership multiple batches
* refactor fuzz tests
* change ownership test for better probability
* typo
* reorder comment
* update changelog notes
* edit changelog
* lint
* Update CHANGELOG.md
---------
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-03-02 19:41:28 -03:00
08d085f2c9
Fix ERC4906 compliance of ERC721URIStorage ( #4055 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-02-17 13:43:23 -03:00
96a2297e15
Add IERC4906 interface and use in ERC721 ( #4012 )
...
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-02-17 09:26:10 +00:00
d5d9d4bd3d
Simplify ERC721Wrapper.depositFor to save gas ( #4048 )
2023-02-16 23:35:43 -03:00
2c711d0b05
Restrict ERC721Wrapper wrap by direct transfer ( #4043 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-02-14 17:47:07 -03:00
6259e13a0c
Improve ERC721 Wrapper tests ( #4039 )
2023-02-09 22:36:14 +01:00
790cc5b65a
Add timestamp based governor with EIP-6372 and EIP-5805 ( #3934 )
...
Co-authored-by: Francisco Giordano <fg@frang.io >
Co-authored-by: Ernesto García <ernestognw@gmail.com >
Co-authored-by: Francisco <frangio.1@gmail.com >
2023-02-09 22:33:55 +01:00
94cd8ef12e
Add ERC721 Wrapper ( #3863 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-02-09 13:43:34 -06:00
147dc89054
Merge branch 'master' into next-v5.0
2023-01-14 18:51:03 -03:00
7c6e289782
Prepare tests for hardhat-exposed transition ( #3930 )
...
Co-authored-by: Francisco <frangio.1@gmail.com >
2023-01-12 09:51:29 +01:00
a28aafdc85
Use Prettier for JS files ( #3913 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-01-04 15:03:40 +01:00
c1d9da4052
Use hardhat-exposed to reduce the need for mocks ( #3666 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-01-03 14:38:13 +00:00
2336bd3e8e
Simplify ESLint config ( #3903 )
2022-12-29 17:08:12 -03:00
e2d2ebc8fc
Make ERC20Votes independent from ERC20Permit ( #3816 )
...
Co-authored-by: Francisco <frangio.1@gmail.com >
2022-11-29 11:25:52 -03:00
4a9db80cb9
Remove presets ( #3637 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: JulissaDantes <julissadcj@gmail.com >
2022-11-25 12:46:47 -03:00
c22db8104e
Recommended improvement to ERC721Consecutive ( #3712 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-09-27 16:13:15 -03:00
171fa40bc8
ERC721 extension for efficient batch minting ( #3311 )
...
Co-authored-by: Francisco <frangio.1@gmail.com >
2022-09-05 23:09:30 +02:00
fbf235661e
Improve grammar in transfer error messages ( #3542 )
2022-07-25 17:01:14 -03:00
96163c87e3
Implicitly clear ERC721 approval on burn ( #3538 )
2022-07-09 10:25:45 +02:00
e02c378745
Implicitly clear ERC721 approval on transfers ( #3481 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-07-04 15:29:15 -03:00
62f2c0531b
Simplify ERC721 revert reasons ( #3438 )
2022-06-01 18:22:13 -03:00
82a63f6389
Remove redundant require in ERC721 ( #3434 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-05-26 22:22:35 -03:00
488dd562fb
Improve error messages for ERC721 and 1155 ( #3254 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-05-27 00:52:43 +00:00
d4e6236b2b
Fix deprecated expectEvent.inLogs #3332 ( #3333 )
2022-04-23 10:20:55 -03:00
742e85be7c
Change zero address revert message in the balanceOf function of ERC721 and ERC1155 ( #3314 )
2022-04-02 12:13:33 +02:00
a65c03bc0d
Implement Non Fungible Token Royalty (EIP2981) ( #3012 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2022-01-06 19:34:57 -03:00
b42b05311b
Add ERC721Votes for NFT-based governance ( #2944 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien@openzeppelin.com >
2021-12-10 18:58:45 -03:00
0c858e2071
Improve revert reason in ERC721 ( #2975 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-12-09 23:42:18 +00:00
d89f2a4ac6
Update ERC721.behavior.js ( #2801 )
2021-08-05 19:44:13 +02:00
f782943099
Move variable declaration to top of test file ( #2806 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-08-03 14:19:21 +00:00
e1c0f3eaef
Update tests for RFC 2606 ( #2802 )
2021-08-02 23:41:13 +00:00
cd443f0d5b
Add tests to extend code coverage ( #2586 )
2021-03-15 13:01:47 -03:00
29ffe6f426
Add ERC165 interface detection to AccessControl ( #2562 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2021-03-04 18:50:12 -03:00
1705067e65
Add ERC721URIStorage extension ( #2555 )
2021-03-03 12:13:09 -03:00
24a0bc23cf
Reorganize the repo structure ( #2503 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-02-22 16:44:16 +00:00
09734e8028
Remove enumerable from ERC721 and add an ERC721Enumerable extension ( #2511 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-02-19 13:24:39 -03:00
e66e3ca523
Improve gas efficiency of EnumerableMap ( #2518 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-02-18 15:19:57 +00:00
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
f06738828b
Migrate to Hardhat ( #2397 )
2020-10-28 17:03:05 -03:00
ace35fdeda
Update all dependencies transitively ( #2363 )
2020-09-16 12:14:53 -03:00
0b489f4d79
Improve test descriptions #1157 ( #2334 )
...
Co-authored-by: Paolo Dibitonto <p.dibitonto@almaviva.it >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-08-25 14:58:45 -03:00