Harsh Vakharia
a81b07ce91
Fix typo in retrieval of onERC721Received selector ( #3151 )
3 years ago
Muhammad Anas Baig
8f70c8867e
Fix typo in ERC721.sol ( #3127 )
3 years ago
Martín Triay
828fe365ee
Normalize return variable names in IERC721Enumerable ( #3079 )
...
* Name missing return variable in IERC721Enumerable
For consistency among all functions.
* remove return variable names
3 years ago
JulissaDantes
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>
3 years ago
Francisco Giordano
1e815f3308
Restructure intro to ERC721 contract docs
3 years ago
Francisco Giordano
6bd6b76d11
4.4.1
3 years ago
JulissaDantes
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>
3 years ago
robriks
0c858e2071
Improve revert reason in ERC721 ( #2975 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
4961a51cc7
4.4.0
3 years ago
Francisco Giordano
2f2604d673
Deprecate presets in favor of Wizard ( #2986 )
3 years ago
Francisco Giordano
65ef662a2b
4.4.0-rc.1
3 years ago
Francisco Giordano
0a87a4e75b
4.4.0-rc.0
3 years ago
Francisco Giordano
c9bdb1f0ae
Add a comment documenting the package version being used ( #2918 )
3 years ago
Hadrien Croubois
caba6b93ef
Add an internal _setApprovalForAll function (721 & 1155) ( #2834 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Anton Bukov
4e2641a915
Simplify selector access ( #2766 )
4 years ago
Hadrien Croubois
b0cf6fbb7a
Add Prettier for linting and fix Solhint config ( #2697 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Santiago Palladino
8ad458e955
Explain how baseURI is used for building the tokenURI ( #2679 )
4 years ago
William Chargin
08ba72afa2
Fix `ERC721._beforeTokenTransfer` docs ( #2653 )
4 years ago
Julian M. Rodriguez
74e03de760
removes unused dependency ( #2603 )
4 years ago
Hadrien Croubois
3dc374ddcf
Make overide of ERC721.isApprovedForAll affect the ERC721 logic ( #2597 )
4 years ago
Francisco Giordano
90a72f9acd
Fix ERC721URIStorage in documentation
...
(cherry picked from commit 7c1625b0e0
)
4 years ago
Francisco Giordano
7c1625b0e0
Fix ERC721URIStorage in documentation
4 years ago
Julian M. Rodriguez
6505e28c40
removes invalid character in comments ( #2571 )
...
(cherry picked from commit fc004c0ad2
)
4 years ago
Julian M. Rodriguez
fc004c0ad2
removes invalid character in comments ( #2571 )
4 years ago
Francisco Giordano
f07c39be8a
Add ERC165 interface detection to AccessControl ( #2562 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
(cherry picked from commit 29ffe6f426
)
4 years ago
Francisco Giordano
29ffe6f426
Add ERC165 interface detection to AccessControl ( #2562 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
4 years ago
Hadrien Croubois
4390b8df12
Add ERC721URIStorage extension ( #2555 )
...
(cherry picked from commit 1705067e65
)
4 years ago
Hadrien Croubois
1705067e65
Add ERC721URIStorage extension ( #2555 )
4 years ago
Hadrien Croubois
24a0bc23cf
Reorganize the repo structure ( #2503 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
09734e8028
Remove enumerable from ERC721 and add an ERC721Enumerable extension ( #2511 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
e733b24dfe
Refactor ERC165 to use function overriding instead of storage ( #2505 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
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
4 years ago
Hadrien Croubois
18c7efe800
Make view and pure functions virtual ( #2473 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Andre Korol
974c534210
Update contracts to support Solidity 0.8.x ( #2442 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Bill Hsu
65b7e515a2
Align comments ( #2458 )
4 years ago
Hadrien Croubois
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>
4 years ago
Francisco Giordano
90ed1af972
Support compiling with solc 0.7 ( #2408 )
4 years ago
soham
0f55c18595
Fix/solc 0.7.4 warnings #2391 ( #2396 )
...
* Fix unnamed return variable warning
This commit fixes warnings thrown by the solc 0.7.4 compiler:
"Warning: Unnamed return variable can remain unassigned. Add an explicit
return with value to all non-reverting code paths or name the variable."
* Fix function state mutability warning
This commit fixes warnings thrown by the solc 0.7.4 compiler:
"Warning: Function state mutability can be restricted to pure"
* Fix shadows an existing declaration warning
This commit fixes warnings thrown by the solc 0.7.4 compiler:
"Warning: This declaration shadows an existing declaration."
1. Arguments by default are not underscored.
2. If the name isn't available due to shadowing, use prefix underscore.
3. If prefix underscore isn't available due to shadowing, use suffix underscore.
4 years ago
Ross Campbell
ca7ee098ca
Fix whitespace in IERC721Receiver ( #2359 )
...
Slight nit on spacing to reduce # of lines // conform to other OZ function syntax
4 years ago
Andrew B Coathup
ded2b0a55c
Fix minor typos and grammar in docs ( #2338 )
...
* Fix typos and formatting
* Add Solidity release dates: releases-stability
4 years ago
tincho
aaa5ef81cf
Fix typos ( #2343 )
4 years ago
Elena Gesheva
04fc35707d
Migrate contracts to Solidity 0.7 ( #2319 )
...
* Update contract pragmas to solidity 0.7
* Remove internal declaration on constructors
* Reference SafeMath explicitely
* Remove public constructor declaration from abstract contracts
* Remove public constructor declaration from non-abstract contracts
5 years ago
Julian M. Rodriguez
0c667ca32a
docs: add note explaining opinionated presets ( #2313 )
...
* docs: add notes explaining presets
* fix links for mint function
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
5 years ago
Nicolas Tsagarides
7c4a2a0a29
Fix comment reference for function hash ( #2307 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
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
Oleg Kuzmenko
3f4420527b
Separate mapping keyword by whitespace ( #2287 )
...
Co-authored-by: pm_468 <oleg.kuzmenko@lindenvalley.de>
5 years ago
Nicolás Venturo
e2876b947d
Fix docs link
5 years ago
Nicolás Venturo
ed3a513f86
Fix broken links
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