-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oz upgrade #160
Oz upgrade #160
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR may have additional implications on proxy contract handling during deployment script execution. Need some time to take a closer look 🧐
Tracking here: #164 |
_minimumAuthorization: 40000000000000000000000 | ||
- TransparentUpgradeableProxy: | ||
_logic: $TapirTACoChildApplication | ||
admin_: $ProxyAdmin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like the function signature of TransparentUpgradeableProxy
changed in v5.0.0.
constructor(address _logic, address initialOwner, bytes memory _data) payable ERC1967Proxy(_logic, _data) {
scripts/tapir/deploy_root.py
Outdated
|
||
reward_token = deployer.deploy(project.TapirStakingToken) | ||
|
||
mock_threshold_staking = deployer.deploy(project.TestnetThresholdStaking) | ||
|
||
proxy_admin = deployer.deploy(OZ_DEPENDENCY.ProxyAdmin) | ||
proxy_admin = deployer.deploy(OZ_DEPENDENCY.ProxyAdmin, deployer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new version of TransparentUpgradeableProxy
deploys a default ProxyAdmin
so this line will need to be removed. I can address this in vzotova#2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we would want to reuse proxy admin between taco child and coordinator, is this possible with the new changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That does not appear to be possible (or necessary) anymore: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/932fddf69a699a9a80fd2396fd1a2ab91cdda123/contracts/proxy/transparent/TransparentUpgradeableProxy.sol#L78
This PR will affect
|
Type of PR:
Required reviews:
What this does:
Upgrades OpenZeppelin library to 5.0.0
Issues fixed/closed:
Fixes #159
Why it's needed:
It will be hard to upgrade to 5.x.x version after mainnet
Notes for reviewers:
Based on #145