Skip to content
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

Use latest upgrade executor #319

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Use latest upgrade executor #319

wants to merge 13 commits into from

Conversation

godzillaba
Copy link
Collaborator

@godzillaba godzillaba commented Oct 16, 2024

should merge #317 first

51db9a3 removes the UpgradeExecutor source and tests from this repo and replaces it with the @offchainlabs/upgrade-executor npm package. A lot of files needed small changes to build

the other commits are the upgrade action and tests

address public immutable newUpgradeExecutorImplementation = address(new UpgradeExecutor());

function perform() external {
_upgradeTo(newUpgradeExecutorImplementation);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a big fan of using ERC1967Upgrade to modify the storage slot directly, can we just have it go through the proxy admin instead?

Copy link
Collaborator Author

@godzillaba godzillaba Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah we can do that, i have a couple versions at earlier commits that do

eg d74a6d9#diff-96112336c8e4f94e4f509a6e67874a61d2637890f110f1b10e95998a50996812

eg2 (gets proxy admin at perform time) 90fb0bc#diff-96112336c8e4f94e4f509a6e67874a61d2637890f110f1b10e95998a50996812

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted back to the first example

@@ -79,6 +79,7 @@
"@arbitrum/nitro-contracts": "1.1.1",
"@arbitrum/token-bridge-contracts": "1.0.0-beta.0",
"@gnosis.pm/safe-contracts": "1.3.0",
"@offchainlabs/upgrade-executor": "1.1.1",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thinking if having governanceDeployer.ts to deploy UE using released bytecode would be an overkill

Copy link
Collaborator Author

@godzillaba godzillaba Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we do that we should also change the actions to take the executor impl address as a constructor argument right

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what you mean, it seems to already taking an address of the logic contract

Copy link
Collaborator Author

@godzillaba godzillaba Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it just takes proxy admins at the moment and deploys the implementation in the action's constructor. I thought it'd be easier than deploying them separately

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e816394

changed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants