e682c7e5b5
Fix typos in utilities and access control docs ( #4920 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2024-03-14 20:40:07 +01:00
c03952acbe
Remove async from describe blocks and add missing await in tests ( #4942 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-03-14 17:35:08 +01: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
7a29f7df51
Improve MerkleProof tests ( #4937 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-03-01 14:46:52 -06:00
c8369d483c
Fix typo in ERC721Utils.sol ( #4938 )
2024-03-01 15:49:25 +00:00
105fa4e1b0
Merge release-v4.9 branch ( #4932 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-02-29 20:04:20 +00:00
5705e8208b
Merge release-v5.0 branch ( #4930 )
2024-02-29 13:48:02 -06:00
51b3e37d07
Update LICENSE ( #4934 )
2024-02-29 13:40:43 -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
8b4b7b8d04
Simplify finance tests ( #4912 )
2024-02-22 15:15:26 +00: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
96e5c0830a
Deduplicate code in scripts/helpers and test/helpers/iterate ( #4895 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-02-15 17:40:48 -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
8b12f83a70
Remove gas optimization changeset entries ( #4889 )
2024-02-09 22:36:14 +01: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
cc431f53e0
Remove deprecated Truffle code ( #4868 )
2024-02-01 21:36:31 +00: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
6b30d2d8de
Fuzz Base64 and Base64URL ( #4853 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-01-24 09:09:41 -06: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
72c642e13e
Lower fuzz runs to 5000 ( #4835 )
2024-01-18 10:03:07 +01:00
b27cd83eba
Remove hardhat-foundry and check harnesses compilation in CI ( #4832 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-01-17 20:32:32 +01:00
ec7ee76494
Update actions/cache action to v4 ( #4841 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 13:24:46 -06:00
0b343abcb5
Enable more solhint rules ( #4836 )
2024-01-17 09:23:18 -06: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
d7490e4f59
Fix gas report format ( #4838 )
2024-01-17 09:16:51 -06:00