@aztec/stdlib 5.0.0-nightly.20260428 → 5.0.0-nightly.20260430
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 +300 -300
- package/dest/block/attestation_info.d.ts +3 -2
- package/dest/block/attestation_info.d.ts.map +1 -1
- package/dest/block/attestation_info.js +7 -5
- package/dest/block/block_data.d.ts +290 -1
- package/dest/block/block_data.d.ts.map +1 -1
- package/dest/block/block_data.js +14 -0
- package/dest/block/block_parameter.d.ts +30 -3
- package/dest/block/block_parameter.d.ts.map +1 -1
- package/dest/block/block_parameter.js +36 -2
- package/dest/block/l2_block_source.d.ts +39 -4
- package/dest/block/l2_block_source.d.ts.map +1 -1
- package/dest/block/proposal/attestations_and_signers.d.ts +13 -6
- package/dest/block/proposal/attestations_and_signers.d.ts.map +1 -1
- package/dest/block/proposal/attestations_and_signers.js +26 -18
- package/dest/checkpoint/checkpoint_data.d.ts +7 -1
- package/dest/checkpoint/checkpoint_data.d.ts.map +1 -1
- package/dest/checkpoint/checkpoint_data.js +2 -0
- package/dest/config/chain-config.d.ts +2 -2
- package/dest/config/chain-config.d.ts.map +1 -1
- package/dest/config/chain-config.js +2 -2
- package/dest/config/sequencer-config.d.ts +2 -2
- package/dest/config/sequencer-config.d.ts.map +1 -1
- package/dest/config/sequencer-config.js +6 -6
- package/dest/ha-signing/local_config.d.ts +1 -1
- package/dest/ha-signing/local_config.d.ts.map +1 -1
- package/dest/ha-signing/local_config.js +2 -2
- package/dest/interfaces/archiver.d.ts +1 -1
- package/dest/interfaces/archiver.d.ts.map +1 -1
- package/dest/interfaces/archiver.js +7 -3
- package/dest/interfaces/aztec-node-admin.d.ts +11 -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 +45 -55
- package/dest/interfaces/aztec-node.d.ts.map +1 -1
- package/dest/interfaces/aztec-node.js +18 -16
- package/dest/interfaces/block_response.d.ts +156 -0
- package/dest/interfaces/block_response.d.ts.map +1 -0
- package/dest/interfaces/block_response.js +24 -0
- package/dest/interfaces/chain_tips.d.ts +304 -0
- package/dest/interfaces/chain_tips.d.ts.map +1 -0
- package/dest/interfaces/chain_tips.js +11 -0
- package/dest/interfaces/checkpoint_parameter.d.ts +27 -0
- package/dest/interfaces/checkpoint_parameter.d.ts.map +1 -0
- package/dest/interfaces/checkpoint_parameter.js +20 -0
- package/dest/interfaces/checkpoint_response.d.ts +312 -0
- package/dest/interfaces/checkpoint_response.d.ts.map +1 -0
- package/dest/interfaces/checkpoint_response.js +26 -0
- package/dest/interfaces/client.d.ts +6 -1
- package/dest/interfaces/client.d.ts.map +1 -1
- package/dest/interfaces/client.js +5 -0
- package/dest/interfaces/configs.d.ts +7 -2
- package/dest/interfaces/configs.d.ts.map +1 -1
- package/dest/interfaces/configs.js +2 -1
- package/dest/interfaces/l1_publish_info.d.ts +43 -0
- package/dest/interfaces/l1_publish_info.d.ts.map +1 -0
- package/dest/interfaces/l1_publish_info.js +26 -0
- package/dest/interfaces/proving-job.d.ts +166 -166
- package/dest/interfaces/server.d.ts +6 -1
- package/dest/interfaces/server.d.ts.map +1 -1
- package/dest/interfaces/server.js +5 -0
- package/dest/interfaces/validator.d.ts +10 -1
- package/dest/interfaces/validator.d.ts.map +1 -1
- package/dest/interfaces/validator.js +1 -0
- package/dest/p2p/block_proposal.d.ts +19 -9
- package/dest/p2p/block_proposal.d.ts.map +1 -1
- package/dest/p2p/block_proposal.js +42 -32
- package/dest/p2p/checkpoint_attestation.d.ts +7 -3
- package/dest/p2p/checkpoint_attestation.d.ts.map +1 -1
- package/dest/p2p/checkpoint_attestation.js +15 -17
- package/dest/p2p/checkpoint_proposal.d.ts +15 -7
- package/dest/p2p/checkpoint_proposal.d.ts.map +1 -1
- package/dest/p2p/checkpoint_proposal.js +31 -29
- package/dest/p2p/consensus_payload.d.ts +18 -7
- package/dest/p2p/consensus_payload.d.ts.map +1 -1
- package/dest/p2p/consensus_payload.js +31 -19
- package/dest/p2p/signature_utils.d.ts +28 -19
- package/dest/p2p/signature_utils.d.ts.map +1 -1
- package/dest/p2p/signature_utils.js +118 -21
- package/dest/p2p/signed_txs.d.ts +15 -13
- package/dest/p2p/signed_txs.d.ts.map +1 -1
- package/dest/p2p/signed_txs.js +26 -24
- package/dest/tests/mocks.d.ts +7 -1
- package/dest/tests/mocks.d.ts.map +1 -1
- package/dest/tests/mocks.js +28 -14
- package/dest/timetable/index.d.ts +1 -1
- package/dest/timetable/index.d.ts.map +1 -1
- package/dest/timetable/index.js +25 -11
- package/dest/tx/profiling.js +4 -4
- package/package.json +8 -8
- package/src/block/attestation_info.ts +11 -11
- package/src/block/block_data.ts +17 -0
- package/src/block/block_parameter.ts +35 -2
- package/src/block/l2_block_source.ts +43 -3
- package/src/block/proposal/attestations_and_signers.ts +32 -17
- package/src/checkpoint/checkpoint_data.ts +4 -0
- package/src/config/chain-config.ts +2 -3
- package/src/config/sequencer-config.ts +10 -6
- package/src/ha-signing/local_config.ts +2 -2
- package/src/interfaces/archiver.ts +13 -3
- package/src/interfaces/aztec-node-admin.ts +3 -1
- package/src/interfaces/aztec-node.ts +105 -95
- package/src/interfaces/block_response.ts +79 -0
- package/src/interfaces/chain_tips.ts +24 -0
- package/src/interfaces/checkpoint_parameter.ts +22 -0
- package/src/interfaces/checkpoint_response.ts +84 -0
- package/src/interfaces/client.ts +5 -0
- package/src/interfaces/configs.ts +5 -1
- package/src/interfaces/l1_publish_info.ts +40 -0
- package/src/interfaces/server.ts +5 -0
- package/src/interfaces/validator.ts +5 -0
- package/src/p2p/block_proposal.ts +84 -28
- package/src/p2p/checkpoint_attestation.ts +15 -20
- package/src/p2p/checkpoint_proposal.ts +69 -37
- package/src/p2p/consensus_payload.ts +50 -28
- package/src/p2p/signature_utils.ts +110 -25
- package/src/p2p/signed_txs.ts +46 -28
- package/src/tests/mocks.ts +46 -26
- package/src/timetable/index.ts +26 -11
- package/src/tx/profiling.ts +4 -4
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type L2BlockTag, type L2Tips } from '../block/l2_block_source.js';
|
|
3
|
+
/**
|
|
4
|
+
* Public chain-tip selectors usable in RPC requests.
|
|
5
|
+
* Omits internal-only tags (e.g. `proposedCheckpoint`) from {@link L2BlockTag}.
|
|
6
|
+
*/
|
|
7
|
+
export type ChainTip = Exclude<L2BlockTag, 'proposedCheckpoint'>;
|
|
8
|
+
export declare const ChainTipSchema: z.ZodUnion<[z.ZodLiteral<"proposed">, z.ZodLiteral<"checkpointed">, z.ZodLiteral<"proven">, z.ZodLiteral<"finalized">]>;
|
|
9
|
+
/**
|
|
10
|
+
* Tips of the L2 chain.
|
|
11
|
+
* Omits the sequencer-internal `proposedCheckpoint` from the public RPC surface.
|
|
12
|
+
*/
|
|
13
|
+
export type ChainTips = Omit<L2Tips, 'proposedCheckpoint'>;
|
|
14
|
+
export declare const ChainTipsSchema: z.ZodObject<Omit<{
|
|
15
|
+
proposed: z.ZodObject<{
|
|
16
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").BlockNumber, string | number | bigint>;
|
|
17
|
+
hash: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
number: number & {
|
|
20
|
+
_branding: "BlockNumber";
|
|
21
|
+
};
|
|
22
|
+
hash: string;
|
|
23
|
+
}, {
|
|
24
|
+
number: string | number | bigint;
|
|
25
|
+
hash: string;
|
|
26
|
+
}>;
|
|
27
|
+
checkpointed: z.ZodObject<{
|
|
28
|
+
block: z.ZodObject<{
|
|
29
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").BlockNumber, string | number | bigint>;
|
|
30
|
+
hash: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
number: number & {
|
|
33
|
+
_branding: "BlockNumber";
|
|
34
|
+
};
|
|
35
|
+
hash: string;
|
|
36
|
+
}, {
|
|
37
|
+
number: string | number | bigint;
|
|
38
|
+
hash: string;
|
|
39
|
+
}>;
|
|
40
|
+
checkpoint: z.ZodObject<{
|
|
41
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").CheckpointNumber, string | number | bigint>;
|
|
42
|
+
hash: z.ZodString;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
number: number & {
|
|
45
|
+
_branding: "CheckpointNumber";
|
|
46
|
+
};
|
|
47
|
+
hash: string;
|
|
48
|
+
}, {
|
|
49
|
+
number: string | number | bigint;
|
|
50
|
+
hash: string;
|
|
51
|
+
}>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
block: {
|
|
54
|
+
number: number & {
|
|
55
|
+
_branding: "BlockNumber";
|
|
56
|
+
};
|
|
57
|
+
hash: string;
|
|
58
|
+
};
|
|
59
|
+
checkpoint: {
|
|
60
|
+
number: number & {
|
|
61
|
+
_branding: "CheckpointNumber";
|
|
62
|
+
};
|
|
63
|
+
hash: string;
|
|
64
|
+
};
|
|
65
|
+
}, {
|
|
66
|
+
block: {
|
|
67
|
+
number: string | number | bigint;
|
|
68
|
+
hash: string;
|
|
69
|
+
};
|
|
70
|
+
checkpoint: {
|
|
71
|
+
number: string | number | bigint;
|
|
72
|
+
hash: string;
|
|
73
|
+
};
|
|
74
|
+
}>;
|
|
75
|
+
proposedCheckpoint: z.ZodObject<{
|
|
76
|
+
block: z.ZodObject<{
|
|
77
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").BlockNumber, string | number | bigint>;
|
|
78
|
+
hash: z.ZodString;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
number: number & {
|
|
81
|
+
_branding: "BlockNumber";
|
|
82
|
+
};
|
|
83
|
+
hash: string;
|
|
84
|
+
}, {
|
|
85
|
+
number: string | number | bigint;
|
|
86
|
+
hash: string;
|
|
87
|
+
}>;
|
|
88
|
+
checkpoint: z.ZodObject<{
|
|
89
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").CheckpointNumber, string | number | bigint>;
|
|
90
|
+
hash: z.ZodString;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
number: number & {
|
|
93
|
+
_branding: "CheckpointNumber";
|
|
94
|
+
};
|
|
95
|
+
hash: string;
|
|
96
|
+
}, {
|
|
97
|
+
number: string | number | bigint;
|
|
98
|
+
hash: string;
|
|
99
|
+
}>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
block: {
|
|
102
|
+
number: number & {
|
|
103
|
+
_branding: "BlockNumber";
|
|
104
|
+
};
|
|
105
|
+
hash: string;
|
|
106
|
+
};
|
|
107
|
+
checkpoint: {
|
|
108
|
+
number: number & {
|
|
109
|
+
_branding: "CheckpointNumber";
|
|
110
|
+
};
|
|
111
|
+
hash: string;
|
|
112
|
+
};
|
|
113
|
+
}, {
|
|
114
|
+
block: {
|
|
115
|
+
number: string | number | bigint;
|
|
116
|
+
hash: string;
|
|
117
|
+
};
|
|
118
|
+
checkpoint: {
|
|
119
|
+
number: string | number | bigint;
|
|
120
|
+
hash: string;
|
|
121
|
+
};
|
|
122
|
+
}>;
|
|
123
|
+
proven: z.ZodObject<{
|
|
124
|
+
block: z.ZodObject<{
|
|
125
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").BlockNumber, string | number | bigint>;
|
|
126
|
+
hash: z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
number: number & {
|
|
129
|
+
_branding: "BlockNumber";
|
|
130
|
+
};
|
|
131
|
+
hash: string;
|
|
132
|
+
}, {
|
|
133
|
+
number: string | number | bigint;
|
|
134
|
+
hash: string;
|
|
135
|
+
}>;
|
|
136
|
+
checkpoint: z.ZodObject<{
|
|
137
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").CheckpointNumber, string | number | bigint>;
|
|
138
|
+
hash: z.ZodString;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
number: number & {
|
|
141
|
+
_branding: "CheckpointNumber";
|
|
142
|
+
};
|
|
143
|
+
hash: string;
|
|
144
|
+
}, {
|
|
145
|
+
number: string | number | bigint;
|
|
146
|
+
hash: string;
|
|
147
|
+
}>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
block: {
|
|
150
|
+
number: number & {
|
|
151
|
+
_branding: "BlockNumber";
|
|
152
|
+
};
|
|
153
|
+
hash: string;
|
|
154
|
+
};
|
|
155
|
+
checkpoint: {
|
|
156
|
+
number: number & {
|
|
157
|
+
_branding: "CheckpointNumber";
|
|
158
|
+
};
|
|
159
|
+
hash: string;
|
|
160
|
+
};
|
|
161
|
+
}, {
|
|
162
|
+
block: {
|
|
163
|
+
number: string | number | bigint;
|
|
164
|
+
hash: string;
|
|
165
|
+
};
|
|
166
|
+
checkpoint: {
|
|
167
|
+
number: string | number | bigint;
|
|
168
|
+
hash: string;
|
|
169
|
+
};
|
|
170
|
+
}>;
|
|
171
|
+
finalized: z.ZodObject<{
|
|
172
|
+
block: z.ZodObject<{
|
|
173
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").BlockNumber, string | number | bigint>;
|
|
174
|
+
hash: z.ZodString;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
number: number & {
|
|
177
|
+
_branding: "BlockNumber";
|
|
178
|
+
};
|
|
179
|
+
hash: string;
|
|
180
|
+
}, {
|
|
181
|
+
number: string | number | bigint;
|
|
182
|
+
hash: string;
|
|
183
|
+
}>;
|
|
184
|
+
checkpoint: z.ZodObject<{
|
|
185
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").CheckpointNumber, string | number | bigint>;
|
|
186
|
+
hash: z.ZodString;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
number: number & {
|
|
189
|
+
_branding: "CheckpointNumber";
|
|
190
|
+
};
|
|
191
|
+
hash: string;
|
|
192
|
+
}, {
|
|
193
|
+
number: string | number | bigint;
|
|
194
|
+
hash: string;
|
|
195
|
+
}>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
block: {
|
|
198
|
+
number: number & {
|
|
199
|
+
_branding: "BlockNumber";
|
|
200
|
+
};
|
|
201
|
+
hash: string;
|
|
202
|
+
};
|
|
203
|
+
checkpoint: {
|
|
204
|
+
number: number & {
|
|
205
|
+
_branding: "CheckpointNumber";
|
|
206
|
+
};
|
|
207
|
+
hash: string;
|
|
208
|
+
};
|
|
209
|
+
}, {
|
|
210
|
+
block: {
|
|
211
|
+
number: string | number | bigint;
|
|
212
|
+
hash: string;
|
|
213
|
+
};
|
|
214
|
+
checkpoint: {
|
|
215
|
+
number: string | number | bigint;
|
|
216
|
+
hash: string;
|
|
217
|
+
};
|
|
218
|
+
}>;
|
|
219
|
+
}, "proposedCheckpoint">, "strip", z.ZodTypeAny, {
|
|
220
|
+
proposed: {
|
|
221
|
+
number: number & {
|
|
222
|
+
_branding: "BlockNumber";
|
|
223
|
+
};
|
|
224
|
+
hash: string;
|
|
225
|
+
};
|
|
226
|
+
checkpointed: {
|
|
227
|
+
block: {
|
|
228
|
+
number: number & {
|
|
229
|
+
_branding: "BlockNumber";
|
|
230
|
+
};
|
|
231
|
+
hash: string;
|
|
232
|
+
};
|
|
233
|
+
checkpoint: {
|
|
234
|
+
number: number & {
|
|
235
|
+
_branding: "CheckpointNumber";
|
|
236
|
+
};
|
|
237
|
+
hash: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
proven: {
|
|
241
|
+
block: {
|
|
242
|
+
number: number & {
|
|
243
|
+
_branding: "BlockNumber";
|
|
244
|
+
};
|
|
245
|
+
hash: string;
|
|
246
|
+
};
|
|
247
|
+
checkpoint: {
|
|
248
|
+
number: number & {
|
|
249
|
+
_branding: "CheckpointNumber";
|
|
250
|
+
};
|
|
251
|
+
hash: string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
finalized: {
|
|
255
|
+
block: {
|
|
256
|
+
number: number & {
|
|
257
|
+
_branding: "BlockNumber";
|
|
258
|
+
};
|
|
259
|
+
hash: string;
|
|
260
|
+
};
|
|
261
|
+
checkpoint: {
|
|
262
|
+
number: number & {
|
|
263
|
+
_branding: "CheckpointNumber";
|
|
264
|
+
};
|
|
265
|
+
hash: string;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
}, {
|
|
269
|
+
proposed: {
|
|
270
|
+
number: string | number | bigint;
|
|
271
|
+
hash: string;
|
|
272
|
+
};
|
|
273
|
+
checkpointed: {
|
|
274
|
+
block: {
|
|
275
|
+
number: string | number | bigint;
|
|
276
|
+
hash: string;
|
|
277
|
+
};
|
|
278
|
+
checkpoint: {
|
|
279
|
+
number: string | number | bigint;
|
|
280
|
+
hash: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
proven: {
|
|
284
|
+
block: {
|
|
285
|
+
number: string | number | bigint;
|
|
286
|
+
hash: string;
|
|
287
|
+
};
|
|
288
|
+
checkpoint: {
|
|
289
|
+
number: string | number | bigint;
|
|
290
|
+
hash: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
finalized: {
|
|
294
|
+
block: {
|
|
295
|
+
number: string | number | bigint;
|
|
296
|
+
hash: string;
|
|
297
|
+
};
|
|
298
|
+
checkpoint: {
|
|
299
|
+
number: string | number | bigint;
|
|
300
|
+
hash: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
}>;
|
|
304
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhaW5fdGlwcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVyZmFjZXMvY2hhaW5fdGlwcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsQ0FBQyxFQUFFLE1BQU0sS0FBSyxDQUFDO0FBRXhCLE9BQU8sRUFBRSxLQUFLLFVBQVUsRUFBRSxLQUFLLE1BQU0sRUFBZ0IsTUFBTSw2QkFBNkIsQ0FBQztBQUV6Rjs7O0dBR0c7QUFDSCxNQUFNLE1BQU0sUUFBUSxHQUFHLE9BQU8sQ0FBQyxVQUFVLEVBQUUsb0JBQW9CLENBQUMsQ0FBQztBQUVqRSxlQUFPLE1BQU0sY0FBYyx5SEFLSyxDQUFDO0FBRWpDOzs7R0FHRztBQUNILE1BQU0sTUFBTSxTQUFTLEdBQUcsSUFBSSxDQUFDLE1BQU0sRUFBRSxvQkFBb0IsQ0FBQyxDQUFDO0FBRTNELGVBQU8sTUFBTSxlQUFlOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0VBQWtELENBQUMifQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain_tips.d.ts","sourceRoot":"","sources":["../../src/interfaces/chain_tips.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,MAAM,EAAgB,MAAM,6BAA6B,CAAC;AAEzF;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC;AAEjE,eAAO,MAAM,cAAc,yHAKK,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAE3D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { L2TipsSchema } from '../block/l2_block_source.js';
|
|
3
|
+
export const ChainTipSchema = z.union([
|
|
4
|
+
z.literal('proposed'),
|
|
5
|
+
z.literal('checkpointed'),
|
|
6
|
+
z.literal('proven'),
|
|
7
|
+
z.literal('finalized')
|
|
8
|
+
]);
|
|
9
|
+
export const ChainTipsSchema = L2TipsSchema.omit({
|
|
10
|
+
proposedCheckpoint: true
|
|
11
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Selector for a checkpoint in RPC calls.
|
|
4
|
+
*
|
|
5
|
+
* Accepts a numeric checkpoint number (or `{ number }`), a slot number (`{ slot }`), a chain-tip
|
|
6
|
+
* name (e.g. `'proven'`), or `'latest'` (alias for `'proposed'` — on the checkpoint side, this
|
|
7
|
+
* means the most recent confirmed checkpoint).
|
|
8
|
+
*/
|
|
9
|
+
export declare const CheckpointParameterSchema: z.ZodUnion<[z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").CheckpointNumber, string | number | bigint>, z.ZodUnion<[z.ZodLiteral<"proposed">, z.ZodLiteral<"checkpointed">, z.ZodLiteral<"proven">, z.ZodLiteral<"finalized">]>, z.ZodLiteral<"latest">, z.ZodObject<{
|
|
10
|
+
number: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").CheckpointNumber, string | number | bigint>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
number: number & {
|
|
13
|
+
_branding: "CheckpointNumber";
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
number: string | number | bigint;
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
slot: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, import("@aztec/foundation/branded-types").SlotNumber, string | number | bigint>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
slot: number & {
|
|
21
|
+
_branding: "SlotNumber";
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
slot: string | number | bigint;
|
|
25
|
+
}>]>;
|
|
26
|
+
export type CheckpointParameter = z.infer<typeof CheckpointParameterSchema>;
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2twb2ludF9wYXJhbWV0ZXIuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbnRlcmZhY2VzL2NoZWNrcG9pbnRfcGFyYW1ldGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFJeEI7Ozs7OztHQU1HO0FBQ0gsZUFBTyxNQUFNLHlCQUF5Qjs7Ozs7Ozs7Ozs7Ozs7OztJQU1wQyxDQUFDO0FBRUgsTUFBTSxNQUFNLG1CQUFtQixHQUFHLENBQUMsQ0FBQyxLQUFLLENBQUMsT0FBTyx5QkFBeUIsQ0FBQyxDQUFDIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkpoint_parameter.d.ts","sourceRoot":"","sources":["../../src/interfaces/checkpoint_parameter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;IAMpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CheckpointNumberSchema, SlotNumberSchema } from '@aztec/foundation/branded-types';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ChainTipSchema } from './chain_tips.js';
|
|
4
|
+
/**
|
|
5
|
+
* Selector for a checkpoint in RPC calls.
|
|
6
|
+
*
|
|
7
|
+
* Accepts a numeric checkpoint number (or `{ number }`), a slot number (`{ slot }`), a chain-tip
|
|
8
|
+
* name (e.g. `'proven'`), or `'latest'` (alias for `'proposed'` — on the checkpoint side, this
|
|
9
|
+
* means the most recent confirmed checkpoint).
|
|
10
|
+
*/ export const CheckpointParameterSchema = z.union([
|
|
11
|
+
CheckpointNumberSchema,
|
|
12
|
+
ChainTipSchema,
|
|
13
|
+
z.literal('latest'),
|
|
14
|
+
z.object({
|
|
15
|
+
number: CheckpointNumberSchema
|
|
16
|
+
}),
|
|
17
|
+
z.object({
|
|
18
|
+
slot: SlotNumberSchema
|
|
19
|
+
})
|
|
20
|
+
]);
|