70578bbb44
Allow Initializable versions greater than 256 ( #4460 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-08-07 18:59:19 -03:00
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 >
2023-08-04 17:23:38 -03:00
00cbf5a236
Update pragma to 0.8.20 ( #4489 )
...
Co-authored-by: Francisco Giordano <fg@frang.io >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2023-07-31 17:25:45 -03:00
7222a31d54
Add internal functions inside modifiers ( #4472 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco <fg@frang.io >
2023-07-26 18:57:50 -03:00
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 >
2023-07-13 19:25:22 -03:00
8b72e20e32
Remove unnecessary explicit assignment override ( #4443 )
2023-07-11 16:35:56 -03:00
24ebff5ae9
Remove unused imports ( #4436 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-07-11 14:51:40 -03:00
6bf68a41d1
Remove "available since" comments ( #4424 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-07-06 10:00:34 +02:00
3ff9b42ff5
Remove retyped and renamed storage layout annotations ( #4423 )
2023-07-05 18:38:27 -03:00
874c2d3c02
Use explicit imports ( #4399 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: ernestognw <ernestognw@gmail.com >
2023-06-29 20:12:26 +00:00
1a77a508f9
Move upgradeToAndCallUUPS to UUPSUpgradeable ( #4356 )
...
Co-authored-by: ernestognw <ernestognw@gmail.com >
2023-06-16 23:25:58 -03:00
ff85c7b0eb
Make ERC1967Upgrades a library instead of an abstract contract ( #4325 )
2023-06-15 22:01:04 +02:00
b425a72240
Replace revert strings with custom errors ( #4261 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco <fg@frang.io >
2023-06-12 23:41:52 +00:00
df2778f38e
Remove override interface implementations ( #4315 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2023-06-06 18:13:08 -06:00
7bb5592ad5
Bump minimum pragma version to 0.8.19 ( #4288 )
2023-05-29 21:37:37 +02:00
5955d8e85b
Merge remote-tracking branch 'upstream/master' into next-v5.0
2023-05-25 10:52:46 +02:00
09329f8a18
Merge release-v4.9 branch ( #4274 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Francisco Giordano <fg@frang.io >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
2023-05-24 10:37:00 -03:00
8de6eba8a3
Merge branch 'master' into next-v5.0
2023-05-16 00:07:07 -03:00
eedca5d873
Merge release-v4.8 branch
2023-03-02 21:13:25 -03:00
69c8d1010e
Make upgradeTo and upgradeToAndCall public ( #3959 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-01-25 16:46:34 -03:00
a34dd8bb1b
Add solidity language to missing code snippets ( #3992 )
2023-01-24 18:00:03 -03:00
c5d040beb9
Remove Address.isContract ( #3945 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com >
Co-authored-by: Francisco Giordano <fg@frang.io >
2023-01-24 17:59:07 -03:00
c404862cba
Use oz-upgrades-unsafe-allow-reachable in ERC1967Upgrade ( #3971 )
...
Co-authored-by: Francisco <fg@frang.io >
2023-01-19 22:00:53 +00:00
3d7a93876a
Improve documentation of Initializable getters ( #3861 )
...
Co-authored-by: Ernesto García <ernestognw@gmail.com >
2022-12-07 00:49:15 +00:00
7c5f6bc2c8
Merge branch 'release-v4.8'
2022-11-09 19:23:01 -03:00
49c0e4370d
4.8.0
2022-11-08 11:29:29 -03:00
88a3f95715
Optimize condition in _disableInitializers ( #3787 )
2022-11-03 20:57:56 -03:00
1f18fea1de
4.8.0-rc.2
2022-10-17 18:53:40 +02:00
16791134c1
4.8.0-rc.1
2022-09-23 18:59:29 +02:00
09369d265c
Improve Initializable docstrings ( #3704 )
...
Co-authored-by: tincho <tinchoabbate@noreply.users.github.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
(cherry picked from commit a549ec673e )
2022-09-23 12:28:02 -03:00
a549ec673e
Improve Initializable docstrings ( #3704 )
...
Co-authored-by: tincho <tinchoabbate@noreply.users.github.com >
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-09-16 18:16:37 +00:00
5e6fd491f3
4.8.0-rc.0
2022-09-07 18:08:32 -03:00
26cf47a2be
Add internal functions _getInitializedVersion and _isInitializing ( #3598 )
2022-08-18 20:42:31 -03:00
ca6f95a7da
Improve documentation in UUPSUpgradeable ( #3606 )
2022-08-10 11:15:08 +02:00
3dac7bbed7
Merge v4.7 back into master ( #3516 )
2022-06-29 12:34:30 +02:00
d506e3b1a5
Simplify Initializable ( #3450 )
2022-06-03 19:30:50 +00:00
61294a62af
Restore previous behavior of initializer during construction ( #3344 )
2022-05-25 15:01:45 -03:00
a035b235b4
Release v4.6 ( #3358 )
...
* 4.6.0-rc.0
* Fix release script to only release @openzeppelin/contracts
(cherry picked from commit 2bd75a44bb )
* make ERC2981:royaltyInfo public (#3305 )
(cherry picked from commit d2832ca7a9 )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* add transpilation guards to the crosschain mocks (#3306 )
(cherry picked from commit 9af5af8fff )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* Fix tests on upgradeable contracts after transpilation
(cherry picked from commit 0762479dd5 )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* Remove unused constructor argument
(cherry picked from commit 69c3781043 )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* Bump minimum Solidity version for Initializable.sol to 0.8.2 (#3328 )
(cherry picked from commit cb14ea3c5c )
* Fix update-comment script to ignore invalid tags
(cherry picked from commit 848fef5b6c )
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com >
* 4.6.0
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-04-27 09:34:09 +02:00
cb14ea3c5c
Bump minimum Solidity version for Initializable.sol to 0.8.2 ( #3328 )
2022-04-14 00:21:52 +02:00
e029096ca4
Add Initialized event ( #3294 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-03-28 15:36:30 -03:00
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 >
2022-03-22 18:06:29 +00:00
afb20119b3
Release v4.5
2022-02-09 18:16:53 -03:00
e192fac276
Simplify UUPSUpgradeable along the lines of ERC1822 ( #3021 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2022-01-13 15:46:55 -03:00
4a9cc8b491
Merge branch 'release-v4.4'
2021-12-14 13:34:03 -03:00
6bd6b76d11
4.4.1
2021-12-14 13:14:39 -03:00
553c8fdec7
Update initializer modifier to prevent reentrancy during initialization ( #3006 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
(cherry picked from commit 08840b9f8c )
2021-12-10 13:10:17 -03:00
08840b9f8c
Update initializer modifier to prevent reentrancy during initialization ( #3006 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2021-12-10 13:02:35 -03:00
7d17acfb2f
Merge branch 'release-v4.4'
2021-11-25 16:56:07 -03:00
4961a51cc7
4.4.0
2021-11-25 16:35:37 -03:00
52d42d6e03
Improve docs wording on constructors and proxies ( #2935 )
2021-11-19 15:08:56 -03:00