@aztec/cli 2.0.0-nightly.20250826 → 2.0.0-nightly.20250827
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,4 +1,4 @@
|
|
|
1
|
-
import { GSEContract,
|
|
1
|
+
import { GSEContract, RollupContract, createEthereumChain, createExtendedL1Client, createL1TxUtilsFromViemWallet, getL1ContractsConfigEnvVars, getPublicClient, isAnvilTestChain } from '@aztec/ethereum';
|
|
2
2
|
import { EthCheatCodes } from '@aztec/ethereum/test';
|
|
3
3
|
import { RollupAbi, StakingAssetHandlerAbi } from '@aztec/l1-artifacts';
|
|
4
4
|
import { ZkPassportProofParams } from '@aztec/stdlib/zkpassport';
|
|
@@ -34,7 +34,7 @@ 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 =
|
|
37
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
38
38
|
const proofParamsObj = ZkPassportProofParams.fromBuffer(proofParams);
|
|
39
39
|
const merkleProofArray = merkleProof.map((proof)=>addLeadingHex(proof));
|
|
40
40
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
@@ -76,7 +76,7 @@ export async function removeL1Validator({ rpcUrls, chainId, privateKey, mnemonic
|
|
|
76
76
|
const account = getAccount(privateKey, mnemonic);
|
|
77
77
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
78
78
|
const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
|
|
79
|
-
const l1TxUtils =
|
|
79
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
80
80
|
dualLog(`Removing validator ${validatorAddress.toString()} from rollup ${rollupAddress.toString()}`);
|
|
81
81
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
82
82
|
to: rollupAddress.toString(),
|
|
@@ -96,7 +96,7 @@ export async function pruneRollup({ rpcUrls, chainId, privateKey, mnemonic, roll
|
|
|
96
96
|
const account = getAccount(privateKey, mnemonic);
|
|
97
97
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
98
98
|
const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
|
|
99
|
-
const l1TxUtils =
|
|
99
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
100
100
|
dualLog(`Trying prune`);
|
|
101
101
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
102
102
|
to: rollupAddress.toString(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "2.0.0-nightly.
|
|
3
|
+
"version": "2.0.0-nightly.20250827",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aztec/archiver": "2.0.0-nightly.
|
|
73
|
-
"@aztec/aztec.js": "2.0.0-nightly.
|
|
74
|
-
"@aztec/constants": "2.0.0-nightly.
|
|
75
|
-
"@aztec/entrypoints": "2.0.0-nightly.
|
|
76
|
-
"@aztec/ethereum": "2.0.0-nightly.
|
|
77
|
-
"@aztec/foundation": "2.0.0-nightly.
|
|
78
|
-
"@aztec/l1-artifacts": "2.0.0-nightly.
|
|
79
|
-
"@aztec/p2p": "2.0.0-nightly.
|
|
80
|
-
"@aztec/stdlib": "2.0.0-nightly.
|
|
81
|
-
"@aztec/world-state": "2.0.0-nightly.
|
|
72
|
+
"@aztec/archiver": "2.0.0-nightly.20250827",
|
|
73
|
+
"@aztec/aztec.js": "2.0.0-nightly.20250827",
|
|
74
|
+
"@aztec/constants": "2.0.0-nightly.20250827",
|
|
75
|
+
"@aztec/entrypoints": "2.0.0-nightly.20250827",
|
|
76
|
+
"@aztec/ethereum": "2.0.0-nightly.20250827",
|
|
77
|
+
"@aztec/foundation": "2.0.0-nightly.20250827",
|
|
78
|
+
"@aztec/l1-artifacts": "2.0.0-nightly.20250827",
|
|
79
|
+
"@aztec/p2p": "2.0.0-nightly.20250827",
|
|
80
|
+
"@aztec/stdlib": "2.0.0-nightly.20250827",
|
|
81
|
+
"@aztec/world-state": "2.0.0-nightly.20250827",
|
|
82
82
|
"@iarna/toml": "^2.2.5",
|
|
83
83
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
84
84
|
"commander": "^12.1.0",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"viem": "2.23.7"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@aztec/accounts": "2.0.0-nightly.
|
|
94
|
-
"@aztec/protocol-contracts": "2.0.0-nightly.
|
|
93
|
+
"@aztec/accounts": "2.0.0-nightly.20250827",
|
|
94
|
+
"@aztec/protocol-contracts": "2.0.0-nightly.20250827",
|
|
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": "2.0.0-nightly.
|
|
111
|
-
"@aztec/bb-prover": "2.0.0-nightly.
|
|
112
|
-
"@aztec/ethereum": "2.0.0-nightly.
|
|
113
|
-
"@aztec/l1-artifacts": "2.0.0-nightly.
|
|
114
|
-
"@aztec/noir-contracts.js": "2.0.0-nightly.
|
|
115
|
-
"@aztec/noir-protocol-circuits-types": "2.0.0-nightly.
|
|
116
|
-
"@aztec/noir-test-contracts.js": "2.0.0-nightly.
|
|
117
|
-
"@aztec/protocol-contracts": "2.0.0-nightly.
|
|
118
|
-
"@aztec/stdlib": "2.0.0-nightly.
|
|
110
|
+
"@aztec/accounts": "2.0.0-nightly.20250827",
|
|
111
|
+
"@aztec/bb-prover": "2.0.0-nightly.20250827",
|
|
112
|
+
"@aztec/ethereum": "2.0.0-nightly.20250827",
|
|
113
|
+
"@aztec/l1-artifacts": "2.0.0-nightly.20250827",
|
|
114
|
+
"@aztec/noir-contracts.js": "2.0.0-nightly.20250827",
|
|
115
|
+
"@aztec/noir-protocol-circuits-types": "2.0.0-nightly.20250827",
|
|
116
|
+
"@aztec/noir-test-contracts.js": "2.0.0-nightly.20250827",
|
|
117
|
+
"@aztec/protocol-contracts": "2.0.0-nightly.20250827",
|
|
118
|
+
"@aztec/stdlib": "2.0.0-nightly.20250827"
|
|
119
119
|
},
|
|
120
120
|
"files": [
|
|
121
121
|
"dest",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GSEContract,
|
|
3
|
-
L1TxUtils,
|
|
4
3
|
RollupContract,
|
|
5
4
|
createEthereumChain,
|
|
6
5
|
createExtendedL1Client,
|
|
6
|
+
createL1TxUtilsFromViemWallet,
|
|
7
7
|
getL1ContractsConfigEnvVars,
|
|
8
8
|
getPublicClient,
|
|
9
9
|
isAnvilTestChain,
|
|
@@ -96,7 +96,7 @@ export async function addL1Validator({
|
|
|
96
96
|
|
|
97
97
|
const registrationTuple = await gse.makeRegistrationTuple(blsSecretKey);
|
|
98
98
|
|
|
99
|
-
const l1TxUtils =
|
|
99
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
100
100
|
const proofParamsObj = ZkPassportProofParams.fromBuffer(proofParams);
|
|
101
101
|
const merkleProofArray = merkleProof.map(proof => addLeadingHex(proof));
|
|
102
102
|
|
|
@@ -145,7 +145,7 @@ export async function removeL1Validator({
|
|
|
145
145
|
const account = getAccount(privateKey, mnemonic);
|
|
146
146
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
147
147
|
const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
|
|
148
|
-
const l1TxUtils =
|
|
148
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
149
149
|
|
|
150
150
|
dualLog(`Removing validator ${validatorAddress.toString()} from rollup ${rollupAddress.toString()}`);
|
|
151
151
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
@@ -172,7 +172,7 @@ export async function pruneRollup({
|
|
|
172
172
|
const account = getAccount(privateKey, mnemonic);
|
|
173
173
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
174
174
|
const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
|
|
175
|
-
const l1TxUtils =
|
|
175
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
176
176
|
|
|
177
177
|
dualLog(`Trying prune`);
|
|
178
178
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|