@aztec/cli 0.86.0-nightly.20250513 → 0.86.0-starknet.1

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.
@@ -13,7 +13,7 @@ export function injectCommands(program, log, debugLogger) {
13
13
  who,
14
14
  mnemonic: options.mnemonic,
15
15
  rpcUrl: options.rpcUrl,
16
- l1RpcUrls: options.l1RpcUrls,
16
+ l1RpcUrls: options.l1RpcUrls.split(','),
17
17
  chainId: options.l1ChainId,
18
18
  blockNumber: options.blockNumber,
19
19
  log,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,WAAW,CAAC;AAcjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAW3D,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,WA4iB/E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,WAAW,CAAC;AAcjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAW3D,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,WAohB/E"}
@@ -132,17 +132,6 @@ export function injectCommands(program, log, debugLogger) {
132
132
  debugLogger
133
133
  });
134
134
  });
135
- program.command('trigger-seed-snapshot').description('Triggers a seed snapshot for the next epoch.').option('-pk, --private-key <string>', 'The private key to use for deployment', PRIVATE_KEY).option('-m, --mnemonic <string>', 'The mnemonic to use in deployment', 'test test test test test test test test test test test junk').option('--rollup <address>', 'ethereum address of the rollup contract', parseEthereumAddress).addOption(l1RpcUrlsOption).addOption(l1ChainIdOption).action(async (options)=>{
136
- const { triggerSeedSnapshot } = await import('./trigger_seed_snapshot.js');
137
- await triggerSeedSnapshot({
138
- rollupAddress: options.rollup,
139
- rpcUrls: options.l1RpcUrls,
140
- chainId: options.l1ChainId,
141
- privateKey: options.privateKey,
142
- mnemonic: options.mnemonic,
143
- log
144
- });
145
- });
146
135
  program.command('debug-rollup').description('Debugs the rollup contract.').addOption(l1RpcUrlsOption).addOption(l1ChainIdOption).option('--rollup <address>', 'ethereum address of the rollup contract', parseEthereumAddress).action(async (options)=>{
147
136
  const { debugRollup } = await import('./update_l1_validators.js');
148
137
  await debugRollup({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "0.86.0-nightly.20250513",
3
+ "version": "0.86.0-starknet.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./contracts": "./dest/cmds/contracts/index.js",
@@ -65,15 +65,15 @@
65
65
  ]
66
66
  },
67
67
  "dependencies": {
68
- "@aztec/archiver": "0.86.0-nightly.20250513",
69
- "@aztec/aztec.js": "0.86.0-nightly.20250513",
70
- "@aztec/constants": "0.86.0-nightly.20250513",
71
- "@aztec/entrypoints": "0.86.0-nightly.20250513",
72
- "@aztec/foundation": "0.86.0-nightly.20250513",
73
- "@aztec/l1-artifacts": "0.86.0-nightly.20250513",
74
- "@aztec/p2p": "0.86.0-nightly.20250513",
75
- "@aztec/stdlib": "0.86.0-nightly.20250513",
76
- "@aztec/world-state": "0.86.0-nightly.20250513",
68
+ "@aztec/archiver": "0.86.0-starknet.1",
69
+ "@aztec/aztec.js": "0.86.0-starknet.1",
70
+ "@aztec/constants": "0.86.0-starknet.1",
71
+ "@aztec/entrypoints": "0.86.0-starknet.1",
72
+ "@aztec/foundation": "0.86.0-starknet.1",
73
+ "@aztec/l1-artifacts": "0.86.0-starknet.1",
74
+ "@aztec/p2p": "0.86.0-starknet.1",
75
+ "@aztec/stdlib": "0.86.0-starknet.1",
76
+ "@aztec/world-state": "0.86.0-starknet.1",
77
77
  "@iarna/toml": "^2.2.5",
78
78
  "@libp2p/peer-id-factory": "^3.0.4",
79
79
  "commander": "^12.1.0",
@@ -85,9 +85,9 @@
85
85
  "viem": "2.23.7"
86
86
  },
87
87
  "devDependencies": {
88
- "@aztec/accounts": "0.86.0-nightly.20250513",
89
- "@aztec/ethereum": "0.86.0-nightly.20250513",
90
- "@aztec/protocol-contracts": "0.86.0-nightly.20250513",
88
+ "@aztec/accounts": "0.86.0-starknet.1",
89
+ "@aztec/ethereum": "0.86.0-starknet.1",
90
+ "@aztec/protocol-contracts": "0.86.0-starknet.1",
91
91
  "@jest/globals": "^29.5.0",
92
92
  "@types/jest": "^29.5.0",
93
93
  "@types/lodash.chunk": "^4.2.9",
@@ -103,15 +103,15 @@
103
103
  "typescript": "^5.0.4"
104
104
  },
105
105
  "peerDependencies": {
106
- "@aztec/accounts": "0.86.0-nightly.20250513",
107
- "@aztec/bb-prover": "0.86.0-nightly.20250513",
108
- "@aztec/ethereum": "0.86.0-nightly.20250513",
109
- "@aztec/l1-artifacts": "0.86.0-nightly.20250513",
110
- "@aztec/noir-contracts.js": "0.86.0-nightly.20250513",
111
- "@aztec/noir-protocol-circuits-types": "0.86.0-nightly.20250513",
112
- "@aztec/noir-test-contracts.js": "0.86.0-nightly.20250513",
113
- "@aztec/protocol-contracts": "0.86.0-nightly.20250513",
114
- "@aztec/stdlib": "0.86.0-nightly.20250513"
106
+ "@aztec/accounts": "0.86.0-starknet.1",
107
+ "@aztec/bb-prover": "0.86.0-starknet.1",
108
+ "@aztec/ethereum": "0.86.0-starknet.1",
109
+ "@aztec/l1-artifacts": "0.86.0-starknet.1",
110
+ "@aztec/noir-contracts.js": "0.86.0-starknet.1",
111
+ "@aztec/noir-protocol-circuits-types": "0.86.0-starknet.1",
112
+ "@aztec/noir-test-contracts.js": "0.86.0-starknet.1",
113
+ "@aztec/protocol-contracts": "0.86.0-starknet.1",
114
+ "@aztec/stdlib": "0.86.0-starknet.1"
115
115
  },
116
116
  "files": [
117
117
  "dest",
@@ -51,7 +51,7 @@ export function injectCommands(program: Command, log: LogFn, debugLogger: Logger
51
51
  who,
52
52
  mnemonic: options.mnemonic,
53
53
  rpcUrl: options.rpcUrl,
54
- l1RpcUrls: options.l1RpcUrls,
54
+ l1RpcUrls: options.l1RpcUrls.split(','),
55
55
  chainId: options.l1ChainId,
56
56
  blockNumber: options.blockNumber,
57
57
  log,
@@ -352,30 +352,6 @@ export function injectCommands(program: Command, log: LogFn, debugLogger: Logger
352
352
  });
353
353
  });
354
354
 
355
- program
356
- .command('trigger-seed-snapshot')
357
- .description('Triggers a seed snapshot for the next epoch.')
358
- .option('-pk, --private-key <string>', 'The private key to use for deployment', PRIVATE_KEY)
359
- .option(
360
- '-m, --mnemonic <string>',
361
- 'The mnemonic to use in deployment',
362
- 'test test test test test test test test test test test junk',
363
- )
364
- .option('--rollup <address>', 'ethereum address of the rollup contract', parseEthereumAddress)
365
- .addOption(l1RpcUrlsOption)
366
- .addOption(l1ChainIdOption)
367
- .action(async options => {
368
- const { triggerSeedSnapshot } = await import('./trigger_seed_snapshot.js');
369
- await triggerSeedSnapshot({
370
- rollupAddress: options.rollup,
371
- rpcUrls: options.l1RpcUrls,
372
- chainId: options.l1ChainId,
373
- privateKey: options.privateKey,
374
- mnemonic: options.mnemonic,
375
- log,
376
- });
377
- });
378
-
379
355
  program
380
356
  .command('debug-rollup')
381
357
  .description('Debugs the rollup contract.')
@@ -1,6 +0,0 @@
1
- import type { LogFn } from '@aztec/foundation/log';
2
- import type { RollupCommandArgs } from './update_l1_validators.js';
3
- export declare function triggerSeedSnapshot({ rpcUrls, chainId, privateKey, mnemonic, rollupAddress, log, }: RollupCommandArgs & {
4
- log: LogFn;
5
- }): Promise<void>;
6
- //# sourceMappingURL=trigger_seed_snapshot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trigger_seed_snapshot.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/trigger_seed_snapshot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAKnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,wBAAsB,mBAAmB,CAAC,EACxC,OAAO,EACP,OAAO,EACP,UAAU,EACV,QAAQ,EACR,aAAa,EACb,GAAG,GACJ,EAAE,iBAAiB,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,iBAepC"}
@@ -1,19 +0,0 @@
1
- import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
2
- import { RollupAbi } from '@aztec/l1-artifacts/RollupAbi';
3
- import { getContract } from 'viem';
4
- export async function triggerSeedSnapshot({ rpcUrls, chainId, privateKey, mnemonic, rollupAddress, log }) {
5
- const chain = createEthereumChain(rpcUrls, chainId);
6
- const client = createExtendedL1Client(rpcUrls, privateKey ?? mnemonic, chain.chainInfo);
7
- const rollup = getContract({
8
- address: rollupAddress.toString(),
9
- abi: RollupAbi,
10
- client
11
- });
12
- log('Triggering seed snapshot for next epoch');
13
- const txHash = await rollup.write.setupSeedSnapshotForNextEpoch();
14
- log(`Sent! | Seed snapshot setup for next epoch | tx hash: ${txHash}`);
15
- const receipt = await client.waitForTransactionReceipt({
16
- hash: txHash
17
- });
18
- log(`Done! | Seed snapshot setup for next epoch | tx hash: ${txHash} | status: ${receipt.status}`);
19
- }
@@ -1,31 +0,0 @@
1
- import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
2
- import type { LogFn } from '@aztec/foundation/log';
3
- import { RollupAbi } from '@aztec/l1-artifacts/RollupAbi';
4
-
5
- import { getContract } from 'viem';
6
-
7
- import type { RollupCommandArgs } from './update_l1_validators.js';
8
-
9
- export async function triggerSeedSnapshot({
10
- rpcUrls,
11
- chainId,
12
- privateKey,
13
- mnemonic,
14
- rollupAddress,
15
- log,
16
- }: RollupCommandArgs & { log: LogFn }) {
17
- const chain = createEthereumChain(rpcUrls, chainId);
18
- const client = createExtendedL1Client(rpcUrls, privateKey ?? mnemonic!, chain.chainInfo);
19
-
20
- const rollup = getContract({
21
- address: rollupAddress.toString(),
22
- abi: RollupAbi,
23
- client,
24
- });
25
-
26
- log('Triggering seed snapshot for next epoch');
27
- const txHash = await rollup.write.setupSeedSnapshotForNextEpoch();
28
- log(`Sent! | Seed snapshot setup for next epoch | tx hash: ${txHash}`);
29
- const receipt = await client.waitForTransactionReceipt({ hash: txHash });
30
- log(`Done! | Seed snapshot setup for next epoch | tx hash: ${txHash} | status: ${receipt.status}`);
31
- }