-
Notifications
You must be signed in to change notification settings - Fork 579
feat: add GitHub Action for rollup upgrade payload generation #19104
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
base: next
Are you sure you want to change the base?
Conversation
8167d6e to
0a713be
Compare
0a713be to
9a8632a
Compare
9a8632a to
ab84102
Compare
Adds a new governance payload contract that registers a new rollup version in both the Registry and GSE contracts. This enables governance-controlled rollup upgrades. Includes: - RegisterNewRollupVersionPayload.sol contract - CreateRollupUpgradePayload.s.sol forge script - GitHub Action workflow for payload creation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1c15c2b to
dd8c6c9
Compare
| REGISTRY_ADDRESS: ${{ inputs.registry_address }} | ||
| ROLLUP_ADDRESS: ${{ inputs.rollup_address }} | ||
| run: | | ||
| forge script script/deploy/CreateRollupUpgradePayload.s.sol:CreateRollupUpgradePayload \ |
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 needs to --verify --verifier etherscan --etherscan-api-key XXX.
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.
ah right I missed this as it was a simple payload
| /// - ROLLUP_ADDRESS: Address of the new Rollup to register | ||
| /// | ||
| /// Outputs the deployed payload address. | ||
| contract CreateRollupUpgradePayload is Script { |
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'm wondering if we should just deploy the new rollup in here. Thoughts @LHerskind ?
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 best flow I see is running one github action, and having the rollup and upgrade payload we want deployed.
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.
Ah I was wonder, wasn't sure if people would want to first smoke test a deployed rollup then do this
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.
Makes sense, though there is nothing stopping us from doing both and still smoke testing.
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 would include the rollup deployment. It will also force us now to define the configuration parameters we want to use.
Adds a new GitHub Action workflow that generates rollup upgrade payloads, along with a forge script for convenience in doing so