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
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>
1 year ago
Hadrien Croubois
036c3cbef2
Replace custom errors with native panic codes in DoubleEndedQueue ( #4872 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
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
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
Hadrien Croubois
a5c4cd8182
Add new EnumerableMap types ( #4843 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Renan Souza
04cb014144
Make tests style more uniform ( #4812 )
1 year ago
Hadrien Croubois
a72c9561b9
Finalize test migration: remove legacy dependencies and test helpers ( #4797 )
1 year ago
Hadrien Croubois
015ef69287
Refactor time helper and remove custom error helper. ( #4803 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Renan Souza
c411700572
Refactor EnumerableSet generation and tests ( #4762 )
1 year ago
Renan Souza
e0ac73cd6e
Refactor enumerableMap generate and tests ( #4760 )
1 year ago
Renan Souza
0950532d9a
Migrate utils-structs tests to ethersjs ( #4748 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Hadrien Croubois
87f7a2cd42
Refactor Time library to use valueBefore/valueAfter ( #4555 )
...
Co-authored-by: Francisco <fg@frang.io>
1 year ago
Hadrien Croubois
cd67894914
Use Trace208 in Votes to support ERC6372 clocks ( #4539 )
...
Co-authored-by: Francisco <fg@frang.io>
1 year ago
Hadrien Croubois
00cbf5a236
Update pragma to 0.8.20 ( #4489 )
...
Co-authored-by: Francisco Giordano <fg@frang.io>
Co-authored-by: ernestognw <ernestognw@gmail.com>
2 years ago
Francisco
874c2d3c02
Use explicit imports ( #4399 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
2 years ago
Ernesto García
2477534260
Change behavior of ceilDiv(0, 0) and improve test coverage ( #4348 )
2 years ago
Ernesto García
b425a72240
Replace revert strings with custom errors ( #4261 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
2 years ago
Ernesto García
7bb5592ad5
Bump minimum pragma version to `0.8.19` ( #4288 )
2 years ago
Hadrien Croubois
4448c13c3c
Move the Checkpoints library to utils/structs ( #4275 )
2 years ago
Hadrien Croubois
0f10efe232
Remove code in preparation for v5.0 ( #4258 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
2 years ago
Francisco
51294b7480
Make transpilation setup local to this repo ( #4041 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
2 years ago
Francisco
a28aafdc85
Use Prettier for JS files ( #3913 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2 years ago
Hadrien Croubois
88754d0b36
Add keys() accessor to EnumerableMaps ( #3920 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
2 years ago
Hadrien Croubois
c1d9da4052
Use hardhat-exposed to reduce the need for mocks ( #3666 )
...
Co-authored-by: Francisco <fg@frang.io>
2 years ago
Francisco
2336bd3e8e
Simplify ESLint config ( #3903 )
2 years ago
Artur
de74c8c62c
Add bytes32 to uint enumerable map ( #3416 )
3 years ago
ashhanai
c4f76cfa15
Add uint to uint enumerable map ( #3338 )
3 years ago
Hadrien Croubois
668a648bc6
Add utilities for CrossChain messaging ( #3183 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Pandapip1
faf5820f03
Fix many spelling errors ( #3274 )
3 years ago
Wias Liaw
b13bdb0249
Add bytes32 to bytes32 enumerable map ( #3192 )
...
* feat(enumerablemap): add bytes32 to bytes32 map
* chore(changelog): edit CHANGELOG
* feat(enumerable map): edit struct visibility
3 years ago
Hadrien Croubois
aace774961
Add a double ended queue ( #3153 )
...
* add vector, lifo and fifo structures
* fix lint
* need more memory for coverage
* remove Vector wrappers and gas optimization
* refactor Vector testing
* revert package.json changes
* rename to DoubleEndedQueue
* rename and refactor
* refactor tests and expand coverage
* test for custom errors
* add changelog entry
* add docs
* add sample code and note about storage vs. memory
* add available since
* lint
* use underscore for struct members
* add struct documentation
* remove SafeCast in length
* rename i -> index and improve docs
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Gaspar Dip
ca755ce799
Add AddressToUintMap ( #3150 )
...
* add AddressToUintMap
* Update contracts/utils/structs/EnumerableMap.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* address comments
* lint code
* merge mocks into a single file
* add PR link to changelog entry
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Hadrien Croubois
f88e555234
Add values() functions to EnumerableSets ( #2768 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
f7da53cebd
Add a BitMap struct ( #2710 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
William Morriss
165e6f1948
EnumerableSet: Remove Boundary Check in _at ( #2606 )
...
* remove boundary check
* fix tests for EnumerableSet "index out of bound"
* Changelog
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
4 years ago
Hadrien Croubois
24a0bc23cf
Reorganize the repo structure ( #2503 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago