@aztec/stdlib 0.82.2 → 0.82.3-nightly.20250403
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/avm/avm.d.ts +4648 -1474
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +182 -109
- package/dest/avm/avm_proving_request.d.ts +1867 -498
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/block/l2_block_downloader/l2_block_stream.d.ts +10 -12
- package/dest/block/l2_block_downloader/l2_block_stream.d.ts.map +1 -1
- package/dest/block/l2_block_downloader/l2_block_stream.js +45 -11
- package/dest/config/config.d.ts +2 -2
- package/dest/config/config.d.ts.map +1 -1
- package/dest/config/config.js +4 -5
- package/dest/contract/interfaces/node-info.d.ts +2 -2
- package/dest/contract/interfaces/node-info.d.ts.map +1 -1
- package/dest/contract/interfaces/node-info.js +1 -1
- package/dest/database-version/version_manager.d.ts +4 -2
- package/dest/database-version/version_manager.d.ts.map +1 -1
- package/dest/database-version/version_manager.js +13 -9
- package/dest/epoch-helpers/index.d.ts +2 -0
- package/dest/epoch-helpers/index.d.ts.map +1 -1
- package/dest/epoch-helpers/index.js +3 -0
- package/dest/file-store/factory.d.ts +7 -0
- package/dest/file-store/factory.d.ts.map +1 -0
- package/dest/file-store/factory.js +46 -0
- package/dest/file-store/gcs.d.ts +22 -0
- package/dest/file-store/gcs.d.ts.map +1 -0
- package/dest/file-store/gcs.js +115 -0
- package/dest/file-store/http.d.ts +15 -0
- package/dest/file-store/http.d.ts.map +1 -0
- package/dest/file-store/http.js +53 -0
- package/dest/file-store/index.d.ts +3 -0
- package/dest/file-store/index.d.ts.map +1 -0
- package/dest/file-store/index.js +2 -0
- package/dest/file-store/interface.d.ts +24 -0
- package/dest/file-store/interface.d.ts.map +1 -0
- package/dest/file-store/interface.js +1 -0
- package/dest/file-store/local.d.ts +16 -0
- package/dest/file-store/local.d.ts.map +1 -0
- package/dest/file-store/local.js +40 -0
- package/dest/interfaces/aztec-node-admin.d.ts +9 -1
- package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
- package/dest/interfaces/aztec-node-admin.js +2 -1
- package/dest/interfaces/aztec-node.d.ts +3 -0
- package/dest/interfaces/aztec-node.d.ts.map +1 -1
- package/dest/interfaces/aztec-node.js +2 -0
- package/dest/interfaces/p2p.d.ts +2 -0
- package/dest/interfaces/p2p.d.ts.map +1 -1
- package/dest/interfaces/p2p.js +2 -1
- package/dest/interfaces/prover-client.d.ts +3 -3
- package/dest/interfaces/prover-client.d.ts.map +1 -1
- package/dest/interfaces/prover-client.js +6 -4
- package/dest/interfaces/prover-node.d.ts +4 -0
- package/dest/interfaces/prover-node.d.ts.map +1 -1
- package/dest/interfaces/prover-node.js +5 -1
- package/dest/interfaces/proving-job.d.ts +1866 -497
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/pxe.d.ts +7 -6
- package/dest/interfaces/pxe.d.ts.map +1 -1
- package/dest/interfaces/pxe.js +1 -1
- package/dest/interfaces/service.d.ts +3 -0
- package/dest/interfaces/service.d.ts.map +1 -1
- package/dest/interfaces/service.js +7 -0
- package/dest/interfaces/world_state.d.ts +13 -15
- package/dest/interfaces/world_state.d.ts.map +1 -1
- package/dest/keys/derivation.d.ts +1 -1
- package/dest/keys/derivation.d.ts.map +1 -1
- package/dest/keys/derivation.js +10 -2
- package/dest/logs/index.d.ts +2 -1
- package/dest/logs/index.d.ts.map +1 -1
- package/dest/logs/index.js +2 -1
- package/dest/logs/pending_tagged_log.d.ts +17 -0
- package/dest/logs/pending_tagged_log.d.ts.map +1 -0
- package/dest/logs/pending_tagged_log.js +45 -0
- package/dest/logs/{l1_payload/shared_secret_derivation.d.ts → shared_secret_derivation.d.ts} +4 -3
- package/dest/logs/shared_secret_derivation.d.ts.map +1 -0
- package/dest/logs/{l1_payload/shared_secret_derivation.js → shared_secret_derivation.js} +3 -5
- package/dest/logs/tx_scoped_l2_log.d.ts +6 -1
- package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
- package/dest/logs/tx_scoped_l2_log.js +12 -4
- package/dest/note/note.d.ts +45 -4
- package/dest/note/note.d.ts.map +1 -1
- package/dest/note/note.js +51 -4
- package/dest/proofs/proof.d.ts.map +1 -1
- package/dest/proofs/proof.js +33 -7
- package/dest/snapshots/download.d.ts +9 -0
- package/dest/snapshots/download.d.ts.map +1 -0
- package/dest/snapshots/download.js +37 -0
- package/dest/snapshots/index.d.ts +4 -0
- package/dest/snapshots/index.d.ts.map +1 -0
- package/dest/snapshots/index.js +3 -0
- package/dest/snapshots/types.d.ts +97 -0
- package/dest/snapshots/types.d.ts.map +1 -0
- package/dest/snapshots/types.js +27 -0
- package/dest/snapshots/upload.d.ts +5 -0
- package/dest/snapshots/upload.d.ts.map +1 -0
- package/dest/snapshots/upload.js +37 -0
- package/dest/tests/factories.d.ts +21 -7
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +78 -30
- package/dest/tests/mocks.d.ts +2 -1
- package/dest/tests/mocks.d.ts.map +1 -1
- package/dest/tests/mocks.js +5 -1
- package/dest/trees/merkle_tree_id.d.ts +8 -0
- package/dest/trees/merkle_tree_id.d.ts.map +1 -1
- package/dest/trees/merkle_tree_id.js +10 -0
- package/dest/trees/nullifier_leaf.d.ts +49 -15
- package/dest/trees/nullifier_leaf.d.ts.map +1 -1
- package/dest/trees/nullifier_leaf.js +45 -22
- package/dest/trees/nullifier_membership_witness.d.ts +34 -18
- package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
- package/dest/trees/protocol_contract_leaf.d.ts +0 -1
- package/dest/trees/protocol_contract_leaf.d.ts.map +1 -1
- package/dest/trees/protocol_contract_leaf.js +0 -3
- package/dest/trees/public_data_leaf.d.ts +59 -25
- package/dest/trees/public_data_leaf.d.ts.map +1 -1
- package/dest/trees/public_data_leaf.js +41 -30
- package/dest/trees/public_data_witness.d.ts +42 -24
- package/dest/trees/public_data_witness.d.ts.map +1 -1
- package/dest/trees/public_data_witness.js +6 -6
- package/dest/validators/index.d.ts +3 -0
- package/dest/validators/index.d.ts.map +1 -0
- package/dest/validators/index.js +1 -0
- package/dest/validators/schemas.d.ts +342 -0
- package/dest/validators/schemas.d.ts.map +1 -0
- package/dest/validators/schemas.js +40 -0
- package/dest/validators/types.d.ts +39 -0
- package/dest/validators/types.d.ts.map +1 -0
- package/dest/validators/types.js +1 -0
- package/dest/versioning/versioning.d.ts +1 -1
- package/dest/versioning/versioning.d.ts.map +1 -1
- package/dest/versioning/versioning.js +6 -6
- package/package.json +11 -8
- package/src/avm/avm.ts +183 -104
- package/src/block/l2_block_downloader/l2_block_stream.ts +64 -29
- package/src/config/config.ts +6 -6
- package/src/contract/interfaces/node-info.ts +3 -3
- package/src/database-version/version_manager.ts +12 -8
- package/src/epoch-helpers/index.ts +8 -0
- package/src/file-store/factory.ts +61 -0
- package/src/file-store/gcs.ts +121 -0
- package/src/file-store/http.ts +58 -0
- package/src/file-store/index.ts +2 -0
- package/src/file-store/interface.ts +19 -0
- package/src/file-store/local.ts +46 -0
- package/src/interfaces/aztec-node-admin.ts +11 -1
- package/src/interfaces/aztec-node.ts +7 -0
- package/src/interfaces/p2p.ts +4 -0
- package/src/interfaces/prover-client.ts +9 -7
- package/src/interfaces/prover-node.ts +10 -0
- package/src/interfaces/pxe.ts +14 -7
- package/src/interfaces/service.ts +13 -0
- package/src/interfaces/world_state.ts +17 -15
- package/src/keys/derivation.ts +12 -6
- package/src/logs/index.ts +2 -1
- package/src/logs/pending_tagged_log.ts +43 -0
- package/src/logs/{l1_payload/shared_secret_derivation.ts → shared_secret_derivation.ts} +4 -11
- package/src/logs/tx_scoped_l2_log.ts +13 -4
- package/src/note/note.ts +61 -5
- package/src/proofs/proof.ts +39 -5
- package/src/snapshots/download.ts +60 -0
- package/src/snapshots/index.ts +3 -0
- package/src/snapshots/types.ts +58 -0
- package/src/snapshots/upload.ts +55 -0
- package/src/tests/factories.ts +137 -53
- package/src/tests/mocks.ts +7 -0
- package/src/trees/merkle_tree_id.ts +12 -0
- package/src/trees/nullifier_leaf.ts +48 -21
- package/src/trees/protocol_contract_leaf.ts +0 -4
- package/src/trees/public_data_leaf.ts +40 -29
- package/src/trees/public_data_witness.ts +6 -6
- package/src/validators/index.ts +3 -0
- package/src/validators/schemas.ts +53 -0
- package/src/validators/types.ts +37 -0
- package/src/versioning/versioning.ts +8 -14
- package/dest/event/event.d.ts +0 -24
- package/dest/event/event.d.ts.map +0 -1
- package/dest/event/event.js +0 -13
- package/dest/event/event_metadata.d.ts +0 -38
- package/dest/event/event_metadata.d.ts.map +0 -1
- package/dest/event/event_metadata.js +0 -45
- package/dest/event/index.d.ts +0 -4
- package/dest/event/index.d.ts.map +0 -1
- package/dest/event/index.js +0 -3
- package/dest/event/l1_event_payload.d.ts +0 -52
- package/dest/event/l1_event_payload.d.ts.map +0 -1
- package/dest/event/l1_event_payload.js +0 -64
- package/dest/logs/l1_payload/encrypted_log_payload.d.ts +0 -50
- package/dest/logs/l1_payload/encrypted_log_payload.d.ts.map +0 -1
- package/dest/logs/l1_payload/encrypted_log_payload.js +0 -140
- package/dest/logs/l1_payload/encryption_util.d.ts +0 -24
- package/dest/logs/l1_payload/encryption_util.d.ts.map +0 -1
- package/dest/logs/l1_payload/encryption_util.js +0 -46
- package/dest/logs/l1_payload/index.d.ts +0 -3
- package/dest/logs/l1_payload/index.d.ts.map +0 -1
- package/dest/logs/l1_payload/index.js +0 -2
- package/dest/logs/l1_payload/payload.d.ts +0 -60
- package/dest/logs/l1_payload/payload.d.ts.map +0 -1
- package/dest/logs/l1_payload/payload.js +0 -61
- package/dest/logs/l1_payload/shared_secret_derivation.d.ts.map +0 -1
- package/src/event/event.ts +0 -16
- package/src/event/event_metadata.ts +0 -56
- package/src/event/index.ts +0 -3
- package/src/event/l1_event_payload.ts +0 -87
- package/src/logs/l1_payload/encrypted_log_payload.ts +0 -202
- package/src/logs/l1_payload/encryption_util.ts +0 -54
- package/src/logs/l1_payload/index.ts +0 -2
- package/src/logs/l1_payload/payload.ts +0 -73
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ValidatorStatusInSlotSchema: z.ZodEnum<["block-mined", "block-proposed", "block-missed", "attestation-sent", "attestation-missed"]>;
|
|
3
|
+
export declare const ValidatorStatusHistorySchema: z.ZodArray<z.ZodObject<{
|
|
4
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
5
|
+
status: z.ZodEnum<["block-mined", "block-proposed", "block-missed", "attestation-sent", "attestation-missed"]>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
8
|
+
slot: bigint;
|
|
9
|
+
}, {
|
|
10
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
11
|
+
slot: string | number | bigint;
|
|
12
|
+
}>, "many">;
|
|
13
|
+
export declare const ValidatorStatusHistorySchemaArray: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
14
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
15
|
+
status: z.ZodEnum<["block-mined", "block-proposed", "block-missed", "attestation-sent", "attestation-missed"]>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
18
|
+
slot: bigint;
|
|
19
|
+
}, {
|
|
20
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
21
|
+
slot: string | number | bigint;
|
|
22
|
+
}>, "many">, "many">;
|
|
23
|
+
export declare const ValidatorStatusHistorySchemaMap: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
24
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
25
|
+
status: z.ZodEnum<["block-mined", "block-proposed", "block-missed", "attestation-sent", "attestation-missed"]>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
28
|
+
slot: bigint;
|
|
29
|
+
}, {
|
|
30
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
31
|
+
slot: string | number | bigint;
|
|
32
|
+
}>, "many">, "many">>;
|
|
33
|
+
export declare const ValidatorStatsSchema: z.ZodObject<{
|
|
34
|
+
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
35
|
+
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
37
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
38
|
+
date: z.ZodString;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
date: string;
|
|
41
|
+
slot: bigint;
|
|
42
|
+
timestamp: bigint;
|
|
43
|
+
}, {
|
|
44
|
+
date: string;
|
|
45
|
+
slot: string | number | bigint;
|
|
46
|
+
timestamp: string | number | bigint;
|
|
47
|
+
}>>;
|
|
48
|
+
lastAttestation: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
50
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
51
|
+
date: z.ZodString;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
date: string;
|
|
54
|
+
slot: bigint;
|
|
55
|
+
timestamp: bigint;
|
|
56
|
+
}, {
|
|
57
|
+
date: string;
|
|
58
|
+
slot: string | number | bigint;
|
|
59
|
+
timestamp: string | number | bigint;
|
|
60
|
+
}>>;
|
|
61
|
+
totalSlots: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
62
|
+
missedProposals: z.ZodObject<{
|
|
63
|
+
currentStreak: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
64
|
+
rate: z.ZodNumber;
|
|
65
|
+
count: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
currentStreak: number;
|
|
68
|
+
rate: number;
|
|
69
|
+
count: number;
|
|
70
|
+
}, {
|
|
71
|
+
currentStreak: string | number | bigint;
|
|
72
|
+
rate: number;
|
|
73
|
+
count: string | number | bigint;
|
|
74
|
+
}>;
|
|
75
|
+
missedAttestations: z.ZodObject<{
|
|
76
|
+
currentStreak: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
77
|
+
rate: z.ZodNumber;
|
|
78
|
+
count: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
currentStreak: number;
|
|
81
|
+
rate: number;
|
|
82
|
+
count: number;
|
|
83
|
+
}, {
|
|
84
|
+
currentStreak: string | number | bigint;
|
|
85
|
+
rate: number;
|
|
86
|
+
count: string | number | bigint;
|
|
87
|
+
}>;
|
|
88
|
+
history: z.ZodArray<z.ZodObject<{
|
|
89
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
90
|
+
status: z.ZodEnum<["block-mined", "block-proposed", "block-missed", "attestation-sent", "attestation-missed"]>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
93
|
+
slot: bigint;
|
|
94
|
+
}, {
|
|
95
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
96
|
+
slot: string | number | bigint;
|
|
97
|
+
}>, "many">;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
address: import("@aztec/foundation/schemas").EthAddress;
|
|
100
|
+
totalSlots: number;
|
|
101
|
+
missedProposals: {
|
|
102
|
+
currentStreak: number;
|
|
103
|
+
rate: number;
|
|
104
|
+
count: number;
|
|
105
|
+
};
|
|
106
|
+
missedAttestations: {
|
|
107
|
+
currentStreak: number;
|
|
108
|
+
rate: number;
|
|
109
|
+
count: number;
|
|
110
|
+
};
|
|
111
|
+
history: {
|
|
112
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
113
|
+
slot: bigint;
|
|
114
|
+
}[];
|
|
115
|
+
lastProposal?: {
|
|
116
|
+
date: string;
|
|
117
|
+
slot: bigint;
|
|
118
|
+
timestamp: bigint;
|
|
119
|
+
} | undefined;
|
|
120
|
+
lastAttestation?: {
|
|
121
|
+
date: string;
|
|
122
|
+
slot: bigint;
|
|
123
|
+
timestamp: bigint;
|
|
124
|
+
} | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
address: string;
|
|
127
|
+
totalSlots: string | number | bigint;
|
|
128
|
+
missedProposals: {
|
|
129
|
+
currentStreak: string | number | bigint;
|
|
130
|
+
rate: number;
|
|
131
|
+
count: string | number | bigint;
|
|
132
|
+
};
|
|
133
|
+
missedAttestations: {
|
|
134
|
+
currentStreak: string | number | bigint;
|
|
135
|
+
rate: number;
|
|
136
|
+
count: string | number | bigint;
|
|
137
|
+
};
|
|
138
|
+
history: {
|
|
139
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
140
|
+
slot: string | number | bigint;
|
|
141
|
+
}[];
|
|
142
|
+
lastProposal?: {
|
|
143
|
+
date: string;
|
|
144
|
+
slot: string | number | bigint;
|
|
145
|
+
timestamp: string | number | bigint;
|
|
146
|
+
} | undefined;
|
|
147
|
+
lastAttestation?: {
|
|
148
|
+
date: string;
|
|
149
|
+
slot: string | number | bigint;
|
|
150
|
+
timestamp: string | number | bigint;
|
|
151
|
+
} | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
export declare const ValidatorsStatsSchema: z.ZodObject<{
|
|
154
|
+
stats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
|
+
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
156
|
+
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
158
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
159
|
+
date: z.ZodString;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
date: string;
|
|
162
|
+
slot: bigint;
|
|
163
|
+
timestamp: bigint;
|
|
164
|
+
}, {
|
|
165
|
+
date: string;
|
|
166
|
+
slot: string | number | bigint;
|
|
167
|
+
timestamp: string | number | bigint;
|
|
168
|
+
}>>;
|
|
169
|
+
lastAttestation: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
171
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
172
|
+
date: z.ZodString;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
date: string;
|
|
175
|
+
slot: bigint;
|
|
176
|
+
timestamp: bigint;
|
|
177
|
+
}, {
|
|
178
|
+
date: string;
|
|
179
|
+
slot: string | number | bigint;
|
|
180
|
+
timestamp: string | number | bigint;
|
|
181
|
+
}>>;
|
|
182
|
+
totalSlots: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
183
|
+
missedProposals: z.ZodObject<{
|
|
184
|
+
currentStreak: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
185
|
+
rate: z.ZodNumber;
|
|
186
|
+
count: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
currentStreak: number;
|
|
189
|
+
rate: number;
|
|
190
|
+
count: number;
|
|
191
|
+
}, {
|
|
192
|
+
currentStreak: string | number | bigint;
|
|
193
|
+
rate: number;
|
|
194
|
+
count: string | number | bigint;
|
|
195
|
+
}>;
|
|
196
|
+
missedAttestations: z.ZodObject<{
|
|
197
|
+
currentStreak: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
198
|
+
rate: z.ZodNumber;
|
|
199
|
+
count: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
currentStreak: number;
|
|
202
|
+
rate: number;
|
|
203
|
+
count: number;
|
|
204
|
+
}, {
|
|
205
|
+
currentStreak: string | number | bigint;
|
|
206
|
+
rate: number;
|
|
207
|
+
count: string | number | bigint;
|
|
208
|
+
}>;
|
|
209
|
+
history: z.ZodArray<z.ZodObject<{
|
|
210
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
211
|
+
status: z.ZodEnum<["block-mined", "block-proposed", "block-missed", "attestation-sent", "attestation-missed"]>;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
214
|
+
slot: bigint;
|
|
215
|
+
}, {
|
|
216
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
217
|
+
slot: string | number | bigint;
|
|
218
|
+
}>, "many">;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
address: import("@aztec/foundation/schemas").EthAddress;
|
|
221
|
+
totalSlots: number;
|
|
222
|
+
missedProposals: {
|
|
223
|
+
currentStreak: number;
|
|
224
|
+
rate: number;
|
|
225
|
+
count: number;
|
|
226
|
+
};
|
|
227
|
+
missedAttestations: {
|
|
228
|
+
currentStreak: number;
|
|
229
|
+
rate: number;
|
|
230
|
+
count: number;
|
|
231
|
+
};
|
|
232
|
+
history: {
|
|
233
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
234
|
+
slot: bigint;
|
|
235
|
+
}[];
|
|
236
|
+
lastProposal?: {
|
|
237
|
+
date: string;
|
|
238
|
+
slot: bigint;
|
|
239
|
+
timestamp: bigint;
|
|
240
|
+
} | undefined;
|
|
241
|
+
lastAttestation?: {
|
|
242
|
+
date: string;
|
|
243
|
+
slot: bigint;
|
|
244
|
+
timestamp: bigint;
|
|
245
|
+
} | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
address: string;
|
|
248
|
+
totalSlots: string | number | bigint;
|
|
249
|
+
missedProposals: {
|
|
250
|
+
currentStreak: string | number | bigint;
|
|
251
|
+
rate: number;
|
|
252
|
+
count: string | number | bigint;
|
|
253
|
+
};
|
|
254
|
+
missedAttestations: {
|
|
255
|
+
currentStreak: string | number | bigint;
|
|
256
|
+
rate: number;
|
|
257
|
+
count: string | number | bigint;
|
|
258
|
+
};
|
|
259
|
+
history: {
|
|
260
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
261
|
+
slot: string | number | bigint;
|
|
262
|
+
}[];
|
|
263
|
+
lastProposal?: {
|
|
264
|
+
date: string;
|
|
265
|
+
slot: string | number | bigint;
|
|
266
|
+
timestamp: string | number | bigint;
|
|
267
|
+
} | undefined;
|
|
268
|
+
lastAttestation?: {
|
|
269
|
+
date: string;
|
|
270
|
+
slot: string | number | bigint;
|
|
271
|
+
timestamp: string | number | bigint;
|
|
272
|
+
} | undefined;
|
|
273
|
+
}>>;
|
|
274
|
+
lastProcessedSlot: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>>;
|
|
275
|
+
initialSlot: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>>;
|
|
276
|
+
slotWindow: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
stats: Record<string, {
|
|
279
|
+
address: import("@aztec/foundation/schemas").EthAddress;
|
|
280
|
+
totalSlots: number;
|
|
281
|
+
missedProposals: {
|
|
282
|
+
currentStreak: number;
|
|
283
|
+
rate: number;
|
|
284
|
+
count: number;
|
|
285
|
+
};
|
|
286
|
+
missedAttestations: {
|
|
287
|
+
currentStreak: number;
|
|
288
|
+
rate: number;
|
|
289
|
+
count: number;
|
|
290
|
+
};
|
|
291
|
+
history: {
|
|
292
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
293
|
+
slot: bigint;
|
|
294
|
+
}[];
|
|
295
|
+
lastProposal?: {
|
|
296
|
+
date: string;
|
|
297
|
+
slot: bigint;
|
|
298
|
+
timestamp: bigint;
|
|
299
|
+
} | undefined;
|
|
300
|
+
lastAttestation?: {
|
|
301
|
+
date: string;
|
|
302
|
+
slot: bigint;
|
|
303
|
+
timestamp: bigint;
|
|
304
|
+
} | undefined;
|
|
305
|
+
}>;
|
|
306
|
+
slotWindow: number;
|
|
307
|
+
lastProcessedSlot?: bigint | undefined;
|
|
308
|
+
initialSlot?: bigint | undefined;
|
|
309
|
+
}, {
|
|
310
|
+
stats: Record<string, {
|
|
311
|
+
address: string;
|
|
312
|
+
totalSlots: string | number | bigint;
|
|
313
|
+
missedProposals: {
|
|
314
|
+
currentStreak: string | number | bigint;
|
|
315
|
+
rate: number;
|
|
316
|
+
count: string | number | bigint;
|
|
317
|
+
};
|
|
318
|
+
missedAttestations: {
|
|
319
|
+
currentStreak: string | number | bigint;
|
|
320
|
+
rate: number;
|
|
321
|
+
count: string | number | bigint;
|
|
322
|
+
};
|
|
323
|
+
history: {
|
|
324
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
325
|
+
slot: string | number | bigint;
|
|
326
|
+
}[];
|
|
327
|
+
lastProposal?: {
|
|
328
|
+
date: string;
|
|
329
|
+
slot: string | number | bigint;
|
|
330
|
+
timestamp: string | number | bigint;
|
|
331
|
+
} | undefined;
|
|
332
|
+
lastAttestation?: {
|
|
333
|
+
date: string;
|
|
334
|
+
slot: string | number | bigint;
|
|
335
|
+
timestamp: string | number | bigint;
|
|
336
|
+
} | undefined;
|
|
337
|
+
}>;
|
|
338
|
+
slotWindow: string | number | bigint;
|
|
339
|
+
lastProcessedSlot?: string | number | bigint | undefined;
|
|
340
|
+
initialSlot?: string | number | bigint | undefined;
|
|
341
|
+
}>;
|
|
342
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/validators/schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,2BAA2B,wGAME,CAAC;AAE3C,eAAO,MAAM,4BAA4B;;;;;;;;;WAKC,CAAC;AAE3C,eAAO,MAAM,iCAAiC;;;;;;;;;oBAAwC,CAAC;AAEvF,eAAO,MAAM,+BAA+B;;;;;;;;;qBAA8C,CAAC;AAc3F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQE,CAAC;AAEpC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKE,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { schemas } from '@aztec/foundation/schemas';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const ValidatorStatusInSlotSchema = z.enum([
|
|
4
|
+
'block-mined',
|
|
5
|
+
'block-proposed',
|
|
6
|
+
'block-missed',
|
|
7
|
+
'attestation-sent',
|
|
8
|
+
'attestation-missed'
|
|
9
|
+
]);
|
|
10
|
+
export const ValidatorStatusHistorySchema = z.array(z.object({
|
|
11
|
+
slot: schemas.BigInt,
|
|
12
|
+
status: ValidatorStatusInSlotSchema
|
|
13
|
+
}));
|
|
14
|
+
export const ValidatorStatusHistorySchemaArray = z.array(ValidatorStatusHistorySchema);
|
|
15
|
+
export const ValidatorStatusHistorySchemaMap = z.record(ValidatorStatusHistorySchemaArray);
|
|
16
|
+
const ValidatorTimeStatSchema = z.object({
|
|
17
|
+
timestamp: schemas.BigInt,
|
|
18
|
+
slot: schemas.BigInt,
|
|
19
|
+
date: z.string()
|
|
20
|
+
});
|
|
21
|
+
const ValidatorFilteredHistorySchema = z.object({
|
|
22
|
+
currentStreak: schemas.Integer,
|
|
23
|
+
rate: z.number(),
|
|
24
|
+
count: schemas.Integer
|
|
25
|
+
});
|
|
26
|
+
export const ValidatorStatsSchema = z.object({
|
|
27
|
+
address: schemas.EthAddress,
|
|
28
|
+
lastProposal: ValidatorTimeStatSchema.optional(),
|
|
29
|
+
lastAttestation: ValidatorTimeStatSchema.optional(),
|
|
30
|
+
totalSlots: schemas.Integer,
|
|
31
|
+
missedProposals: ValidatorFilteredHistorySchema,
|
|
32
|
+
missedAttestations: ValidatorFilteredHistorySchema,
|
|
33
|
+
history: ValidatorStatusHistorySchema
|
|
34
|
+
});
|
|
35
|
+
export const ValidatorsStatsSchema = z.object({
|
|
36
|
+
stats: z.record(ValidatorStatsSchema),
|
|
37
|
+
lastProcessedSlot: schemas.BigInt.optional(),
|
|
38
|
+
initialSlot: schemas.BigInt.optional(),
|
|
39
|
+
slotWindow: schemas.Integer
|
|
40
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { EthAddress } from '@aztec/foundation/eth-address';
|
|
2
|
+
export type ValidatorStatusType = 'block' | 'attestation';
|
|
3
|
+
export type ValidatorStatusInSlot = 'block-mined' | 'block-proposed' | 'block-missed' | 'attestation-sent' | 'attestation-missed';
|
|
4
|
+
export type ValidatorStatusHistory = {
|
|
5
|
+
slot: bigint;
|
|
6
|
+
status: ValidatorStatusInSlot;
|
|
7
|
+
}[];
|
|
8
|
+
export type ValidatorStats = {
|
|
9
|
+
address: EthAddress;
|
|
10
|
+
lastProposal?: {
|
|
11
|
+
timestamp: bigint;
|
|
12
|
+
slot: bigint;
|
|
13
|
+
date: string;
|
|
14
|
+
};
|
|
15
|
+
lastAttestation?: {
|
|
16
|
+
timestamp: bigint;
|
|
17
|
+
slot: bigint;
|
|
18
|
+
date: string;
|
|
19
|
+
};
|
|
20
|
+
totalSlots: number;
|
|
21
|
+
missedProposals: {
|
|
22
|
+
currentStreak: number;
|
|
23
|
+
rate: number;
|
|
24
|
+
count: number;
|
|
25
|
+
};
|
|
26
|
+
missedAttestations: {
|
|
27
|
+
currentStreak: number;
|
|
28
|
+
rate: number;
|
|
29
|
+
count: number;
|
|
30
|
+
};
|
|
31
|
+
history: ValidatorStatusHistory;
|
|
32
|
+
};
|
|
33
|
+
export type ValidatorsStats = {
|
|
34
|
+
stats: Record<string, ValidatorStats>;
|
|
35
|
+
lastProcessedSlot?: bigint;
|
|
36
|
+
initialSlot?: bigint;
|
|
37
|
+
slotWindow: number;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/validators/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,aAAa,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAC7B,aAAa,GACb,gBAAgB,GAChB,cAAc,GACd,kBAAkB,GAClB,oBAAoB,CAAC;AAEzB,MAAM,MAAM,sBAAsB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,qBAAqB,CAAA;CAAE,EAAE,CAAC;AAEvF,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACjE,eAAe,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,kBAAkB,EAAE;QAClB,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE,sBAAsB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -6,7 +6,7 @@ import type { ChainConfig } from '../config/config.js';
|
|
|
6
6
|
export type ComponentsVersions = {
|
|
7
7
|
l1ChainId: number;
|
|
8
8
|
l1RollupAddress: EthAddress;
|
|
9
|
-
|
|
9
|
+
rollupVersion: number;
|
|
10
10
|
l2ProtocolContractsTreeRoot: string;
|
|
11
11
|
l2CircuitsVkTreeRoot: string;
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../../src/versioning/versioning.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAGnD,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKvD,8IAA8I;AAC9I,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAIlB,eAAe,EAAE,UAAU,CAAC;IAC5B,
|
|
1
|
+
{"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../../src/versioning/versioning.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAGnD,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKvD,8IAA8I;AAC9I,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAIlB,eAAe,EAAE,UAAU,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,2BAA2B,EAAE,MAAM,CAAC;IACpC,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,qDAAqD;AACrD,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,WAAW,EACnB,2BAA2B,EAAE,MAAM,GAAG,EAAE,EACxC,oBAAoB,EAAE,MAAM,GAAG,EAAE,GAChC,kBAAkB,CAQpB;AAED,qGAAqG;AACrG,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM,CAiB9E;AAED,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAIzD;AAED,iGAAiG;AACjG,wBAAgB,+BAA+B,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,QA6B/F;AAED,8EAA8E;AAC9E,wBAAgB,qCAAqC,CACnD,QAAQ,EAAE,OAAO,CAAC,kBAAkB,CAAC,EACrC,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC,QAiBpC;AAED,4EAA4E;AAC5E,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,OAAO,CAAC,kBAAkB,CAAC,SACxD,IAAI,OAAO,QAAQ,MAAM,QAAQ,IAAI,CAAC,mBAS1D;AAED,0FAA0F;AAC1F,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,OAAO,CAAC,kBAAkB,CAAC,iBAC3D;IAAE,OAAO,EAAE;QAAE,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;KAAE,CAAA;CAAE,mBAYzF"}
|
|
@@ -3,7 +3,7 @@ import { jsonStringify } from '@aztec/foundation/json-rpc';
|
|
|
3
3
|
return {
|
|
4
4
|
l1ChainId: config.l1ChainId,
|
|
5
5
|
l1RollupAddress: config.l1Contracts?.rollupAddress,
|
|
6
|
-
|
|
6
|
+
rollupVersion: config.rollupVersion,
|
|
7
7
|
l2ProtocolContractsTreeRoot: l2ProtocolContractsTreeRoot.toString(),
|
|
8
8
|
l2CircuitsVkTreeRoot: l2CircuitsVkTreeRoot.toString()
|
|
9
9
|
};
|
|
@@ -16,7 +16,7 @@ import { jsonStringify } from '@aztec/foundation/json-rpc';
|
|
|
16
16
|
'00',
|
|
17
17
|
versions.l1ChainId,
|
|
18
18
|
versions.l1RollupAddress.toString().slice(2, 10),
|
|
19
|
-
versions.
|
|
19
|
+
versions.rollupVersion,
|
|
20
20
|
versions.l2ProtocolContractsTreeRoot.toString().slice(2, 10),
|
|
21
21
|
versions.l2CircuitsVkTreeRoot.toString().slice(2, 10)
|
|
22
22
|
].join('-');
|
|
@@ -28,7 +28,7 @@ export class ComponentsVersionsError extends Error {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
/** Checks if the compressed string matches against the expected versions. Throws on mismatch. */ export function checkCompressedComponentVersion(compressed, expected) {
|
|
31
|
-
const [versionVersion, l1ChainId, l1RollupAddress,
|
|
31
|
+
const [versionVersion, l1ChainId, l1RollupAddress, rollupVersion, l2ProtocolContractsTreeRoot, l2CircuitsVkTreeRoot] = compressed.split('-');
|
|
32
32
|
if (versionVersion !== '00') {
|
|
33
33
|
throw new ComponentsVersionsError('version', '00', versionVersion);
|
|
34
34
|
}
|
|
@@ -38,8 +38,8 @@ export class ComponentsVersionsError extends Error {
|
|
|
38
38
|
if (l1RollupAddress !== expected.l1RollupAddress.toString().slice(2, 10)) {
|
|
39
39
|
throw new ComponentsVersionsError(`L1 address`, expected.l1RollupAddress.toString(), l1RollupAddress);
|
|
40
40
|
}
|
|
41
|
-
if (
|
|
42
|
-
throw new ComponentsVersionsError('L2 chain version', expected.
|
|
41
|
+
if (rollupVersion !== expected.rollupVersion.toString()) {
|
|
42
|
+
throw new ComponentsVersionsError('L2 chain version', expected.rollupVersion.toString(), rollupVersion);
|
|
43
43
|
}
|
|
44
44
|
if (l2ProtocolContractsTreeRoot !== expected.l2ProtocolContractsTreeRoot.toString().slice(2, 10)) {
|
|
45
45
|
throw new ComponentsVersionsError(`L2 protocol contracts vk tree root`, expected.l2ProtocolContractsTreeRoot.toString(), l2ProtocolContractsTreeRoot);
|
|
@@ -54,7 +54,7 @@ export class ComponentsVersionsError extends Error {
|
|
|
54
54
|
'l2ProtocolContractsTreeRoot',
|
|
55
55
|
'l2CircuitsVkTreeRoot',
|
|
56
56
|
'l1ChainId',
|
|
57
|
-
'
|
|
57
|
+
'rollupVersion'
|
|
58
58
|
]){
|
|
59
59
|
const actualValue = actual[key];
|
|
60
60
|
const expectedValue = expected[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.3-nightly.20250403",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"./tx": "./dest/tx/index.js",
|
|
35
35
|
"./fees": "./dest/fees/index.js",
|
|
36
36
|
"./note": "./dest/note/index.js",
|
|
37
|
-
"./event": "./dest/event/index.js",
|
|
38
37
|
"./p2p": "./dest/p2p/index.js",
|
|
39
38
|
"./errors": "./dest/errors/index.js",
|
|
40
39
|
"./stats": "./dest/stats/index.js",
|
|
@@ -46,7 +45,10 @@
|
|
|
46
45
|
"./epoch-helpers": "./dest/epoch-helpers/index.js",
|
|
47
46
|
"./config": "./dest/config/index.js",
|
|
48
47
|
"./testing/jest": "./dest/tests/jest.js",
|
|
49
|
-
"./database-version": "./dest/database-version/index.js"
|
|
48
|
+
"./database-version": "./dest/database-version/index.js",
|
|
49
|
+
"./validators": "./dest/validators/index.js",
|
|
50
|
+
"./file-store": "./dest/file-store/index.js",
|
|
51
|
+
"./snapshots": "./dest/snapshots/index.js"
|
|
50
52
|
},
|
|
51
53
|
"typedocOptions": {
|
|
52
54
|
"entryPoints": [
|
|
@@ -65,11 +67,12 @@
|
|
|
65
67
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
66
68
|
},
|
|
67
69
|
"dependencies": {
|
|
68
|
-
"@aztec/bb.js": "0.82.
|
|
69
|
-
"@aztec/blob-lib": "0.82.
|
|
70
|
-
"@aztec/constants": "0.82.
|
|
71
|
-
"@aztec/ethereum": "0.82.
|
|
72
|
-
"@aztec/foundation": "0.82.
|
|
70
|
+
"@aztec/bb.js": "0.82.3-nightly.20250403",
|
|
71
|
+
"@aztec/blob-lib": "0.82.3-nightly.20250403",
|
|
72
|
+
"@aztec/constants": "0.82.3-nightly.20250403",
|
|
73
|
+
"@aztec/ethereum": "0.82.3-nightly.20250403",
|
|
74
|
+
"@aztec/foundation": "0.82.3-nightly.20250403",
|
|
75
|
+
"@google-cloud/storage": "^7.15.0",
|
|
73
76
|
"lodash.chunk": "^4.2.0",
|
|
74
77
|
"lodash.isequal": "^4.5.0",
|
|
75
78
|
"lodash.omit": "^4.5.0",
|