05d4bf57ff
Fix Typo in Math.sol ( #5033 )
2024-05-13 09:33:47 -06:00
c80b675b8d
Add CircularBuffer data structure ( #4913 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-04-26 10:28:59 -06:00
60697cb09a
Fix typo in Math.ternary ( #5026 )
...
Signed-off-by: snoppy <michaleli@foxmail.com >
2024-04-25 12:04:34 -06:00
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 >
2024-04-23 14:08:08 +02:00
f8c2e1035e
Add Packing library ( #4992 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-04-05 14:59:18 +02:00
b6e07917eb
Transient version of ReentrancyGuard ( #4988 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-04-04 14:33:30 -06:00
d6ad9db0a0
Add transient storage slot support in StorageSlot.sol ( #4980 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2024-04-04 01:15:30 +02:00
cb2aaaa04a
Add slot derivation library ( #4975 )
2024-03-27 21:17:46 +00:00
5e3ba29b08
Procedurally generate Arrays.sol ( #4859 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2024-03-27 13:17:19 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
e5fb718d40
Optimized gas costs in ceilDiv ( #4553 )
2023-11-23 09:31:14 -06:00
7bd2b2aaf6
Use ERC-XXX syntax ( #4730 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2023-11-22 23:18:04 -06:00
3e6c86392c
Merge release-v5.0 branch ( #4665 )
...
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 >
2023-10-05 15:30:30 -03:00
baf0e91279
Improve AccessManager tests ( #4613 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-10-04 17:34:18 -03:00
abba0d047a
Update remappings.txt for upgradeable contracts and set up submodule ( #4639 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2023-10-02 15:41:18 -03:00
58463a9823
Enable partial transpilation for upgradeable package ( #4628 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-09-28 18:31:49 -03:00
2215d9fd5e
Remove Time.Delay *At functions ( #4606 )
...
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-09-15 12:23:28 -03:00
af06fdcfd4
Fix various documentation errors ( #4601 )
2023-09-14 17:32:47 -03:00
a714fe6dbd
Wrap docstrings to 120 chars ( #4600 )
2023-09-14 15:28:24 -03:00
63851f8de5
Fix typographical errors & comments ( #4595 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-09-11 18:44:28 -03:00
bba33516b1
Remove unused return value and reuse helper function ( #4588 )
...
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-09-08 18:24:23 -03:00
6f80048ce9
Improve natspec documentation and comments ( #4581 )
...
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-09-07 22:10:28 -03:00
25c416d01c
Rename internal variables in EnumerableSet for improved readability ( #4577 )
...
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-09-06 23:10:19 -03:00
e2a9353dea
Remove unused named return variables ( #4573 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-09-06 11:35:07 +02:00