@aztec/cli 1.0.0-nightly.20250703 → 1.0.0-nightly.20250705
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.
- package/dest/cmds/l1/advance_epoch.js +2 -2
- package/dest/cmds/l1/assume_proven_through.d.ts.map +1 -1
- package/dest/cmds/l1/assume_proven_through.js +2 -3
- package/dest/cmds/l1/update_l1_validators.js +2 -1
- package/package.json +22 -22
- package/src/cmds/l1/advance_epoch.ts +2 -2
- package/src/cmds/l1/assume_proven_through.ts +2 -3
- package/src/cmds/l1/update_l1_validators.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createPXEClient, makeFetch } from '@aztec/aztec.js';
|
|
2
|
-
import {
|
|
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 =
|
|
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,
|
|
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 {
|
|
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
|
|
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 {
|
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250705",
|
|
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.
|
|
73
|
-
"@aztec/aztec.js": "1.0.0-nightly.
|
|
74
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
75
|
-
"@aztec/entrypoints": "1.0.0-nightly.
|
|
76
|
-
"@aztec/
|
|
77
|
-
"@aztec/
|
|
78
|
-
"@aztec/
|
|
79
|
-
"@aztec/
|
|
80
|
-
"@aztec/
|
|
72
|
+
"@aztec/archiver": "1.0.0-nightly.20250705",
|
|
73
|
+
"@aztec/aztec.js": "1.0.0-nightly.20250705",
|
|
74
|
+
"@aztec/constants": "1.0.0-nightly.20250705",
|
|
75
|
+
"@aztec/entrypoints": "1.0.0-nightly.20250705",
|
|
76
|
+
"@aztec/ethereum": "1.0.0-nightly.20250705",
|
|
77
|
+
"@aztec/foundation": "1.0.0-nightly.20250705",
|
|
78
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250705",
|
|
79
|
+
"@aztec/p2p": "1.0.0-nightly.20250705",
|
|
80
|
+
"@aztec/stdlib": "1.0.0-nightly.20250705",
|
|
81
|
+
"@aztec/world-state": "1.0.0-nightly.20250705",
|
|
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.
|
|
93
|
-
"@aztec/
|
|
94
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.20250703",
|
|
93
|
+
"@aztec/accounts": "1.0.0-nightly.20250705",
|
|
94
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250705",
|
|
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.
|
|
111
|
-
"@aztec/bb-prover": "1.0.0-nightly.
|
|
112
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
113
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
114
|
-
"@aztec/noir-contracts.js": "1.0.0-nightly.
|
|
115
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
116
|
-
"@aztec/noir-test-contracts.js": "1.0.0-nightly.
|
|
117
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
118
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
110
|
+
"@aztec/accounts": "1.0.0-nightly.20250705",
|
|
111
|
+
"@aztec/bb-prover": "1.0.0-nightly.20250705",
|
|
112
|
+
"@aztec/ethereum": "1.0.0-nightly.20250705",
|
|
113
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250705",
|
|
114
|
+
"@aztec/noir-contracts.js": "1.0.0-nightly.20250705",
|
|
115
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250705",
|
|
116
|
+
"@aztec/noir-test-contracts.js": "1.0.0-nightly.20250705",
|
|
117
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250705",
|
|
118
|
+
"@aztec/stdlib": "1.0.0-nightly.20250705"
|
|
119
119
|
},
|
|
120
120
|
"files": [
|
|
121
121
|
"dest",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createPXEClient, makeFetch } from '@aztec/aztec.js';
|
|
2
|
-
import {
|
|
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 =
|
|
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 {
|
|
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
|
|
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';
|