@aztec/cli 1.0.0-nightly.20250702 → 1.0.0-nightly.20250704

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,9 +1,9 @@
1
1
  import { createPXEClient, makeFetch } from '@aztec/aztec.js';
2
- import { CheatCodes } from '@aztec/aztec.js/testing';
2
+ import { RollupCheatCodes } from '@aztec/ethereum/test';
3
3
  export async function advanceEpoch(l1RpcUrls, rpcUrl, log) {
4
4
  const pxe = createPXEClient(rpcUrl, {}, makeFetch([], true));
5
5
  const rollupAddress = await pxe.getNodeInfo().then((i)=>i.l1ContractAddresses.rollupAddress);
6
- const cheat = CheatCodes.createRollup(l1RpcUrls, {
6
+ const cheat = RollupCheatCodes.create(l1RpcUrls, {
7
7
  rollupAddress
8
8
  });
9
9
  await cheat.advanceToNextEpoch();
@@ -1 +1 @@
1
- {"version":3,"file":"assume_proven_through.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/assume_proven_through.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,wBAAsB,mBAAmB,CACvC,mBAAmB,EAAE,MAAM,GAAG,SAAS,EACvC,SAAS,EAAE,MAAM,EAAE,EACnB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,KAAK,iBAWX"}
1
+ {"version":3,"file":"assume_proven_through.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/assume_proven_through.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,wBAAsB,mBAAmB,CACvC,mBAAmB,EAAE,MAAM,GAAG,SAAS,EACvC,SAAS,EAAE,MAAM,EAAE,EACnB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,KAAK,iBAUX"}
@@ -1,11 +1,10 @@
1
1
  import { createPXEClient, makeFetch } from '@aztec/aztec.js';
2
- import { EthCheatCodes, RollupCheatCodes } from '@aztec/aztec.js/testing';
2
+ import { RollupCheatCodes } from '@aztec/ethereum/test';
3
3
  export async function assumeProvenThrough(blockNumberOrLatest, l1RpcUrls, rpcUrl, log) {
4
4
  const pxe = createPXEClient(rpcUrl, {}, makeFetch([], true));
5
5
  const rollupAddress = await pxe.getNodeInfo().then((i)=>i.l1ContractAddresses.rollupAddress);
6
6
  const blockNumber = blockNumberOrLatest ?? await pxe.getBlockNumber();
7
- const ethCheatCode = new EthCheatCodes(l1RpcUrls);
8
- const rollupCheatCodes = new RollupCheatCodes(ethCheatCode, {
7
+ const rollupCheatCodes = RollupCheatCodes.create(l1RpcUrls, {
9
8
  rollupAddress
10
9
  });
11
10
  await rollupCheatCodes.markAsProven(blockNumber);
@@ -1,4 +1,5 @@
1
- import { EthCheatCodes, L1TxUtils, RollupContract, createEthereumChain, createExtendedL1Client, getL1ContractsConfigEnvVars, getPublicClient, isAnvilTestChain } from '@aztec/ethereum';
1
+ import { L1TxUtils, RollupContract, createEthereumChain, createExtendedL1Client, getL1ContractsConfigEnvVars, getPublicClient, isAnvilTestChain } from '@aztec/ethereum';
2
+ import { EthCheatCodes } from '@aztec/ethereum/test';
2
3
  import { RollupAbi, StakingAssetHandlerAbi } from '@aztec/l1-artifacts';
3
4
  import { ZkPassportProofParams } from '@aztec/stdlib/zkpassport';
4
5
  import { encodeFunctionData, formatEther, getContract } from 'viem';
@@ -114,7 +115,9 @@ export async function fastForwardEpochs({ rpcUrls, chainId, rollupAddress, numEp
114
115
  ]);
115
116
  dualLog(`Fast forwarding ${numEpochs} epochs to ${timestamp}`);
116
117
  try {
117
- await cheatCodes.warp(Number(timestamp));
118
+ await cheatCodes.warp(Number(timestamp), {
119
+ resetBlockInterval: true
120
+ });
118
121
  dualLog(`Fast forwarded ${numEpochs} epochs to ${timestamp}`);
119
122
  } catch (error) {
120
123
  if (error instanceof Error && error.message.includes("is lower than or equal to previous block's timestamp")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "1.0.0-nightly.20250702",
3
+ "version": "1.0.0-nightly.20250704",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./contracts": "./dest/cmds/contracts/index.js",
@@ -69,15 +69,16 @@
69
69
  ]
70
70
  },
71
71
  "dependencies": {
72
- "@aztec/archiver": "1.0.0-nightly.20250702",
73
- "@aztec/aztec.js": "1.0.0-nightly.20250702",
74
- "@aztec/constants": "1.0.0-nightly.20250702",
75
- "@aztec/entrypoints": "1.0.0-nightly.20250702",
76
- "@aztec/foundation": "1.0.0-nightly.20250702",
77
- "@aztec/l1-artifacts": "1.0.0-nightly.20250702",
78
- "@aztec/p2p": "1.0.0-nightly.20250702",
79
- "@aztec/stdlib": "1.0.0-nightly.20250702",
80
- "@aztec/world-state": "1.0.0-nightly.20250702",
72
+ "@aztec/archiver": "1.0.0-nightly.20250704",
73
+ "@aztec/aztec.js": "1.0.0-nightly.20250704",
74
+ "@aztec/constants": "1.0.0-nightly.20250704",
75
+ "@aztec/entrypoints": "1.0.0-nightly.20250704",
76
+ "@aztec/ethereum": "1.0.0-nightly.20250704",
77
+ "@aztec/foundation": "1.0.0-nightly.20250704",
78
+ "@aztec/l1-artifacts": "1.0.0-nightly.20250704",
79
+ "@aztec/p2p": "1.0.0-nightly.20250704",
80
+ "@aztec/stdlib": "1.0.0-nightly.20250704",
81
+ "@aztec/world-state": "1.0.0-nightly.20250704",
81
82
  "@iarna/toml": "^2.2.5",
82
83
  "@libp2p/peer-id-factory": "^3.0.4",
83
84
  "commander": "^12.1.0",
@@ -89,9 +90,8 @@
89
90
  "viem": "2.23.7"
90
91
  },
91
92
  "devDependencies": {
92
- "@aztec/accounts": "1.0.0-nightly.20250702",
93
- "@aztec/ethereum": "1.0.0-nightly.20250702",
94
- "@aztec/protocol-contracts": "1.0.0-nightly.20250702",
93
+ "@aztec/accounts": "1.0.0-nightly.20250704",
94
+ "@aztec/protocol-contracts": "1.0.0-nightly.20250704",
95
95
  "@jest/globals": "^30.0.0",
96
96
  "@types/jest": "^30.0.0",
97
97
  "@types/lodash.chunk": "^4.2.9",
@@ -107,15 +107,15 @@
107
107
  "typescript": "^5.3.3"
108
108
  },
109
109
  "peerDependencies": {
110
- "@aztec/accounts": "1.0.0-nightly.20250702",
111
- "@aztec/bb-prover": "1.0.0-nightly.20250702",
112
- "@aztec/ethereum": "1.0.0-nightly.20250702",
113
- "@aztec/l1-artifacts": "1.0.0-nightly.20250702",
114
- "@aztec/noir-contracts.js": "1.0.0-nightly.20250702",
115
- "@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250702",
116
- "@aztec/noir-test-contracts.js": "1.0.0-nightly.20250702",
117
- "@aztec/protocol-contracts": "1.0.0-nightly.20250702",
118
- "@aztec/stdlib": "1.0.0-nightly.20250702"
110
+ "@aztec/accounts": "1.0.0-nightly.20250704",
111
+ "@aztec/bb-prover": "1.0.0-nightly.20250704",
112
+ "@aztec/ethereum": "1.0.0-nightly.20250704",
113
+ "@aztec/l1-artifacts": "1.0.0-nightly.20250704",
114
+ "@aztec/noir-contracts.js": "1.0.0-nightly.20250704",
115
+ "@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250704",
116
+ "@aztec/noir-test-contracts.js": "1.0.0-nightly.20250704",
117
+ "@aztec/protocol-contracts": "1.0.0-nightly.20250704",
118
+ "@aztec/stdlib": "1.0.0-nightly.20250704"
119
119
  },
120
120
  "files": [
121
121
  "dest",
@@ -1,12 +1,12 @@
1
1
  import { createPXEClient, makeFetch } from '@aztec/aztec.js';
2
- import { CheatCodes } from '@aztec/aztec.js/testing';
2
+ import { RollupCheatCodes } from '@aztec/ethereum/test';
3
3
  import type { LogFn } from '@aztec/foundation/log';
4
4
 
5
5
  export async function advanceEpoch(l1RpcUrls: string[], rpcUrl: string, log: LogFn) {
6
6
  const pxe = createPXEClient(rpcUrl, {}, makeFetch([], true));
7
7
  const rollupAddress = await pxe.getNodeInfo().then(i => i.l1ContractAddresses.rollupAddress);
8
8
 
9
- const cheat = CheatCodes.createRollup(l1RpcUrls, { rollupAddress });
9
+ const cheat = RollupCheatCodes.create(l1RpcUrls, { rollupAddress });
10
10
 
11
11
  await cheat.advanceToNextEpoch();
12
12
  log(`Warped time to advance to next epoch`);
@@ -1,5 +1,5 @@
1
1
  import { createPXEClient, makeFetch } from '@aztec/aztec.js';
2
- import { EthCheatCodes, RollupCheatCodes } from '@aztec/aztec.js/testing';
2
+ import { RollupCheatCodes } from '@aztec/ethereum/test';
3
3
  import type { LogFn } from '@aztec/foundation/log';
4
4
 
5
5
  export async function assumeProvenThrough(
@@ -12,8 +12,7 @@ export async function assumeProvenThrough(
12
12
  const rollupAddress = await pxe.getNodeInfo().then(i => i.l1ContractAddresses.rollupAddress);
13
13
  const blockNumber = blockNumberOrLatest ?? (await pxe.getBlockNumber());
14
14
 
15
- const ethCheatCode = new EthCheatCodes(l1RpcUrls);
16
- const rollupCheatCodes = new RollupCheatCodes(ethCheatCode, { rollupAddress });
15
+ const rollupCheatCodes = RollupCheatCodes.create(l1RpcUrls, { rollupAddress });
17
16
 
18
17
  await rollupCheatCodes.markAsProven(blockNumber);
19
18
  log(`Assumed proven through block ${blockNumber}`);
@@ -1,5 +1,4 @@
1
1
  import {
2
- EthCheatCodes,
3
2
  L1TxUtils,
4
3
  RollupContract,
5
4
  createEthereumChain,
@@ -8,6 +7,7 @@ import {
8
7
  getPublicClient,
9
8
  isAnvilTestChain,
10
9
  } from '@aztec/ethereum';
10
+ import { EthCheatCodes } from '@aztec/ethereum/test';
11
11
  import type { EthAddress } from '@aztec/foundation/eth-address';
12
12
  import type { LogFn, Logger } from '@aztec/foundation/log';
13
13
  import { RollupAbi, StakingAssetHandlerAbi } from '@aztec/l1-artifacts';
@@ -181,7 +181,7 @@ export async function fastForwardEpochs({
181
181
  const timestamp = await rollup.read.getTimestampForSlot([currentSlot + l2SlotsInEpoch * numEpochs]);
182
182
  dualLog(`Fast forwarding ${numEpochs} epochs to ${timestamp}`);
183
183
  try {
184
- await cheatCodes.warp(Number(timestamp));
184
+ await cheatCodes.warp(Number(timestamp), { resetBlockInterval: true });
185
185
  dualLog(`Fast forwarded ${numEpochs} epochs to ${timestamp}`);
186
186
  } catch (error) {
187
187
  if (error instanceof Error && error.message.includes("is lower than or equal to previous block's timestamp")) {