feat: contract upgrade scripts#848
Merged
passandscore merged 10 commits intomainfrom Nov 6, 2025
Merged
Conversation
owen-eth
reviewed
Nov 5, 2025
3677c34 to
cc0ee6a
Compare
a872987 to
c78792d
Compare
owen-eth
pushed a commit
that referenced
this pull request
Nov 26, 2025
* feat: validate upgrade script * feat: add contracts upgrade scripts * refactor: update the contract README * fix: Gofmt CI error
owen-eth
pushed a commit
that referenced
this pull request
Dec 8, 2025
* feat: validate upgrade script * feat: add contracts upgrade scripts * refactor: update the contract README * fix: Gofmt CI error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
This PR adds comprehensive contract upgrade infrastructure and tooling:
• Upgrade Scripts: Generic upgrade scripts for both standard and multisig-controlled contracts (
GenericUpgrade.s.solandGenericMultisigUpgrade.s.sol)• CLI Tools: New l1-upgrade-cli.sh for managing contract upgrades with support for multiple deployment environments (testnet, mainnet)
• Validation: validate-upgrade.sh script to verify upgrade compatibility and safety
• Documentation: Detailed upgrade guides in
contracts/upgrades/README.mdandcontracts/scripts/upgrades/README.mdThe changes provide a complete workflow for safely upgrading contracts with validation and deployment across different networks.
Issue ticket number and link
Fixes # (issue)
Checklist before requesting a review