@aztec/cli 2.0.3-rc.18 → 2.0.3-rc.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,11 +22,17 @@ export type L2ChainConfig = L1ContractsConfig & Pick<P2PConfig, 'txPoolDeleteTxs
22
22
  publicIncludeMetrics?: string[];
23
23
  publicMetricsCollectorUrl?: string;
24
24
  publicMetricsCollectFrom?: string[];
25
+ dbMapSizeKb: number;
26
+ archiverStoreMapSizeKb: number;
27
+ noteHashTreeMapSizeKb: number;
28
+ nullifierTreeMapSizeKb: number;
29
+ publicDataTreeMapSizeKb: number;
25
30
  sentinelEnabled: boolean;
26
31
  };
27
32
  export declare const stagingIgnitionL2ChainConfig: L2ChainConfig;
28
33
  export declare const stagingPublicL2ChainConfig: L2ChainConfig;
29
34
  export declare const testnetL2ChainConfig: L2ChainConfig;
35
+ export declare const ignitionL2ChainConfig: L2ChainConfig;
30
36
  export declare function getBootnodes(networkName: NetworkNames, cacheDir?: string): Promise<any>;
31
37
  export declare function getL2ChainConfig(networkName: NetworkNames, cacheDir?: string): Promise<L2ChainConfig | undefined>;
32
38
  export declare function enrichEnvironmentWithChainConfig(networkName: NetworkNames): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/config/chain_l2_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAQrE,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,IAAI,CAAC,SAAS,EAAE,2BAA2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B,EAAE,MAAM,CAAC;IAGhC,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AA6CJ,eAAO,MAAM,4BAA4B,EAAE,aA8E1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAkDxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAqDlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aA8EnC,CAAC;AAIF,wBAAsB,YAAY,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,MAAM,gBAQ9E;AAED,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,YAAY,EACzB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAoBpC;AAMD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,YAAY,iBA+F/E"}
@@ -6,6 +6,8 @@ import publicIncludeMetrics from '../../public_include_metric_prefixes.json' wit
6
6
  };
7
7
  import { cachedFetch } from './cached_fetch.js';
8
8
  import { enrichEthAddressVar, enrichVar } from './enrich_env.js';
