@aztec/cli 1.0.0-nightly.20250615 → 1.0.0-nightly.20250617
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/infrastructure/sequencers.d.ts +1 -1
- package/dest/cmds/infrastructure/sequencers.d.ts.map +1 -1
- package/dest/cmds/infrastructure/sequencers.js +10 -0
- package/dest/cmds/l1/update_l1_validators.js +1 -1
- package/package.json +24 -24
- package/src/cmds/infrastructure/sequencers.ts +9 -1
- package/src/cmds/l1/update_l1_validators.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
2
2
|
export declare function sequencers(opts: {
|
|
3
|
-
command: 'list' | 'add' | 'remove' | 'who-next';
|
|
3
|
+
command: 'list' | 'add' | 'remove' | 'who-next' | 'flush';
|
|
4
4
|
who?: string;
|
|
5
5
|
mnemonic?: string;
|
|
6
6
|
rpcUrl: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequencers.d.ts","sourceRoot":"","sources":["../../../src/cmds/infrastructure/sequencers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAM3D,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"sequencers.d.ts","sourceRoot":"","sources":["../../../src/cmds/infrastructure/sequencers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAM3D,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC1D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,KAAK,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACrB,iBAwFA"}
|
|
@@ -66,6 +66,16 @@ export async function sequencers(opts) {
|
|
|
66
66
|
hash
|
|
67
67
|
});
|
|
68
68
|
log(`Added in tx ${hash}`);
|
|
69
|
+
} else if (command === 'flush') {
|
|
70
|
+
if (!writeableRollup) {
|
|
71
|
+
throw new Error(`Missing sequencer address`);
|
|
72
|
+
}
|
|
73
|
+
log(`Flushing staking entry queue`);
|
|
74
|
+
const hash = await writeableRollup.write.flushEntryQueue();
|
|
75
|
+
await publicClient.waitForTransactionReceipt({
|
|
76
|
+
hash
|
|
77
|
+
});
|
|
78
|
+
log(`Flushed staking entry queue in tx ${hash}`);
|
|
69
79
|
} else if (command === 'remove') {
|
|
70
80
|
if (!who || !writeableRollup) {
|
|
71
81
|
throw new Error(`Missing sequencer address`);
|
|
@@ -159,7 +159,7 @@ export async function debugRollup({ rpcUrls, chainId, rollupAddress, log }) {
|
|
|
159
159
|
const validators = await rollup.getAttesters();
|
|
160
160
|
log(`Validators: ${validators.map((v)=>v.toString()).join(', ')}`);
|
|
161
161
|
const committee = await rollup.getCurrentEpochCommittee();
|
|
162
|
-
log(`Committee: ${committee
|
|
162
|
+
log(`Committee: ${committee?.map((v)=>v.toString()).join(', ')}`);
|
|
163
163
|
const archive = await rollup.archive();
|
|
164
164
|
log(`Archive: ${archive}`);
|
|
165
165
|
const epochNum = await rollup.getEpochNumber();
|
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.20250617",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
"testEnvironment": "../../foundation/src/jest/env.mjs"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@aztec/archiver": "1.0.0-nightly.
|
|
70
|
-
"@aztec/aztec.js": "1.0.0-nightly.
|
|
71
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
72
|
-
"@aztec/entrypoints": "1.0.0-nightly.
|
|
73
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
74
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
75
|
-
"@aztec/p2p": "1.0.0-nightly.
|
|
76
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
77
|
-
"@aztec/world-state": "1.0.0-nightly.
|
|
69
|
+
"@aztec/archiver": "1.0.0-nightly.20250617",
|
|
70
|
+
"@aztec/aztec.js": "1.0.0-nightly.20250617",
|
|
71
|
+
"@aztec/constants": "1.0.0-nightly.20250617",
|
|
72
|
+
"@aztec/entrypoints": "1.0.0-nightly.20250617",
|
|
73
|
+
"@aztec/foundation": "1.0.0-nightly.20250617",
|
|
74
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250617",
|
|
75
|
+
"@aztec/p2p": "1.0.0-nightly.20250617",
|
|
76
|
+
"@aztec/stdlib": "1.0.0-nightly.20250617",
|
|
77
|
+
"@aztec/world-state": "1.0.0-nightly.20250617",
|
|
78
78
|
"@iarna/toml": "^2.2.5",
|
|
79
79
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
80
80
|
"commander": "^12.1.0",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"viem": "2.23.7"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@aztec/accounts": "1.0.0-nightly.
|
|
90
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
91
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
92
|
-
"@jest/globals": "^
|
|
89
|
+
"@aztec/accounts": "1.0.0-nightly.20250617",
|
|
90
|
+
"@aztec/ethereum": "1.0.0-nightly.20250617",
|
|
91
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250617",
|
|
92
|
+
"@jest/globals": "^30.0.0",
|
|
93
93
|
"@types/jest": "^29.5.0",
|
|
94
94
|
"@types/lodash.chunk": "^4.2.9",
|
|
95
95
|
"@types/lodash.groupby": "^4.6.9",
|
|
@@ -97,22 +97,22 @@
|
|
|
97
97
|
"@types/node": "^22.15.17",
|
|
98
98
|
"@types/semver": "^7.5.2",
|
|
99
99
|
"@types/source-map-support": "^0.5.10",
|
|
100
|
-
"jest": "^
|
|
100
|
+
"jest": "^30.0.0",
|
|
101
101
|
"jest-mock-extended": "^3.0.5",
|
|
102
102
|
"ts-jest": "^29.1.0",
|
|
103
103
|
"ts-node": "^10.9.1",
|
|
104
104
|
"typescript": "^5.3.3"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@aztec/accounts": "1.0.0-nightly.
|
|
108
|
-
"@aztec/bb-prover": "1.0.0-nightly.
|
|
109
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
110
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
111
|
-
"@aztec/noir-contracts.js": "1.0.0-nightly.
|
|
112
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
113
|
-
"@aztec/noir-test-contracts.js": "1.0.0-nightly.
|
|
114
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
115
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
107
|
+
"@aztec/accounts": "1.0.0-nightly.20250617",
|
|
108
|
+
"@aztec/bb-prover": "1.0.0-nightly.20250617",
|
|
109
|
+
"@aztec/ethereum": "1.0.0-nightly.20250617",
|
|
110
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250617",
|
|
111
|
+
"@aztec/noir-contracts.js": "1.0.0-nightly.20250617",
|
|
112
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250617",
|
|
113
|
+
"@aztec/noir-test-contracts.js": "1.0.0-nightly.20250617",
|
|
114
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250617",
|
|
115
|
+
"@aztec/stdlib": "1.0.0-nightly.20250617"
|
|
116
116
|
},
|
|
117
117
|
"files": [
|
|
118
118
|
"dest",
|
|
@@ -7,7 +7,7 @@ import { createPublicClient, createWalletClient, fallback, getContract, http } f
|
|
|
7
7
|
import { mnemonicToAccount } from 'viem/accounts';
|
|
8
8
|
|
|
9
9
|
export async function sequencers(opts: {
|
|
10
|
-
command: 'list' | 'add' | 'remove' | 'who-next';
|
|
10
|
+
command: 'list' | 'add' | 'remove' | 'who-next' | 'flush';
|
|
11
11
|
who?: string;
|
|
12
12
|
mnemonic?: string;
|
|
13
13
|
rpcUrl: string;
|
|
@@ -82,6 +82,14 @@ export async function sequencers(opts: {
|
|
|
82
82
|
const hash = await writeableRollup.write.deposit([who, who, true]);
|
|
83
83
|
await publicClient.waitForTransactionReceipt({ hash });
|
|
84
84
|
log(`Added in tx ${hash}`);
|
|
85
|
+
} else if (command === 'flush') {
|
|
86
|
+
if (!writeableRollup) {
|
|
87
|
+
throw new Error(`Missing sequencer address`);
|
|
88
|
+
}
|
|
89
|
+
log(`Flushing staking entry queue`);
|
|
90
|
+
const hash = await writeableRollup.write.flushEntryQueue();
|
|
91
|
+
await publicClient.waitForTransactionReceipt({ hash });
|
|
92
|
+
log(`Flushed staking entry queue in tx ${hash}`);
|
|
85
93
|
} else if (command === 'remove') {
|
|
86
94
|
if (!who || !writeableRollup) {
|
|
87
95
|
throw new Error(`Missing sequencer address`);
|
|
@@ -236,7 +236,7 @@ export async function debugRollup({ rpcUrls, chainId, rollupAddress, log }: Roll
|
|
|
236
236
|
const validators = await rollup.getAttesters();
|
|
237
237
|
log(`Validators: ${validators.map(v => v.toString()).join(', ')}`);
|
|
238
238
|
const committee = await rollup.getCurrentEpochCommittee();
|
|
239
|
-
log(`Committee: ${committee
|
|
239
|
+
log(`Committee: ${committee?.map(v => v.toString()).join(', ')}`);
|
|
240
240
|
const archive = await rollup.archive();
|
|
241
241
|
log(`Archive: ${archive}`);
|
|
242
242
|
const epochNum = await rollup.getEpochNumber();
|