2b0b0bb186
Fix merkle multiProof for single leaf tree ( #3446 )
2022-06-01 20:21:56 +00:00
6766b2de3b
Add getters for number of unclaimed tokens in PaymentSplitter ( #3350 )
2022-05-31 19:26:18 +00: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
61294a62af
Restore previous behavior of initializer during construction ( #3344 )
2022-05-25 15:01:45 -03:00
f8157ac854
Add multiProofVerify ( #3276 )
2022-05-25 09:39:15 +02: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
c019e7c5bb
Fix typo causing broken URL in ERC20Snapshot comment ( #3428 )
2022-05-23 14:57:57 -03:00
de74c8c62c
Add bytes32 to uint enumerable map ( #3416 )
2022-05-23 08:02:27 +00:00
b61faf8368
Procedural SafeCast.sol generation ( #3245 )
2022-05-21 14:38:31 +02:00
c4f76cfa15
Add uint to uint enumerable map ( #3338 )
2022-05-20 13:31:53 +00:00
6339027a7a
Add mention of events possibly emitted ( #3421 )
2022-05-19 13:35:42 -03:00
46db8a98b0
Rename return parameter ( #3413 )
2022-05-19 15:52:54 +02:00
c2077f0034
Add warning about use of delete ( #3412 )
2022-05-18 21:27:33 +02:00
ee4d8380d3
Fix minor typo in IERC1155 and IERC721 docs ( #3419 )
2022-05-18 15:19:41 +02:00
5772512058
Add address to string conversion ( #3403 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-05-13 18:46:26 +00:00
e633ee9ed3
Fix spelling and grammar in comments ( #3408 )
2022-05-11 18:10:00 -03:00
3bdf4bfd29
Annotate Memory-Safe Assembly ( #3392 )
2022-05-06 19:49:02 -03:00
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 >
2022-05-06 18:46:23 -03:00
07b1b472c0
Improve wording consistency in code/doc ( #3365 )
2022-05-04 18:20:59 -03:00
4574ce45b6
Add a cross-chain guide for the documentation ( #3325 )
2022-05-04 21:19:04 +00:00
14ca3aeb79
Fix links in documentation ( #3387 )
2022-05-02 18:06:52 -03:00
be3cfa0f90
Add custom error to CrossChainEnabledPolygonChild ( #3380 )
2022-04-29 16:14:18 +02: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
c12076fb7e
Fix ERC777 link ( #3351 )
2022-04-23 16:35:04 +02:00
cb14ea3c5c
Bump minimum Solidity version for Initializable.sol to 0.8.2 ( #3328 )
2022-04-14 00:21:52 +02:00
28dd490726
Optimize ERC1167 proxy creation code by 1 opcode ( #3329 )
2022-04-08 19:27:11 -03:00
bc810db320
Use a customizable _execute function in TimelockController ( #3317 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-04-08 17:05:57 -03:00
dd01889434
Remove outdated documentation in ERC2981._setTokenRoyalty
2022-04-07 20:34:04 -03: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
0762479dd5
Fix tests on upgradeable contracts after transpilation
2022-03-31 23:41:31 -03:00
9af5af8fff
add transpilation guards to the crosschain mocks ( #3306 )
2022-03-31 20:04:04 +02:00
d2832ca7a9
make ERC2981:royaltyInfo public ( #3305 )
2022-03-31 20:01:22 +02:00
3f49408fb6
Move event definition at the top of IERC20, IERC777 and IERC1820 ( #3228 )
2022-03-30 12:36:37 -03:00
e7719ded56
Match IERC721 function order with EIP spec ( #3287 )
2022-03-30 12:34:17 -03:00
668a648bc6
Add utilities for CrossChain messaging ( #3183 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-03-30 11:41:04 -03:00
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 >
2022-03-29 09:15:43 +00:00
ae270b0d89
Align data location of interface with implementation ( #3295 )
...
Co-authored-by: chriseth <chris@ethereum.org >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-03-28 17:48:28 -03:00
e029096ca4
Add Initialized event ( #3294 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-03-28 15:36:30 -03:00
76eee35971
Improve revert message in Governor ( #3275 )
...
* Fixed typo
* fix testing and adding changelog
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2022-03-25 11:02:15 +01:00
76fca3aec8
Add ERC721 and ERC1155 receiver support in Governor, Timelock ( #3230 )
...
* add ERC721 and ERC1155 receiver support in Governor, Timelock and MinimalForwarder (#3174 )
* revert the nft receiver hooks from MinimalForwarder and linting updates
* add ERC165 support & simplify test
* add changelog entry
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2022-03-24 01:25:00 +01:00
faf5820f03
Fix many spelling errors ( #3274 )
2022-03-22 18:16:20 -03:00
0eba5112c8
Allow the re-initialization of contracts ( #3232 )
...
* allow re-initialization of contracts
* fix lint
* use a private function to avoid code duplication
* use oz-retyped-from syntax
* add documentation
* rephrase
* documentation
* Update contracts/proxy/utils/Initializable.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
* reinitialize test
* lint
* typos and style
* add note about relation between initializer and reinitializer
* lint
* set _initializing in the modifier
* remove unnecessary variable set
* rename _preventInitialize -> _disableInitializers
* rename preventInitialize -> disableInitializers
* test nested reinitializers in reverse order
* docs typos and style
* edit docs for consistency between initializer and reinitializer
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-03-22 18:06:29 +00:00
b13bdb0249
Add bytes32 to bytes32 enumerable map ( #3192 )
...
* feat(enumerablemap): add bytes32 to bytes32 map
* chore(changelog): edit CHANGELOG
* feat(enumerable map): edit struct visibility
2022-03-22 16:36:29 +01:00
98716177ae
Inherit ERC20Wrapper decimals from the underlying ( #3259 )
2022-03-22 09:55:49 +01:00
52eeebecda
spelling fix
2022-03-14 12:54:08 +01:00
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 >
2022-03-09 17:38:29 +01:00
f2a311dc4a
Make Votes._getVotingUnits view ( #3225 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-03-08 21:39:53 +00:00