From 3ef415202f7db522c75081dac88ddd6e05de35aa Mon Sep 17 00:00:00 2001 From: Tristan Wilson Date: Wed, 3 Dec 2025 16:38:25 +0100 Subject: [PATCH] Updates for CustomDA config changes This change supports config changes from https://github.com/OffchainLabs/nitro/pull/3949 - Remove deprecated parent-chain-node-url and sequencer-inbox-address from node.data-availability (no longer valid for node config) - Remove mode field from node.da config (DAConfig no longer has mode) - Move parent-chain-node-url and sequencer-inbox-address in daserver configs (l2_das_committee.json, l2_das_mirror.json) from data-availability.* to parent-chain.{node-url,sequencer-inbox-address} --- scripts/config.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/scripts/config.ts b/scripts/config.ts index 3236bd5..f07dcd1 100644 --- a/scripts/config.ts +++ b/scripts/config.ts @@ -266,9 +266,6 @@ function writeConfigs(argv: any) { "enable": true, "urls": ["http://das-mirror:9877"], }, - // TODO Fix das config to not need this redundant config - "parent-chain-node-url": argv.l1url, - "sequencer-inbox-address": "not_set" } }, "execution": { @@ -290,11 +287,8 @@ function writeConfigs(argv: any) { }, } - baseConfig.node["data-availability"]["sequencer-inbox-address"] = ethers.utils.hexlify(getChainInfo()[0]["rollup"]["sequencer-inbox"]); - if (argv.referenceDA) { (baseConfig as any).node["da"] = { - "mode": "external", "external-provider": { "enable": true, "with-writer": false, @@ -478,8 +472,10 @@ function writeL2DASCommitteeConfig(argv: any) { "enable": true, "enable-expiry": true }, - "sequencer-inbox-address": sequencerInboxAddr, - "parent-chain-node-url": argv.l1url + }, + "parent-chain": { + "node-url": argv.l1url, + "sequencer-inbox-address": sequencerInboxAddr }, "enable-rest": true, "enable-rpc": true, @@ -502,8 +498,6 @@ function writeL2DASMirrorConfig(argv: any, sequencerInboxAddr: string) { "enable": true, "enable-expiry": false }, - "sequencer-inbox-address": sequencerInboxAddr, - "parent-chain-node-url": argv.l1url, "rest-aggregator": { "enable": true, "sync-to-storage": { @@ -515,6 +509,10 @@ function writeL2DASMirrorConfig(argv: any, sequencerInboxAddr: string) { "urls": ["http://das-committee-a:9877", "http://das-committee-b:9877"], } }, + "parent-chain": { + "node-url": argv.l1url, + "sequencer-inbox-address": sequencerInboxAddr + }, "enable-rest": true, "enable-rpc": false, "log-level": "INFO",