Commit Graph

3688 Commits

Author SHA1 Message Date
69c8def5f2 Release v5.1.0 (#5265)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
v5.1.0
2024-10-17 13:52:59 +02:00
49941b16c0 pre-exit 2024-10-17 13:47:55 +02:00
a889714f3a Release v5.1.0 (rc) (#5264)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v5.1.0-rc.1
2024-10-17 13:42:48 +02:00
4ddb8d8fe6 Document risk of SafeERC20 and ERC-7674 (#5262)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-17 13:34:09 +02:00
81c7206393 Fix CHANGELOG entry 2024-10-16 21:54:47 +02:00
1bcd1c65db Split StorageSlot into TransientSlot (#5239)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-16 21:53:35 +02:00
f8432e82d6 Fix typo in CHANGELOG.md (#5240)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-16 21:53:32 +02:00
4feb895f9f Release v5.1.0 (rc) (#5124)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
v5.1.0-rc.0
2024-10-03 16:37:01 +02:00
fd29158067 Add warning about low public key exponent (#5234)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:47 +02:00
4e2ac51953 Fix P256 corner cases (#5218)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:46 +02:00
7b8e6b0873 Fix invalid link and typos (#5232)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:46 +02:00
6ed4b9bc02 Add introduction tag for v5.1 contracts (#5228)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:46 +02:00
7623e4b605 Improve VestingWallet's constructor and RSA.pkcs1Sha256 documentation (#5229)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:46 +02:00
6c73fcddea Consistently name multiple returned values (#5177)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:46 +02:00
22ec876c5a Implement 5.1 Full Audit Naming Suggestions (#5215)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: cairo <cairoeth@protonmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:46 +02:00
42f666485f Add P256 and RSA documentation sections (#5227)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:45 +02:00
e747501394 Add comment and tests for zero address behavior in Ownable2Step.transferOwnership() (#5226)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:45 +02:00
ce7376ea8a Update and clarify documentation comments (#5206)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:45 +02:00
5b952079df Fix typo in ERC4626 docs (#5222)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:45 +02:00
6b1936de73 Disallow empty CircularBuffer setup (#5214)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:45 +02:00
824a295d1c Add note about memory manipulation in MerkleTree (#5213)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:45 +02:00
e6cb351824 Update documentation of helper interface (#5179)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:44 +02:00
26b056d8d7 Clarify mapping named parameters (#5204)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:44 +02:00
7364ba2a92 Clarify reference commits and licenses (#5205)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:44 +02:00
9891361754 Refactor Heap.sol to remove index and lookup (#5190)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:44 +02:00
b1d61079d6 Clean dirty addresses and booleans (#5195)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:44 +02:00
53f7ed8219 Remove redundant modulo operation in P256 (#5200)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:44 +02:00
01c228ad48 Update to match Solidity pragma (#5198)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:43 +02:00
ceadf10098 Fix typographical errors (#5194)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:43 +02:00
300d66d6e7 Tag memory safe assembly blocks (#5193)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:43 +02:00
54fbcb8b10 Bump version of ERC20TemporaryApproval to transient minimum (#5191)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:43 +02:00
82bddf5556 Clarify Governor events' lack of indexed parameters (#5175)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:43 +02:00
7357540832 Make padding skip clear in Base64URL encoding (#5176)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:43 +02:00
6d27d87bb7 Add note about 100% royalty in IERC2981 (#5173)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:42 +02:00
33f4791b23 Optimizations to P256 operations (#5181)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:42 +02:00
6abfe8288c Revert "Remove double declaration of P in P256 (#5159)" (#5180)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:42 +02:00
aba42a07da Add memory side effects notes when using function pointers (#5174)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:42 +02:00
0f09ebad09 Update declaration of memory safe assembly blocks (#5172)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:42 +02:00
40dd647022 Remove redundant array access in Checkpoints (#5169)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:42 +02:00
4f0644c7e8 Remove unused import in IAccessManaged (#5170)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:41 +02:00
7b68ae5d83 Fix typographical errors (#5171)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:41 +02:00
875cd48d8e Add missing docstrings (#5168)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:41 +02:00
e0903eafa6 Fix documentation typos (#5118)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:41 +02:00
0be114c900 Remove double declaration of P in P256 (#5159)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:41 +02:00
e5962430d7 Fix prepare when using as git repository dependency
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: cairo <cairoeth@protonmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:41 +02:00
0e7f530475 Update MerkleProof note clarifying empty set definition (#5144)
Co-authored-by: cairo <cairoeth@protonmail.com>
Co-authored-by: sudo rm -rf --no-preserve-root / <pcaversaccio@users.noreply.github.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:41 +02:00
da072a2035 Make explicit the validity of the empty set in MerkleProof.sol (#5142)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:40 +02:00
de66e2ca51 Get leaves from memory in processMultiProofCalldata (#5140)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:40 +02:00
a818284caf Create a ERC1363Utils helper similar to existing ERC721Utils and ERC1155Utils (#5133)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: cairo <cairoeth@protonmail.com>
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:40 +02:00
fe7d7489f1 Fix natspec comment missing * (#5136)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2024-10-02 22:13:40 +02:00