Skip to content

feat: contract upgrade scripts#848

Merged
passandscore merged 10 commits intomainfrom
contracts-upgrades-overview
Nov 6, 2025
Merged

feat: contract upgrade scripts#848
passandscore merged 10 commits intomainfrom
contracts-upgrades-overview

Conversation

@passandscore
Copy link
Copy Markdown
Contributor

@passandscore passandscore commented Nov 4, 2025

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.sol and GenericMultisigUpgrade.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.md and contracts/scripts/upgrades/README.md

The 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

  • I have added tests that prove my fix is effective or that my feature works (not required)
  • I have made corresponding changes to the documentation

@passandscore passandscore requested a review from owen-eth November 4, 2025 23:07
Comment thread contracts/l1-deployer-cli.sh
@passandscore passandscore force-pushed the contracts-upgrades-overview branch from 3677c34 to cc0ee6a Compare November 5, 2025 21:09
@passandscore passandscore force-pushed the contracts-upgrades-overview branch from a872987 to c78792d Compare November 6, 2025 14:21
Copy link
Copy Markdown
Contributor

@owen-eth owen-eth left a comment

Choose a reason for hiding this comment

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

lgtm!

@passandscore passandscore merged commit 6de8ad2 into main Nov 6, 2025
4 of 5 checks passed
@passandscore passandscore deleted the contracts-upgrades-overview branch November 6, 2025 17:32
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
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