d398d68944
Mask computed address in Create2 and Clones libraries ( #4941 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-03-25 14:33:45 +00:00
ad27fb654a
Optimize nested mapping access in ERC721Enumerable ( #4545 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-03-25 12:14:16 +00:00
e203e02523
Remove outdated comment in ERC-20 ( #4968 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-03-21 16:42:56 +01:00
0c18fac08a
Update Solidity files in docs ( #4956 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-03-20 16:04:00 +00:00
6ae2c17bfe
Remove outdated comment in ERC-20 ( #4964 )
2024-03-18 22:21:34 +00:00
33ea1111b0
Avoid validating ECDSA signatures for addresses with code in SignatureChecker ( #4951 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-03-14 16:27:15 +00:00
6b4ec6c6c6
Remove root from MerkleTree ( #4949 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-03-12 10:30:54 -06:00
8cc7f2dcbf
Remove repetitive words in the docs ( #4944 )
...
Signed-off-by: cuinix <915115094@qq.com >
2024-03-08 13:17:53 +01:00
92ff025622
Add a MerkleTree builder ( #3617 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-03-07 16:27:38 +01:00
e83142944f
Add ability to create clones with initial value in Clones.sol ( #4936 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-03-06 13:44:42 -06:00
8b2f29ceb0
Optimize Clone.sol yul ( #4927 )
2024-03-06 09:37:20 +01:00
7417c5946f
Remove redundant getVotes call in Governor ( #4940 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-03-04 18:34:05 +01:00
0a3f880753
Update documentation in IAccessControl ( #4924 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-03-04 16:17:51 +00:00
c8369d483c
Fix typo in ERC721Utils.sol ( #4938 )
2024-03-01 15:49:25 +00:00
5705e8208b
Merge release-v5.0 branch ( #4930 )
2024-02-29 13:48:02 -06:00
92224533b1
Merge pull request from GHSA-9vx6-7xxf-x967
...
* add tests for the encode reads dirty data issue
* Fix the encode reads dirty data issue
* add changeset
* trigger the issue without assembly
* rename mock
* gas optimization
* Apply suggestions from code review
Co-authored-by: Ernesto García <ernestognw@gmail.com >
* alternative fix: cheaper
* update comment
* fix lint
---------
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-02-29 10:03:32 -06:00
141c947921
Update chai matchers ( #4899 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-02-19 19:27:39 +01:00
3def8f9d15
Rewrite comments using superscript for avoid confusion with xor operator ( #4903 )
2024-02-16 16:06:07 +00:00
140d66fad8
Improved integer square root ( #4403 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-02-16 09:56:29 -06:00
4e7e6e54da
Add bytes memory version of Math.modExp ( #4893 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-02-14 10:06:34 +01:00
ae1bafcb48
Add VestingWalletWithCliff ( #4870 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-02-13 10:01:45 +01:00
f8b1ddf591
Add variants of Array.sort for address[] and bytes32[] ( #4883 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-02-12 16:34:07 +00:00
72c0da9ae0
Fix typo in AccessManaged.sol ( #4890 )
2024-02-12 10:13:11 -06:00
17a8955cd8
Optimize Math operations using branchless bool to uint translation. ( #4878 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-02-07 10:20:25 +01:00
0a757ec463
Add sort in memory to Arrays library ( #4846 )
...
Co-authored-by: RenanSouza2 <renan.rodrigues.souza1@gmail.com >
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-02-06 20:49:12 +00:00
036c3cbef2
Replace custom errors with native panic codes in DoubleEndedQueue ( #4872 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-02-06 21:02:01 +01:00
e73913c3c1
Update hardhat-exposed to remove mock/_import.sol ( #4879 )
2024-02-06 19:16:47 +00:00
9d3b9be04f
Fix natspec comments in ERC-1155 ( #4876 )
2024-02-06 15:58:00 +00:00
192e873fcb
Add Math.modExp and a Panic library ( #3298 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-02-02 18:40:00 +01:00
7eba10dd1e
Move ERC721 and ERC1155 receiver checks to dedicate libraries ( #4845 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-01-30 12:58:35 -06:00
61117c4db8
Bound lookup in arrays with duplicate ( #4842 )
...
Co-authored-by: RenanSouza2 <renan.rodrigues.souza1@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-01-29 20:44:33 +01:00
7439664490
Remove note about event access in ERC1967Utils.sol ( #4861 )
2024-01-29 11:42:53 -06:00
b5a7f977d8
Improve ERC-1363 documentation ( #4854 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
Co-authored-by: Vittorio Minacori <vittoriominacori@gmail.com >
2024-01-24 16:27:04 +01:00
e86bb45477
Add a Math.inv function that inverse a number in Z/nZ ( #4839 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-01-24 09:57:24 +01:00
e5f02bc608
Add ERC1363 implementation ( #4631 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-01-24 08:38:25 +00:00
a51f1e1354
List every contract in each API doc section ( #4848 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-01-23 09:55:09 -06:00
a5c4cd8182
Add new EnumerableMap types ( #4843 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-01-22 19:25:01 +00:00
e5c63635e3
Remove documented requirement in IERC1155's balanceOf ( #4847 )
2024-01-19 10:52:32 +01:00
dfae50fa5b
Refactor abs without logical branching ( #4497 )
...
Co-authored-by: Francisco Giordano <fg@frang.io >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-01-18 20:22:47 +00:00
06eb785fcf
Remove obsolete ERC4626 mint NatSpec ( #4837 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-01-17 09:20:28 -06:00
d2ba1f6251
Remove redundant memory usage in Checkpoints ( #4540 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-01-17 10:51:36 +01:00
692dbc560f
Add Base64Url encoding ( #4822 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-01-16 16:12:50 -06:00
920225a1c7
Add missing return value names in IAccessManager ( #4829 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-01-11 18:01:48 -06:00
ef68ac3ed8
Add getRoleMembers method to return all accounts that have role ( #4546 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-01-04 14:07:53 +00:00
b4ceb054de
Fix documentation inaccuracies in Governor ( #4815 )
2024-01-02 17:18:22 -06:00
a72c9561b9
Finalize test migration: remove legacy dependencies and test helpers ( #4797 )
2023-12-26 23:46:06 +01:00
6ba452dea4
Merge release-v5.0 branch ( #4787 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Francisco Giordano <fg@frang.io >
Co-authored-by: Ernesto García <ernestognw@gmail.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eric Lau <ericglau@outlook.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Zack Reneau-Wedeen <z.reneau.wedeen@gmail.com >
2023-12-08 15:47:12 +00:00
3af62716dd
Make Multicall context-aware
2023-12-07 12:37:52 -06:00
ef699fa6a2
Update Math try* operations return reference ( #4775 )
2023-12-01 14:46:46 +01:00
552cffde56
Add Governor note for state changes between proposal creation and execution ( #4766 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-11-30 15:04:34 +01:00