Skip to content

Commit ce2ce43

Browse files
feat: have AnchorStateRegistry use a single root (#13700)
* feat: have AnchorStateRegistry use a single root Updates the AnchorStateRegistry to use a single unified anchor root by checking with the OptimismPortal for the currently respected game type. Additionally makes the AnchorStateRegistry MCP ready. Users MUST deploy this contract as a new proxy and cannot upgrade their existing proxy. * Update snapshots post-merge * op-deployer: Support single ASR * Update semver * updates after rebase * rename method * make isGameProper comment more obvious * update semver * semver bump * simpler api for boolean functions * comment updates * address wildmolasses comments * add test for not guardian * a few more tests --------- Co-authored-by: Matthew Slipper <[email protected]>
1 parent 544c42b commit ce2ce43

38 files changed

+1332
-932
lines changed

op-chain-ops/interopgen/deploy.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func DeployL2ToL1(l1Host *script.Host, superCfg *SuperchainConfig, superDeployme
196196

197197
l1Host.SetTxOrigin(cfg.Deployer)
198198

199-
output, err := opcm.DeployOPChainV160(l1Host, opcm.DeployOPChainInputV160{
199+
output, err := opcm.DeployOPChain(l1Host, opcm.DeployOPChainInput{
200200
OpChainProxyAdminOwner: cfg.ProxyAdminOwner,
201201
SystemConfigOwner: cfg.SystemConfigOwner,
202202
Batcher: cfg.BatchSenderAddress,
@@ -215,7 +215,6 @@ func DeployL2ToL1(l1Host *script.Host, superCfg *SuperchainConfig, superDeployme
215215
DisputeSplitDepth: cfg.DisputeSplitDepth,
216216
DisputeClockExtension: cfg.DisputeClockExtension,
217217
DisputeMaxClockDuration: cfg.DisputeMaxClockDuration,
218-
StartingAnchorRoots: opcm.PermissionedGameStartingAnchorRoots,
219218
})
220219
if err != nil {
221220
return nil, fmt.Errorf("failed to deploy L2 OP chain: %w", err)

op-chain-ops/interopgen/deployments.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ type Implementations struct {
2020
L1StandardBridgeImpl common.Address `json:"L1StandardBridgeImpl"`
2121
OptimismMintableERC20FactoryImpl common.Address `json:"OptimismMintableERC20FactoryImpl"`
2222
DisputeGameFactoryImpl common.Address `json:"DisputeGameFactoryImpl"`
23+
AnchorStateRegistryImpl common.Address `json:"AnchorStateRegistryImpl"`
2324
}
2425

2526
type SuperchainDeployment struct {

0 commit comments

Comments
 (0)