@aztec/cli 2.1.0-rc.1 → 2.1.0-rc.3

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.
@@ -34,7 +34,9 @@ export async function addL1Validator({ rpcUrls, chainId, privateKey, mnemonic, a
34
34
  const gseAddress = await rollup.read.getGSE();
35
35
  const gse = new GSEContract(l1Client, gseAddress);
36
36
  const registrationTuple = await gse.makeRegistrationTuple(blsSecretKey);
37
- const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
37
+ const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, {
38
+ logger: debugLogger
39
+ });
38
40
  const proofParamsObj = ZkPassportProofParams.fromBuffer(proofParams);
39
41
  const merkleProofArray = merkleProof.map((proof)=>addLeadingHex(proof));
40
42
  const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
@@ -88,7 +90,9 @@ export async function addL1ValidatorViaRollup({ rpcUrls, chainId, privateKey, mn
88
90
  const gseAddress = await rollup.read.getGSE();
89
91
  const gse = new GSEContract(l1Client, gseAddress);
90
92
  const registrationTuple = await gse.makeRegistrationTuple(blsSecretKey);
91
- const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
93
+ const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, {
94
+ logger: debugLogger
95
+ });
92
96
  const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
93
97
  to: rollupAddress.toString(),
94
98
  data: encodeFunctionData({
@@ -128,7 +132,9 @@ export async function removeL1Validator({ rpcUrls, chainId, privateKey, mnemonic
128
132
  const account = getAccount(privateKey, mnemonic);
129
133
  const chain = createEthereumChain(rpcUrls, chainId);
130
134
  const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
131
- const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
135
+ const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, {
136
+ logger: debugLogger
137
+ });
132
138
  dualLog(`Removing validator ${validatorAddress.toString()} from rollup ${rollupAddress.toString()}`);
133
139
  const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
134
140
  to: rollupAddress.toString(),
@@ -148,7 +154,9 @@ export async function pruneRollup({ rpcUrls, chainId, privateKey, mnemonic, roll
148
154
  const account = getAccount(privateKey, mnemonic);
149
155
  const chain = createEthereumChain(rpcUrls, chainId);
150
156
  const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
151
- const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
157
+ const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, {
158
+ logger: debugLogger
159
+ });
152
160
  dualLog(`Trying prune`);
153
161
  const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
154
162
  to: rollupAddress.toString(),
@@ -208,7 +216,7 @@ export async function debugRollup({ rpcUrls, chainId, rollupAddress, log }) {
208
216
  log(`Committee: ${committee?.map((v)=>v.toString()).join(', ')}`);
209
217
  const archive = await rollup.archive();
210
218
  log(`Archive: ${archive}`);
211
- const epochNum = await rollup.getEpochNumber();
219
+ const epochNum = await rollup.getCurrentEpochNumber();
212
220
  log(`Current epoch: ${epochNum}`);
213
221
  const slot = await rollup.getSlotNumber();
214
222
  log(`Current slot: ${slot}`);
@@ -12,7 +12,7 @@ export type L2ChainConfig = L1ContractsConfig & Pick<P2PConfig, 'txPoolDeleteTxs
12
12
  seqMinTxsPerBlock: number;
13
13
  seqMaxTxsPerBlock: number;
14
14
  realProofs: boolean;
15
- snapshotsUrl: string;
15
+ snapshotsUrls: string[];
16
16
  autoUpdate: SharedNodeConfig['autoUpdate'];
17
17
  autoUpdateUrl?: string;
18
18
  maxTxPoolSize: number;
@@ -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,M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,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IAIpC,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,MAAM,CAAC;IAGhC,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AA+CJ,eAAO,MAAM,4BAA4B,EAAE,aA+E1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAmDxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAsDlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aA+EnC,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,iBA4F/E"}
@@ -6,6 +6,7 @@ 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 SNAPSHOTS_URL = 'https://aztec-labs-snapshots.com';
9
10
  const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
10
11
  const tbMapSizeKb = 1_024 * 1_024 * 1_024; // 1 TB
11
12
  const DefaultSlashConfig = {
@@ -52,7 +53,9 @@ export const stagingIgnitionL2ChainConfig = {
52
53
  seqMinTxsPerBlock: 0,
53
54
  seqMaxTxsPerBlock: 0,
54
55
  realProofs: true,
55
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/staging-ignition/',
56
+ snapshotsUrls: [
57
+ `${SNAPSHOTS_URL}/staging-ignition/`
58
+ ],
56
59
  autoUpdate: 'config-and-version',
57
60
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-ignition.json',
58
61
  maxTxPoolSize: 100_000_000,
@@ -116,7 +119,9 @@ export const stagingPublicL2ChainConfig = {
116
119
  seqMinTxsPerBlock: 0,
117
120
  seqMaxTxsPerBlock: 20,
118
121
  realProofs: true,
119
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/staging-public/',
122
+ snapshotsUrls: [
123
+ `${SNAPSHOTS_URL}/staging-public/`
124
+ ],
120
125
  autoUpdate: 'config-and-version',
121
126
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-public.json',
122
127
  publicIncludeMetrics,
@@ -153,7 +158,9 @@ export const testnetL2ChainConfig = {
153
158
  seqMinTxsPerBlock: 0,
154
159
  seqMaxTxsPerBlock: 20,
155
160
  realProofs: true,
156
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/testnet/',
161
+ snapshotsUrls: [
162
+ `${SNAPSHOTS_URL}/testnet/`
163
+ ],
157
164
  autoUpdate: 'config-and-version',
158
165
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/testnet.json',
159
166
  maxTxPoolSize: 100_000_000,
@@ -193,7 +200,9 @@ export const ignitionL2ChainConfig = {
193
200
  seqMinTxsPerBlock: 0,
194
201
  seqMaxTxsPerBlock: 0,
195
202
  realProofs: true,
196
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/ignition/',
203
+ snapshotsUrls: [
204
+ `${SNAPSHOTS_URL}/ignition/`
205
+ ],
197
206
  autoUpdate: 'notify',
198
207
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/ignition.json',
199
208
  maxTxPoolSize: 100_000_000,
@@ -308,7 +317,7 @@ export async function enrichEnvironmentWithChainConfig(networkName) {
308
317
  enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
309
318
  enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
310
319
  enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
311
- enrichVar('SYNC_SNAPSHOTS_URL', config.snapshotsUrl);
320
+ enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
312
321
  enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
313
322
  enrichVar('DATA_STORE_MAP_SIZE_KB', config.dbMapSizeKb.toString());
314
323
  enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
@@ -71,7 +71,7 @@ const NETWORK_CONFIG_CACHE_DURATION_MS = 60 * 60 * 1000; // 1 hour
71
71
  }
72
72
  enrichVar('BOOTSTRAP_NODES', networkConfig.bootnodes.join(','));
73
73
  enrichVar('L1_CHAIN_ID', String(networkConfig.l1ChainId));
74
- enrichVar('SYNC_SNAPSHOTS_URL', networkConfig.snapshots.join(','));
74
+ enrichVar('SYNC_SNAPSHOTS_URLS', networkConfig.snapshots.join(','));
75
75
  enrichEthAddressVar('REGISTRY_CONTRACT_ADDRESS', networkConfig.registryAddress.toString());
76
76
  if (networkConfig.feeAssetHandlerAddress) {
77
77
  enrichEthAddressVar('FEE_ASSET_HANDLER_CONTRACT_ADDRESS', networkConfig.feeAssetHandlerAddress.toString());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "2.1.0-rc.1",
3
+ "version": "2.1.0-rc.3",
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.1.0-rc.1",
74
- "@aztec/aztec.js": "2.1.0-rc.1",
75
- "@aztec/constants": "2.1.0-rc.1",
76
- "@aztec/entrypoints": "2.1.0-rc.1",
77
- "@aztec/ethereum": "2.1.0-rc.1",
78
- "@aztec/foundation": "2.1.0-rc.1",
79
- "@aztec/l1-artifacts": "2.1.0-rc.1",
80
- "@aztec/node-lib": "2.1.0-rc.1",
81
- "@aztec/p2p": "2.1.0-rc.1",
82
- "@aztec/stdlib": "2.1.0-rc.1",
83
- "@aztec/world-state": "2.1.0-rc.1",
73
+ "@aztec/archiver": "2.1.0-rc.3",
74
+ "@aztec/aztec.js": "2.1.0-rc.3",
75
+ "@aztec/constants": "2.1.0-rc.3",
76
+ "@aztec/entrypoints": "2.1.0-rc.3",
77
+ "@aztec/ethereum": "2.1.0-rc.3",
78
+ "@aztec/foundation": "2.1.0-rc.3",
79
+ "@aztec/l1-artifacts": "2.1.0-rc.3",
80
+ "@aztec/node-lib": "2.1.0-rc.3",
81
+ "@aztec/p2p": "2.1.0-rc.3",
82
+ "@aztec/stdlib": "2.1.0-rc.3",
83
+ "@aztec/world-state": "2.1.0-rc.3",
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.1.0-rc.1",
96
- "@aztec/protocol-contracts": "2.1.0-rc.1",
95
+ "@aztec/accounts": "2.1.0-rc.3",
96
+ "@aztec/protocol-contracts": "2.1.0-rc.3",
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.1.0-rc.1",
113
- "@aztec/bb-prover": "2.1.0-rc.1",
114
- "@aztec/ethereum": "2.1.0-rc.1",
115
- "@aztec/l1-artifacts": "2.1.0-rc.1",
116
- "@aztec/noir-contracts.js": "2.1.0-rc.1",
117
- "@aztec/noir-protocol-circuits-types": "2.1.0-rc.1",
118
- "@aztec/noir-test-contracts.js": "2.1.0-rc.1",
119
- "@aztec/protocol-contracts": "2.1.0-rc.1",
120
- "@aztec/stdlib": "2.1.0-rc.1"
112
+ "@aztec/accounts": "2.1.0-rc.3",
113
+ "@aztec/bb-prover": "2.1.0-rc.3",
114
+ "@aztec/ethereum": "2.1.0-rc.3",
115
+ "@aztec/l1-artifacts": "2.1.0-rc.3",
116
+ "@aztec/noir-contracts.js": "2.1.0-rc.3",
117
+ "@aztec/noir-protocol-circuits-types": "2.1.0-rc.3",
118
+ "@aztec/noir-test-contracts.js": "2.1.0-rc.3",
119
+ "@aztec/protocol-contracts": "2.1.0-rc.3",
120
+ "@aztec/stdlib": "2.1.0-rc.3"
121
121
  },
122
122
  "files": [
123
123
  "dest",
@@ -96,7 +96,7 @@ export async function addL1Validator({
96
96
 
97
97
  const registrationTuple = await gse.makeRegistrationTuple(blsSecretKey);
98
98
 
99
- const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
99
+ const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, { logger: debugLogger });
100
100
  const proofParamsObj = ZkPassportProofParams.fromBuffer(proofParams);
101
101
  const merkleProofArray = merkleProof.map(proof => addLeadingHex(proof));
102
102
 
@@ -172,7 +172,7 @@ export async function addL1ValidatorViaRollup({
172
172
 
173
173
  const registrationTuple = await gse.makeRegistrationTuple(blsSecretKey);
174
174
 
175
- const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
175
+ const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, { logger: debugLogger });
176
176
 
177
177
  const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
178
178
  to: rollupAddress.toString(),
@@ -219,7 +219,7 @@ export async function removeL1Validator({
219
219
  const account = getAccount(privateKey, mnemonic);
220
220
  const chain = createEthereumChain(rpcUrls, chainId);
221
221
  const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
222
- const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
222
+ const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, { logger: debugLogger });
223
223
 
224
224
  dualLog(`Removing validator ${validatorAddress.toString()} from rollup ${rollupAddress.toString()}`);
225
225
  const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
@@ -246,7 +246,7 @@ export async function pruneRollup({
246
246
  const account = getAccount(privateKey, mnemonic);
247
247
  const chain = createEthereumChain(rpcUrls, chainId);
248
248
  const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
249
- const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
249
+ const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, { logger: debugLogger });
250
250
 
251
251
  dualLog(`Trying prune`);
252
252
  const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
@@ -308,7 +308,7 @@ export async function debugRollup({ rpcUrls, chainId, rollupAddress, log }: Roll
308
308
  log(`Committee: ${committee?.map(v => v.toString()).join(', ')}`);
309
309
  const archive = await rollup.archive();
310
310
  log(`Archive: ${archive}`);
311
- const epochNum = await rollup.getEpochNumber();
311
+ const epochNum = await rollup.getCurrentEpochNumber();
312
312
  log(`Current epoch: ${epochNum}`);
313
313
  const slot = await rollup.getSlotNumber();
314
314
  log(`Current slot: ${slot}`);
@@ -11,6 +11,8 @@ 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 SNAPSHOTS_URL = 'https://aztec-labs-snapshots.com';
15
+
14
16
  const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
15
17
  const tbMapSizeKb = 1_024 * 1_024 * 1_024; // 1 TB
16
18
 
@@ -25,7 +27,7 @@ export type L2ChainConfig = L1ContractsConfig &
25
27
  seqMinTxsPerBlock: number;
26
28
  seqMaxTxsPerBlock: number;
27
29
  realProofs: boolean;
28
- snapshotsUrl: string;
30
+ snapshotsUrls: string[];
29
31
  autoUpdate: SharedNodeConfig['autoUpdate'];
30
32
  autoUpdateUrl?: string;
31
33
  maxTxPoolSize: number;
@@ -99,7 +101,7 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
99
101
  seqMinTxsPerBlock: 0,
100
102
  seqMaxTxsPerBlock: 0,
101
103
  realProofs: true,
102
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/staging-ignition/',
104
+ snapshotsUrls: [`${SNAPSHOTS_URL}/staging-ignition/`],
103
105
  autoUpdate: 'config-and-version',
104
106
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-ignition.json',
105
107
  maxTxPoolSize: 100_000_000, // 100MB
@@ -180,7 +182,7 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
180
182
  seqMinTxsPerBlock: 0,
181
183
  seqMaxTxsPerBlock: 20,
182
184
  realProofs: true,
183
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/staging-public/',
185
+ snapshotsUrls: [`${SNAPSHOTS_URL}/staging-public/`],
184
186
  autoUpdate: 'config-and-version',
185
187
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-public.json',
186
188
  publicIncludeMetrics,
@@ -233,7 +235,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
233
235
  seqMinTxsPerBlock: 0,
234
236
  seqMaxTxsPerBlock: 20,
235
237
  realProofs: true,
236
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/testnet/',
238
+ snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
237
239
  autoUpdate: 'config-and-version',
238
240
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/testnet.json',
239
241
  maxTxPoolSize: 100_000_000, // 100MB
@@ -289,7 +291,7 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
289
291
  seqMinTxsPerBlock: 0,
290
292
  seqMaxTxsPerBlock: 0,
291
293
  realProofs: true,
292
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/ignition/',
294
+ snapshotsUrls: [`${SNAPSHOTS_URL}/ignition/`],
293
295
  autoUpdate: 'notify',
294
296
  autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/ignition.json',
295
297
  maxTxPoolSize: 100_000_000, // 100MB
@@ -424,7 +426,7 @@ export async function enrichEnvironmentWithChainConfig(networkName: NetworkNames
424
426
  enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
425
427
  enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
426
428
  enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
427
- enrichVar('SYNC_SNAPSHOTS_URL', config.snapshotsUrl);
429
+ enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
428
430
  enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
429
431
 
430
432
  enrichVar('DATA_STORE_MAP_SIZE_KB', config.dbMapSizeKb.toString());
@@ -93,7 +93,7 @@ export async function enrichEnvironmentWithNetworkConfig(networkName: NetworkNam
93
93
 
94
94
  enrichVar('BOOTSTRAP_NODES', networkConfig.bootnodes.join(','));
95
95
  enrichVar('L1_CHAIN_ID', String(networkConfig.l1ChainId));
96
- enrichVar('SYNC_SNAPSHOTS_URL', networkConfig.snapshots.join(','));
96
+ enrichVar('SYNC_SNAPSHOTS_URLS', networkConfig.snapshots.join(','));
97
97
 
98
98
  enrichEthAddressVar('REGISTRY_CONTRACT_ADDRESS', networkConfig.registryAddress.toString());
99
99
  if (networkConfig.feeAssetHandlerAddress) {