@aztec/cli 3.0.0-nightly.20251016 → 3.0.0-nightly.20251022
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.
|
@@ -30,7 +30,6 @@ export declare const stagingPublicL2ChainConfig: L2ChainConfig;
|
|
|
30
30
|
export declare const nextNetL2ChainConfig: L2ChainConfig;
|
|
31
31
|
export declare const testnetL2ChainConfig: L2ChainConfig;
|
|
32
32
|
export declare const ignitionL2ChainConfig: L2ChainConfig;
|
|
33
|
-
export declare function
|
|
34
|
-
export declare function
|
|
35
|
-
export declare function enrichEnvironmentWithChainConfig(networkName: NetworkNames): Promise<void>;
|
|
33
|
+
export declare function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | undefined;
|
|
34
|
+
export declare function enrichEnvironmentWithChainConfig(networkName: NetworkNames): void;
|
|
36
35
|
//# 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,
|
|
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,Y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'path';
|
|
4
4
|
import publicIncludeMetrics from '../../public_include_metric_prefixes.json' with {
|
|
5
5
|
type: 'json'
|
|
6
6
|
};
|
|
7
|
-
import { cachedFetch } from './cached_fetch.js';
|
|
8
7
|
import { enrichEthAddressVar, enrichVar } from './enrich_env.js';
|
|
9
8
|
const SNAPSHOTS_URL = 'https://aztec-labs-snapshots.com';
|
|
10
9
|
const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
|
|
@@ -233,10 +232,10 @@ export const ignitionL2ChainConfig = {
|
|
|
233
232
|
seqMaxTxsPerBlock: 0,
|
|
234
233
|
realProofs: true,
|
|
235
234
|
snapshotsUrls: [
|
|
236
|
-
`${SNAPSHOTS_URL}/ignition/`
|
|
235
|
+
`${SNAPSHOTS_URL}/ignition-mainnet/`
|
|
237
236
|
],
|
|
238
237
|
autoUpdate: 'notify',
|
|
239
|
-
autoUpdateUrl: 'https://storage.googleapis.com/aztec-
|
|
238
|
+
autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/ignition-mainnet.json',
|
|
240
239
|
maxTxPoolSize: 100_000_000,
|
|
241
240
|
publicIncludeMetrics,
|
|
242
241
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -288,16 +287,7 @@ export const ignitionL2ChainConfig = {
|
|
|
288
287
|
slashExecuteRoundsLookBack: 4,
|
|
289
288
|
...DefaultNetworkDBMapSizeConfig
|
|
290
289
|
};
|
|
291
|
-
|
|
292
|
-
export async function getBootnodes(networkName, cacheDir) {
|
|
293
|
-
const url = `http://static.aztec.network/${networkName}/bootnodes.json`;
|
|
294
|
-
const data = await cachedFetch(url, {
|
|
295
|
-
cacheDurationMs: BOOTNODE_CACHE_DURATION_MS,
|
|
296
|
-
cacheFile: cacheDir ? join(cacheDir, networkName, 'bootnodes.json') : undefined
|
|
297
|
-
});
|
|
298
|
-
return data?.bootnodes;
|
|
299
|
-
}
|
|
300
|
-
export async function getL2ChainConfig(networkName, cacheDir) {
|
|
290
|
+
export function getL2ChainConfig(networkName) {
|
|
301
291
|
let config;
|
|
302
292
|
if (networkName === 'staging-public') {
|
|
303
293
|
config = {
|
|
@@ -320,26 +310,17 @@ export async function getL2ChainConfig(networkName, cacheDir) {
|
|
|
320
310
|
...nextNetL2ChainConfig
|
|
321
311
|
};
|
|
322
312
|
}
|
|
323
|
-
if (!config) {
|
|
324
|
-
return undefined;
|
|
325
|
-
}
|
|
326
|
-
// If the bootnodes are not set, get them from the network
|
|
327
|
-
const bootnodeKey = 'BOOTSTRAP_NODES';
|
|
328
|
-
if (!process.env[bootnodeKey]) {
|
|
329
|
-
config.p2pBootstrapNodes = await getBootnodes(networkName, cacheDir);
|
|
330
|
-
}
|
|
331
313
|
return config;
|
|
332
314
|
}
|
|
333
315
|
function getDefaultDataDir(networkName) {
|
|
334
316
|
return path.join(process.env.HOME || '~', '.aztec', networkName, 'data');
|
|
335
317
|
}
|
|
336
|
-
export
|
|
318
|
+
export function enrichEnvironmentWithChainConfig(networkName) {
|
|
337
319
|
if (networkName === 'local') {
|
|
338
320
|
return;
|
|
339
321
|
}
|
|
340
322
|
enrichVar('DATA_DIRECTORY', getDefaultDataDir(networkName));
|
|
341
|
-
const
|
|
342
|
-
const config = await getL2ChainConfig(networkName, cacheDir);
|
|
323
|
+
const config = getL2ChainConfig(networkName);
|
|
343
324
|
if (!config) {
|
|
344
325
|
throw new Error(`Unknown network name: ${networkName}`);
|
|
345
326
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251022",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -70,20 +70,20 @@
|
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
74
|
-
"@aztec/archiver": "3.0.0-nightly.
|
|
75
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
76
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
77
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
78
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
79
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
80
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
81
|
-
"@aztec/node-lib": "3.0.0-nightly.
|
|
82
|
-
"@aztec/p2p": "3.0.0-nightly.
|
|
83
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
84
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
85
|
-
"@aztec/test-wallet": "3.0.0-nightly.
|
|
86
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
73
|
+
"@aztec/accounts": "3.0.0-nightly.20251022",
|
|
74
|
+
"@aztec/archiver": "3.0.0-nightly.20251022",
|
|
75
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251022",
|
|
76
|
+
"@aztec/constants": "3.0.0-nightly.20251022",
|
|
77
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251022",
|
|
78
|
+
"@aztec/ethereum": "3.0.0-nightly.20251022",
|
|
79
|
+
"@aztec/foundation": "3.0.0-nightly.20251022",
|
|
80
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251022",
|
|
81
|
+
"@aztec/node-lib": "3.0.0-nightly.20251022",
|
|
82
|
+
"@aztec/p2p": "3.0.0-nightly.20251022",
|
|
83
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251022",
|
|
84
|
+
"@aztec/stdlib": "3.0.0-nightly.20251022",
|
|
85
|
+
"@aztec/test-wallet": "3.0.0-nightly.20251022",
|
|
86
|
+
"@aztec/world-state": "3.0.0-nightly.20251022",
|
|
87
87
|
"@iarna/toml": "^2.2.5",
|
|
88
88
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
89
89
|
"commander": "^12.1.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"semver": "^7.5.4",
|
|
93
93
|
"source-map-support": "^0.5.21",
|
|
94
94
|
"tslib": "^2.4.0",
|
|
95
|
-
"viem": "2.
|
|
95
|
+
"viem": "npm:@spalladino/viem@2.38.2-eip7594.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@jest/globals": "^30.0.0",
|
|
@@ -110,15 +110,15 @@
|
|
|
110
110
|
"typescript": "^5.3.3"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
114
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
115
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
116
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
117
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
118
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
119
|
-
"@aztec/noir-test-contracts.js": "3.0.0-nightly.
|
|
120
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
121
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
113
|
+
"@aztec/accounts": "3.0.0-nightly.20251022",
|
|
114
|
+
"@aztec/bb-prover": "3.0.0-nightly.20251022",
|
|
115
|
+
"@aztec/ethereum": "3.0.0-nightly.20251022",
|
|
116
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251022",
|
|
117
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251022",
|
|
118
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251022",
|
|
119
|
+
"@aztec/noir-test-contracts.js": "3.0.0-nightly.20251022",
|
|
120
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251022",
|
|
121
|
+
"@aztec/stdlib": "3.0.0-nightly.20251022"
|
|
122
122
|
},
|
|
123
123
|
"files": [
|
|
124
124
|
"dest",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { DefaultL1ContractsConfig, type L1ContractsConfig } from '@aztec/ethereum';
|
|
2
|
-
import type {
|
|
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
5
|
import type { SlasherConfig } from '@aztec/stdlib/interfaces/server';
|
|
6
6
|
|
|
7
|
-
import path
|
|
7
|
+
import path from 'path';
|
|
8
8
|
|
|
9
9
|
import publicIncludeMetrics from '../../public_include_metric_prefixes.json' with { type: 'json' };
|
|
10
|
-
import { cachedFetch } from './cached_fetch.js';
|
|
11
10
|
import { enrichEthAddressVar, enrichVar } from './enrich_env.js';
|
|
12
11
|
|
|
13
12
|
const SNAPSHOTS_URL = 'https://aztec-labs-snapshots.com';
|
|
@@ -337,9 +336,9 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
|
|
|
337
336
|
seqMinTxsPerBlock: 0,
|
|
338
337
|
seqMaxTxsPerBlock: 0,
|
|
339
338
|
realProofs: true,
|
|
340
|
-
snapshotsUrls: [`${SNAPSHOTS_URL}/ignition/`],
|
|
339
|
+
snapshotsUrls: [`${SNAPSHOTS_URL}/ignition-mainnet/`],
|
|
341
340
|
autoUpdate: 'notify',
|
|
342
|
-
autoUpdateUrl: 'https://storage.googleapis.com/aztec-
|
|
341
|
+
autoUpdateUrl: 'https://storage.googleapis.com/aztec-mainnet/auto-update/ignition-mainnet.json',
|
|
343
342
|
maxTxPoolSize: 100_000_000, // 100MB
|
|
344
343
|
publicIncludeMetrics,
|
|
345
344
|
publicMetricsCollectorUrl: 'https://telemetry.alpha-testnet.aztec-labs.com/v1/metrics',
|
|
@@ -410,22 +409,7 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
|
|
|
410
409
|
...DefaultNetworkDBMapSizeConfig,
|
|
411
410
|
};
|
|
412
411
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
export async function getBootnodes(networkName: NetworkNames, cacheDir?: string) {
|
|
416
|
-
const url = `http://static.aztec.network/${networkName}/bootnodes.json`;
|
|
417
|
-
const data = await cachedFetch(url, {
|
|
418
|
-
cacheDurationMs: BOOTNODE_CACHE_DURATION_MS,
|
|
419
|
-
cacheFile: cacheDir ? join(cacheDir, networkName, 'bootnodes.json') : undefined,
|
|
420
|
-
});
|
|
421
|
-
|
|
422
|
-
return data?.bootnodes;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export async function getL2ChainConfig(
|
|
426
|
-
networkName: NetworkNames,
|
|
427
|
-
cacheDir?: string,
|
|
428
|
-
): Promise<L2ChainConfig | undefined> {
|
|
412
|
+
export function getL2ChainConfig(networkName: NetworkNames): L2ChainConfig | undefined {
|
|
429
413
|
let config: L2ChainConfig | undefined;
|
|
430
414
|
if (networkName === 'staging-public') {
|
|
431
415
|
config = { ...stagingPublicL2ChainConfig };
|
|
@@ -438,14 +422,6 @@ export async function getL2ChainConfig(
|
|
|
438
422
|
} else if (networkName === 'next-net') {
|
|
439
423
|
config = { ...nextNetL2ChainConfig };
|
|
440
424
|
}
|
|
441
|
-
if (!config) {
|
|
442
|
-
return undefined;
|
|
443
|
-
}
|
|
444
|
-
// If the bootnodes are not set, get them from the network
|
|
445
|
-
const bootnodeKey: EnvVar = 'BOOTSTRAP_NODES';
|
|
446
|
-
if (!process.env[bootnodeKey]) {
|
|
447
|
-
config.p2pBootstrapNodes = await getBootnodes(networkName, cacheDir);
|
|
448
|
-
}
|
|
449
425
|
return config;
|
|
450
426
|
}
|
|
451
427
|
|
|
@@ -453,14 +429,13 @@ function getDefaultDataDir(networkName: NetworkNames): string {
|
|
|
453
429
|
return path.join(process.env.HOME || '~', '.aztec', networkName, 'data');
|
|
454
430
|
}
|
|
455
431
|
|
|
456
|
-
export
|
|
432
|
+
export function enrichEnvironmentWithChainConfig(networkName: NetworkNames) {
|
|
457
433
|
if (networkName === 'local') {
|
|
458
434
|
return;
|
|
459
435
|
}
|
|
460
436
|
|
|
461
437
|
enrichVar('DATA_DIRECTORY', getDefaultDataDir(networkName));
|
|
462
|
-
const
|
|
463
|
-
const config = await getL2ChainConfig(networkName, cacheDir);
|
|
438
|
+
const config = getL2ChainConfig(networkName);
|
|
464
439
|
|
|
465
440
|
if (!config) {
|
|
466
441
|
throw new Error(`Unknown network name: ${networkName}`);
|