Skip to content

refactor(L1): merge SuperchainConfig into SystemConfig - #432

Open
jackchuma wants to merge 5 commits into
mainfrom
jackchuma/chain-4914-merge-superchainconfig-into-systemconfig
Open

refactor(L1): merge SuperchainConfig into SystemConfig#432
jackchuma wants to merge 5 commits into
mainfrom
jackchuma/chain-4914-merge-superchainconfig-into-systemconfig

Conversation

@jackchuma

@jackchuma jackchuma commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

What changed? Why?

Merged the chain-local SuperchainConfig into SystemConfig, so SystemConfig now owns the Guardian and Incident Responder roles and the system-wide pause state. This removes the separate SuperchainConfig implementation, proxy, shared ProxyAdmin, and deployment/upgrade stage, while removing an indirection from pause checks.

The deployment config keys are renamed from superchainConfigGuardian and superchainConfigIncidentResponder to guardian and incidentResponder; the values now construct SystemConfig directly.

Notes to reviewers

  • This is a breaking ABI change. SystemConfig.initialize no longer accepts _superchainConfig; its constructor now accepts the Guardian and Incident Responder. superchainConfig() and the related passthrough getters on pausable contracts are removed, so consumers read pause state and roles from SystemConfig.
  • The old superchainConfig storage slot remains as a spacer to preserve layout, and pauseTimestamp is appended at slot 110. SystemConfig and the affected pausable contracts receive major-version changes.
  • Before migrating an existing system, SystemDeploy verifies that the legacy global and OptimismPortal pause records are clear, including expired pause records. A pause can still be submitted after that check and before the upgrade, so upgrades must be coordinated with the Guardian.

How has it been tested?

  • Ported pause, unpause, extend, expiration, role, and pause-expiry coverage from SuperchainConfig.t.sol to SystemConfig.t.sol.
  • Added deployment coverage for Guardian/Incident Responder constructor values and upgrade coverage that rejects legacy global and chain-specific pause records.
  • Full suite: 1219 passed, 0 failed, 1 skipped. just lint-check, just forge-build, and the semver-lock diff check pass.

SuperchainConfig held the pause state and the Guardian/Incident Responder
roles for a single chain, while every pausable contract reached it by hopping
through SystemConfig. Collapsing the two removes a proxy, a shared ProxyAdmin,
and an indirection from every `paused()` read.

SystemConfig now owns:
- `GUARDIAN` / `INCIDENT_RESPONDER` immutables, set via the constructor.
- `pauseTimestamps` and the `pause`/`unpause`/`extend` API.
- `paused(address)`, `pausable`, `expiration`, and `pauseExpiry` views.

The former `superchainConfig` storage slot becomes `spacer_108_0_20` so
existing deployments keep their layout, and `pauseTimestamps` is appended.

Callers lose their `superchainConfig()` passthroughs (`config()` on
DelayedWETH) and read pause state straight off SystemConfig, so their ABIs
change and they take major version bumps. `initialize` also drops its
`_superchainConfig` argument.

Deploy tooling drops the whole superchain stage: no SuperchainConfig
implementation, proxy, or dedicated ProxyAdmin, and no separate upgrade step
for the shared proxy. The `superchainConfigGuardian` and
`superchainConfigIncidentResponder` deploy-config keys are renamed to
`guardian` and `incidentResponder` and now feed the SystemConfig constructor.

Pause coverage from SuperchainConfig.t.sol moves into SystemConfig.t.sol.

Co-authored-by: Cursor <cursoragent@cursor.com>
@linear

linear Bot commented Sep 8, 2026

Copy link
Copy Markdown

CHAIN-4914

@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

jackchuma and others added 4 commits September 8, 2026 15:51
Co-authored-by: Codex <codex-noreply@coinbase.com>
Co-authored-by: Codex <codex-noreply@coinbase.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Codex <codex-noreply@coinbase.com>
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