@aztec/stdlib 2.0.0-nightly.20250818 → 2.0.0-nightly.20250819
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/interfaces/aztec-node.d.ts +4 -1
- package/dest/interfaces/aztec-node.d.ts.map +1 -1
- package/dest/interfaces/aztec-node.js +2 -1
- package/dest/p2p/topic_type.d.ts +1 -0
- package/dest/p2p/topic_type.d.ts.map +1 -1
- package/dest/p2p/topic_type.js +7 -0
- package/dest/tx/profiling.d.ts +12 -12
- package/dest/tx/proven_tx.d.ts +5 -5
- package/dest/validators/schemas.d.ts +212 -0
- package/dest/validators/schemas.d.ts.map +1 -1
- package/dest/validators/schemas.js +11 -0
- package/dest/validators/types.d.ts +11 -0
- package/dest/validators/types.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/interfaces/aztec-node.ts +15 -2
- package/src/p2p/topic_type.ts +8 -0
- package/src/validators/schemas.ts +21 -1
- package/src/validators/types.ts +8 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ARCHIVE_HEIGHT, L1_TO_L2_MSG_TREE_HEIGHT, NOTE_HASH_TREE_HEIGHT, NULLIFIER_TREE_HEIGHT, PUBLIC_DATA_TREE_HEIGHT } from '@aztec/constants';
|
|
2
2
|
import { type L1ContractAddresses } from '@aztec/ethereum/l1-contract-addresses';
|
|
3
|
+
import type { EthAddress } from '@aztec/foundation/eth-address';
|
|
3
4
|
import type { Fr } from '@aztec/foundation/fields';
|
|
4
5
|
import { MembershipWitness, SiblingPath } from '@aztec/foundation/trees';
|
|
5
6
|
import type { AztecAddress } from '../aztec-address/index.js';
|
|
@@ -17,7 +18,7 @@ import { MerkleTreeId } from '../trees/merkle_tree_id.js';
|
|
|
17
18
|
import { NullifierMembershipWitness } from '../trees/nullifier_membership_witness.js';
|
|
18
19
|
import { PublicDataWitness } from '../trees/public_data_witness.js';
|
|
19
20
|
import { BlockHeader, type IndexedTxEffect, PublicSimulationOutput, Tx, TxHash, TxReceipt, type TxValidationResult } from '../tx/index.js';
|
|
20
|
-
import type { ValidatorsStats } from '../validators/types.js';
|
|
21
|
+
import type { SingleValidatorStats, ValidatorsStats } from '../validators/types.js';
|
|
21
22
|
import { type ComponentsVersions } from '../versioning/index.js';
|
|
22
23
|
import { type GetContractClassLogsResponse, type GetPublicLogsResponse } from './get_logs_response.js';
|
|
23
24
|
import { type WorldStateSyncStatus } from './world_state.js';
|
|
@@ -287,6 +288,8 @@ export interface AztecNode extends Pick<L2BlockSource, 'getBlocks' | 'getPublish
|
|
|
287
288
|
getBlockHeader(blockNumber?: L2BlockNumber): Promise<BlockHeader | undefined>;
|
|
288
289
|
/** Returns stats for validators if enabled. */
|
|
289
290
|
getValidatorsStats(): Promise<ValidatorsStats>;
|
|
291
|
+
/** Returns stats for a single validator if enabled. */
|
|
292
|
+
getValidatorStats(validatorAddress: EthAddress, fromSlot?: bigint, toSlot?: bigint): Promise<SingleValidatorStats | undefined>;
|
|
290
293
|
/**
|
|
291
294
|
* Simulates the public part of a transaction with the current state.
|
|
292
295
|
* This currently just checks that the transaction execution succeeds.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aztec-node.d.ts","sourceRoot":"","sources":["../../src/interfaces/aztec-node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAEd,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,mBAAmB,EAA6B,MAAM,uCAAuC,CAAC;AAC5G,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,OAAO,EAAoB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE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AC;IAE3F;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,kBAAkB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAEnH;;;OAGG;IACH,gBAAgB,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IAEnE;;;OAGG;IACH,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAAC,CAAC;IAErF;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C;AAED,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAInC,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,SAAS,CAiKtD,CAAC;AAEF,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,OAAO,CAAC,kBAAkB,CAAM,EAC1C,KAAK,kEAA8B,EACnC,aAAa,SAAI,GAChB,SAAS,CAOX"}
|
|
@@ -18,7 +18,7 @@ import { MerkleTreeId } from '../trees/merkle_tree_id.js';
|
|
|
18
18
|
import { NullifierMembershipWitness } from '../trees/nullifier_membership_witness.js';
|
|
19
19
|
import { PublicDataWitness } from '../trees/public_data_witness.js';
|
|
20
20
|
import { BlockHeader, PublicSimulationOutput, Tx, TxHash, TxReceipt, TxValidationResultSchema, indexedTxSchema } from '../tx/index.js';
|
|
21
|
-
import { ValidatorsStatsSchema } from '../validators/schemas.js';
|
|
21
|
+
import { SingleValidatorStatsSchema, ValidatorsStatsSchema } from '../validators/schemas.js';
|
|
22
22
|
import { getVersioningResponseHandler } from '../versioning/index.js';
|
|
23
23
|
import { MAX_RPC_BLOCKS_LEN, MAX_RPC_LEN, MAX_RPC_TXS_LEN } from './api_limit.js';
|
|
24
24
|
import { GetContractClassLogsResponseSchema, GetPublicLogsResponseSchema } from './get_logs_response.js';
|
|
@@ -73,6 +73,7 @@ export const AztecNodeApiSchema = {
|
|
|
73
73
|
getPublicStorageAt: z.function().args(L2BlockNumberSchema, schemas.AztecAddress, schemas.Fr).returns(schemas.Fr),
|
|
74
74
|
getBlockHeader: z.function().args(optional(L2BlockNumberSchema)).returns(BlockHeader.schema.optional()),
|
|
75
75
|
getValidatorsStats: z.function().returns(ValidatorsStatsSchema),
|
|
76
|
+
getValidatorStats: z.function().args(schemas.EthAddress, optional(schemas.BigInt), optional(schemas.BigInt)).returns(SingleValidatorStatsSchema.optional()),
|
|
76
77
|
simulatePublicCalls: z.function().args(Tx.schema, optional(z.boolean())).returns(PublicSimulationOutput.schema),
|
|
77
78
|
isValidTx: z.function().args(Tx.schema, optional(z.object({
|
|
78
79
|
isSimulation: optional(z.boolean()),
|
package/dest/p2p/topic_type.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare enum TopicType {
|
|
|
15
15
|
block_attestation = "block_attestation"
|
|
16
16
|
}
|
|
17
17
|
export declare function getTopicTypeForClientType(clientType: P2PClientType): TopicType[];
|
|
18
|
+
export declare function getTopicsForClientAndConfig(clientType: P2PClientType, disableTransactions: boolean): TopicType[];
|
|
18
19
|
/**
|
|
19
20
|
* Convert the topic string into a set of labels
|
|
20
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topic_type.d.ts","sourceRoot":"","sources":["../../src/p2p/topic_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAE9E;AAED;;GAEG;AACH,oBAAY,SAAS;IACnB,EAAE,OAAO;IACT,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;CACxC;AAED,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,aAAa,eASlE;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,MAAM,uBAO9D"}
|
|
1
|
+
{"version":3,"file":"topic_type.d.ts","sourceRoot":"","sources":["../../src/p2p/topic_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAE9E;AAED;;GAEG;AACH,oBAAY,SAAS;IACnB,EAAE,OAAO;IACT,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;CACxC;AAED,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,aAAa,eASlE;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,aAAa,EAAE,mBAAmB,EAAE,OAAO,eAMlG;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,MAAM,uBAO9D"}
|
package/dest/p2p/topic_type.js
CHANGED
|
@@ -30,6 +30,13 @@ export function getTopicTypeForClientType(clientType) {
|
|
|
30
30
|
];
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
export function getTopicsForClientAndConfig(clientType, disableTransactions) {
|
|
34
|
+
const topics = getTopicTypeForClientType(clientType);
|
|
35
|
+
if (disableTransactions) {
|
|
36
|
+
return topics.filter((topic)=>topic !== "tx");
|
|
37
|
+
}
|
|
38
|
+
return topics;
|
|
39
|
+
}
|
|
33
40
|
/**
|
|
34
41
|
* Convert the topic string into a set of labels
|
|
35
42
|
*
|
package/dest/tx/profiling.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare const ProvingTimingsSchema: z.ZodObject<{
|
|
|
49
49
|
unaccounted: z.ZodNumber;
|
|
50
50
|
total: z.ZodNumber;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
total: number;
|
|
52
53
|
perFunction: {
|
|
53
54
|
functionName: string;
|
|
54
55
|
time: number;
|
|
@@ -57,10 +58,10 @@ export declare const ProvingTimingsSchema: z.ZodObject<{
|
|
|
57
58
|
}> | undefined;
|
|
58
59
|
}[];
|
|
59
60
|
unaccounted: number;
|
|
60
|
-
total: number;
|
|
61
61
|
sync?: number | undefined;
|
|
62
62
|
proving?: number | undefined;
|
|
63
63
|
}, {
|
|
64
|
+
total: number;
|
|
64
65
|
perFunction: {
|
|
65
66
|
functionName: string;
|
|
66
67
|
time: number;
|
|
@@ -69,7 +70,6 @@ export declare const ProvingTimingsSchema: z.ZodObject<{
|
|
|
69
70
|
}> | undefined;
|
|
70
71
|
}[];
|
|
71
72
|
unaccounted: number;
|
|
72
|
-
total: number;
|
|
73
73
|
sync?: number | undefined;
|
|
74
74
|
proving?: number | undefined;
|
|
75
75
|
}>;
|
|
@@ -107,6 +107,7 @@ export declare const ProvingStatsSchema: z.ZodObject<{
|
|
|
107
107
|
unaccounted: z.ZodNumber;
|
|
108
108
|
total: z.ZodNumber;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
total: number;
|
|
110
111
|
perFunction: {
|
|
111
112
|
functionName: string;
|
|
112
113
|
time: number;
|
|
@@ -115,10 +116,10 @@ export declare const ProvingStatsSchema: z.ZodObject<{
|
|
|
115
116
|
}> | undefined;
|
|
116
117
|
}[];
|
|
117
118
|
unaccounted: number;
|
|
118
|
-
total: number;
|
|
119
119
|
sync?: number | undefined;
|
|
120
120
|
proving?: number | undefined;
|
|
121
121
|
}, {
|
|
122
|
+
total: number;
|
|
122
123
|
perFunction: {
|
|
123
124
|
functionName: string;
|
|
124
125
|
time: number;
|
|
@@ -127,7 +128,6 @@ export declare const ProvingStatsSchema: z.ZodObject<{
|
|
|
127
128
|
}> | undefined;
|
|
128
129
|
}[];
|
|
129
130
|
unaccounted: number;
|
|
130
|
-
total: number;
|
|
131
131
|
sync?: number | undefined;
|
|
132
132
|
proving?: number | undefined;
|
|
133
133
|
}>;
|
|
@@ -140,6 +140,7 @@ export declare const ProvingStatsSchema: z.ZodObject<{
|
|
|
140
140
|
}>>>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
142
|
timings: {
|
|
143
|
+
total: number;
|
|
143
144
|
perFunction: {
|
|
144
145
|
functionName: string;
|
|
145
146
|
time: number;
|
|
@@ -148,7 +149,6 @@ export declare const ProvingStatsSchema: z.ZodObject<{
|
|
|
148
149
|
}> | undefined;
|
|
149
150
|
}[];
|
|
150
151
|
unaccounted: number;
|
|
151
|
-
total: number;
|
|
152
152
|
sync?: number | undefined;
|
|
153
153
|
proving?: number | undefined;
|
|
154
154
|
};
|
|
@@ -157,6 +157,7 @@ export declare const ProvingStatsSchema: z.ZodObject<{
|
|
|
157
157
|
}> | undefined;
|
|
158
158
|
}, {
|
|
159
159
|
timings: {
|
|
160
|
+
total: number;
|
|
160
161
|
perFunction: {
|
|
161
162
|
functionName: string;
|
|
162
163
|
time: number;
|
|
@@ -165,7 +166,6 @@ export declare const ProvingStatsSchema: z.ZodObject<{
|
|
|
165
166
|
}> | undefined;
|
|
166
167
|
}[];
|
|
167
168
|
unaccounted: number;
|
|
168
|
-
total: number;
|
|
169
169
|
sync?: number | undefined;
|
|
170
170
|
proving?: number | undefined;
|
|
171
171
|
};
|
|
@@ -211,6 +211,7 @@ export declare const SimulationTimingsSchema: z.ZodObject<{
|
|
|
211
211
|
unaccounted: z.ZodNumber;
|
|
212
212
|
total: z.ZodNumber;
|
|
213
213
|
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
total: number;
|
|
214
215
|
sync: number;
|
|
215
216
|
perFunction: {
|
|
216
217
|
functionName: string;
|
|
@@ -220,10 +221,10 @@ export declare const SimulationTimingsSchema: z.ZodObject<{
|
|
|
220
221
|
}> | undefined;
|
|
221
222
|
}[];
|
|
222
223
|
unaccounted: number;
|
|
223
|
-
total: number;
|
|
224
224
|
validation?: number | undefined;
|
|
225
225
|
publicSimulation?: number | undefined;
|
|
226
226
|
}, {
|
|
227
|
+
total: number;
|
|
227
228
|
sync: number;
|
|
228
229
|
perFunction: {
|
|
229
230
|
functionName: string;
|
|
@@ -233,7 +234,6 @@ export declare const SimulationTimingsSchema: z.ZodObject<{
|
|
|
233
234
|
}> | undefined;
|
|
234
235
|
}[];
|
|
235
236
|
unaccounted: number;
|
|
236
|
-
total: number;
|
|
237
237
|
validation?: number | undefined;
|
|
238
238
|
publicSimulation?: number | undefined;
|
|
239
239
|
}>;
|
|
@@ -272,6 +272,7 @@ export declare const SimulationStatsSchema: z.ZodObject<{
|
|
|
272
272
|
unaccounted: z.ZodNumber;
|
|
273
273
|
total: z.ZodNumber;
|
|
274
274
|
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
total: number;
|
|
275
276
|
sync: number;
|
|
276
277
|
perFunction: {
|
|
277
278
|
functionName: string;
|
|
@@ -281,10 +282,10 @@ export declare const SimulationStatsSchema: z.ZodObject<{
|
|
|
281
282
|
}> | undefined;
|
|
282
283
|
}[];
|
|
283
284
|
unaccounted: number;
|
|
284
|
-
total: number;
|
|
285
285
|
validation?: number | undefined;
|
|
286
286
|
publicSimulation?: number | undefined;
|
|
287
287
|
}, {
|
|
288
|
+
total: number;
|
|
288
289
|
sync: number;
|
|
289
290
|
perFunction: {
|
|
290
291
|
functionName: string;
|
|
@@ -294,7 +295,6 @@ export declare const SimulationStatsSchema: z.ZodObject<{
|
|
|
294
295
|
}> | undefined;
|
|
295
296
|
}[];
|
|
296
297
|
unaccounted: number;
|
|
297
|
-
total: number;
|
|
298
298
|
validation?: number | undefined;
|
|
299
299
|
publicSimulation?: number | undefined;
|
|
300
300
|
}>;
|
|
@@ -307,6 +307,7 @@ export declare const SimulationStatsSchema: z.ZodObject<{
|
|
|
307
307
|
}>>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
309
|
timings: {
|
|
310
|
+
total: number;
|
|
310
311
|
sync: number;
|
|
311
312
|
perFunction: {
|
|
312
313
|
functionName: string;
|
|
@@ -316,7 +317,6 @@ export declare const SimulationStatsSchema: z.ZodObject<{
|
|
|
316
317
|
}> | undefined;
|
|
317
318
|
}[];
|
|
318
319
|
unaccounted: number;
|
|
319
|
-
total: number;
|
|
320
320
|
validation?: number | undefined;
|
|
321
321
|
publicSimulation?: number | undefined;
|
|
322
322
|
};
|
|
@@ -325,6 +325,7 @@ export declare const SimulationStatsSchema: z.ZodObject<{
|
|
|
325
325
|
}>;
|
|
326
326
|
}, {
|
|
327
327
|
timings: {
|
|
328
|
+
total: number;
|
|
328
329
|
sync: number;
|
|
329
330
|
perFunction: {
|
|
330
331
|
functionName: string;
|
|
@@ -334,7 +335,6 @@ export declare const SimulationStatsSchema: z.ZodObject<{
|
|
|
334
335
|
}> | undefined;
|
|
335
336
|
}[];
|
|
336
337
|
unaccounted: number;
|
|
337
|
-
total: number;
|
|
338
338
|
validation?: number | undefined;
|
|
339
339
|
publicSimulation?: number | undefined;
|
|
340
340
|
};
|
package/dest/tx/proven_tx.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare class TxProvingResult {
|
|
|
47
47
|
unaccounted: z.ZodNumber;
|
|
48
48
|
total: z.ZodNumber;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
total: number;
|
|
50
51
|
perFunction: {
|
|
51
52
|
functionName: string;
|
|
52
53
|
time: number;
|
|
@@ -55,10 +56,10 @@ export declare class TxProvingResult {
|
|
|
55
56
|
}> | undefined;
|
|
56
57
|
}[];
|
|
57
58
|
unaccounted: number;
|
|
58
|
-
total: number;
|
|
59
59
|
sync?: number | undefined;
|
|
60
60
|
proving?: number | undefined;
|
|
61
61
|
}, {
|
|
62
|
+
total: number;
|
|
62
63
|
perFunction: {
|
|
63
64
|
functionName: string;
|
|
64
65
|
time: number;
|
|
@@ -67,7 +68,6 @@ export declare class TxProvingResult {
|
|
|
67
68
|
}> | undefined;
|
|
68
69
|
}[];
|
|
69
70
|
unaccounted: number;
|
|
70
|
-
total: number;
|
|
71
71
|
sync?: number | undefined;
|
|
72
72
|
proving?: number | undefined;
|
|
73
73
|
}>>;
|
|
@@ -76,6 +76,7 @@ export declare class TxProvingResult {
|
|
|
76
76
|
clientIvcProof: ClientIvcProof;
|
|
77
77
|
privateExecutionResult: PrivateExecutionResult;
|
|
78
78
|
timings?: {
|
|
79
|
+
total: number;
|
|
79
80
|
perFunction: {
|
|
80
81
|
functionName: string;
|
|
81
82
|
time: number;
|
|
@@ -84,7 +85,6 @@ export declare class TxProvingResult {
|
|
|
84
85
|
}> | undefined;
|
|
85
86
|
}[];
|
|
86
87
|
unaccounted: number;
|
|
87
|
-
total: number;
|
|
88
88
|
sync?: number | undefined;
|
|
89
89
|
proving?: number | undefined;
|
|
90
90
|
} | undefined;
|
|
@@ -92,6 +92,7 @@ export declare class TxProvingResult {
|
|
|
92
92
|
publicInputs: string;
|
|
93
93
|
clientIvcProof: string;
|
|
94
94
|
timings?: {
|
|
95
|
+
total: number;
|
|
95
96
|
perFunction: {
|
|
96
97
|
functionName: string;
|
|
97
98
|
time: number;
|
|
@@ -100,7 +101,6 @@ export declare class TxProvingResult {
|
|
|
100
101
|
}> | undefined;
|
|
101
102
|
}[];
|
|
102
103
|
unaccounted: number;
|
|
103
|
-
total: number;
|
|
104
104
|
sync?: number | undefined;
|
|
105
105
|
proving?: number | undefined;
|
|
106
106
|
} | undefined;
|
|
@@ -109,6 +109,7 @@ export declare class TxProvingResult {
|
|
|
109
109
|
publicInputs: string;
|
|
110
110
|
clientIvcProof: string;
|
|
111
111
|
timings?: {
|
|
112
|
+
total: number;
|
|
112
113
|
perFunction: {
|
|
113
114
|
functionName: string;
|
|
114
115
|
time: number;
|
|
@@ -117,7 +118,6 @@ export declare class TxProvingResult {
|
|
|
117
118
|
}> | undefined;
|
|
118
119
|
}[];
|
|
119
120
|
unaccounted: number;
|
|
120
|
-
total: number;
|
|
121
121
|
sync?: number | undefined;
|
|
122
122
|
proving?: number | undefined;
|
|
123
123
|
} | undefined;
|
|
@@ -339,4 +339,216 @@ export declare const ValidatorsStatsSchema: z.ZodObject<{
|
|
|
339
339
|
lastProcessedSlot?: string | number | bigint | undefined;
|
|
340
340
|
initialSlot?: string | number | bigint | undefined;
|
|
341
341
|
}>;
|
|
342
|
+
export declare const SingleValidatorStatsSchema: z.ZodObject<{
|
|
343
|
+
validator: z.ZodObject<{
|
|
344
|
+
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
345
|
+
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
346
|
+
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
347
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
348
|
+
date: z.ZodString;
|
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
|
350
|
+
date: string;
|
|
351
|
+
slot: bigint;
|
|
352
|
+
timestamp: bigint;
|
|
353
|
+
}, {
|
|
354
|
+
date: string;
|
|
355
|
+
slot: string | number | bigint;
|
|
356
|
+
timestamp: string | number | bigint;
|
|
357
|
+
}>>;
|
|
358
|
+
lastAttestation: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
360
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
361
|
+
date: z.ZodString;
|
|
362
|
+
}, "strip", z.ZodTypeAny, {
|
|
363
|
+
date: string;
|
|
364
|
+
slot: bigint;
|
|
365
|
+
timestamp: bigint;
|
|
366
|
+
}, {
|
|
367
|
+
date: string;
|
|
368
|
+
slot: string | number | bigint;
|
|
369
|
+
timestamp: string | number | bigint;
|
|
370
|
+
}>>;
|
|
371
|
+
totalSlots: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
372
|
+
missedProposals: z.ZodObject<{
|
|
373
|
+
currentStreak: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
374
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
count: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
376
|
+
}, "strip", z.ZodTypeAny, {
|
|
377
|
+
currentStreak: number;
|
|
378
|
+
count: number;
|
|
379
|
+
rate?: number | undefined;
|
|
380
|
+
}, {
|
|
381
|
+
currentStreak: string | number | bigint;
|
|
382
|
+
count: string | number | bigint;
|
|
383
|
+
rate?: number | undefined;
|
|
384
|
+
}>;
|
|
385
|
+
missedAttestations: z.ZodObject<{
|
|
386
|
+
currentStreak: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
387
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
388
|
+
count: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
currentStreak: number;
|
|
391
|
+
count: number;
|
|
392
|
+
rate?: number | undefined;
|
|
393
|
+
}, {
|
|
394
|
+
currentStreak: string | number | bigint;
|
|
395
|
+
count: string | number | bigint;
|
|
396
|
+
rate?: number | undefined;
|
|
397
|
+
}>;
|
|
398
|
+
history: z.ZodArray<z.ZodObject<{
|
|
399
|
+
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
400
|
+
status: z.ZodEnum<["block-mined", "block-proposed", "block-missed", "attestation-sent", "attestation-missed"]>;
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
402
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
403
|
+
slot: bigint;
|
|
404
|
+
}, {
|
|
405
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
406
|
+
slot: string | number | bigint;
|
|
407
|
+
}>, "many">;
|
|
408
|
+
}, "strip", z.ZodTypeAny, {
|
|
409
|
+
address: import("@aztec/foundation/schemas").EthAddress;
|
|
410
|
+
totalSlots: number;
|
|
411
|
+
missedProposals: {
|
|
412
|
+
currentStreak: number;
|
|
413
|
+
count: number;
|
|
414
|
+
rate?: number | undefined;
|
|
415
|
+
};
|
|
416
|
+
missedAttestations: {
|
|
417
|
+
currentStreak: number;
|
|
418
|
+
count: number;
|
|
419
|
+
rate?: number | undefined;
|
|
420
|
+
};
|
|
421
|
+
history: {
|
|
422
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
423
|
+
slot: bigint;
|
|
424
|
+
}[];
|
|
425
|
+
lastProposal?: {
|
|
426
|
+
date: string;
|
|
427
|
+
slot: bigint;
|
|
428
|
+
timestamp: bigint;
|
|
429
|
+
} | undefined;
|
|
430
|
+
lastAttestation?: {
|
|
431
|
+
date: string;
|
|
432
|
+
slot: bigint;
|
|
433
|
+
timestamp: bigint;
|
|
434
|
+
} | undefined;
|
|
435
|
+
}, {
|
|
436
|
+
address: string;
|
|
437
|
+
totalSlots: string | number | bigint;
|
|
438
|
+
missedProposals: {
|
|
439
|
+
currentStreak: string | number | bigint;
|
|
440
|
+
count: string | number | bigint;
|
|
441
|
+
rate?: number | undefined;
|
|
442
|
+
};
|
|
443
|
+
missedAttestations: {
|
|
444
|
+
currentStreak: string | number | bigint;
|
|
445
|
+
count: string | number | bigint;
|
|
446
|
+
rate?: number | undefined;
|
|
447
|
+
};
|
|
448
|
+
history: {
|
|
449
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
450
|
+
slot: string | number | bigint;
|
|
451
|
+
}[];
|
|
452
|
+
lastProposal?: {
|
|
453
|
+
date: string;
|
|
454
|
+
slot: string | number | bigint;
|
|
455
|
+
timestamp: string | number | bigint;
|
|
456
|
+
} | undefined;
|
|
457
|
+
lastAttestation?: {
|
|
458
|
+
date: string;
|
|
459
|
+
slot: string | number | bigint;
|
|
460
|
+
timestamp: string | number | bigint;
|
|
461
|
+
} | undefined;
|
|
462
|
+
}>;
|
|
463
|
+
allTimeProvenPerformance: z.ZodArray<z.ZodObject<{
|
|
464
|
+
missed: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
465
|
+
total: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
466
|
+
epoch: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
|
468
|
+
epoch: bigint;
|
|
469
|
+
missed: number;
|
|
470
|
+
total: number;
|
|
471
|
+
}, {
|
|
472
|
+
epoch: string | number | bigint;
|
|
473
|
+
missed: string | number | bigint;
|
|
474
|
+
total: string | number | bigint;
|
|
475
|
+
}>, "many">;
|
|
476
|
+
lastProcessedSlot: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>>;
|
|
477
|
+
initialSlot: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>>;
|
|
478
|
+
slotWindow: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
|
480
|
+
slotWindow: number;
|
|
481
|
+
validator: {
|
|
482
|
+
address: import("@aztec/foundation/schemas").EthAddress;
|
|
483
|
+
totalSlots: number;
|
|
484
|
+
missedProposals: {
|
|
485
|
+
currentStreak: number;
|
|
486
|
+
count: number;
|
|
487
|
+
rate?: number | undefined;
|
|
488
|
+
};
|
|
489
|
+
missedAttestations: {
|
|
490
|
+
currentStreak: number;
|
|
491
|
+
count: number;
|
|
492
|
+
rate?: number | undefined;
|
|
493
|
+
};
|
|
494
|
+
history: {
|
|
495
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
496
|
+
slot: bigint;
|
|
497
|
+
}[];
|
|
498
|
+
lastProposal?: {
|
|
499
|
+
date: string;
|
|
500
|
+
slot: bigint;
|
|
501
|
+
timestamp: bigint;
|
|
502
|
+
} | undefined;
|
|
503
|
+
lastAttestation?: {
|
|
504
|
+
date: string;
|
|
505
|
+
slot: bigint;
|
|
506
|
+
timestamp: bigint;
|
|
507
|
+
} | undefined;
|
|
508
|
+
};
|
|
509
|
+
allTimeProvenPerformance: {
|
|
510
|
+
epoch: bigint;
|
|
511
|
+
missed: number;
|
|
512
|
+
total: number;
|
|
513
|
+
}[];
|
|
514
|
+
lastProcessedSlot?: bigint | undefined;
|
|
515
|
+
initialSlot?: bigint | undefined;
|
|
516
|
+
}, {
|
|
517
|
+
slotWindow: string | number | bigint;
|
|
518
|
+
validator: {
|
|
519
|
+
address: string;
|
|
520
|
+
totalSlots: string | number | bigint;
|
|
521
|
+
missedProposals: {
|
|
522
|
+
currentStreak: string | number | bigint;
|
|
523
|
+
count: string | number | bigint;
|
|
524
|
+
rate?: number | undefined;
|
|
525
|
+
};
|
|
526
|
+
missedAttestations: {
|
|
527
|
+
currentStreak: string | number | bigint;
|
|
528
|
+
count: string | number | bigint;
|
|
529
|
+
rate?: number | undefined;
|
|
530
|
+
};
|
|
531
|
+
history: {
|
|
532
|
+
status: "block-mined" | "block-proposed" | "block-missed" | "attestation-sent" | "attestation-missed";
|
|
533
|
+
slot: string | number | bigint;
|
|
534
|
+
}[];
|
|
535
|
+
lastProposal?: {
|
|
536
|
+
date: string;
|
|
537
|
+
slot: string | number | bigint;
|
|
538
|
+
timestamp: string | number | bigint;
|
|
539
|
+
} | undefined;
|
|
540
|
+
lastAttestation?: {
|
|
541
|
+
date: string;
|
|
542
|
+
slot: string | number | bigint;
|
|
543
|
+
timestamp: string | number | bigint;
|
|
544
|
+
} | undefined;
|
|
545
|
+
};
|
|
546
|
+
allTimeProvenPerformance: {
|
|
547
|
+
epoch: string | number | bigint;
|
|
548
|
+
missed: string | number | bigint;
|
|
549
|
+
total: string | number | bigint;
|
|
550
|
+
}[];
|
|
551
|
+
lastProcessedSlot?: string | number | bigint | undefined;
|
|
552
|
+
initialSlot?: string | number | bigint | undefined;
|
|
553
|
+
}>;
|
|
342
554
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/validators/schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/validators/schemas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,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;AAErC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYE,CAAC"}
|
|
@@ -38,3 +38,14 @@ export const ValidatorsStatsSchema = z.object({
|
|
|
38
38
|
initialSlot: schemas.BigInt.optional(),
|
|
39
39
|
slotWindow: schemas.Integer
|
|
40
40
|
});
|
|
41
|
+
export const SingleValidatorStatsSchema = z.object({
|
|
42
|
+
validator: ValidatorStatsSchema,
|
|
43
|
+
allTimeProvenPerformance: z.array(z.object({
|
|
44
|
+
missed: schemas.Integer,
|
|
45
|
+
total: schemas.Integer,
|
|
46
|
+
epoch: schemas.BigInt
|
|
47
|
+
})),
|
|
48
|
+
lastProcessedSlot: schemas.BigInt.optional(),
|
|
49
|
+
initialSlot: schemas.BigInt.optional(),
|
|
50
|
+
slotWindow: schemas.Integer
|
|
51
|
+
});
|
|
@@ -40,4 +40,15 @@ export type ValidatorsEpochPerformance = Record<`0x${string}`, {
|
|
|
40
40
|
missed: number;
|
|
41
41
|
total: number;
|
|
42
42
|
}>;
|
|
43
|
+
export type SingleValidatorStats = {
|
|
44
|
+
validator: ValidatorStats;
|
|
45
|
+
allTimeProvenPerformance: {
|
|
46
|
+
missed: number;
|
|
47
|
+
total: number;
|
|
48
|
+
epoch: bigint;
|
|
49
|
+
}[];
|
|
50
|
+
lastProcessedSlot?: bigint;
|
|
51
|
+
initialSlot?: bigint;
|
|
52
|
+
slotWindow: number;
|
|
53
|
+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,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;AAEF,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAElG,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,cAAc,CAAC;IAC1B,wBAAwB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "2.0.0-nightly.
|
|
3
|
+
"version": "2.0.0-nightly.20250819",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@aztec/bb.js": "2.0.0-nightly.
|
|
72
|
-
"@aztec/blob-lib": "2.0.0-nightly.
|
|
73
|
-
"@aztec/constants": "2.0.0-nightly.
|
|
74
|
-
"@aztec/ethereum": "2.0.0-nightly.
|
|
75
|
-
"@aztec/foundation": "2.0.0-nightly.
|
|
76
|
-
"@aztec/noir-noirc_abi": "2.0.0-nightly.
|
|
71
|
+
"@aztec/bb.js": "2.0.0-nightly.20250819",
|
|
72
|
+
"@aztec/blob-lib": "2.0.0-nightly.20250819",
|
|
73
|
+
"@aztec/constants": "2.0.0-nightly.20250819",
|
|
74
|
+
"@aztec/ethereum": "2.0.0-nightly.20250819",
|
|
75
|
+
"@aztec/foundation": "2.0.0-nightly.20250819",
|
|
76
|
+
"@aztec/noir-noirc_abi": "2.0.0-nightly.20250819",
|
|
77
77
|
"@google-cloud/storage": "^7.15.0",
|
|
78
78
|
"axios": "^1.9.0",
|
|
79
79
|
"json-stringify-deterministic": "1.0.12",
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
PUBLIC_DATA_TREE_HEIGHT,
|
|
8
8
|
} from '@aztec/constants';
|
|
9
9
|
import { type L1ContractAddresses, L1ContractAddressesSchema } from '@aztec/ethereum/l1-contract-addresses';
|
|
10
|
+
import type { EthAddress } from '@aztec/foundation/eth-address';
|
|
10
11
|
import type { Fr } from '@aztec/foundation/fields';
|
|
11
12
|
import { createSafeJsonRpcClient, makeFetch } from '@aztec/foundation/json-rpc/client';
|
|
12
13
|
import { MembershipWitness, SiblingPath } from '@aztec/foundation/trees';
|
|
@@ -48,8 +49,8 @@ import {
|
|
|
48
49
|
TxValidationResultSchema,
|
|
49
50
|
indexedTxSchema,
|
|
50
51
|
} from '../tx/index.js';
|
|
51
|
-
import { ValidatorsStatsSchema } from '../validators/schemas.js';
|
|
52
|
-
import type { ValidatorsStats } from '../validators/types.js';
|
|
52
|
+
import { SingleValidatorStatsSchema, ValidatorsStatsSchema } from '../validators/schemas.js';
|
|
53
|
+
import type { SingleValidatorStats, ValidatorsStats } from '../validators/types.js';
|
|
53
54
|
import { type ComponentsVersions, getVersioningResponseHandler } from '../versioning/index.js';
|
|
54
55
|
import { MAX_RPC_BLOCKS_LEN, MAX_RPC_LEN, MAX_RPC_TXS_LEN } from './api_limit.js';
|
|
55
56
|
import {
|
|
@@ -397,6 +398,13 @@ export interface AztecNode
|
|
|
397
398
|
/** Returns stats for validators if enabled. */
|
|
398
399
|
getValidatorsStats(): Promise<ValidatorsStats>;
|
|
399
400
|
|
|
401
|
+
/** Returns stats for a single validator if enabled. */
|
|
402
|
+
getValidatorStats(
|
|
403
|
+
validatorAddress: EthAddress,
|
|
404
|
+
fromSlot?: bigint,
|
|
405
|
+
toSlot?: bigint,
|
|
406
|
+
): Promise<SingleValidatorStats | undefined>;
|
|
407
|
+
|
|
400
408
|
/**
|
|
401
409
|
* Simulates the public part of a transaction with the current state.
|
|
402
410
|
* This currently just checks that the transaction execution succeeds.
|
|
@@ -577,6 +585,11 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
|
|
|
577
585
|
|
|
578
586
|
getValidatorsStats: z.function().returns(ValidatorsStatsSchema),
|
|
579
587
|
|
|
588
|
+
getValidatorStats: z
|
|
589
|
+
.function()
|
|
590
|
+
.args(schemas.EthAddress, optional(schemas.BigInt), optional(schemas.BigInt))
|
|
591
|
+
.returns(SingleValidatorStatsSchema.optional()),
|
|
592
|
+
|
|
580
593
|
simulatePublicCalls: z.function().args(Tx.schema, optional(z.boolean())).returns(PublicSimulationOutput.schema),
|
|
581
594
|
|
|
582
595
|
isValidTx: z
|
package/src/p2p/topic_type.ts
CHANGED
|
@@ -30,6 +30,14 @@ export function getTopicTypeForClientType(clientType: P2PClientType) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
export function getTopicsForClientAndConfig(clientType: P2PClientType, disableTransactions: boolean) {
|
|
34
|
+
const topics = getTopicTypeForClientType(clientType);
|
|
35
|
+
if (disableTransactions) {
|
|
36
|
+
return topics.filter(topic => topic !== TopicType.tx);
|
|
37
|
+
}
|
|
38
|
+
return topics;
|
|
39
|
+
}
|
|
40
|
+
|
|
33
41
|
/**
|
|
34
42
|
* Convert the topic string into a set of labels
|
|
35
43
|
*
|
|
@@ -2,7 +2,13 @@ import { type ZodFor, schemas } from '@aztec/foundation/schemas';
|
|
|
2
2
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
|
-
import type {
|
|
5
|
+
import type {
|
|
6
|
+
SingleValidatorStats,
|
|
7
|
+
ValidatorStats,
|
|
8
|
+
ValidatorStatusHistory,
|
|
9
|
+
ValidatorStatusInSlot,
|
|
10
|
+
ValidatorsStats,
|
|
11
|
+
} from './types.js';
|
|
6
12
|
|
|
7
13
|
export const ValidatorStatusInSlotSchema = z.enum([
|
|
8
14
|
'block-mined',
|
|
@@ -51,3 +57,17 @@ export const ValidatorsStatsSchema = z.object({
|
|
|
51
57
|
initialSlot: schemas.BigInt.optional(),
|
|
52
58
|
slotWindow: schemas.Integer,
|
|
53
59
|
}) satisfies ZodFor<ValidatorsStats>;
|
|
60
|
+
|
|
61
|
+
export const SingleValidatorStatsSchema = z.object({
|
|
62
|
+
validator: ValidatorStatsSchema,
|
|
63
|
+
allTimeProvenPerformance: z.array(
|
|
64
|
+
z.object({
|
|
65
|
+
missed: schemas.Integer,
|
|
66
|
+
total: schemas.Integer,
|
|
67
|
+
epoch: schemas.BigInt,
|
|
68
|
+
}),
|
|
69
|
+
),
|
|
70
|
+
lastProcessedSlot: schemas.BigInt.optional(),
|
|
71
|
+
initialSlot: schemas.BigInt.optional(),
|
|
72
|
+
slotWindow: schemas.Integer,
|
|
73
|
+
}) satisfies ZodFor<SingleValidatorStats>;
|
package/src/validators/types.ts
CHANGED
|
@@ -37,3 +37,11 @@ export type ValidatorsStats = {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export type ValidatorsEpochPerformance = Record<`0x${string}`, { missed: number; total: number }>;
|
|
40
|
+
|
|
41
|
+
export type SingleValidatorStats = {
|
|
42
|
+
validator: ValidatorStats;
|
|
43
|
+
allTimeProvenPerformance: { missed: number; total: number; epoch: bigint }[];
|
|
44
|
+
lastProcessedSlot?: bigint;
|
|
45
|
+
initialSlot?: bigint;
|
|
46
|
+
slotWindow: number;
|
|
47
|
+
};
|