Skip to content

feat(op-deployer): source permissionless deploy inputs from chain state#21610

Draft
lumoswiz wants to merge 3 commits into
feat/pcd-permissionless-opchain-deployfrom
feat/pcd-deploy-input-state-wiring
Draft

feat(op-deployer): source permissionless deploy inputs from chain state#21610
lumoswiz wants to merge 3 commits into
feat/pcd-permissionless-opchain-deployfrom
feat/pcd-deploy-input-state-wiring

Conversation

@lumoswiz

@lumoswiz lumoswiz commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description

Sources permissionless deploy prestate and starting anchor root from chain state. Adds state fields, setters, and shared permissionless game type detection. Permissioned deploys keep the existing defaults and override behavior.

Tests

Added coverage for the new state fields, permissionless Cannon and Cannon-Kona deploy inputs, missing state errors, and unchanged permissioned deploy behavior.

Additional context

This assumes the prestate command (#20911) and planned genesis output root stage (#20910) populate chain state before deploy runs. Permissionless deploys intentionally read these committed state values only, so intent overrides cannot change the deployed prestate or starting anchor root.

The ChainState.Prestate field and SetChainPrestate overlap with #20911 and now carry the same enrich-only semantics as #21611. During rebase, keep #21611's copy. Contract-storage integration coverage will follow after #21560 lands. This PR is stacked on #21588 and should rebase onto develop after it merges.

Metadata

Closes #20912

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.

1 participant