9
+ const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
10
+ const tbMapSizeKb = 1_024 * 1_024 * 1_024; // 1 TB
9
11
  const DefaultSlashConfig = {
10
12
  /** Tally-style slashing */ slasherFlavor: 'tally',
11
13
  /** Allow one round for vetoing */ slashingExecutionDelayInRounds: 1,
@@ -33,6 +35,13 @@ const DefaultSlashConfig = {
33
35
  sentinelEnabled: true,
34
36
  slashExecuteRoundsLookBack: 4
35
37
  };
38
+ const DefaultNetworkDBMapSizeConfig = {
39
+ dbMapSizeKb: defaultDBMapSizeKb,
40
+ archiverStoreMapSizeKb: tbMapSizeKb,
41
+ noteHashTreeMapSizeKb: tbMapSizeKb,
42
+ nullifierTreeMapSizeKb: tbMapSizeKb,
43
+ publicDataTreeMapSizeKb: tbMapSizeKb
44
+ };
36
45
  export const stagingIgnitionL2ChainConfig = {
37
46
  l1ChainId: 11155111,
38
47
  testAccounts: false,
@@ -94,7 +103,8 @@ export const stagingIgnitionL2ChainConfig = {
94
103
  slashGracePeriodL2Slots: 32 * 4,
95
104
  slashOffenseExpirationRounds: 8,
96
105
  sentinelEnabled: true,
97
- slashExecuteRoundsLookBack: 4
106
+ slashExecuteRoundsLookBack: 4,
107
+ ...DefaultNetworkDBMapSizeConfig
98
108
  };
99
109
  export const stagingPublicL2ChainConfig = {
100
110
  l1ChainId: 11155111,
@@ -131,7 +141,8 @@ export const stagingPublicL2ChainConfig = {
131
141
  /** The mana target for the rollup */ manaTarget: DefaultL1ContractsConfig.manaTarget,
132
142
  /** The proving cost per mana */ provingCostPerMana: DefaultL1ContractsConfig.provingCostPerMana,
133
143
  /** Exit delay for stakers */ exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
134
- ...DefaultSlashConfig
144
+ ...DefaultSlashConfig,
145
+ ...DefaultNetworkDBMapSizeConfig
135
146
  };
136
147
  export const testnetL2ChainConfig = {
137
148
  l1ChainId: 11155111,
@@ -171,7 +182,72 @@ export const testnetL2ChainConfig = {
171
182
  ...DefaultSlashConfig,
172
183
  slashPrunePenalty: 0n,
173
184
  slashDataWithholdingPenalty: 0n,
174
- slashInactivityPenalty: DefaultL1ContractsConfig.slashAmountMedium
185
+ slashInactivityPenalty: DefaultL1ContractsConfig.slashAmountMedium,
186
+ ...DefaultNetworkDBMapSizeConfig
187
+ };
188
+ export const ignitionL2ChainConfig = {
189
+ l1ChainId: 1,
190
+ testAccounts: false,
191
+ sponsoredFPC: false,
192
+ p2pEnabled: true,
193
+ p2pBootstrapNodes: [],
194
+ registryAddress: '',
195
+ slashFactoryAddress: '',
196
+ feeAssetHandlerAddress: '',
197
+ seqMinTxsPerBlock: 0,
198
+ seqMaxTxsPerBlock: 0,
199
+ realProofs: true,
200
+ snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/ignition/',
201
+ autoUpdate: 'notify',
202
+ autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/ignition.json',
203
+ maxTxPoolSize: 100_000_000,
204
+ publicIncludeMetrics,
205
+ publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
206
+ publicMetricsCollectFrom: [
207
+ 'sequencer'
208
+ ],
209
+ txPoolDeleteTxsAfterReorg: false,
210
+ /** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
211
+ /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 72,
212
+ /** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
213
+ /** The target validator committee size. */ aztecTargetCommitteeSize: 24,
214
+ /** The number of epochs after an epoch ends that proofs are still accepted. */ aztecProofSubmissionEpochs: 1,
215
+ /** How many sequencers must agree with a slash for it to be executed. */ slashingQuorum: 65,
216
+ slashingRoundSizeInEpochs: 4,
217
+ slashingLifetimeInRounds: 40,
218
+ slashingExecutionDelayInRounds: 28,
219
+ slashAmountSmall: 2_000n * 10n ** 18n,
220
+ slashAmountMedium: 10_000n * 10n ** 18n,
221
+ slashAmountLarge: 50_000n * 10n ** 18n,
222
+ slashingOffsetInRounds: 2,
223
+ slasherFlavor: 'tally',
224
+ slashingVetoer: EthAddress.ZERO,
225
+ /** The mana target for the rollup */ manaTarget: 0n,
226
+ exitDelaySeconds: 5 * 24 * 60 * 60,
227
+ /** The proving cost per mana */ provingCostPerMana: 0n,
228
+ ejectionThreshold: 100_000n * 10n ** 18n,
229
+ activationThreshold: 200_000n * 10n ** 18n,
230
+ governanceProposerRoundSize: 300,
231
+ governanceProposerQuorum: 151,
232
+ // Node slashing config
233
+ // TODO TMNT-330
234
+ slashMinPenaltyPercentage: 0.5,
235
+ slashMaxPenaltyPercentage: 2.0,
236
+ slashInactivityTargetPercentage: 0.7,
237
+ slashInactivityConsecutiveEpochThreshold: 2,
238
+ slashInactivityPenalty: 2_000n * 10n ** 18n,
239
+ slashPrunePenalty: 0n,
240
+ slashDataWithholdingPenalty: 0n,
241
+ slashProposeInvalidAttestationsPenalty: 50_000n * 10n ** 18n,
242
+ slashAttestDescendantOfInvalidPenalty: 50_000n * 10n ** 18n,
243
+ slashUnknownPenalty: 2_000n * 10n ** 18n,
244
+ slashBroadcastedInvalidBlockPenalty: 0n,
245
+ slashMaxPayloadSize: 50,
246
+ slashGracePeriodL2Slots: 32 * 4,
247
+ slashOffenseExpirationRounds: 8,
248
+ sentinelEnabled: true,
249
+ slashExecuteRoundsLookBack: 4,
250
+ ...DefaultNetworkDBMapSizeConfig
175
251
  };
176
252
  const BOOTNODE_CACHE_DURATION_MS = 60 * 60 * 1000; // 1 hour;
177
253
  export async function getBootnodes(networkName, cacheDir) {
@@ -196,6 +272,10 @@ export async function getL2ChainConfig(networkName, cacheDir) {
196
272
  config = {
197
273
  ...stagingIgnitionL2ChainConfig
198
274
  };
275
+ } else if (networkName === 'ignition') {
276
+ config = {
277
+ ...ignitionL2ChainConfig
278
+ };
199
279
  }
200
280
  if (!config) {
201
281
  return undefined;
@@ -231,6 +311,11 @@ export async function enrichEnvironmentWithChainConfig(networkName) {
231
311
  enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
232
312
  enrichVar('SYNC_SNAPSHOTS_URL', config.snapshotsUrl);
233
313
  enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
314
+ enrichVar('DATA_STORE_MAP_SIZE_KB', config.dbMapSizeKb.toString());
315
+ enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
316
+ enrichVar('NOTE_HASH_TREE_MAP_SIZE_KB', config.noteHashTreeMapSizeKb.toString());
317
+ enrichVar('NULLIFIER_TREE_MAP_SIZE_KB', config.nullifierTreeMapSizeKb.toString());
318
+ enrichVar('PUBLIC_DATA_TREE_MAP_SIZE_KB', config.publicDataTreeMapSizeKb.toString());
234
319
  if (config.autoUpdate) {
235
320
  enrichVar('AUTO_UPDATE', config.autoUpdate?.toString());
236
321
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "2.0.3-rc.18",
3
+ "version": "2.0.3-rc.19",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./contracts": "./dest/cmds/contracts/index.js",
@@ -70,17 +70,17 @@
70
70
  ]
71
71
  },
72
72
  "dependencies": {
73
- "@aztec/archiver": "2.0.3-rc.18",
74
- "@aztec/aztec.js": "2.0.3-rc.18",
75
- "@aztec/constants": "2.0.3-rc.18",
76
- "@aztec/entrypoints": "2.0.3-rc.18",
77
- "@aztec/ethereum": "2.0.3-rc.18",
78
- "@aztec/foundation": "2.0.3-rc.18",
79
- "@aztec/l1-artifacts": "2.0.3-rc.18",
80
- "@aztec/node-lib": "2.0.3-rc.18",
81
- "@aztec/p2p": "2.0.3-rc.18",
82
- "@aztec/stdlib": "2.0.3-rc.18",
83
- "@aztec/world-state": "2.0.3-rc.18",
73
+ "@aztec/archiver": "2.0.3-rc.19",
74
+ "@aztec/aztec.js": "2.0.3-rc.19",
75
+ "@aztec/constants": "2.0.3-rc.19",
76
+ "@aztec/entrypoints": "2.0.3-rc.19",
77
+ "@aztec/ethereum": "2.0.3-rc.19",
78
+ "@aztec/foundation": "2.0.3-rc.19",
79
+ "@aztec/l1-artifacts": "2.0.3-rc.19",
80
+ "@aztec/node-lib": "2.0.3-rc.19",
81
+ "@aztec/p2p": "2.0.3-rc.19",
82
+ "@aztec/stdlib": "2.0.3-rc.19",
83
+ "@aztec/world-state": "2.0.3-rc.19",
84
84
  "@iarna/toml": "^2.2.5",
85
85
  "@libp2p/peer-id-factory": "^3.0.4",
86
86
  "commander": "^12.1.0",
@@ -92,8 +92,8 @@
92
92
  "viem": "2.23.7"
93
93
  },
94
94
  "devDependencies": {
95
- "@aztec/accounts": "2.0.3-rc.18",
96
- "@aztec/protocol-contracts": "2.0.3-rc.18",
95
+ "@aztec/accounts": "2.0.3-rc.19",
96
+ "@aztec/protocol-contracts": "2.0.3-rc.19",
97
97
  "@jest/globals": "^30.0.0",
98
98
  "@types/jest": "^30.0.0",
99
99
  "@types/lodash.chunk": "^4.2.9",
@@ -109,15 +109,15 @@
109
109
  "typescript": "^5.3.3"
110
110
  },
111
111
  "peerDependencies": {
112
- "@aztec/accounts": "2.0.3-rc.18",
113
- "@aztec/bb-prover": "2.0.3-rc.18",
114
- "@aztec/ethereum": "2.0.3-rc.18",
115
- "@aztec/l1-artifacts": "2.0.3-rc.18",
116
- "@aztec/noir-contracts.js": "2.0.3-rc.18",
117
- "@aztec/noir-protocol-circuits-types": "2.0.3-rc.18",
118
- "@aztec/noir-test-contracts.js": "2.0.3-rc.18",
119
- "@aztec/protocol-contracts": "2.0.3-rc.18",
120
- "@aztec/stdlib": "2.0.3-rc.18"
112
+ "@aztec/accounts": "2.0.3-rc.19",
113
+ "@aztec/bb-prover": "2.0.3-rc.19",
114
+ "@aztec/ethereum": "2.0.3-rc.19",
115
+ "@aztec/l1-artifacts": "2.0.3-rc.19",
116
+ "@aztec/noir-contracts.js": "2.0.3-rc.19",
117
+ "@aztec/noir-protocol-circuits-types": "2.0.3-rc.19",
118
+ "@aztec/noir-test-contracts.js": "2.0.3-rc.19",
119
+ "@aztec/protocol-contracts": "2.0.3-rc.19",
120
+ "@aztec/stdlib": "2.0.3-rc.19"
121
121
  },
122
122
  "files": [
123
123
  "dest",
@@ -11,6 +11,9 @@ import publicIncludeMetrics from '../../public_include_metric_prefixes.json' wit
11
11
  import { cachedFetch } from './cached_fetch.js';
12
12
  import { enrichEthAddressVar, enrichVar } from './enrich_env.js';
13
13
 
14
+ const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
15
+ const tbMapSizeKb = 1_024 * 1_024 * 1_024; // 1 TB
16
+
14
17
  export type L2ChainConfig = L1ContractsConfig &
15
18
  Pick<P2PConfig, 'txPoolDeleteTxsAfterReorg'> &
16
19
  Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways'> & {
@@ -33,6 +36,14 @@ export type L2ChainConfig = L1ContractsConfig &
33
36
  publicMetricsCollectorUrl?: string;
34
37
  publicMetricsCollectFrom?: string[];
35
38
 
39
+ // Setting the dbMapSize provides the default for every DB in the node.
40
+ // Then we explicitly override the sizes for the archiver and the larger trees.
41
+ dbMapSizeKb: number;
42
+ archiverStoreMapSizeKb: number;
43
+ noteHashTreeMapSizeKb: number;
44
+ nullifierTreeMapSizeKb: number;
45
+ publicDataTreeMapSizeKb: number;
46
+
36
47
  // Control whether sentinel is enabled or not. Needed for slashing
37
48
  sentinelEnabled: boolean;
38
49
  };
@@ -72,6 +83,14 @@ const DefaultSlashConfig = {
72
83
  slashExecuteRoundsLookBack: 4,
73
84
  } satisfies Partial<L2ChainConfig>;
74
85
 
86
+ const DefaultNetworkDBMapSizeConfig = {
87
+ dbMapSizeKb: defaultDBMapSizeKb,
88
+ archiverStoreMapSizeKb: tbMapSizeKb,
89
+ noteHashTreeMapSizeKb: tbMapSizeKb,
90
+ nullifierTreeMapSizeKb: tbMapSizeKb,
91
+ publicDataTreeMapSizeKb: tbMapSizeKb,
92
+ } satisfies Partial<L2ChainConfig>;
93
+
75
94
  export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
76
95
  l1ChainId: 11155111,
77
96
  testAccounts: false,
@@ -148,6 +167,8 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
148
167
  slashOffenseExpirationRounds: 8,
149
168
  sentinelEnabled: true,
150
169
  slashExecuteRoundsLookBack: 4,
170
+
171
+ ...DefaultNetworkDBMapSizeConfig,
151
172
  };
152
173
 
153
174
  export const stagingPublicL2ChainConfig: L2ChainConfig = {
@@ -198,6 +219,8 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
198
219
  exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
199
220
 
200
221
  ...DefaultSlashConfig,
222
+
223
+ ...DefaultNetworkDBMapSizeConfig,
201
224
  };
202
225
 
203
226
  export const testnetL2ChainConfig: L2ChainConfig = {
@@ -251,6 +274,88 @@ export const testnetL2ChainConfig: L2ChainConfig = {
251
274
  slashPrunePenalty: 0n,
252
275
  slashDataWithholdingPenalty: 0n,
253
276
  slashInactivityPenalty: DefaultL1ContractsConfig.slashAmountMedium,
277
+
278
+ ...DefaultNetworkDBMapSizeConfig,
279
+ };
280
+
281
+ export const ignitionL2ChainConfig: L2ChainConfig = {
282
+ l1ChainId: 1,
283
+ testAccounts: false,
284
+ sponsoredFPC: false,
285
+ p2pEnabled: true,
286
+ p2pBootstrapNodes: [],
287
+ registryAddress: '',
288
+ slashFactoryAddress: '',
289
+ feeAssetHandlerAddress: '',
290
+ seqMinTxsPerBlock: 0,
291
+ seqMaxTxsPerBlock: 0,
292
+ realProofs: true,
293
+ snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/ignition/',
294
+ autoUpdate: 'notify',
295
+ autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/ignition.json',
296
+ maxTxPoolSize: 100_000_000, // 100MB
297
+ publicIncludeMetrics,
298
+ publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
299
+ publicMetricsCollectFrom: ['sequencer'],
300
+ txPoolDeleteTxsAfterReorg: false,
301
+
302
+ /** How many seconds an L1 slot lasts. */
303
+ ethereumSlotDuration: 12,
304
+ /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */
305
+ aztecSlotDuration: 72,
306
+ /** How many L2 slots an epoch lasts. */
307
+ aztecEpochDuration: 32,
308
+ /** The target validator committee size. */
309
+ aztecTargetCommitteeSize: 24,
310
+ /** The number of epochs after an epoch ends that proofs are still accepted. */
311
+ aztecProofSubmissionEpochs: 1,
312
+ /** How many sequencers must agree with a slash for it to be executed. */
313
+ slashingQuorum: 65,
314
+
315
+ slashingRoundSizeInEpochs: 4,
316
+ slashingLifetimeInRounds: 40,
317
+ slashingExecutionDelayInRounds: 28,
318
+ slashAmountSmall: 2_000n * 10n ** 18n,
319
+ slashAmountMedium: 10_000n * 10n ** 18n,
320
+ slashAmountLarge: 50_000n * 10n ** 18n,
321
+ slashingOffsetInRounds: 2,
322
+ slasherFlavor: 'tally',
323
+ slashingVetoer: EthAddress.ZERO, // TODO TMNT-329
324
+
325
+ /** The mana target for the rollup */
326
+ manaTarget: 0n,
327
+
328
+ exitDelaySeconds: 5 * 24 * 60 * 60,
329
+
330
+ /** The proving cost per mana */
331
+ provingCostPerMana: 0n,
332
+
333
+ ejectionThreshold: 100_000n * 10n ** 18n,
334
+ activationThreshold: 200_000n * 10n ** 18n,
335
+
336
+ governanceProposerRoundSize: 300, // TODO TMNT-322
337
+ governanceProposerQuorum: 151, // TODO TMNT-322
338
+
339
+ // Node slashing config
340
+ // TODO TMNT-330
341
+ slashMinPenaltyPercentage: 0.5,
342
+ slashMaxPenaltyPercentage: 2.0,
343
+ slashInactivityTargetPercentage: 0.7,
344
+ slashInactivityConsecutiveEpochThreshold: 2,
345
+ slashInactivityPenalty: 2_000n * 10n ** 18n,
346
+ slashPrunePenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for prune offenses right now
347
+ slashDataWithholdingPenalty: 0n, // 2_000n * 10n ** 18n, We disable slashing for data withholding offenses right now
348
+ slashProposeInvalidAttestationsPenalty: 50_000n * 10n ** 18n,
349
+ slashAttestDescendantOfInvalidPenalty: 50_000n * 10n ** 18n,
350
+ slashUnknownPenalty: 2_000n * 10n ** 18n,
351
+ slashBroadcastedInvalidBlockPenalty: 0n, // 10_000n * 10n ** 18n, Disabled for now until further testing
352
+ slashMaxPayloadSize: 50,
353
+ slashGracePeriodL2Slots: 32 * 4, // One round from genesis
354
+ slashOffenseExpirationRounds: 8,
355
+ sentinelEnabled: true,
356
+ slashExecuteRoundsLookBack: 4,
357
+
358
+ ...DefaultNetworkDBMapSizeConfig,
254
359
  };
255
360
 
256
361
  const BOOTNODE_CACHE_DURATION_MS = 60 * 60 * 1000; // 1 hour;
@@ -276,6 +381,8 @@ export async function getL2ChainConfig(
276
381
  config = { ...testnetL2ChainConfig };
277
382
  } else if (networkName === 'staging-ignition') {
278
383
  config = { ...stagingIgnitionL2ChainConfig };
384
+ } else if (networkName === 'ignition') {
385
+ config = { ...ignitionL2ChainConfig };
279
386
  }
280
387
  if (!config) {
281
388
  return undefined;
@@ -317,6 +424,12 @@ export async function enrichEnvironmentWithChainConfig(networkName: NetworkNames
317
424
  enrichVar('SYNC_SNAPSHOTS_URL', config.snapshotsUrl);
318
425
  enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
319
426
 
427
+ enrichVar('DATA_STORE_MAP_SIZE_KB', config.dbMapSizeKb.toString());
428
+ enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
429
+ enrichVar('NOTE_HASH_TREE_MAP_SIZE_KB', config.noteHashTreeMapSizeKb.toString());
430
+ enrichVar('NULLIFIER_TREE_MAP_SIZE_KB', config.nullifierTreeMapSizeKb.toString());
431
+ enrichVar('PUBLIC_DATA_TREE_MAP_SIZE_KB', config.publicDataTreeMapSizeKb.toString());
432
+
320
433
  if (config.autoUpdate) {
321
434
  enrichVar('AUTO_UPDATE', config.autoUpdate?.toString());
322
435
  }