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
3dac7bbed7
Merge v4.7 back into master ( #3516 )
2022-06-29 12:34:30 +02: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
65b45726b3
Add memory safe assembly annotations ( #3384 )
...
Co-authored-by: Nate <nate@Nates-MacBook-Pro.local >
2022-05-23 15:37:08 -03:00
ee4d8380d3
Fix minor typo in IERC1155 and IERC721 docs ( #3419 )
2022-05-18 15:19:41 +02:00
e633ee9ed3
Fix spelling and grammar in comments ( #3408 )
2022-05-11 18:10:00 -03:00
07b1b472c0
Improve wording consistency in code/doc ( #3365 )
2022-05-04 18:20:59 -03:00
a035b235b4
Release v4.6 ( #3358 )
...
* 4.6.0-rc.0
* Fix release script to only release @openzeppelin/contracts
(cherry picked from commit 2bd75a44bb )
* make ERC2981:royaltyInfo public (#3305 )
(cherry picked from commit d2832ca7a9 )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* add transpilation guards to the crosschain mocks (#3306 )
(cherry picked from commit 9af5af8fff )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* Fix tests on upgradeable contracts after transpilation
(cherry picked from commit 0762479dd5 )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* Remove unused constructor argument
(cherry picked from commit 69c3781043 )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* Bump minimum Solidity version for Initializable.sol to 0.8.2 (#3328 )
(cherry picked from commit cb14ea3c5c )
* Fix update-comment script to ignore invalid tags
(cherry picked from commit 848fef5b6c )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* 4.6.0
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-04-27 09:34:09 +02:00
731e199038
Improve docs for ERC721URIStorage._burn ( #3324 )
2022-04-07 20:28:18 -03:00
d4d8d2ed97
Fix burn documentation ( #3246 )
...
Co-authored-by: xombxomb <dmfinn@wustl.edu >
2022-04-05 19:44:20 -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
e7719ded56
Match IERC721 function order with EIP spec ( #3287 )
2022-03-30 12:34:17 -03:00
f2a311dc4a
Make Votes._getVotingUnits view ( #3225 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-03-08 21:39:53 +00:00
62eb4568be
Optimize ERC721 _isApprovedOrOwner function ( #3248 )
2022-03-08 18:18:56 -03:00
afb20119b3
Release v4.5
2022-02-09 18:16:53 -03:00
a81b07ce91
Fix typo in retrieval of onERC721Received selector ( #3151 )
2022-01-31 10:47:56 +01:00
8f70c8867e
Fix typo in ERC721.sol ( #3127 )
2022-01-23 11:05:41 +01:00
828fe365ee
Normalize return variable names in IERC721Enumerable ( #3079 )
...
* Name missing return variable in IERC721Enumerable
For consistency among all functions.
* remove return variable names
2022-01-07 15:39:46 +01: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
1e815f3308
Restructure intro to ERC721 contract docs
2022-01-06 17:45:21 -03:00
4a9cc8b491
Merge branch 'release-v4.4'
2021-12-14 13:34:03 -03:00
6bd6b76d11
4.4.1
2021-12-14 13:14:39 -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
7d17acfb2f
Merge branch 'release-v4.4'
2021-11-25 16:56:07 -03:00
4961a51cc7
4.4.0
2021-11-25 16:35:37 -03:00
2f2604d673
Deprecate presets in favor of Wizard ( #2986 )
2021-11-24 10:14:14 +01:00
65ef662a2b
4.4.0-rc.1
2021-11-16 10:23:53 -03:00
0a87a4e75b
4.4.0-rc.0
2021-10-20 17:21:04 -03:00
c9bdb1f0ae
Add a comment documenting the package version being used ( #2918 )
2021-10-19 19:18:19 -03:00
caba6b93ef
Add an internal _setApprovalForAll function (721 & 1155) ( #2834 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-10-06 13:48:18 +00:00
4e2641a915
Simplify selector access ( #2766 )
2021-07-13 01:23:14 +02:00
b0cf6fbb7a
Add Prettier for linting and fix Solhint config ( #2697 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-06-07 12:33:03 -03:00
8ad458e955
Explain how baseURI is used for building the tokenURI ( #2679 )
2021-05-19 16:07:56 -03:00
08ba72afa2
Fix ERC721._beforeTokenTransfer docs ( #2653 )
2021-05-04 11:10:24 -03:00
74e03de760
removes unused dependency ( #2603 )
2021-03-21 19:22:45 +01:00
3dc374ddcf
Make overide of ERC721.isApprovedForAll affect the ERC721 logic ( #2597 )
2021-03-16 15:32:22 -03:00
7c1625b0e0
Fix ERC721URIStorage in documentation
2021-03-15 16:47:39 -03:00
fc004c0ad2
removes invalid character in comments ( #2571 )
2021-03-08 13:42:35 +01: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
e733b24dfe
Refactor ERC165 to use function overriding instead of storage ( #2505 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-02-18 19:02:28 +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
0db76e98f9
Merge branch 'solc-0.7' into solc-0.8
2021-01-27 11:28:23 +01:00
6d202894b6
Merge branch 'master'
2021-01-26 18:58:15 +01: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