Eric Lau
52c36d412e
Fix `UPGRADE_INTERFACE_VERSION` documentation in `ProxyAdmin` ( #5031 )
9 months ago
Hadrien Croubois
c80b675b8d
Add CircularBuffer data structure ( #4913 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
9 months ago
Snoppy
60697cb09a
Fix typo in `Math.ternary` ( #5026 )
...
Signed-off-by: snoppy <michaleli@foxmail.com>
9 months ago
Lohann Paterno Coutinho Ferreira
4032b42694
Branchless ternary, min and max methods ( #4976 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
9 months ago
Ernesto García
427b8bb028
Make Votes.sol _makeDelegateVotes internal ( #5007 )
10 months ago
Eric Nordelo
df78791c96
Fix broken references in doc-site ( #5004 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
10 months ago
Dimitrios Papathanasiou
5212e8eb18
Bump ERC1967Utils pragma to 0.8.21 and set Slither CI version to 0.10.1 ( #5005 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
10 months ago
Hadrien Croubois
f8c2e1035e
Add Packing library ( #4992 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
10 months ago
Hadrien Croubois
bbc6ef90b7
Get ERC-1967 event from interface ( #4987 )
10 months ago
Hadrien Croubois
b6e07917eb
Transient version of ReentrancyGuard ( #4988 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
10 months ago
Hadrien Croubois
d6ad9db0a0
Add transient storage slot support in StorageSlot.sol ( #4980 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
10 months ago
Hadrien Croubois
cb2aaaa04a
Add slot derivation library ( #4975 )
10 months ago
Renan Souza
5e3ba29b08
Procedurally generate Arrays.sol ( #4859 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
10 months ago
Snoppy
0a5fba7a7e
Update ERC2771Forwarder assembly comment ( #4972 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
10 months ago
Vladislav Volosnikov
9558e546d9
Remove redundant memory usage in ERC2981 royaltyInfo ( #4538 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
10 months ago
Xenia
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>
10 months ago
Vladislav Volosnikov
ad27fb654a
Optimize nested mapping access in ERC721Enumerable ( #4545 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
10 months ago
Alexander González
e203e02523
Remove outdated comment in ERC-20 ( #4968 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
11 months ago
Ernesto García
0c18fac08a
Update Solidity files in docs ( #4956 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
11 months ago
Alexander González
6ae2c17bfe
Remove outdated comment in ERC-20 ( #4964 )
11 months ago
Hadrien Croubois
33ea1111b0
Avoid validating ECDSA signatures for addresses with code in SignatureChecker ( #4951 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
11 months ago
Ernesto García
6b4ec6c6c6
Remove root from MerkleTree ( #4949 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
11 months ago
cuinix
8cc7f2dcbf
Remove repetitive words in the docs ( #4944 )
...
Signed-off-by: cuinix <915115094@qq.com>
11 months ago
Hadrien Croubois
92ff025622
Add a MerkleTree builder ( #3617 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
11 months ago
Anton Bukov
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>
11 months ago
Renan Souza
8b2f29ceb0
Optimize Clone.sol yul ( #4927 )
11 months ago
Aman Kumar Sinha
7417c5946f
Remove redundant getVotes call in Governor ( #4940 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
11 months ago
devant
0a3f880753
Update documentation in IAccessControl ( #4924 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
11 months ago
Alexander González
c8369d483c
Fix typo in ERC721Utils.sol ( #4938 )
11 months ago
github-actions[bot]
5705e8208b
Merge release-v5.0 branch ( #4930 )
11 months ago
Hadrien Croubois
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>
11 months ago
Renan Souza
141c947921
Update chai matchers ( #4899 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
12 months ago
Hadrien Croubois
3def8f9d15
Rewrite comments using superscript for avoid confusion with xor operator ( #4903 )
12 months ago
Chris Gorman
140d66fad8
Improved integer square root ( #4403 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
12 months ago
Ernesto García
4e7e6e54da
Add `bytes memory` version of `Math.modExp` ( #4893 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
12 months ago
Hadrien Croubois
ae1bafcb48
Add VestingWalletWithCliff ( #4870 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
12 months ago
Hadrien Croubois
f8b1ddf591
Add variants of Array.sort for address[] and bytes32[] ( #4883 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
12 months ago
Ikko Ashimine
72c0da9ae0
Fix typo in AccessManaged.sol ( #4890 )
12 months ago
Igor Żuk
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>
12 months ago
Hadrien Croubois
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>
12 months ago
Hadrien Croubois
036c3cbef2
Replace custom errors with native panic codes in DoubleEndedQueue ( #4872 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
12 months ago
Hadrien Croubois
e73913c3c1
Update hardhat-exposed to remove `mock/_import.sol` ( #4879 )
12 months ago
Hadrien Croubois
9d3b9be04f
Fix natspec comments in ERC-1155 ( #4876 )
1 year ago
Mihir Wadekar
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>
1 year ago
Hadrien Croubois
7eba10dd1e
Move ERC721 and ERC1155 receiver checks to dedicate libraries ( #4845 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
1 year ago
Hadrien Croubois
61117c4db8
Bound lookup in arrays with duplicate ( #4842 )
...
Co-authored-by: RenanSouza2 <renan.rodrigues.souza1@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Sabnock
7439664490
Remove note about event access in `ERC1967Utils.sol` ( #4861 )
1 year ago
Hadrien Croubois
b5a7f977d8
Improve ERC-1363 documentation ( #4854 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Vittorio Minacori <vittoriominacori@gmail.com>
1 year ago
Hadrien Croubois
e86bb45477
Add a Math.inv function that inverse a number in Z/nZ ( #4839 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Vittorio Minacori
e5f02bc608
Add ERC1363 implementation ( #4631 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago