Daniel Liu
005a35b02a
Optimize Math.max and SignedMath.max ( #3679 )
...
Co-authored-by: Daniel Liu <liudaniel@qq.com>
2 years ago
GitHubPang
84fafa7832
Fix typos ( #3677 )
2 years ago
Francisco
e09ccd1449
Optimize votes lookups for recent checkpoints ( #3673 )
2 years ago
Igor Żuk
160bf1a6eb
Optimize toString ( #3573 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
affe2456ea
Search the whole checkpoint trace if offset overflows during initial exponential search. ( #3662 )
2 years ago
Hadrien Croubois
71aaca2d9d
Extend Checkpoints with new sizes and lookup mechanisms ( #3589 )
2 years ago
ToweringTopaz
6d8017d07e
Optimize Create2.computeAddress ( #3600 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
17bc2dabe0
Procedurally generate EnumerableSet and EnumerableMap ( #3429 )
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
t11s
324eda228c
Remove redundant ECDSA constraint ( #3591 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
GitHubPang
2dc086563f
Fix misspelling in comment ( #3613 )
3 years ago
Francisco
d693d89d99
Fix ECDSA signature malleability ( #3610 )
3 years ago
Hadrien Croubois
dc4869eb23
Avoid returnbomb in ERC165Checker ( #3587 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Aleksei Magusev
fbf235661e
Improve grammar in transfer error messages ( #3542 )
3 years ago
Igor Żuk
580b7ab816
Optimize safe casting of signed numbers ( #3565 )
3 years ago
Hadrien Croubois
628a6e2866
Fix issues caused by abi.decode reverting ( #3552 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Siloé Garcez
597654db00
Fixed typos in `Math`: `sqrt` function. ( #3522 )
3 years ago
Hadrien Croubois
3dac7bbed7
Merge v4.7 back into master ( #3516 )
3 years ago
ashhanai
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>
3 years ago
Mikhail Melnik
6f88199db9
Optimize Address.functionCall removing redundant isContract check ( #3469 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
2894059775
Support memory arrays in MerkleTree multiproof ( #3493 )
3 years ago
Mikhail Melnik
cb3f2ab900
Address.functionCall internal call stack simplification ( #3468 )
3 years ago
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