jjz
3ac4add548
Add sqrt for math ( #3242 )
3 years ago
Francisco Giordano
113443470c
Reorder arguments for multiProof functions ( #3447 )
3 years ago
Hadrien Croubois
5e00787199
ERC4626 ( #3171 )
3 years ago
Troy Salem
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>
3 years ago
Hadrien Croubois
2b0b0bb186
Fix merkle multiProof for single leaf tree ( #3446 )
3 years ago
Colin Hicks
f8157ac854
Add multiProofVerify ( #3276 )
3 years ago
Nate Lapinski
65b45726b3
Add memory safe assembly annotations ( #3384 )
...
Co-authored-by: Nate <nate@Nates-MacBook-Pro.local>
3 years ago
Artur
de74c8c62c
Add bytes32 to uint enumerable map ( #3416 )
3 years ago
Hadrien Croubois
b61faf8368
Procedural SafeCast.sol generation ( #3245 )
3 years ago
ashhanai
c4f76cfa15
Add uint to uint enumerable map ( #3338 )
3 years ago
Lucas Alonso
c2077f0034
Add warning about use of delete ( #3412 )
3 years ago
Pascal Marco Caversaccio
5772512058
Add `address` to `string` conversion ( #3403 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Kartik0099
3bdf4bfd29
Annotate Memory-Safe Assembly ( #3392 )
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
Jean Cvllr
3f49408fb6
Move event definition at the top of IERC20, IERC777 and IERC1820 ( #3228 )
3 years ago
Pandapip1
faf5820f03
Fix many spelling errors ( #3274 )
3 years ago
Wias Liaw
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
3 years ago
Ben
c239e1af8d
Fix typo ( #3241 )
...
Fix camelcase of 'lastvalue' to 'lastValue'
3 years ago
Francisco Giordano
525a672862
Add missing docs about reverts in DoubleEndedQueue
3 years ago
Hadrien Croubois
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>
3 years ago
Francisco Giordano
afb20119b3
Release v4.5
3 years ago
Francisco Giordano
bfd05d9646
Add "available since" on Base64.sol
3 years ago
Gaspar Dip
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>
3 years ago
Doug Hoyte
4f8af2dceb
Add test and docs describing a misuse of MerkleProof ( #3090 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
f55d2716a8
Add function documentation for SignatureChecker.
3 years ago
Hadrien Croubois
3eb2d43b06
Move abs(int256) from Math to SafeMath ( #3110 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
ecae978cb5
Make more functions virtual ( #3078 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
rotcivegaf
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>
3 years ago
Hadrien Croubois
fd7c4ba8f0
Update pragma in utils/Address.sol to 0.8.1 ( #3098 )
3 years ago
Ernesto García
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>
3 years ago
Anton Bukov
da3a9ae18b
Avoid assembly in signature V and S decomposition ( #3060 )
...
* Avoid assembly in signature V and S decomposition
* Update ECDSA.sol
3 years ago
Hadrien Croubois
cafd900ad6
Fix memory leak in merkle verification ( #3039 )
3 years ago
Anton Bukov
d95cdaae8e
Replace excodesize assembly with address.code.length ( https://github.com/ethereum/solidity/releases/tag/v0.8.1 ) ( #3025 )
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
Francisco Giordano
04109f8bee
Address: explain dangers of isContract ( #2994 )
...
Co-authored-by: Ivo Georgiev <ivo@strem.io>
3 years ago
Francisco Giordano
4961a51cc7
4.4.0
3 years ago
barakman
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>
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
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>
3 years ago
td-bn
5b28259dac
#890 : Add ECDSA.toEthSignedMessageHash(bytes) for abritrary length message hashing ( #2865 )
...
* #890 : Add ECDSA#toEthSignedMessage for bytes type
* refactor
* add test, refactor
* select overloaded function explicitly
* use short test message string
* add changelog entry
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Anton Bukov
29eeb2828e
Fix EIP712 for delegatecalls ( #2852 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
6f23efa970
Review wording of SafeMath need in Solidity 0.8 ( #2898 )
3 years ago
Nicolas Mahe
1b27c13096
Fix typo in doc of SignatureChecker ( #2881 )
3 years ago
Anton Bukov
541e82144f
Optimize EOA signature verification ( #2661 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Anton Bukov
3dadd40034
Avoid safe math in BitMap ( #2797 )
4 years ago
Mikhail Melnik
d3c5bdf4de
Fix yellowpaper reference ( #2775 )
4 years ago