Ernesto García
f96237308f
Update forge and change visibility in fuzz tests ( #5103 )
...
Co-authored-by: cairo <cairoeth@protonmail.com>
3 months ago
renovate[bot]
205f59e9b6
Update dependency eslint to v9 ( #4996 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: cairo <cairoeth@protonmail.com>
4 months ago
Hadrien Croubois
cb7faaf4db
Add clone variant with per-instance immutable arguments ( #5109 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
5 months ago
Hadrien Croubois
d8bbd34676
Update declaration of memory safe assembly blocks ( #5172 )
5 months ago
Hadrien Croubois
83c7e45092
Fix dirty bits in upper bits in implementation address in `Clones.sol` ( #5069 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
8 months ago
Ernesto García
f1a69f164e
Add Halmos support for formal verification ( #5034 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
9 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>
11 months ago
Franco Victorio
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>
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
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
ae69142379
Migrate proxy folder to ethersjs ( #4746 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
Hadrien Croubois
7c8b7a2728
Migrate `MerkleProof` tests among other testing utilities ( #4689 )
1 year ago
Hadrien Croubois
26c22169f0
Rename custom error AleadyInitialized → InvalidInitialization ( #4592 )
1 year ago
Ernesto García
70578bbb44
Allow Initializable versions greater than 256 ( #4460 )
...
Co-authored-by: Francisco <fg@frang.io>
2 years ago
Ernesto García
f715365ec4
Implement recommendations from 5.0 audit Phase 1B ( #4502 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco Giordano <fg@frang.io>
2 years ago
Hadrien Croubois
21716722ad
Remove GovernorCompatibilyBravo and add simpler GovernorStorage ( #4360 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Francisco Giordano <fg@frang.io>
2 years ago
Ernesto García
121be5dd09
Make `TransparentUpgradeableProxy` deploy its `ProxyAdmin` and optimize proxy interfaces ( #4382 )
...
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Eric Lau <ericglau@outlook.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2 years ago
Hadrien Croubois
2271e2c58d
Use clones for testing non ERC1967 proxies ( #4371 )
2 years ago
Ernesto García
1d0dbcf9ab
Make `TransparentUpgradeableProxy` admin immutable ( #4354 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
2 years ago
Hadrien Croubois
1a77a508f9
Move upgradeToAndCallUUPS to UUPSUpgradeable ( #4356 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com>
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
Hadrien Croubois
13d5e0466a
Make Ownable's initial owner explicit ( #4267 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com>
2 years ago
Renan Souza
31723ed608
Reenable skipped TransparentUpgradeableProxy test ( #4161 )
...
Co-authored-by: Francisco <fg@frang.io>
2 years ago
Hadrien Croubois
5523c1482b
Fix TransparentUpgradeableProxy's transparency ( #4154 )
...
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
2 years ago
Hadrien Croubois
2a62fb4a2d
Improve TransparentUpgradeableProxy's transparency ( #3977 )
...
Co-authored-by: Francisco <fg@frang.io>
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
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
JulissaDantes
bc8f442d00
Remove admin and implementation getters from TransparentUpgradeableProxy ( #3820 )
...
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Shatabarto "Rik" Bhattacharya
26cf47a2be
Add internal functions `_getInitializedVersion` and `_isInitializing` ( #3598 )
3 years ago
Hadrien Croubois
051cc9e446
Revert unwanted breaking change in the Clones library ( #3456 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
d506e3b1a5
Simplify Initializable ( #3450 )
3 years ago
Hadrien Croubois
61294a62af
Restore previous behavior of initializer during construction ( #3344 )
3 years ago
Hadrien Croubois
e029096ca4
Add Initialized event ( #3294 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
0eba5112c8
Allow the re-initialization of contracts ( #3232 )
...
* allow re-initialization of contracts
* fix lint
* use a private function to avoid code duplication
* use oz-retyped-from syntax
* add documentation
* rephrase
* documentation
* Update contracts/proxy/utils/Initializable.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* reinitialize test
* lint
* typos and style
* add note about relation between initializer and reinitializer
* lint
* set _initializing in the modifier
* remove unnecessary variable set
* rename _preventInitialize -> _disableInitializers
* rename preventInitialize -> disableInitializers
* test nested reinitializers in reverse order
* docs typos and style
* edit docs for consistency between initializer and reinitializer
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
e192fac276
Simplify UUPSUpgradeable along the lines of ERC1822 ( #3021 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
553c8fdec7
Update initializer modifier to prevent reentrancy during initialization ( #3006 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
(cherry picked from commit 08840b9f8c
)
3 years ago
Hadrien Croubois
08840b9f8c
Update initializer modifier to prevent reentrancy during initialization ( #3006 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Hadrien Croubois
7279273ebb
Fix inconsistencies in contract/test hierachy ( #2814 )
...
* Fix inconsistencies in contract/test hierachy
* changelog entry
4 years ago
Hadrien Croubois
1c676ac0ec
Implement UUPS proxy (ERC1822) ( #2542 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
cd443f0d5b
Add tests to extend code coverage ( #2586 )
4 years ago
Hadrien Croubois
16312fcfb9
Rename UpgradeableProxy to ERC1967Proxy ( #2547 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
(cherry picked from commit c789941d76
)
4 years ago
Hadrien Croubois
c789941d76
Rename UpgradeableProxy to ERC1967Proxy ( #2547 )
...
Co-authored-by: Francisco Giordano <frangio.1@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
Francisco Giordano
fdf57a9788
Lint
4 years ago
Hadrien Croubois
a0323d446c
Transition from buidler to hardhat
4 years ago
Hadrien Croubois
9e49be41b6
Add ERC1167 library (minimal proxy) ( #2449 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
4 years ago
Hadrien Croubois
1e8cb4b4a4
Bubble revert reasons in proxy initialization ( #2454 )
...
Co-authored-by: Hadrien Croubois <hadrien@openzeppelin.com>
4 years ago