@aztec/txe 3.0.0-nightly.20251216 → 3.0.0-nightly.20251218
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/index.d.ts +1 -1
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +3 -2
- package/dest/oracle/txe_oracle_public_context.d.ts +2 -2
- package/dest/oracle/txe_oracle_public_context.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_public_context.js +3 -5
- package/dest/oracle/txe_oracle_top_level_context.d.ts +1 -1
- package/dest/oracle/txe_oracle_top_level_context.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_top_level_context.js +13 -14
- package/dest/rpc_translator.d.ts +3 -3
- package/dest/rpc_translator.d.ts.map +1 -1
- package/dest/rpc_translator.js +2 -2
- package/dest/state_machine/archiver.d.ts +13 -7
- package/dest/state_machine/archiver.d.ts.map +1 -1
- package/dest/state_machine/archiver.js +83 -15
- package/dest/state_machine/dummy_p2p_client.d.ts +1 -1
- package/dest/state_machine/dummy_p2p_client.d.ts.map +1 -1
- package/dest/state_machine/dummy_p2p_client.js +3 -1
- package/dest/state_machine/index.d.ts +5 -5
- package/dest/state_machine/index.d.ts.map +1 -1
- package/dest/state_machine/index.js +13 -19
- package/dest/txe_session.d.ts +1 -1
- package/dest/txe_session.d.ts.map +1 -1
- package/dest/txe_session.js +10 -9
- package/dest/util/encoding.d.ts +601 -2
- package/dest/util/encoding.d.ts.map +1 -1
- package/dest/utils/block_creation.d.ts +16 -2
- package/dest/utils/block_creation.d.ts.map +1 -1
- package/dest/utils/block_creation.js +22 -1
- package/package.json +15 -15
- package/src/index.ts +14 -11
- package/src/oracle/txe_oracle_public_context.ts +3 -8
- package/src/oracle/txe_oracle_top_level_context.ts +16 -38
- package/src/rpc_translator.ts +2 -2
- package/src/state_machine/archiver.ts +106 -21
- package/src/state_machine/dummy_p2p_client.ts +3 -1
- package/src/state_machine/index.ts +18 -17
- package/src/txe_session.ts +19 -17
- package/src/utils/block_creation.ts +31 -1
package/dest/util/encoding.d.ts
CHANGED
|
@@ -55,7 +55,606 @@ export declare function toForeignCallResult(obj: (ForeignCallSingle | ForeignCal
|
|
|
55
55
|
};
|
|
56
56
|
export declare const ForeignCallSingleSchema: z.ZodString;
|
|
57
57
|
export declare const ForeignCallArraySchema: z.ZodArray<z.ZodString, "many">;
|
|
58
|
-
export declare const ForeignCallArgsSchema: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">,
|
|
58
|
+
export declare const ForeignCallArgsSchema: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
functions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
functionType: z.ZodNativeEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
|
|
63
|
+
isOnlySelf: z.ZodBoolean;
|
|
64
|
+
isStatic: z.ZodBoolean;
|
|
65
|
+
isInitializer: z.ZodBoolean;
|
|
66
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
type: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
|
|
69
|
+
visibility: z.ZodEnum<["public", "private", "databus"]>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
name: string;
|
|
72
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
73
|
+
visibility: "databus" | "private" | "public";
|
|
74
|
+
}, {
|
|
75
|
+
name: string;
|
|
76
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
77
|
+
visibility: "databus" | "private" | "public";
|
|
78
|
+
}>, "many">;
|
|
79
|
+
returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
|
|
80
|
+
errorTypes: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
81
|
+
error_kind: z.ZodLiteral<"string">;
|
|
82
|
+
string: z.ZodString;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
error_kind: "string";
|
|
85
|
+
string: string;
|
|
86
|
+
}, {
|
|
87
|
+
error_kind: "string";
|
|
88
|
+
string: string;
|
|
89
|
+
}>, z.ZodObject<{
|
|
90
|
+
error_kind: z.ZodLiteral<"fmtstring">;
|
|
91
|
+
length: z.ZodNumber;
|
|
92
|
+
item_types: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
error_kind: "fmtstring";
|
|
95
|
+
length: number;
|
|
96
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
97
|
+
}, {
|
|
98
|
+
error_kind: "fmtstring";
|
|
99
|
+
length: number;
|
|
100
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
101
|
+
}>, z.ZodIntersection<z.ZodObject<{
|
|
102
|
+
error_kind: z.ZodLiteral<"custom">;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
error_kind: "custom";
|
|
105
|
+
}, {
|
|
106
|
+
error_kind: "custom";
|
|
107
|
+
}>, z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>>]>>>;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
name: string;
|
|
110
|
+
functionType: import("@aztec/stdlib/abi").FunctionType;
|
|
111
|
+
isOnlySelf: boolean;
|
|
112
|
+
isStatic: boolean;
|
|
113
|
+
isInitializer: boolean;
|
|
114
|
+
parameters: {
|
|
115
|
+
name: string;
|
|
116
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
117
|
+
visibility: "databus" | "private" | "public";
|
|
118
|
+
}[];
|
|
119
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
120
|
+
errorTypes: Record<string, {
|
|
121
|
+
error_kind: "string";
|
|
122
|
+
string: string;
|
|
123
|
+
} | {
|
|
124
|
+
error_kind: "fmtstring";
|
|
125
|
+
length: number;
|
|
126
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
127
|
+
} | ({
|
|
128
|
+
error_kind: "custom";
|
|
129
|
+
} & import("@aztec/stdlib/abi").AbiType) | undefined>;
|
|
130
|
+
}, {
|
|
131
|
+
name: string;
|
|
132
|
+
functionType: import("@aztec/stdlib/abi").FunctionType;
|
|
133
|
+
isOnlySelf: boolean;
|
|
134
|
+
isStatic: boolean;
|
|
135
|
+
isInitializer: boolean;
|
|
136
|
+
parameters: {
|
|
137
|
+
name: string;
|
|
138
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
139
|
+
visibility: "databus" | "private" | "public";
|
|
140
|
+
}[];
|
|
141
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
142
|
+
errorTypes: Record<string, {
|
|
143
|
+
error_kind: "string";
|
|
144
|
+
string: string;
|
|
145
|
+
} | {
|
|
146
|
+
error_kind: "fmtstring";
|
|
147
|
+
length: number;
|
|
148
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
149
|
+
} | ({
|
|
150
|
+
error_kind: "custom";
|
|
151
|
+
} & import("@aztec/stdlib/abi").AbiType) | undefined>;
|
|
152
|
+
}>, z.ZodObject<{
|
|
153
|
+
bytecode: import("../../../foundation/dest/schemas/types.js").ZodFor<Buffer<ArrayBufferLike>>;
|
|
154
|
+
verificationKey: z.ZodOptional<z.ZodString>;
|
|
155
|
+
debugSymbols: z.ZodString;
|
|
156
|
+
debug: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
debugSymbols: z.ZodObject<{
|
|
158
|
+
location_tree: z.ZodObject<{
|
|
159
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
160
|
+
parent: z.ZodNullable<z.ZodNumber>;
|
|
161
|
+
value: z.ZodObject<{
|
|
162
|
+
span: z.ZodObject<{
|
|
163
|
+
start: z.ZodNumber;
|
|
164
|
+
end: z.ZodNumber;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
start: number;
|
|
167
|
+
end: number;
|
|
168
|
+
}, {
|
|
169
|
+
start: number;
|
|
170
|
+
end: number;
|
|
171
|
+
}>;
|
|
172
|
+
file: z.ZodNumber;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
span: {
|
|
175
|
+
start: number;
|
|
176
|
+
end: number;
|
|
177
|
+
};
|
|
178
|
+
file: number;
|
|
179
|
+
}, {
|
|
180
|
+
span: {
|
|
181
|
+
start: number;
|
|
182
|
+
end: number;
|
|
183
|
+
};
|
|
184
|
+
file: number;
|
|
185
|
+
}>;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
parent: number | null;
|
|
188
|
+
value: {
|
|
189
|
+
span: {
|
|
190
|
+
start: number;
|
|
191
|
+
end: number;
|
|
192
|
+
};
|
|
193
|
+
file: number;
|
|
194
|
+
};
|
|
195
|
+
}, {
|
|
196
|
+
parent: number | null;
|
|
197
|
+
value: {
|
|
198
|
+
span: {
|
|
199
|
+
start: number;
|
|
200
|
+
end: number;
|
|
201
|
+
};
|
|
202
|
+
file: number;
|
|
203
|
+
};
|
|
204
|
+
}>, "many">;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
locations: {
|
|
207
|
+
parent: number | null;
|
|
208
|
+
value: {
|
|
209
|
+
span: {
|
|
210
|
+
start: number;
|
|
211
|
+
end: number;
|
|
212
|
+
};
|
|
213
|
+
file: number;
|
|
214
|
+
};
|
|
215
|
+
}[];
|
|
216
|
+
}, {
|
|
217
|
+
locations: {
|
|
218
|
+
parent: number | null;
|
|
219
|
+
value: {
|
|
220
|
+
span: {
|
|
221
|
+
start: number;
|
|
222
|
+
end: number;
|
|
223
|
+
};
|
|
224
|
+
file: number;
|
|
225
|
+
};
|
|
226
|
+
}[];
|
|
227
|
+
}>;
|
|
228
|
+
acir_locations: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
229
|
+
brillig_locations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
location_tree: {
|
|
232
|
+
locations: {
|
|
233
|
+
parent: number | null;
|
|
234
|
+
value: {
|
|
235
|
+
span: {
|
|
236
|
+
start: number;
|
|
237
|
+
end: number;
|
|
238
|
+
};
|
|
239
|
+
file: number;
|
|
240
|
+
};
|
|
241
|
+
}[];
|
|
242
|
+
};
|
|
243
|
+
acir_locations: Record<string, number>;
|
|
244
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
245
|
+
}, {
|
|
246
|
+
location_tree: {
|
|
247
|
+
locations: {
|
|
248
|
+
parent: number | null;
|
|
249
|
+
value: {
|
|
250
|
+
span: {
|
|
251
|
+
start: number;
|
|
252
|
+
end: number;
|
|
253
|
+
};
|
|
254
|
+
file: number;
|
|
255
|
+
};
|
|
256
|
+
}[];
|
|
257
|
+
};
|
|
258
|
+
acir_locations: Record<string, number>;
|
|
259
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
260
|
+
}>;
|
|
261
|
+
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
262
|
+
source: z.ZodString;
|
|
263
|
+
path: z.ZodString;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
source: string;
|
|
266
|
+
path: string;
|
|
267
|
+
}, {
|
|
268
|
+
source: string;
|
|
269
|
+
path: string;
|
|
270
|
+
}>>;
|
|
271
|
+
}, "strip", z.ZodTypeAny, {
|
|
272
|
+
debugSymbols: {
|
|
273
|
+
location_tree: {
|
|
274
|
+
locations: {
|
|
275
|
+
parent: number | null;
|
|
276
|
+
value: {
|
|
277
|
+
span: {
|
|
278
|
+
start: number;
|
|
279
|
+
end: number;
|
|
280
|
+
};
|
|
281
|
+
file: number;
|
|
282
|
+
};
|
|
283
|
+
}[];
|
|
284
|
+
};
|
|
285
|
+
acir_locations: Record<string, number>;
|
|
286
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
287
|
+
};
|
|
288
|
+
files: Record<string, {
|
|
289
|
+
source: string;
|
|
290
|
+
path: string;
|
|
291
|
+
}>;
|
|
292
|
+
}, {
|
|
293
|
+
debugSymbols: {
|
|
294
|
+
location_tree: {
|
|
295
|
+
locations: {
|
|
296
|
+
parent: number | null;
|
|
297
|
+
value: {
|
|
298
|
+
span: {
|
|
299
|
+
start: number;
|
|
300
|
+
end: number;
|
|
301
|
+
};
|
|
302
|
+
file: number;
|
|
303
|
+
};
|
|
304
|
+
}[];
|
|
305
|
+
};
|
|
306
|
+
acir_locations: Record<string, number>;
|
|
307
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
308
|
+
};
|
|
309
|
+
files: Record<string, {
|
|
310
|
+
source: string;
|
|
311
|
+
path: string;
|
|
312
|
+
}>;
|
|
313
|
+
}>>;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
bytecode: Buffer<ArrayBufferLike>;
|
|
316
|
+
verificationKey?: string | undefined;
|
|
317
|
+
debugSymbols: string;
|
|
318
|
+
debug?: {
|
|
319
|
+
debugSymbols: {
|
|
320
|
+
location_tree: {
|
|
321
|
+
locations: {
|
|
322
|
+
parent: number | null;
|
|
323
|
+
value: {
|
|
324
|
+
span: {
|
|
325
|
+
start: number;
|
|
326
|
+
end: number;
|
|
327
|
+
};
|
|
328
|
+
file: number;
|
|
329
|
+
};
|
|
330
|
+
}[];
|
|
331
|
+
};
|
|
332
|
+
acir_locations: Record<string, number>;
|
|
333
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
334
|
+
};
|
|
335
|
+
files: Record<string, {
|
|
336
|
+
source: string;
|
|
337
|
+
path: string;
|
|
338
|
+
}>;
|
|
339
|
+
} | undefined;
|
|
340
|
+
}, {
|
|
341
|
+
bytecode?: any;
|
|
342
|
+
verificationKey?: string | undefined;
|
|
343
|
+
debugSymbols: string;
|
|
344
|
+
debug?: {
|
|
345
|
+
debugSymbols: {
|
|
346
|
+
location_tree: {
|
|
347
|
+
locations: {
|
|
348
|
+
parent: number | null;
|
|
349
|
+
value: {
|
|
350
|
+
span: {
|
|
351
|
+
start: number;
|
|
352
|
+
end: number;
|
|
353
|
+
};
|
|
354
|
+
file: number;
|
|
355
|
+
};
|
|
356
|
+
}[];
|
|
357
|
+
};
|
|
358
|
+
acir_locations: Record<string, number>;
|
|
359
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
360
|
+
};
|
|
361
|
+
files: Record<string, {
|
|
362
|
+
source: string;
|
|
363
|
+
path: string;
|
|
364
|
+
}>;
|
|
365
|
+
} | undefined;
|
|
366
|
+
}>>, "many">;
|
|
367
|
+
nonDispatchPublicFunctions: z.ZodArray<z.ZodObject<{
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
functionType: z.ZodNativeEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
|
|
370
|
+
isOnlySelf: z.ZodBoolean;
|
|
371
|
+
isStatic: z.ZodBoolean;
|
|
372
|
+
isInitializer: z.ZodBoolean;
|
|
373
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
374
|
+
name: z.ZodString;
|
|
375
|
+
type: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
|
|
376
|
+
visibility: z.ZodEnum<["public", "private", "databus"]>;
|
|
377
|
+
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
name: string;
|
|
379
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
380
|
+
visibility: "databus" | "private" | "public";
|
|
381
|
+
}, {
|
|
382
|
+
name: string;
|
|
383
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
384
|
+
visibility: "databus" | "private" | "public";
|
|
385
|
+
}>, "many">;
|
|
386
|
+
returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
|
|
387
|
+
errorTypes: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
388
|
+
error_kind: z.ZodLiteral<"string">;
|
|
389
|
+
string: z.ZodString;
|
|
390
|
+
}, "strip", z.ZodTypeAny, {
|
|
391
|
+
error_kind: "string";
|
|
392
|
+
string: string;
|
|
393
|
+
}, {
|
|
394
|
+
error_kind: "string";
|
|
395
|
+
string: string;
|
|
396
|
+
}>, z.ZodObject<{
|
|
397
|
+
error_kind: z.ZodLiteral<"fmtstring">;
|
|
398
|
+
length: z.ZodNumber;
|
|
399
|
+
item_types: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
|
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
|
401
|
+
error_kind: "fmtstring";
|
|
402
|
+
length: number;
|
|
403
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
404
|
+
}, {
|
|
405
|
+
error_kind: "fmtstring";
|
|
406
|
+
length: number;
|
|
407
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
408
|
+
}>, z.ZodIntersection<z.ZodObject<{
|
|
409
|
+
error_kind: z.ZodLiteral<"custom">;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
error_kind: "custom";
|
|
412
|
+
}, {
|
|
413
|
+
error_kind: "custom";
|
|
414
|
+
}>, z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>>]>>>;
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
416
|
+
name: string;
|
|
417
|
+
functionType: import("@aztec/stdlib/abi").FunctionType;
|
|
418
|
+
isOnlySelf: boolean;
|
|
419
|
+
isStatic: boolean;
|
|
420
|
+
isInitializer: boolean;
|
|
421
|
+
parameters: {
|
|
422
|
+
name: string;
|
|
423
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
424
|
+
visibility: "databus" | "private" | "public";
|
|
425
|
+
}[];
|
|
426
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
427
|
+
errorTypes: Record<string, {
|
|
428
|
+
error_kind: "string";
|
|
429
|
+
string: string;
|
|
430
|
+
} | {
|
|
431
|
+
error_kind: "fmtstring";
|
|
432
|
+
length: number;
|
|
433
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
434
|
+
} | ({
|
|
435
|
+
error_kind: "custom";
|
|
436
|
+
} & import("@aztec/stdlib/abi").AbiType) | undefined>;
|
|
437
|
+
}, {
|
|
438
|
+
name: string;
|
|
439
|
+
functionType: import("@aztec/stdlib/abi").FunctionType;
|
|
440
|
+
isOnlySelf: boolean;
|
|
441
|
+
isStatic: boolean;
|
|
442
|
+
isInitializer: boolean;
|
|
443
|
+
parameters: {
|
|
444
|
+
name: string;
|
|
445
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
446
|
+
visibility: "databus" | "private" | "public";
|
|
447
|
+
}[];
|
|
448
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
449
|
+
errorTypes: Record<string, {
|
|
450
|
+
error_kind: "string";
|
|
451
|
+
string: string;
|
|
452
|
+
} | {
|
|
453
|
+
error_kind: "fmtstring";
|
|
454
|
+
length: number;
|
|
455
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
456
|
+
} | ({
|
|
457
|
+
error_kind: "custom";
|
|
458
|
+
} & import("@aztec/stdlib/abi").AbiType) | undefined>;
|
|
459
|
+
}>, "many">;
|
|
460
|
+
outputs: z.ZodObject<{
|
|
461
|
+
structs: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">>, Record<string, import("@aztec/stdlib/abi").AbiType[]>, Record<string, import("@aztec/stdlib/abi").AbiType[]>>;
|
|
462
|
+
globals: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiValue, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiValue>, "many">>;
|
|
463
|
+
}, "strip", z.ZodTypeAny, {
|
|
464
|
+
structs: Record<string, import("@aztec/stdlib/abi").AbiType[]>;
|
|
465
|
+
globals: Record<string, import("@aztec/stdlib/abi").AbiValue[]>;
|
|
466
|
+
}, {
|
|
467
|
+
structs: Record<string, import("@aztec/stdlib/abi").AbiType[]>;
|
|
468
|
+
globals: Record<string, import("@aztec/stdlib/abi").AbiValue[]>;
|
|
469
|
+
}>;
|
|
470
|
+
storageLayout: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
471
|
+
slot: z.ZodType<Fr, any, string>;
|
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
|
473
|
+
slot: Fr;
|
|
474
|
+
}, {
|
|
475
|
+
slot: string;
|
|
476
|
+
}>>;
|
|
477
|
+
fileMap: z.ZodRecord<z.ZodNumber, z.ZodObject<{
|
|
478
|
+
source: z.ZodString;
|
|
479
|
+
path: z.ZodString;
|
|
480
|
+
}, "strip", z.ZodTypeAny, {
|
|
481
|
+
source: string;
|
|
482
|
+
path: string;
|
|
483
|
+
}, {
|
|
484
|
+
source: string;
|
|
485
|
+
path: string;
|
|
486
|
+
}>>;
|
|
487
|
+
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
name: string;
|
|
489
|
+
functions: ({
|
|
490
|
+
name: string;
|
|
491
|
+
functionType: import("@aztec/stdlib/abi").FunctionType;
|
|
492
|
+
isOnlySelf: boolean;
|
|
493
|
+
isStatic: boolean;
|
|
494
|
+
isInitializer: boolean;
|
|
495
|
+
parameters: {
|
|
496
|
+
name: string;
|
|
497
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
498
|
+
visibility: "databus" | "private" | "public";
|
|
499
|
+
}[];
|
|
500
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
501
|
+
errorTypes: Record<string, {
|
|
502
|
+
error_kind: "string";
|
|
503
|
+
string: string;
|
|
504
|
+
} | {
|
|
505
|
+
error_kind: "fmtstring";
|
|
506
|
+
length: number;
|
|
507
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
508
|
+
} | ({
|
|
509
|
+
error_kind: "custom";
|
|
510
|
+
} & import("@aztec/stdlib/abi").AbiType) | undefined>;
|
|
511
|
+
} & {
|
|
512
|
+
bytecode: Buffer<ArrayBufferLike>;
|
|
513
|
+
verificationKey?: string | undefined;
|
|
514
|
+
debugSymbols: string;
|
|
515
|
+
debug?: {
|
|
516
|
+
debugSymbols: {
|
|
517
|
+
location_tree: {
|
|
518
|
+
locations: {
|
|
519
|
+
parent: number | null;
|
|
520
|
+
value: {
|
|
521
|
+
span: {
|
|
522
|
+
start: number;
|
|
523
|
+
end: number;
|
|
524
|
+
};
|
|
525
|
+
file: number;
|
|
526
|
+
};
|
|
527
|
+
}[];
|
|
528
|
+
};
|
|
529
|
+
acir_locations: Record<string, number>;
|
|
530
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
531
|
+
};
|
|
532
|
+
files: Record<string, {
|
|
533
|
+
source: string;
|
|
534
|
+
path: string;
|
|
535
|
+
}>;
|
|
536
|
+
} | undefined;
|
|
537
|
+
})[];
|
|
538
|
+
nonDispatchPublicFunctions: {
|
|
539
|
+
name: string;
|
|
540
|
+
functionType: import("@aztec/stdlib/abi").FunctionType;
|
|
541
|
+
isOnlySelf: boolean;
|
|
542
|
+
isStatic: boolean;
|
|
543
|
+
isInitializer: boolean;
|
|
544
|
+
parameters: {
|
|
545
|
+
name: string;
|
|
546
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
547
|
+
visibility: "databus" | "private" | "public";
|
|
548
|
+
}[];
|
|
549
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
550
|
+
errorTypes: Record<string, {
|
|
551
|
+
error_kind: "string";
|
|
552
|
+
string: string;
|
|
553
|
+
} | {
|
|
554
|
+
error_kind: "fmtstring";
|
|
555
|
+
length: number;
|
|
556
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
557
|
+
} | ({
|
|
558
|
+
error_kind: "custom";
|
|
559
|
+
} & import("@aztec/stdlib/abi").AbiType) | undefined>;
|
|
560
|
+
}[];
|
|
561
|
+
outputs: {
|
|
562
|
+
structs: Record<string, import("@aztec/stdlib/abi").AbiType[]>;
|
|
563
|
+
globals: Record<string, import("@aztec/stdlib/abi").AbiValue[]>;
|
|
564
|
+
};
|
|
565
|
+
storageLayout: Record<string, {
|
|
566
|
+
slot: Fr;
|
|
567
|
+
}>;
|
|
568
|
+
fileMap: Record<number, {
|
|
569
|
+
source: string;
|
|
570
|
+
path: string;
|
|
571
|
+
}>;
|
|
572
|
+
}, {
|
|
573
|
+
name: string;
|
|
574
|
+
functions: ({
|
|
575
|
+
name: string;
|
|
576
|
+
functionType: import("@aztec/stdlib/abi").FunctionType;
|
|
577
|
+
isOnlySelf: boolean;
|
|
578
|
+
isStatic: boolean;
|
|
579
|
+
isInitializer: boolean;
|
|
580
|
+
parameters: {
|
|
581
|
+
name: string;
|
|
582
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
583
|
+
visibility: "databus" | "private" | "public";
|
|
584
|
+
}[];
|
|
585
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
586
|
+
errorTypes: Record<string, {
|
|
587
|
+
error_kind: "string";
|
|
588
|
+
string: string;
|
|
589
|
+
} | {
|
|
590
|
+
error_kind: "fmtstring";
|
|
591
|
+
length: number;
|
|
592
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
593
|
+
} | ({
|
|
594
|
+
error_kind: "custom";
|
|
595
|
+
} & import("@aztec/stdlib/abi").AbiType) | undefined>;
|
|
596
|
+
} & {
|
|
597
|
+
bytecode?: any;
|
|
598
|
+
verificationKey?: string | undefined;
|
|
599
|
+
debugSymbols: string;
|
|
600
|
+
debug?: {
|
|
601
|
+
debugSymbols: {
|
|
602
|
+
location_tree: {
|
|
603
|
+
locations: {
|
|
604
|
+
parent: number | null;
|
|
605
|
+
value: {
|
|
606
|
+
span: {
|
|
607
|
+
start: number;
|
|
608
|
+
end: number;
|
|
609
|
+
};
|
|
610
|
+
file: number;
|
|
611
|
+
};
|
|
612
|
+
}[];
|
|
613
|
+
};
|
|
614
|
+
acir_locations: Record<string, number>;
|
|
615
|
+
brillig_locations: Record<string, Record<string, number>>;
|
|
616
|
+
};
|
|
617
|
+
files: Record<string, {
|
|
618
|
+
source: string;
|
|
619
|
+
path: string;
|
|
620
|
+
}>;
|
|
621
|
+
} | undefined;
|
|
622
|
+
})[];
|
|
623
|
+
nonDispatchPublicFunctions: {
|
|
624
|
+
name: string;
|
|
625
|
+
functionType: import("@aztec/stdlib/abi").FunctionType;
|
|
626
|
+
isOnlySelf: boolean;
|
|
627
|
+
isStatic: boolean;
|
|
628
|
+
isInitializer: boolean;
|
|
629
|
+
parameters: {
|
|
630
|
+
name: string;
|
|
631
|
+
type: import("@aztec/stdlib/abi").AbiType;
|
|
632
|
+
visibility: "databus" | "private" | "public";
|
|
633
|
+
}[];
|
|
634
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
635
|
+
errorTypes: Record<string, {
|
|
636
|
+
error_kind: "string";
|
|
637
|
+
string: string;
|
|
638
|
+
} | {
|
|
639
|
+
error_kind: "fmtstring";
|
|
640
|
+
length: number;
|
|
641
|
+
item_types: import("@aztec/stdlib/abi").AbiType[];
|
|
642
|
+
} | ({
|
|
643
|
+
error_kind: "custom";
|
|
644
|
+
} & import("@aztec/stdlib/abi").AbiType) | undefined>;
|
|
645
|
+
}[];
|
|
646
|
+
outputs: {
|
|
647
|
+
structs: Record<string, import("@aztec/stdlib/abi").AbiType[]>;
|
|
648
|
+
globals: Record<string, import("@aztec/stdlib/abi").AbiValue[]>;
|
|
649
|
+
};
|
|
650
|
+
storageLayout: Record<string, {
|
|
651
|
+
slot: string;
|
|
652
|
+
}>;
|
|
653
|
+
fileMap: Record<number, {
|
|
654
|
+
source: string;
|
|
655
|
+
path: string;
|
|
656
|
+
}>;
|
|
657
|
+
}>, z.ZodIntersection<z.ZodObject<{
|
|
59
658
|
version: z.ZodLiteral<1>;
|
|
60
659
|
salt: import("../../../foundation/dest/schemas/types.js").ZodFor<Fr>;
|
|
61
660
|
deployer: import("../../../foundation/dest/schemas/types.js").ZodFor<AztecAddress>;
|
|
@@ -118,4 +717,4 @@ export declare const ForeignCallResultSchema: z.ZodObject<{
|
|
|
118
717
|
}, {
|
|
119
718
|
values: (string | string[])[];
|
|
120
719
|
}>;
|
|
121
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
720
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jb2RpbmcuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2VuY29kaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUNwRCxPQUFPLEtBQUssRUFBRSxVQUFVLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUVoRSxPQUFPLEVBQUUsS0FBSyxnQkFBZ0IsRUFBMEIsTUFBTSxtQkFBbUIsQ0FBQztBQUNsRixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFFLEtBQUssMkJBQTJCLEVBQXFDLE1BQU0sd0JBQXdCLENBQUM7QUFFN0csT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLEtBQUssQ0FBQztBQUV4QixNQUFNLE1BQU0saUJBQWlCLEdBQUcsTUFBTSxDQUFDO0FBRXZDLE1BQU0sTUFBTSxnQkF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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEjC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
2
2
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
|
-
import { L2BlockHeader } from '@aztec/stdlib/block';
|
|
3
|
+
import { L2Block, L2BlockHeader } from '@aztec/stdlib/block';
|
|
4
4
|
import { type MerkleTreeWriteOperations } from '@aztec/stdlib/trees';
|
|
5
5
|
import { GlobalVariables, TxEffect } from '@aztec/stdlib/tx';
|
|
6
6
|
/**
|
|
@@ -11,4 +11,18 @@ import { GlobalVariables, TxEffect } from '@aztec/stdlib/tx';
|
|
|
11
11
|
export declare function getSingleTxBlockRequestHash(blockNumber: BlockNumber): Fr;
|
|
12
12
|
export declare function insertTxEffectIntoWorldTrees(txEffect: TxEffect, worldTrees: MerkleTreeWriteOperations): Promise<void>;
|
|
13
13
|
export declare function makeTXEBlockHeader(worldTrees: MerkleTreeWriteOperations, globalVariables: GlobalVariables): Promise<L2BlockHeader>;
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Creates an L2Block with proper archive chaining.
|
|
16
|
+
* This function:
|
|
17
|
+
* 1. Gets the current archive state as lastArchive for the header
|
|
18
|
+
* 2. Creates the block header
|
|
19
|
+
* 3. Updates the archive tree with the header hash
|
|
20
|
+
* 4. Gets the new archive state for the block's archive
|
|
21
|
+
*
|
|
22
|
+
* @param worldTrees - The world trees to read/write from
|
|
23
|
+
* @param globalVariables - Global variables for the block
|
|
24
|
+
* @param txEffects - Transaction effects to include in the block
|
|
25
|
+
* @returns The created L2Block with proper archive chaining
|
|
26
|
+
*/
|
|
27
|
+
export declare function makeTXEBlock(worldTrees: MerkleTreeWriteOperations, globalVariables: GlobalVariables, txEffects: TxEffect[]): Promise<L2Block>;
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2tfY3JlYXRpb24uZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9ibG9ja19jcmVhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFFOUQsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BELE9BQU8sRUFBUSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFFbkUsT0FBTyxFQUF3QyxLQUFLLHlCQUF5QixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDM0csT0FBTyxFQUFFLGVBQWUsRUFBRSxRQUFRLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUU3RDs7OztHQUlHO0FBQ0gsd0JBQWdCLDJCQUEyQixDQUFDLFdBQVcsRUFBRSxXQUFXLEdBQUcsRUFBRSxDQUV4RTtBQUVELHdCQUFzQiw0QkFBNEIsQ0FDaEQsUUFBUSxFQUFFLFFBQVEsRUFDbEIsVUFBVSxFQUFFLHlCQUF5QixHQUNwQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBa0JmO0FBRUQsd0JBQXNCLGtCQUFrQixDQUN0QyxVQUFVLEVBQUUseUJBQXlCLEVBQ3JDLGVBQWUsRUFBRSxlQUFlLEdBQy9CLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FjeEI7QUFFRDs7Ozs7Ozs7Ozs7O0dBWUc7QUFDSCx3QkFBc0IsWUFBWSxDQUNoQyxVQUFVLEVBQUUseUJBQXlCLEVBQ3JDLGVBQWUsRUFBRSxlQUFlLEVBQ2hDLFNBQVMsRUFBRSxRQUFRLEVBQUUsR0FDcEIsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQVdsQiJ9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_creation.d.ts","sourceRoot":"","sources":["../../src/utils/block_creation.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"block_creation.d.ts","sourceRoot":"","sources":["../../src/utils/block_creation.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAQ,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAwC,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAC3G,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,WAAW,GAAG,EAAE,CAExE;AAED,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,IAAI,CAAC,CAkBf;AAED,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,yBAAyB,EACrC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,aAAa,CAAC,CAcxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,YAAY,CAChC,UAAU,EAAE,yBAAyB,EACrC,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,QAAQ,EAAE,GACpB,OAAO,CAAC,OAAO,CAAC,CAWlB"}
|