Hadrien Croubois
171fa40bc8
ERC721 extension for efficient batch minting ( #3311 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Francisco
e09ccd1449
Optimize votes lookups for recent checkpoints ( #3673 )
2 years ago
gmhacker.eth
4b16e88747
Improve recommendation on ERC721 transferFrom vs safeTransferFrom ( #3647 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
141130db27
Inherit asset decimals in ERC4626 ( #3639 )
2 years ago
hamiltoncyber
dc14c72e53
Update comment for _beforeTokenTransfer ( #3586 )
2 years ago
Hadrien Croubois
24fc709533
Set up codespell ( #3643 )
2 years ago
Hadrien Croubois
f491e98d37
Use unchecked for ERC721 balance updates ( #3524 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
98c3a79b57
Change execution order to avoid reentry through the _beforeTokenTransfer hook ( #3611 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
397c946141
Remove the draft prefix for EIP712 as it is now final ( #3621 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Manfred Touron
ff16696c9c
Update ERC777 event documentation ( #3594 )
3 years ago
Nicolas Bayle
7ddbfe181e
Add access control comment for ERC721 _burn function ( #3576 )
...
* Added access control comment for ERC721 _burn function
* Update contracts/token/ERC721/ERC721.sol
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
* Update contracts/token/ERC721/ERC721.sol
Co-authored-by: Francisco <frangio.1@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <frangio.1@gmail.com>
3 years ago
Aleksei Magusev
fbf235661e
Improve grammar in transfer error messages ( #3542 )
3 years ago
Nirban Chakraborty
d1b1e17d23
Add internal overrideable _flashFee in ERC20FlashMint ( #3551 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <frangio.1@gmail.com>
3 years ago
Aleksei Magusev
6ab8d6a67e
Improve spelling in ERC1155 revert reasons ( #3433 )
3 years ago
EthanOK
96163c87e3
Implicitly clear ERC721 approval on burn ( #3538 )
3 years ago
tonynoce
5e7e9acfa4
Fix broken forum URL ( #3537 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
3 years ago
Andrew Parker
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>
3 years ago
Paul Razvan Berg
5fbf494511
Use unchecked arithmetic in "_transfer", "_mint" and "_burn" ( #3513 )
3 years ago
micahriggan
4a194b3a1c
Fix typo in ERC4626 comments ( #3518 )
3 years ago
Hadrien Croubois
3dac7bbed7
Merge v4.7 back into master ( #3516 )
3 years ago
Pascal Marco Caversaccio
b159b3fee2
Minor wording fixes `ERC4626` contract ( #3510 )
3 years ago
Hadrien Croubois
74738721dc
Make ERC4626 _deposit and _withdraw internal virtual ( #3504 )
3 years ago
Francisco
450c569d78
Add a caution note to ERC4626 about EOA access ( #3503 )
3 years ago
Hadrien Croubois
a55b7d1372
Rename ERC20TokenizedVault to ERC4626 ( #3467 )
3 years ago
Hadrien Croubois
7c75b8aa89
Add a SafeERC20:safePermit function ( #3280 )
3 years ago
Hadrien Croubois
5e00787199
ERC4626 ( #3171 )
3 years ago
Francisco Giordano
62f2c0531b
Simplify ERC721 revert reasons ( #3438 )
3 years ago
rotcivegaf
82a63f6389
Remove redundant require in ERC721 ( #3434 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Kata
488dd562fb
Improve error messages for ERC721 and 1155 ( #3254 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Nate Lapinski
65b45726b3
Add memory safe assembly annotations ( #3384 )
...
Co-authored-by: Nate <nate@Nates-MacBook-Pro.local>
3 years ago
silencio
c019e7c5bb
Fix typo causing broken URL in ERC20Snapshot comment ( #3428 )
3 years ago
harold-nft
ee4d8380d3
Fix minor typo in IERC1155 and IERC721 docs ( #3419 )
3 years ago
GitHubPang
e633ee9ed3
Fix spelling and grammar in comments ( #3408 )
3 years ago
Mazen Khalil
3b9381dfb1
Add customizable fee receiver to ERC20FlashMint ( #3327 )
...
Co-authored-by: Mazen Khalil <mazen@immunityledger.org>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
07b1b472c0
Improve wording consistency in code/doc ( #3365 )
3 years ago
Hadrien Croubois
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>
3 years ago
Eric Lau
c12076fb7e
Fix ERC777 link ( #3351 )
3 years ago
Francisco Giordano
dd01889434
Remove outdated documentation in ERC2981._setTokenRoyalty
3 years ago
mcIovin
731e199038
Improve docs for ERC721URIStorage._burn ( #3324 )
3 years ago
dmfxyz
d4d8d2ed97
Fix burn documentation ( #3246 )
...
Co-authored-by: xombxomb <dmfinn@wustl.edu>
3 years ago
Amin Bashiri
742e85be7c
Change zero address revert message in the balanceOf function of ERC721 and ERC1155 ( #3314 )
3 years ago
Hadrien Croubois
d2832ca7a9
make ERC2981:royaltyInfo public ( #3305 )
3 years ago
Jean Cvllr
3f49408fb6
Move event definition at the top of IERC20, IERC777 and IERC1820 ( #3228 )
3 years ago
Jeff
e7719ded56
Match IERC721 function order with EIP spec ( #3287 )
3 years ago
S E R A Y A
02fcc75bb7
Add ERC1155URIStorage ( #3210 )
...
* Add ERC721URIStorage-like extension for ERC1155
* Add tests for ERC1155URIStorage extension
* add changelog entry for ERC721URIStorage
* Fix linting errors
* Emit URI event in ERC1155URIStorage
* Remove exists check and ERC1155Supply dependency
* Fix lint error
* Overwrite ERC1155 uri method
* Update ERC1155URIStorage specs
* Fix ERC1155URIStorageMock
* Rename _setTokenURI => _setURI in ERC1155URIStorage
* Add baseURI to ERC1155URIStorage
* Move super.uri call in ERC1155URIStorage
* Clearify ERC1155URIStorage description in change log
* reorder changelog & add documentation
* improve documentation
* fix typo
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Hadrien Croubois
98716177ae
Inherit ERC20Wrapper decimals from the underlying ( #3259 )
3 years ago
Pascal Marco Caversaccio
cc1c18098c
Replace immutable with constant for _PERMIT_TYPEHASH ( #3196 )
...
* replace `immutable` with `constant` for _PERMIT_TYPEHASH
This commit is related to the following issue discussion: https://github.com/OpenZeppelin/contracts-wizard/issues/89#issuecomment-1042391318
Since Solidity version `0.6.12` the `keccak256` of string literals is treated specially and the hash is evaluated at compile time. Since the OpenZeppelin Wizard also uses `constant` for OpenZeppelin's AccessControl's roles declarations, it's good practice to make this consistent.
* Update CHANGELOG
* fix: ensure transpiler compatibility
* fix: fixing var-name-mixedcase
* prettier & lint check
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Hadrien Croubois
f2a311dc4a
Make Votes._getVotingUnits view ( #3225 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Amirhossein Banavi
62eb4568be
Optimize ERC721 _isApprovedOrOwner function ( #3248 )
3 years ago
Hadrien Croubois
f8bfa560e9
Use _spendAllowance in ERC20FlashMint ( #3226 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago