@aztec/node-lib 4.0.0-nightly.20260112 → 4.0.0-nightly.20260114
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,10 +1,10 @@
|
|
|
1
1
|
export async function buildSnapshotMetadata(archiver, config) {
|
|
2
|
-
const [rollupAddress, l1BlockNumber,
|
|
2
|
+
const [rollupAddress, l1BlockNumber, tips] = await Promise.all([
|
|
3
3
|
archiver.getRollupAddress(),
|
|
4
4
|
archiver.getL1BlockNumber(),
|
|
5
5
|
archiver.getL2Tips()
|
|
6
6
|
]);
|
|
7
|
-
const { number: l2BlockNumber, hash: l2BlockHash } =
|
|
7
|
+
const { number: l2BlockNumber, hash: l2BlockHash } = tips.proposed;
|
|
8
8
|
if (!l2BlockHash) {
|
|
9
9
|
throw new Error(`Failed to get L2 block hash from archiver.`);
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/node-lib",
|
|
3
|
-
"version": "4.0.0-nightly.
|
|
3
|
+
"version": "4.0.0-nightly.20260114",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./actions": "./dest/actions/index.js",
|
|
@@ -57,29 +57,29 @@
|
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@aztec/archiver": "4.0.0-nightly.
|
|
61
|
-
"@aztec/bb-prover": "4.0.0-nightly.
|
|
62
|
-
"@aztec/blob-client": "4.0.0-nightly.
|
|
63
|
-
"@aztec/constants": "4.0.0-nightly.
|
|
64
|
-
"@aztec/epoch-cache": "4.0.0-nightly.
|
|
65
|
-
"@aztec/ethereum": "4.0.0-nightly.
|
|
66
|
-
"@aztec/foundation": "4.0.0-nightly.
|
|
67
|
-
"@aztec/kv-store": "4.0.0-nightly.
|
|
68
|
-
"@aztec/merkle-tree": "4.0.0-nightly.
|
|
69
|
-
"@aztec/p2p": "4.0.0-nightly.
|
|
70
|
-
"@aztec/protocol-contracts": "4.0.0-nightly.
|
|
71
|
-
"@aztec/prover-client": "4.0.0-nightly.
|
|
72
|
-
"@aztec/sequencer-client": "4.0.0-nightly.
|
|
73
|
-
"@aztec/simulator": "4.0.0-nightly.
|
|
74
|
-
"@aztec/stdlib": "4.0.0-nightly.
|
|
75
|
-
"@aztec/telemetry-client": "4.0.0-nightly.
|
|
76
|
-
"@aztec/validator-client": "4.0.0-nightly.
|
|
77
|
-
"@aztec/world-state": "4.0.0-nightly.
|
|
60
|
+
"@aztec/archiver": "4.0.0-nightly.20260114",
|
|
61
|
+
"@aztec/bb-prover": "4.0.0-nightly.20260114",
|
|
62
|
+
"@aztec/blob-client": "4.0.0-nightly.20260114",
|
|
63
|
+
"@aztec/constants": "4.0.0-nightly.20260114",
|
|
64
|
+
"@aztec/epoch-cache": "4.0.0-nightly.20260114",
|
|
65
|
+
"@aztec/ethereum": "4.0.0-nightly.20260114",
|
|
66
|
+
"@aztec/foundation": "4.0.0-nightly.20260114",
|
|
67
|
+
"@aztec/kv-store": "4.0.0-nightly.20260114",
|
|
68
|
+
"@aztec/merkle-tree": "4.0.0-nightly.20260114",
|
|
69
|
+
"@aztec/p2p": "4.0.0-nightly.20260114",
|
|
70
|
+
"@aztec/protocol-contracts": "4.0.0-nightly.20260114",
|
|
71
|
+
"@aztec/prover-client": "4.0.0-nightly.20260114",
|
|
72
|
+
"@aztec/sequencer-client": "4.0.0-nightly.20260114",
|
|
73
|
+
"@aztec/simulator": "4.0.0-nightly.20260114",
|
|
74
|
+
"@aztec/stdlib": "4.0.0-nightly.20260114",
|
|
75
|
+
"@aztec/telemetry-client": "4.0.0-nightly.20260114",
|
|
76
|
+
"@aztec/validator-client": "4.0.0-nightly.20260114",
|
|
77
|
+
"@aztec/world-state": "4.0.0-nightly.20260114",
|
|
78
78
|
"tslib": "^2.4.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@aztec/blob-lib": "4.0.0-nightly.
|
|
82
|
-
"@aztec/node-keystore": "4.0.0-nightly.
|
|
81
|
+
"@aztec/blob-lib": "4.0.0-nightly.20260114",
|
|
82
|
+
"@aztec/node-keystore": "4.0.0-nightly.20260114",
|
|
83
83
|
"@jest/globals": "^30.0.0",
|
|
84
84
|
"@types/jest": "^30.0.0",
|
|
85
85
|
"@types/node": "^22.15.17",
|
|
@@ -7,13 +7,13 @@ export async function buildSnapshotMetadata(
|
|
|
7
7
|
archiver: Archiver,
|
|
8
8
|
config: UploadSnapshotConfig,
|
|
9
9
|
): Promise<UploadSnapshotMetadata> {
|
|
10
|
-
const [rollupAddress, l1BlockNumber,
|
|
10
|
+
const [rollupAddress, l1BlockNumber, tips] = await Promise.all([
|
|
11
11
|
archiver.getRollupAddress(),
|
|
12
12
|
archiver.getL1BlockNumber(),
|
|
13
13
|
archiver.getL2Tips(),
|
|
14
14
|
] as const);
|
|
15
15
|
|
|
16
|
-
const { number: l2BlockNumber, hash: l2BlockHash } =
|
|
16
|
+
const { number: l2BlockNumber, hash: l2BlockHash } = tips.proposed;
|
|
17
17
|
if (!l2BlockHash) {
|
|
18
18
|
throw new Error(`Failed to get L2 block hash from archiver.`);
|
|
19
19
|
}
|