@aztec/cli 3.0.0-nightly.20251123 → 3.0.0-nightly.20251125
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.
|
@@ -45,7 +45,7 @@ export async function proverStats(opts) {
|
|
|
45
45
|
}
|
|
46
46
|
// But if we do, fetch the events for each block submitted, so we can look up their timestamp
|
|
47
47
|
const blockEvents = await getL2BlockEvents(startBlock, lastBlockNum, batchSize, debugLog, publicClient, rollup);
|
|
48
|
-
debugLog.verbose(`First L2 block within range is ${blockEvents[0]?.args.
|
|
48
|
+
debugLog.verbose(`First L2 block within range is ${blockEvents[0]?.args.checkpointNumber} at L1 block ${blockEvents[0]?.blockNumber}`);
|
|
49
49
|
// Get the timestamps for every block on every log, both for proof and block submissions
|
|
50
50
|
const l1BlockNumbers = unique([
|
|
51
51
|
...events.map((e)=>e.l1BlockNumber),
|
|
@@ -65,7 +65,7 @@ export async function proverStats(opts) {
|
|
|
65
65
|
// Map from l2 block number to the l1 block in which it was submitted
|
|
66
66
|
const l2BlockSubmissions = {};
|
|
67
67
|
for (const blockEvent of blockEvents){
|
|
68
|
-
l2BlockSubmissions[blockEvent.args.
|
|
68
|
+
l2BlockSubmissions[blockEvent.args.checkpointNumber.toString()] = blockEvent.blockNumber;
|
|
69
69
|
}
|
|
70
70
|
// If we want raw logs, output them
|
|
71
71
|
if (rawLogs) {
|
|
@@ -132,13 +132,13 @@ async function getL2BlockEvents(startBlock, lastBlockNum, batchSize, debugLog, p
|
|
|
132
132
|
address: getAddress(rollup.toString()),
|
|
133
133
|
event: getAbiItem({
|
|
134
134
|
abi: RollupAbi,
|
|
135
|
-
name: '
|
|
135
|
+
name: 'CheckpointProposed'
|
|
136
136
|
}),
|
|
137
137
|
fromBlock: blockNum,
|
|
138
138
|
toBlock: end
|
|
139
139
|
});
|
|
140
140
|
events.push(...newEvents);
|
|
141
|
-
debugLog.verbose(`Got ${newEvents.length} events querying
|
|
141
|
+
debugLog.verbose(`Got ${newEvents.length} events querying checkpoints submitted from block ${blockNum} to ${end}`);
|
|
142
142
|
blockNum += batchSize;
|
|
143
143
|
}
|
|
144
144
|
return events;
|
|
@@ -207,9 +207,9 @@ export async function debugRollup({ rpcUrls, chainId, rollupAddress, log }) {
|
|
|
207
207
|
l1ChainId: chainId
|
|
208
208
|
});
|
|
209
209
|
const rollup = new RollupContract(publicClient, rollupAddress);
|
|
210
|
-
const pendingNum = await rollup.
|
|
210
|
+
const pendingNum = await rollup.getCheckpointNumber();
|
|
211
211
|
log(`Pending block num: ${pendingNum}`);
|
|
212
|
-
const provenNum = await rollup.
|
|
212
|
+
const provenNum = await rollup.getProvenCheckpointNumber();
|
|
213
213
|
log(`Proven block num: ${provenNum}`);
|
|
214
214
|
const validators = await rollup.getAttesters();
|
|
215
215
|
log(`Validators: ${validators.map((v)=>v.toString()).join(', ')}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251125",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -71,21 +71,21 @@
|
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
75
|
-
"@aztec/archiver": "3.0.0-nightly.
|
|
76
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
77
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
78
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
79
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
80
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
81
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
82
|
-
"@aztec/node-keystore": "3.0.0-nightly.
|
|
83
|
-
"@aztec/node-lib": "3.0.0-nightly.
|
|
84
|
-
"@aztec/p2p": "3.0.0-nightly.
|
|
85
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
86
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
87
|
-
"@aztec/test-wallet": "3.0.0-nightly.
|
|
88
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
74
|
+
"@aztec/accounts": "3.0.0-nightly.20251125",
|
|
75
|
+
"@aztec/archiver": "3.0.0-nightly.20251125",
|
|
76
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251125",
|
|
77
|
+
"@aztec/constants": "3.0.0-nightly.20251125",
|
|
78
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251125",
|
|
79
|
+
"@aztec/ethereum": "3.0.0-nightly.20251125",
|
|
80
|
+
"@aztec/foundation": "3.0.0-nightly.20251125",
|
|
81
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251125",
|
|
82
|
+
"@aztec/node-keystore": "3.0.0-nightly.20251125",
|
|
83
|
+
"@aztec/node-lib": "3.0.0-nightly.20251125",
|
|
84
|
+
"@aztec/p2p": "3.0.0-nightly.20251125",
|
|
85
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251125",
|
|
86
|
+
"@aztec/stdlib": "3.0.0-nightly.20251125",
|
|
87
|
+
"@aztec/test-wallet": "3.0.0-nightly.20251125",
|
|
88
|
+
"@aztec/world-state": "3.0.0-nightly.20251125",
|
|
89
89
|
"@ethersproject/wallet": "^5.8.0",
|
|
90
90
|
"@iarna/toml": "^2.2.5",
|
|
91
91
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
@@ -99,9 +99,9 @@
|
|
|
99
99
|
"viem": "npm:@spalladino/viem@2.38.2-eip7594.0"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@aztec/aztec-node": "3.0.0-nightly.
|
|
103
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
104
|
-
"@aztec/telemetry-client": "3.0.0-nightly.
|
|
102
|
+
"@aztec/aztec-node": "3.0.0-nightly.20251125",
|
|
103
|
+
"@aztec/kv-store": "3.0.0-nightly.20251125",
|
|
104
|
+
"@aztec/telemetry-client": "3.0.0-nightly.20251125",
|
|
105
105
|
"@jest/globals": "^30.0.0",
|
|
106
106
|
"@types/jest": "^30.0.0",
|
|
107
107
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -117,15 +117,15 @@
|
|
|
117
117
|
"typescript": "^5.3.3"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
121
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
122
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
123
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
124
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
125
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
126
|
-
"@aztec/noir-test-contracts.js": "3.0.0-nightly.
|
|
127
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
128
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
120
|
+
"@aztec/accounts": "3.0.0-nightly.20251125",
|
|
121
|
+
"@aztec/bb-prover": "3.0.0-nightly.20251125",
|
|
122
|
+
"@aztec/ethereum": "3.0.0-nightly.20251125",
|
|
123
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251125",
|
|
124
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251125",
|
|
125
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251125",
|
|
126
|
+
"@aztec/noir-test-contracts.js": "3.0.0-nightly.20251125",
|
|
127
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251125",
|
|
128
|
+
"@aztec/stdlib": "3.0.0-nightly.20251125"
|
|
129
129
|
},
|
|
130
130
|
"files": [
|
|
131
131
|
"dest",
|
|
@@ -77,7 +77,7 @@ export async function proverStats(opts: {
|
|
|
77
77
|
// But if we do, fetch the events for each block submitted, so we can look up their timestamp
|
|
78
78
|
const blockEvents = await getL2BlockEvents(startBlock, lastBlockNum, batchSize, debugLog, publicClient, rollup);
|
|
79
79
|
debugLog.verbose(
|
|
80
|
-
`First L2 block within range is ${blockEvents[0]?.args.
|
|
80
|
+
`First L2 block within range is ${blockEvents[0]?.args.checkpointNumber} at L1 block ${blockEvents[0]?.blockNumber}`,
|
|
81
81
|
);
|
|
82
82
|
|
|
83
83
|
// Get the timestamps for every block on every log, both for proof and block submissions
|
|
@@ -96,7 +96,7 @@ export async function proverStats(opts: {
|
|
|
96
96
|
// Map from l2 block number to the l1 block in which it was submitted
|
|
97
97
|
const l2BlockSubmissions: Record<string, bigint> = {};
|
|
98
98
|
for (const blockEvent of blockEvents) {
|
|
99
|
-
l2BlockSubmissions[blockEvent.args.
|
|
99
|
+
l2BlockSubmissions[blockEvent.args.checkpointNumber!.toString()] = blockEvent.blockNumber;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
// If we want raw logs, output them
|
|
@@ -188,14 +188,14 @@ async function getL2BlockEvents(
|
|
|
188
188
|
address: getAddress(rollup.toString()),
|
|
189
189
|
event: getAbiItem({
|
|
190
190
|
abi: RollupAbi,
|
|
191
|
-
name: '
|
|
191
|
+
name: 'CheckpointProposed',
|
|
192
192
|
}),
|
|
193
193
|
fromBlock: blockNum,
|
|
194
194
|
toBlock: end,
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
events.push(...newEvents);
|
|
198
|
-
debugLog.verbose(`Got ${newEvents.length} events querying
|
|
198
|
+
debugLog.verbose(`Got ${newEvents.length} events querying checkpoints submitted from block ${blockNum} to ${end}`);
|
|
199
199
|
blockNum += batchSize;
|
|
200
200
|
}
|
|
201
201
|
return events;
|
|
@@ -299,9 +299,9 @@ export async function debugRollup({ rpcUrls, chainId, rollupAddress, log }: Roll
|
|
|
299
299
|
const publicClient = getPublicClient({ l1RpcUrls: rpcUrls, l1ChainId: chainId });
|
|
300
300
|
const rollup = new RollupContract(publicClient, rollupAddress);
|
|
301
301
|
|
|
302
|
-
const pendingNum = await rollup.
|
|
302
|
+
const pendingNum = await rollup.getCheckpointNumber();
|
|
303
303
|
log(`Pending block num: ${pendingNum}`);
|
|
304
|
-
const provenNum = await rollup.
|
|
304
|
+
const provenNum = await rollup.getProvenCheckpointNumber();
|
|
305
305
|
log(`Proven block num: ${provenNum}`);
|
|
306
306
|
const validators = await rollup.getAttesters();
|
|
307
307
|
log(`Validators: ${validators.map(v => v.toString()).join(', ')}`);
|