Skip to content

chore: add scripts to upgrade all coverage contracts - #115

Merged
evercoinx merged 2 commits into
mainfrom
serge/coverage-upgrade
May 20, 2026
Merged

chore: add scripts to upgrade all coverage contracts#115
evercoinx merged 2 commits into
mainfrom
serge/coverage-upgrade

Conversation

@evercoinx

@evercoinx evercoinx commented May 20, 2026

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Adds new orchestration scripts that generate/broadcast upgrade and role-grant transactions for multiple mainnet proxies via Timelock and for Sepolia in a single admin tx; incorrect usage/order could mis-upgrade proxies or leave critical wiring/roles unset.

Overview
Adds end-to-end Forge scripts to upgrade all Coverage UUPS proxies and perform required post-upgrade wiring.

On Ethereum mainnet, UpgradeAllCoverageEthereum.s.sol deploys new implementations, then prints Safe Timelock scheduleBatch/executeBatch calldata for a 13-call batch (upgrades, Swapper.setClaimManager, ClaimManager.initializeV2, and PAUSER_ROLE grants), plus a separate multisig call to CoverPoolFactory.setCoverPoolImplementation.

On Sepolia, UpgradeAllCoverageSepolia.s.sol performs the full upgrade+wire+role-grant sequence in one broadcast transaction, and new VerifyEthereumConfig.s.sol plus updates to VerifySepoliaConfig.s.sol add on-chain configuration checks (including Swapper.claimManager, ClaimManager V2 init state, and optional PAUSER_ROLE validation).

Reviewed by Cursor Bugbot for commit b4db4f6. Bugbot is set up for automated code reviews on this repo. Configure here.

@evercoinx
evercoinx requested a review from dB2510 May 20, 2026 07:19
@evercoinx evercoinx self-assigned this May 20, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b4db4f6. Configure here.

Comment thread script/VerifyEthereumConfig.s.sol
@evercoinx
evercoinx merged commit 88f38bb into main May 20, 2026
5 checks passed
@evercoinx
evercoinx deleted the serge/coverage-upgrade branch May 20, 2026 18:27
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