@aztec/cli 3.0.0-nightly.20251112 → 3.0.0-nightly.20251113

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.
@@ -1 +1 @@
1
- {"version":3,"file":"inspect_contract.d.ts","sourceRoot":"","sources":["../../../src/cmds/contracts/inspect_contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAY3D,wBAAsB,eAAe,CAAC,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,iBA6BlG"}
1
+ {"version":3,"file":"inspect_contract.d.ts","sourceRoot":"","sources":["../../../src/cmds/contracts/inspect_contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAY3D,wBAAsB,eAAe,CAAC,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,iBAsBlG"}
@@ -16,15 +16,9 @@ export async function inspectContract(contractArtifactFile, debugLogger, log) {
16
16
  log(`\tprivate function tree root: ${contractClass.privateFunctionsRoot.toString()}`);
17
17
  log(`\tpublic bytecode commitment: ${contractClass.publicBytecodeCommitment.toString()}`);
18
18
  log(`\tpublic bytecode length: ${contractClass.packedBytecode.length} bytes (${bytecodeLengthInFields} fields)`);
19
- const externalFunctions = contractFns.filter((f)=>!f.isInternal);
20
- if (externalFunctions.length > 0) {
21
- log(`\nExternal functions:`);
22
- await Promise.all(externalFunctions.map((f)=>logFunction(f, log)));
23
- }
24
- const internalFunctions = contractFns.filter((f)=>f.isInternal);
25
- if (internalFunctions.length > 0) {
26
- log(`\nInternal functions:`);
27
- await Promise.all(internalFunctions.map((f)=>logFunction(f, log)));
19
+ if (contractFns.length > 0) {
20
+ log(`\nExternal contract functions:`);
21
+ await Promise.all(contractFns.map((f)=>logFunction(f, log)));
28
22
  }
29
23
  }
30
24
  async function logFunction(fn, log) {
@@ -1,15 +1,14 @@
1
- import { type L1ContractsConfig } from '@aztec/ethereum';
1
+ import { type L1ContractsConfig, type L1TxUtilsConfig } from '@aztec/ethereum';
2
2
  import type { NetworkNames } from '@aztec/foundation/config';
3
3
  import type { SharedNodeConfig } from '@aztec/node-lib/config';
4
- import type { SlasherConfig } from '@aztec/stdlib/interfaces/server';
5
- export type L2ChainConfig = L1ContractsConfig & Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways'> & {
4
+ import type { P2PConfig } from '@aztec/p2p';
5
+ import type { SequencerConfig, SlasherConfig } from '@aztec/stdlib/interfaces/server';
6
+ export type L2ChainConfig = Omit<L1ContractsConfig, keyof L1TxUtilsConfig> & Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways' | 'slashOverridePayload' | 'slashSelfAllowed'> & Pick<P2PConfig, 'bootstrapNodes' | 'p2pEnabled' | 'txPoolDeleteTxsAfterReorg'> & Pick<SequencerConfig, 'minTxsPerBlock' | 'maxTxsPerBlock'> & {
6
7
  l1ChainId: number;
7
8
  testAccounts: boolean;
8
9
  sponsoredFPC: boolean;
9
- p2pEnabled: boolean;
10
- p2pBootstrapNodes: string[];
11
- seqMinTxsPerBlock: number;
12
- seqMaxTxsPerBlock: number;
10
+ minTxsPerBlock: number;
11
+ maxTxsPerBlock: number;
13
12
  realProofs: boolean;
14
13
  snapshotsUrls: string[];
15
14
  autoUpdate: SharedNodeConfig['autoUpdate'];
@@ -21,7 +20,7 @@ export type L2ChainConfig = L1ContractsConfig & Omit<SlasherConfig, 'slashValida
21
20
  publicMetricsCollectFrom?: string[];
22
21
  skipArchiverInitialSync?: boolean;
23
22
  blobAllowEmptySources?: boolean;
24
- dbMapSizeKb: number;
23
+ dataStoreMapSizeKb: number;
25
24
  archiverStoreMapSizeKb: number;
26
25
  noteHashTreeMapSizeKb: number;
27
26
  nullifierTreeMapSizeKb: number;
@@ -36,5 +35,6 @@ export declare const testnetL2ChainConfig: L2ChainConfig;
36
35
  export declare const mainnetL2ChainConfig: L2ChainConfig;
37
36
  export declare const devnetL2ChainConfig: L2ChainConfig;
38
37
  export declare function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | undefined;
39
- export declare function enrichEnvironmentWithChainConfig(networkName: NetworkNames): void;
38
+ export declare function enrichEnvironmentWithChainName(networkName: NetworkNames): void;
39
+ export declare function enrichEnvironmentWithChainConfig(config: L2ChainConfig): void;
40
40
  //# sourceMappingURL=chain_l2_config.d.ts.map
@@ -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,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAYrE,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,IAAI,CAAC,aAAa,EAAE,sBAAsB,GAAG,uBAAuB,CAAC,GAAG;IACtE,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,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E,aAqDxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAqDlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAuFlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAsFlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAqDjC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,aAAa,GAAG,SAAS,CAgBrF;AAMD,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,YAAY,QAavE;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,aAAa,QAgGrE"}
@@ -37,7 +37,7 @@ const DefaultSlashConfig = {
37
37
  slashExecuteRoundsLookBack: 4
38
38
  };
39
39
  const DefaultNetworkDBMapSizeConfig = {
40
- dbMapSizeKb: defaultDBMapSizeKb,
40
+ dataStoreMapSizeKb: defaultDBMapSizeKb,
41
41
  archiverStoreMapSizeKb: tbMapSizeKb,
42
42
  noteHashTreeMapSizeKb: tbMapSizeKb,
43
43
  nullifierTreeMapSizeKb: tbMapSizeKb,
@@ -49,9 +49,9 @@ export const stagingIgnitionL2ChainConfig = {
49
49
  sponsoredFPC: false,
50
50
  disableTransactions: true,
51
51
  p2pEnabled: true,
52
- p2pBootstrapNodes: [],
53
- seqMinTxsPerBlock: 0,
54
- seqMaxTxsPerBlock: 0,
52
+ bootstrapNodes: [],
53
+ minTxsPerBlock: 0,
54
+ maxTxsPerBlock: 0,
55
55
  realProofs: true,
56
56
  snapshotsUrls: [
57
57
  `${SNAPSHOTS_URL}/staging-ignition/`
@@ -65,6 +65,8 @@ export const stagingIgnitionL2ChainConfig = {
65
65
  publicMetricsCollectFrom: [
66
66
  'sequencer'
67
67
  ],
68
+ txPoolDeleteTxsAfterReorg: false,
69
+ blobAllowEmptySources: true,
68
70
  /** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
69
71
  /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 72,
70
72
  /** How many L2 slots an epoch lasts. */ aztecEpochDuration: 32,
@@ -115,9 +117,9 @@ export const stagingPublicL2ChainConfig = {
115
117
  sponsoredFPC: true,
116
118
  disableTransactions: false,
117
119
  p2pEnabled: true,
118
- p2pBootstrapNodes: [],
119
- seqMinTxsPerBlock: 0,
120
- seqMaxTxsPerBlock: 20,
120
+ bootstrapNodes: [],
121
+ minTxsPerBlock: 0,
122
+ maxTxsPerBlock: 20,
121
123
  realProofs: true,
122
124
  snapshotsUrls: [
123
125
  `${SNAPSHOTS_URL}/staging-public/`
@@ -131,6 +133,7 @@ export const stagingPublicL2ChainConfig = {
131
133
  'sequencer'
132
134
  ],
133
135
  maxTxPoolSize: 100_000_000,
136
+ txPoolDeleteTxsAfterReorg: true,
134
137
  // Deployment stuff
135
138
  /** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
136
139
  /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
@@ -155,9 +158,9 @@ export const nextNetL2ChainConfig = {
155
158
  sponsoredFPC: true,
156
159
  p2pEnabled: true,
157
160
  disableTransactions: false,
158
- p2pBootstrapNodes: [],
159
- seqMinTxsPerBlock: 0,
160
- seqMaxTxsPerBlock: 8,
161
+ bootstrapNodes: [],
162
+ minTxsPerBlock: 0,
163
+ maxTxsPerBlock: 8,
161
164
  realProofs: true,
162
165
  snapshotsUrls: [],
163
166
  autoUpdate: 'config-and-version',
@@ -169,6 +172,7 @@ export const nextNetL2ChainConfig = {
169
172
  ''
170
173
  ],
171
174
  maxTxPoolSize: 100_000_000,
175
+ txPoolDeleteTxsAfterReorg: false,
172
176
  // Deployment stuff
173
177
  /** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
174
178
  /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
@@ -193,9 +197,9 @@ export const testnetL2ChainConfig = {
193
197
  sponsoredFPC: true,
194
198
  p2pEnabled: true,
195
199
  disableTransactions: true,
196
- p2pBootstrapNodes: [],
197
- seqMinTxsPerBlock: 0,
198
- seqMaxTxsPerBlock: 0,
200
+ bootstrapNodes: [],
201
+ minTxsPerBlock: 0,
202
+ maxTxsPerBlock: 0,
199
203
  realProofs: true,
200
204
  snapshotsUrls: [
201
205
  `${SNAPSHOTS_URL}/testnet/`
@@ -209,6 +213,7 @@ export const testnetL2ChainConfig = {
209
213
  publicMetricsCollectFrom: [
210
214
  'sequencer'
211
215
  ],
216
+ txPoolDeleteTxsAfterReorg: true,
212
217
  skipArchiverInitialSync: true,
213
218
  blobAllowEmptySources: true,
214
219
  /** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
@@ -257,14 +262,15 @@ export const testnetL2ChainConfig = {
257
262
  ...DefaultNetworkDBMapSizeConfig
258
263
  };
259
264
  export const mainnetL2ChainConfig = {
265
+ txPoolDeleteTxsAfterReorg: true,
266
+ disableTransactions: true,
260
267
  l1ChainId: 1,
261
268
  testAccounts: false,
262
269
  sponsoredFPC: false,
263
270
  p2pEnabled: true,
264
- disableTransactions: true,
265
- p2pBootstrapNodes: [],
266
- seqMinTxsPerBlock: 0,
267
- seqMaxTxsPerBlock: 0,
271
+ bootstrapNodes: [],
272
+ minTxsPerBlock: 0,
273
+ maxTxsPerBlock: 0,
268
274
  realProofs: true,
269
275
  snapshotsUrls: [
270
276
  `${SNAPSHOTS_URL}/mainnet/`
@@ -329,9 +335,9 @@ export const devnetL2ChainConfig = {
329
335
  sponsoredFPC: true,
330
336
  p2pEnabled: true,
331
337
  disableTransactions: false,
332
- p2pBootstrapNodes: [],
333
- seqMinTxsPerBlock: 0,
334
- seqMaxTxsPerBlock: 8,
338
+ bootstrapNodes: [],
339
+ minTxsPerBlock: 0,
340
+ maxTxsPerBlock: 8,
335
341
  realProofs: false,
336
342
  snapshotsUrls: [],
337
343
  autoUpdate: 'config-and-version',
@@ -343,6 +349,7 @@ export const devnetL2ChainConfig = {
343
349
  ''
344
350
  ],
345
351
  maxTxPoolSize: 100_000_000,
352
+ txPoolDeleteTxsAfterReorg: true,
346
353
  // Deployment stuff
347
354
  /** How many seconds an L1 slot lasts. */ ethereumSlotDuration: 12,
348
355
  /** How many seconds an L2 slots lasts (must be multiple of ethereum slot duration). */ aztecSlotDuration: 36,
@@ -393,7 +400,7 @@ export function getL2ChainConfig(networkName) {
393
400
  function getDefaultDataDir(networkName) {
394
401
  return path.join(process.env.HOME || '~', '.aztec', networkName, 'data');
395
402
  }
396
- export function enrichEnvironmentWithChainConfig(networkName) {
403
+ export function enrichEnvironmentWithChainName(networkName) {
397
404
  if (networkName === 'local') {
398
405
  return;
399
406
  }
@@ -402,18 +409,22 @@ export function enrichEnvironmentWithChainConfig(networkName) {
402
409
  if (!config) {
403
410
  throw new Error(`Unknown network name: ${networkName}`);
404
411
  }
405
- enrichVar('BOOTSTRAP_NODES', config.p2pBootstrapNodes.join(','));
412
+ enrichEnvironmentWithChainConfig(config);
413
+ }
414
+ export function enrichEnvironmentWithChainConfig(config) {
415
+ enrichVar('BOOTSTRAP_NODES', config.bootstrapNodes.join(','));
406
416
  enrichVar('TEST_ACCOUNTS', config.testAccounts.toString());
407
417
  enrichVar('SPONSORED_FPC', config.sponsoredFPC.toString());
408
418
  enrichVar('P2P_ENABLED', config.p2pEnabled.toString());
409
419
  enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
410
- enrichVar('SEQ_MIN_TX_PER_BLOCK', config.seqMinTxsPerBlock.toString());
411
- enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
420
+ enrichVar('SEQ_MIN_TX_PER_BLOCK', config.minTxsPerBlock.toString());
421
+ enrichVar('SEQ_MAX_TX_PER_BLOCK', config.maxTxsPerBlock.toString());
412
422
  enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
413
423
  enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
414
424
  enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
415
425
  enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
416
- enrichVar('DATA_STORE_MAP_SIZE_KB', config.dbMapSizeKb.toString());
426
+ enrichVar('P2P_TX_POOL_DELETE_TXS_AFTER_REORG', config.txPoolDeleteTxsAfterReorg.toString());
427
+ enrichVar('DATA_STORE_MAP_SIZE_KB', config.dataStoreMapSizeKb.toString());
417
428
  enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
418
429
  enrichVar('NOTE_HASH_TREE_MAP_SIZE_KB', config.noteHashTreeMapSizeKb.toString());
419
430
  enrichVar('NULLIFIER_TREE_MAP_SIZE_KB', config.nullifierTreeMapSizeKb.toString());
@@ -445,6 +456,7 @@ export function enrichEnvironmentWithChainConfig(networkName) {
445
456
  enrichVar('AZTEC_SLOT_DURATION', config.aztecSlotDuration.toString());
446
457
  enrichVar('AZTEC_EPOCH_DURATION', config.aztecEpochDuration.toString());
447
458
  enrichVar('AZTEC_TARGET_COMMITTEE_SIZE', config.aztecTargetCommitteeSize.toString());
459
+ enrichVar('AZTEC_LAG_IN_EPOCHS', config.lagInEpochs.toString());
448
460
  enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
449
461
  enrichVar('AZTEC_ACTIVATION_THRESHOLD', config.activationThreshold.toString());
450
462
  enrichVar('AZTEC_EJECTION_THRESHOLD', config.ejectionThreshold.toString());
@@ -462,6 +474,7 @@ export function enrichEnvironmentWithChainConfig(networkName) {
462
474
  enrichVar('AZTEC_SLASHING_EXECUTION_DELAY_IN_ROUNDS', config.slashingExecutionDelayInRounds.toString());
463
475
  enrichVar('AZTEC_SLASHING_OFFSET_IN_ROUNDS', config.slashingOffsetInRounds.toString());
464
476
  enrichVar('AZTEC_SLASHER_FLAVOR', config.slasherFlavor);
477
+ enrichVar('AZTEC_SLASHING_DISABLE_DURATION', config.slashingDisableDuration.toString());
465
478
  enrichVar('AZTEC_EXIT_DELAY_SECONDS', config.exitDelaySeconds.toString());
466
479
  enrichEthAddressVar('AZTEC_SLASHING_VETOER', config.slashingVetoer.toString());
467
480
  // Slashing
@@ -478,6 +491,8 @@ export function enrichEnvironmentWithChainConfig(networkName) {
478
491
  enrichVar('SLASH_INVALID_BLOCK_PENALTY', config.slashBroadcastedInvalidBlockPenalty.toString());
479
492
  enrichVar('SLASH_OFFENSE_EXPIRATION_ROUNDS', config.slashOffenseExpirationRounds.toString());
480
493
  enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
494
+ enrichVar('SLASH_GRACE_PERIOD_L2_SLOTS', config.slashGracePeriodL2Slots.toString());
495
+ enrichVar('SLASH_EXECUTE_ROUNDS_LOOK_BACK', config.slashExecuteRoundsLookBack.toString());
481
496
  enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
482
497
  enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());
483
498
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "3.0.0-nightly.20251112",
3
+ "version": "3.0.0-nightly.20251113",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./contracts": "./dest/cmds/contracts/index.js",
@@ -71,21 +71,21 @@
71
71
  ]
72
72
  },
73
73
  "dependencies": {
74
- "@aztec/accounts": "3.0.0-nightly.20251112",
75
- "@aztec/archiver": "3.0.0-nightly.20251112",
76
- "@aztec/aztec.js": "3.0.0-nightly.20251112",
77
- "@aztec/constants": "3.0.0-nightly.20251112",
78
- "@aztec/entrypoints": "3.0.0-nightly.20251112",
79
- "@aztec/ethereum": "3.0.0-nightly.20251112",
80
- "@aztec/foundation": "3.0.0-nightly.20251112",
81
- "@aztec/l1-artifacts": "3.0.0-nightly.20251112",
82
- "@aztec/node-keystore": "3.0.0-nightly.20251112",
83
- "@aztec/node-lib": "3.0.0-nightly.20251112",
84
- "@aztec/p2p": "3.0.0-nightly.20251112",
85
- "@aztec/protocol-contracts": "3.0.0-nightly.20251112",
86
- "@aztec/stdlib": "3.0.0-nightly.20251112",
87
- "@aztec/test-wallet": "3.0.0-nightly.20251112",
88
- "@aztec/world-state": "3.0.0-nightly.20251112",
74
+ "@aztec/accounts": "3.0.0-nightly.20251113",
75
+ "@aztec/archiver": "3.0.0-nightly.20251113",
76
+ "@aztec/aztec.js": "3.0.0-nightly.20251113",
77
+ "@aztec/constants": "3.0.0-nightly.20251113",
78
+ "@aztec/entrypoints": "3.0.0-nightly.20251113",
79
+ "@aztec/ethereum": "3.0.0-nightly.20251113",
80
+ "@aztec/foundation": "3.0.0-nightly.20251113",
81
+ "@aztec/l1-artifacts": "3.0.0-nightly.20251113",
82
+ "@aztec/node-keystore": "3.0.0-nightly.20251113",
83
+ "@aztec/node-lib": "3.0.0-nightly.20251113",
84
+ "@aztec/p2p": "3.0.0-nightly.20251113",
85
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251113",
86
+ "@aztec/stdlib": "3.0.0-nightly.20251113",
87
+ "@aztec/test-wallet": "3.0.0-nightly.20251113",
88
+ "@aztec/world-state": "3.0.0-nightly.20251113",
89
89
  "@ethersproject/wallet": "^5.8.0",
90
90
  "@iarna/toml": "^2.2.5",
91
91
  "@libp2p/peer-id-factory": "^3.0.4",
@@ -99,6 +99,9 @@
99
99
  "viem": "npm:@spalladino/viem@2.38.2-eip7594.0"
100
100
  },
101
101
  "devDependencies": {
102
+ "@aztec/aztec-node": "3.0.0-nightly.20251113",
103
+ "@aztec/kv-store": "3.0.0-nightly.20251113",
104
+ "@aztec/telemetry-client": "3.0.0-nightly.20251113",
102
105
  "@jest/globals": "^30.0.0",
103
106
  "@types/jest": "^30.0.0",
104
107
  "@types/lodash.chunk": "^4.2.9",
@@ -114,15 +117,15 @@
114
117
  "typescript": "^5.3.3"
115
118
  },
116
119
  "peerDependencies": {
117
- "@aztec/accounts": "3.0.0-nightly.20251112",
118
- "@aztec/bb-prover": "3.0.0-nightly.20251112",
119
- "@aztec/ethereum": "3.0.0-nightly.20251112",
120
- "@aztec/l1-artifacts": "3.0.0-nightly.20251112",
121
- "@aztec/noir-contracts.js": "3.0.0-nightly.20251112",
122
- "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251112",
123
- "@aztec/noir-test-contracts.js": "3.0.0-nightly.20251112",
124
- "@aztec/protocol-contracts": "3.0.0-nightly.20251112",
125
- "@aztec/stdlib": "3.0.0-nightly.20251112"
120
+ "@aztec/accounts": "3.0.0-nightly.20251113",
121
+ "@aztec/bb-prover": "3.0.0-nightly.20251113",
122
+ "@aztec/ethereum": "3.0.0-nightly.20251113",
123
+ "@aztec/l1-artifacts": "3.0.0-nightly.20251113",
124
+ "@aztec/noir-contracts.js": "3.0.0-nightly.20251113",
125
+ "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251113",
126
+ "@aztec/noir-test-contracts.js": "3.0.0-nightly.20251113",
127
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251113",
128
+ "@aztec/stdlib": "3.0.0-nightly.20251113"
126
129
  },
127
130
  "files": [
128
131
  "dest",
@@ -29,16 +29,9 @@ export async function inspectContract(contractArtifactFile: string, debugLogger:
29
29
  log(`\tpublic bytecode commitment: ${contractClass.publicBytecodeCommitment.toString()}`);
30
30
  log(`\tpublic bytecode length: ${contractClass.packedBytecode.length} bytes (${bytecodeLengthInFields} fields)`);
31
31
 
32
- const externalFunctions = contractFns.filter(f => !f.isInternal);
33
- if (externalFunctions.length > 0) {
34
- log(`\nExternal functions:`);
35
- await Promise.all(externalFunctions.map(f => logFunction(f, log)));
36
- }
37
-
38
- const internalFunctions = contractFns.filter(f => f.isInternal);
39
- if (internalFunctions.length > 0) {
40
- log(`\nInternal functions:`);
41
- await Promise.all(internalFunctions.map(f => logFunction(f, log)));
32
+ if (contractFns.length > 0) {
33
+ log(`\nExternal contract functions:`);
34
+ await Promise.all(contractFns.map(f => logFunction(f, log)));
42
35
  }
43
36
  }
44
37
 
@@ -1,8 +1,9 @@
1
- import { DefaultL1ContractsConfig, type L1ContractsConfig } from '@aztec/ethereum';
1
+ import { DefaultL1ContractsConfig, type L1ContractsConfig, type L1TxUtilsConfig } from '@aztec/ethereum';
2
2
  import type { NetworkNames } from '@aztec/foundation/config';
3
3
  import { EthAddress } from '@aztec/foundation/eth-address';
4
4
  import type { SharedNodeConfig } from '@aztec/node-lib/config';
5
- import type { SlasherConfig } from '@aztec/stdlib/interfaces/server';
5
+ import type { P2PConfig } from '@aztec/p2p';
6
+ import type { SequencerConfig, SlasherConfig } from '@aztec/stdlib/interfaces/server';
6
7
 
7
8
  import path from 'path';
8
9
 
@@ -14,15 +15,15 @@ const SNAPSHOTS_URL = 'https://aztec-labs-snapshots.com';
14
15
  const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
15
16
  const tbMapSizeKb = 1_024 * 1_024 * 1_024; // 1 TB
16
17
 
17
- export type L2ChainConfig = L1ContractsConfig &
18
- Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways'> & {
18
+ export type L2ChainConfig = Omit<L1ContractsConfig, keyof L1TxUtilsConfig> &
19
+ Omit<SlasherConfig, 'slashValidatorsNever' | 'slashValidatorsAlways' | 'slashOverridePayload' | 'slashSelfAllowed'> &
20
+ Pick<P2PConfig, 'bootstrapNodes' | 'p2pEnabled' | 'txPoolDeleteTxsAfterReorg'> &
21
+ Pick<SequencerConfig, 'minTxsPerBlock' | 'maxTxsPerBlock'> & {
19
22
  l1ChainId: number;
20
23
  testAccounts: boolean;
21
24
  sponsoredFPC: boolean;
22
- p2pEnabled: boolean;
23
- p2pBootstrapNodes: string[];
24
- seqMinTxsPerBlock: number;
25
- seqMaxTxsPerBlock: number;
25
+ minTxsPerBlock: number;
26
+ maxTxsPerBlock: number;
26
27
  realProofs: boolean;
27
28
  snapshotsUrls: string[];
28
29
  autoUpdate: SharedNodeConfig['autoUpdate'];
@@ -35,9 +36,9 @@ export type L2ChainConfig = L1ContractsConfig &
35
36
  skipArchiverInitialSync?: boolean;
36
37
  blobAllowEmptySources?: boolean;
37
38
 
38
- // Setting the dbMapSize provides the default for every DB in the node.
39
+ // Setting the dataStoreMapSize provides the default for every DB in the node.
39
40
  // Then we explicitly override the sizes for the archiver and the larger trees.
40
- dbMapSizeKb: number;
41
+ dataStoreMapSizeKb: number;
41
42
  archiverStoreMapSizeKb: number;
42
43
  noteHashTreeMapSizeKb: number;
43
44
  nullifierTreeMapSizeKb: number;
@@ -86,7 +87,7 @@ const DefaultSlashConfig = {
86
87
  } satisfies Partial<L2ChainConfig>;
87
88
 
88
89
  const DefaultNetworkDBMapSizeConfig = {
89
- dbMapSizeKb: defaultDBMapSizeKb,
90
+ dataStoreMapSizeKb: defaultDBMapSizeKb,
90
91
  archiverStoreMapSizeKb: tbMapSizeKb,
91
92
  noteHashTreeMapSizeKb: tbMapSizeKb,
92
93
  nullifierTreeMapSizeKb: tbMapSizeKb,
@@ -99,9 +100,9 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
99
100
  sponsoredFPC: false,
100
101
  disableTransactions: true,
101
102
  p2pEnabled: true,
102
- p2pBootstrapNodes: [],
103
- seqMinTxsPerBlock: 0,
104
- seqMaxTxsPerBlock: 0,
103
+ bootstrapNodes: [],
104
+ minTxsPerBlock: 0,
105
+ maxTxsPerBlock: 0,
105
106
  realProofs: true,
106
107
  snapshotsUrls: [`${SNAPSHOTS_URL}/staging-ignition/`],
107
108
  autoUpdate: 'config-and-version',
@@ -111,6 +112,8 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
111
112
  publicIncludeMetrics,
112
113
  publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
113
114
  publicMetricsCollectFrom: ['sequencer'],
115
+ txPoolDeleteTxsAfterReorg: false,
116
+ blobAllowEmptySources: true,
114
117
 
115
118
  /** How many seconds an L1 slot lasts. */
116
119
  ethereumSlotDuration: 12,
@@ -180,9 +183,9 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
180
183
  sponsoredFPC: true,
181
184
  disableTransactions: false,
182
185
  p2pEnabled: true,
183
- p2pBootstrapNodes: [],
184
- seqMinTxsPerBlock: 0,
185
- seqMaxTxsPerBlock: 20,
186
+ bootstrapNodes: [],
187
+ minTxsPerBlock: 0,
188
+ maxTxsPerBlock: 20,
186
189
  realProofs: true,
187
190
  snapshotsUrls: [`${SNAPSHOTS_URL}/staging-public/`],
188
191
  autoUpdate: 'config-and-version',
@@ -192,6 +195,7 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
192
195
  publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
193
196
  publicMetricsCollectFrom: ['sequencer'],
194
197
  maxTxPoolSize: 100_000_000, // 100MB
198
+ txPoolDeleteTxsAfterReorg: true,
195
199
 
196
200
  // Deployment stuff
197
201
  /** How many seconds an L1 slot lasts. */
@@ -234,9 +238,9 @@ export const nextNetL2ChainConfig: L2ChainConfig = {
234
238
  sponsoredFPC: true,
235
239
  p2pEnabled: true,
236
240
  disableTransactions: false,
237
- p2pBootstrapNodes: [],
238
- seqMinTxsPerBlock: 0,
239
- seqMaxTxsPerBlock: 8,
241
+ bootstrapNodes: [],
242
+ minTxsPerBlock: 0,
243
+ maxTxsPerBlock: 8,
240
244
  realProofs: true,
241
245
  snapshotsUrls: [],
242
246
  autoUpdate: 'config-and-version',
@@ -246,6 +250,7 @@ export const nextNetL2ChainConfig: L2ChainConfig = {
246
250
  publicMetricsCollectorUrl: '',
247
251
  publicMetricsCollectFrom: [''],
248
252
  maxTxPoolSize: 100_000_000, // 100MB
253
+ txPoolDeleteTxsAfterReorg: false,
249
254
 
250
255
  // Deployment stuff
251
256
  /** How many seconds an L1 slot lasts. */
@@ -288,9 +293,9 @@ export const testnetL2ChainConfig: L2ChainConfig = {
288
293
  sponsoredFPC: true,
289
294
  p2pEnabled: true,
290
295
  disableTransactions: true,
291
- p2pBootstrapNodes: [],
292
- seqMinTxsPerBlock: 0,
293
- seqMaxTxsPerBlock: 0,
296
+ bootstrapNodes: [],
297
+ minTxsPerBlock: 0,
298
+ maxTxsPerBlock: 0,
294
299
  realProofs: true,
295
300
  snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
296
301
  autoUpdate: 'config-and-version',
@@ -300,6 +305,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
300
305
  publicIncludeMetrics,
301
306
  publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
302
307
  publicMetricsCollectFrom: ['sequencer'],
308
+ txPoolDeleteTxsAfterReorg: true,
303
309
  skipArchiverInitialSync: true,
304
310
  blobAllowEmptySources: true,
305
311
 
@@ -371,14 +377,16 @@ export const testnetL2ChainConfig: L2ChainConfig = {
371
377
  };
372
378
 
373
379
  export const mainnetL2ChainConfig: L2ChainConfig = {
380
+ txPoolDeleteTxsAfterReorg: true,
381
+ disableTransactions: true,
382
+
374
383
  l1ChainId: 1,
375
384
  testAccounts: false,
376
385
  sponsoredFPC: false,
377
386
  p2pEnabled: true,
378
- disableTransactions: true,
379
- p2pBootstrapNodes: [],
380
- seqMinTxsPerBlock: 0,
381
- seqMaxTxsPerBlock: 0,
387
+ bootstrapNodes: [],
388
+ minTxsPerBlock: 0,
389
+ maxTxsPerBlock: 0,
382
390
  realProofs: true,
383
391
  snapshotsUrls: [`${SNAPSHOTS_URL}/mainnet/`],
384
392
  autoUpdate: 'notify',
@@ -462,9 +470,9 @@ export const devnetL2ChainConfig: L2ChainConfig = {
462
470
  sponsoredFPC: true,
463
471
  p2pEnabled: true,
464
472
  disableTransactions: false,
465
- p2pBootstrapNodes: [],
466
- seqMinTxsPerBlock: 0,
467
- seqMaxTxsPerBlock: 8,
473
+ bootstrapNodes: [],
474
+ minTxsPerBlock: 0,
475
+ maxTxsPerBlock: 8,
468
476
  realProofs: false,
469
477
  snapshotsUrls: [],
470
478
  autoUpdate: 'config-and-version',
@@ -474,6 +482,7 @@ export const devnetL2ChainConfig: L2ChainConfig = {
474
482
  publicMetricsCollectorUrl: '',
475
483
  publicMetricsCollectFrom: [''],
476
484
  maxTxPoolSize: 100_000_000, // 100MB
485
+ txPoolDeleteTxsAfterReorg: true,
477
486
 
478
487
  // Deployment stuff
479
488
  /** How many seconds an L1 slot lasts. */
@@ -532,7 +541,7 @@ function getDefaultDataDir(networkName: NetworkNames): string {
532
541
  return path.join(process.env.HOME || '~', '.aztec', networkName, 'data');
533
542
  }
534
543
 
535
- export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
544
+ export function enrichEnvironmentWithChainName(networkName: NetworkNames) {
536
545
  if (networkName === 'local') {
537
546
  return;
538
547
  }
@@ -544,19 +553,24 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
544
553
  throw new Error(`Unknown network name: ${networkName}`);
545
554
  }
546
555
 
547
- enrichVar('BOOTSTRAP_NODES', config.p2pBootstrapNodes.join(','));
556
+ enrichEnvironmentWithChainConfig(config);
557
+ }
558
+
559
+ export function enrichEnvironmentWithChainConfig(config: L2ChainConfig) {
560
+ enrichVar('BOOTSTRAP_NODES', config.bootstrapNodes.join(','));
548
561
  enrichVar('TEST_ACCOUNTS', config.testAccounts.toString());
549
562
  enrichVar('SPONSORED_FPC', config.sponsoredFPC.toString());
550
563
  enrichVar('P2P_ENABLED', config.p2pEnabled.toString());
551
564
  enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
552
- enrichVar('SEQ_MIN_TX_PER_BLOCK', config.seqMinTxsPerBlock.toString());
553
- enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
565
+ enrichVar('SEQ_MIN_TX_PER_BLOCK', config.minTxsPerBlock.toString());
566
+ enrichVar('SEQ_MAX_TX_PER_BLOCK', config.maxTxsPerBlock.toString());
554
567
  enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
555
568
  enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
556
569
  enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
557
570
  enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
571
+ enrichVar('P2P_TX_POOL_DELETE_TXS_AFTER_REORG', config.txPoolDeleteTxsAfterReorg.toString());
558
572
 
559
- enrichVar('DATA_STORE_MAP_SIZE_KB', config.dbMapSizeKb.toString());
573
+ enrichVar('DATA_STORE_MAP_SIZE_KB', config.dataStoreMapSizeKb.toString());
560
574
  enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
561
575
  enrichVar('NOTE_HASH_TREE_MAP_SIZE_KB', config.noteHashTreeMapSizeKb.toString());
562
576
  enrichVar('NULLIFIER_TREE_MAP_SIZE_KB', config.nullifierTreeMapSizeKb.toString());
@@ -597,6 +611,7 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
597
611
  enrichVar('AZTEC_SLOT_DURATION', config.aztecSlotDuration.toString());
598
612
  enrichVar('AZTEC_EPOCH_DURATION', config.aztecEpochDuration.toString());
599
613
  enrichVar('AZTEC_TARGET_COMMITTEE_SIZE', config.aztecTargetCommitteeSize.toString());
614
+ enrichVar('AZTEC_LAG_IN_EPOCHS', config.lagInEpochs.toString());
600
615
  enrichVar('AZTEC_PROOF_SUBMISSION_EPOCHS', config.aztecProofSubmissionEpochs.toString());
601
616
  enrichVar('AZTEC_ACTIVATION_THRESHOLD', config.activationThreshold.toString());
602
617
  enrichVar('AZTEC_EJECTION_THRESHOLD', config.ejectionThreshold.toString());
@@ -614,6 +629,7 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
614
629
  enrichVar('AZTEC_SLASHING_EXECUTION_DELAY_IN_ROUNDS', config.slashingExecutionDelayInRounds.toString());
615
630
  enrichVar('AZTEC_SLASHING_OFFSET_IN_ROUNDS', config.slashingOffsetInRounds.toString());
616
631
  enrichVar('AZTEC_SLASHER_FLAVOR', config.slasherFlavor);
632
+ enrichVar('AZTEC_SLASHING_DISABLE_DURATION', config.slashingDisableDuration.toString());
617
633
  enrichVar('AZTEC_EXIT_DELAY_SECONDS', config.exitDelaySeconds.toString());
618
634
  enrichEthAddressVar('AZTEC_SLASHING_VETOER', config.slashingVetoer.toString());
619
635
 
@@ -631,6 +647,8 @@ export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
631
647
  enrichVar('SLASH_INVALID_BLOCK_PENALTY', config.slashBroadcastedInvalidBlockPenalty.toString());
632
648
  enrichVar('SLASH_OFFENSE_EXPIRATION_ROUNDS', config.slashOffenseExpirationRounds.toString());
633
649
  enrichVar('SLASH_MAX_PAYLOAD_SIZE', config.slashMaxPayloadSize.toString());
650
+ enrichVar('SLASH_GRACE_PERIOD_L2_SLOTS', config.slashGracePeriodL2Slots.toString());
651
+ enrichVar('SLASH_EXECUTE_ROUNDS_LOOK_BACK', config.slashExecuteRoundsLookBack.toString());
634
652
 
635
653
  enrichVar('SENTINEL_ENABLED', config.sentinelEnabled.toString());
636
654
  enrichVar('TRANSACTIONS_DISABLED', config.disableTransactions.toString());