3dac7bbed7
Merge v4.7 back into master ( #3516 )
2022-06-29 12:34:30 +02:00
e734b42fc2
Enable using ERC165 check for one supported interface directly ( #3339 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco <frangio.1@gmail.com >
2022-06-27 17:51:33 -03:00
6f88199db9
Optimize Address.functionCall removing redundant isContract check ( #3469 )
...
Co-authored-by: Francisco <frangio.1@gmail.com >
2022-06-27 17:02:33 -03:00
2894059775
Support memory arrays in MerkleTree multiproof ( #3493 )
2022-06-27 13:15:52 +02:00
cb3f2ab900
Address.functionCall internal call stack simplification ( #3468 )
2022-06-16 15:17:09 +02:00
3ac4add548
Add sqrt for math ( #3242 )
2022-06-07 08:26:45 +02:00
113443470c
Reorder arguments for multiProof functions ( #3447 )
2022-06-03 09:36:14 +02:00
5e00787199
ERC4626 ( #3171 )
2022-06-02 10:03:03 +02:00
4fc9fd3efe
Support more efficient merkle proofs through calldata ( #3200 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-06-01 20:36:42 +00:00
2b0b0bb186
Fix merkle multiProof for single leaf tree ( #3446 )
2022-06-01 20:21:56 +00: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
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
c2077f0034
Add warning about use of delete ( #3412 )
2022-05-18 21:27:33 +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
3bdf4bfd29
Annotate Memory-Safe Assembly ( #3392 )
2022-05-06 19:49:02 -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
3f49408fb6
Move event definition at the top of IERC20, IERC777 and IERC1820 ( #3228 )
2022-03-30 12:36:37 -03:00
faf5820f03
Fix many spelling errors ( #3274 )
2022-03-22 18:16:20 -03: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
c239e1af8d
Fix typo ( #3241 )
...
Fix camelcase of 'lastvalue' to 'lastValue'
2022-03-04 15:36:19 -03:00
525a672862
Add missing docs about reverts in DoubleEndedQueue
2022-02-16 16:42:33 -03:00
aace774961
Add a double ended queue ( #3153 )
...
* add vector, lifo and fifo structures
* fix lint
* need more memory for coverage
* remove Vector wrappers and gas optimization
* refactor Vector testing
* revert package.json changes
* rename to DoubleEndedQueue
* rename and refactor
* refactor tests and expand coverage
* test for custom errors
* add changelog entry
* add docs
* add sample code and note about storage vs. memory
* add available since
* lint
* use underscore for struct members
* add struct documentation
* remove SafeCast in length
* rename i -> index and improve docs
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-02-16 09:32:16 +01:00
afb20119b3
Release v4.5
2022-02-09 18:16:53 -03:00
bfd05d9646
Add "available since" on Base64.sol
2022-02-01 20:04:28 -03:00
ca755ce799
Add AddressToUintMap ( #3150 )
...
* add AddressToUintMap
* Update contracts/utils/structs/EnumerableMap.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
* address comments
* lint code
* merge mocks into a single file
* add PR link to changelog entry
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2022-02-01 17:37:32 +01:00
4f8af2dceb
Add test and docs describing a misuse of MerkleProof ( #3090 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-01-31 12:10:13 -03:00
f55d2716a8
Add function documentation for SignatureChecker.
2022-01-28 22:44:32 -03:00
3eb2d43b06
Move abs(int256) from Math to SafeMath ( #3110 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-01-14 22:27:04 +00:00
ecae978cb5
Make more functions virtual ( #3078 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-01-13 18:56:36 +00:00
3458c1e854
Add SignedMath with math utilities for signed integers ( #2686 )
...
* add contract and tests
* avoid implicit cast
* add test cases
* fix test names
* modify avarage and add tests
* improve signed average formula
* fix lint
* better average formula
* refactor signed average testing
* add doc and changelog entry
* Update contracts/utils/math/SignedMath.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
* remove ceilDiv
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-01-12 20:08:59 +01:00
fd7c4ba8f0
Update pragma in utils/Address.sol to 0.8.1 ( #3098 )
2022-01-10 19:47:43 -03:00
ef0273fde1
Add Base64 library to utils ( #2884 )
...
* Add Base64 library to utils
* Fix typo on Base64 padding
* Added documentation for Base64 and references from ERC1155 and ERC721
* Updated Changelog
* Fix typo in utilities doc
* use mstore8 to improve memory accesses
* use shorter strings with encodePacked
* do not use using-for syntax, for clarity
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-12-29 20:41:20 +01:00
da3a9ae18b
Avoid assembly in signature V and S decomposition ( #3060 )
...
* Avoid assembly in signature V and S decomposition
* Update ECDSA.sol
2021-12-29 16:22:39 +01:00
cafd900ad6
Fix memory leak in merkle verification ( #3039 )
2021-12-21 17:01:28 -03:00
d95cdaae8e
Replace excodesize assembly with address.code.length ( https://github.com/ethereum/solidity/releases/tag/v0.8.1 ) ( #3025 )
2021-12-15 18:54:10 +01: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
04109f8bee
Address: explain dangers of isContract ( #2994 )
...
Co-authored-by: Ivo Georgiev <ivo@strem.io >
2021-12-08 20:10:40 -03: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
f6db5c1f30
A function which returns the absolute value of a signed value ( #2984 )
...
* Add a function which returns the absolute (and obviously unsigned) value of a signed value.
* add changelog entry and fix lint
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2021-11-24 14:09:05 +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
d244b81972
Add a MerkleProof.processProof utility function ( #2841 )
...
* Add a MerkleProof.processProof utility function
* Add changelog entry
* fix lint
* return index when processingProof
* fix lint
* fix test
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
* improve documentation
* Apply suggestions from code review
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
* remove index - see discussion in the PR
* update changelog
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-10-14 11:50:35 +02:00