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
769071d473
Add note in ERC20Wrapper about rebasing tokens ( #4755 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-11-27 15:39:42 +00:00
78d5708340
Migrate utils to ethersjs v6 ( #4736 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2023-11-24 01:32:30 +00: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
7294d34c17
Rename VotesTimestamp to ERC20VotesTimestampMock ( #4731 )
2023-11-10 15:15:38 +00:00
cf6ff90b6d
Migrate AccessManager tests to ethers ( #4710 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-11-09 15:56:54 +00:00
cb1ef861e5
Add AccessManager guide ( #4691 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Eric Lau <ericglau@outlook.com >
Co-authored-by: Zack Reneau-Wedeen <z.reneau.wedeen@gmail.com >
2023-11-09 15:09:05 +00:00
248be2fab0
Improve ERC4626 virtual offset notes ( #4722 )
2023-11-08 16:18:23 +00:00
74016c376a
Update docs for Ownable2Step ( #4721 )
...
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com >
2023-11-07 16:35:58 +00:00
aed22fbc22
Add view modifier to proxyAdmin in TransparentUpgradeableProxy ( #4688 )
...
Co-authored-by: Eric Lau <ericglau@outlook.com >
2023-10-17 10:03:04 +02:00
9c22fb5f33
Clarify is fine relying on the storage slot
2023-10-16 15:51:33 -06:00
793d92a333
Document ERC1155 event differences ( #4666 )
2023-10-06 15:40:03 -03: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
e78628bfcf
Document AccessManager functions and events in IAccessManager ( #4660 )
...
Co-authored-by: Francisco <fg@frang.io >
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2023-10-05 12:55:11 -03:00