@aztec/txe 0.0.1-commit.5476d83 → 0.0.1-commit.5914bae

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.
Files changed (78) hide show
  1. package/dest/constants.d.ts +3 -0
  2. package/dest/constants.d.ts.map +1 -0
  3. package/dest/constants.js +2 -0
  4. package/dest/index.d.ts +1 -1
  5. package/dest/index.d.ts.map +1 -1
  6. package/dest/index.js +91 -56
  7. package/dest/oracle/interfaces.d.ts +33 -29
  8. package/dest/oracle/interfaces.d.ts.map +1 -1
  9. package/dest/oracle/txe_oracle_public_context.d.ts +16 -16
  10. package/dest/oracle/txe_oracle_public_context.d.ts.map +1 -1
  11. package/dest/oracle/txe_oracle_public_context.js +20 -22
  12. package/dest/oracle/txe_oracle_top_level_context.d.ts +42 -27
  13. package/dest/oracle/txe_oracle_top_level_context.d.ts.map +1 -1
  14. package/dest/oracle/txe_oracle_top_level_context.js +232 -107
  15. package/dest/rpc_translator.d.ts +129 -79
  16. package/dest/rpc_translator.d.ts.map +1 -1
  17. package/dest/rpc_translator.js +465 -175
  18. package/dest/state_machine/archiver.d.ts +21 -52
  19. package/dest/state_machine/archiver.d.ts.map +1 -1
  20. package/dest/state_machine/archiver.js +66 -99
  21. package/dest/state_machine/dummy_p2p_client.d.ts +20 -15
  22. package/dest/state_machine/dummy_p2p_client.d.ts.map +1 -1
  23. package/dest/state_machine/dummy_p2p_client.js +42 -25
  24. package/dest/state_machine/global_variable_builder.d.ts +6 -5
  25. package/dest/state_machine/global_variable_builder.d.ts.map +1 -1
  26. package/dest/state_machine/global_variable_builder.js +13 -1
  27. package/dest/state_machine/index.d.ts +9 -7
  28. package/dest/state_machine/index.d.ts.map +1 -1
  29. package/dest/state_machine/index.js +44 -23
  30. package/dest/state_machine/mock_epoch_cache.d.ts +9 -6
  31. package/dest/state_machine/mock_epoch_cache.d.ts.map +1 -1
  32. package/dest/state_machine/mock_epoch_cache.js +14 -7
  33. package/dest/state_machine/synchronizer.d.ts +6 -5
  34. package/dest/state_machine/synchronizer.d.ts.map +1 -1
  35. package/dest/state_machine/synchronizer.js +8 -7
  36. package/dest/txe_session.d.ts +27 -15
  37. package/dest/txe_session.d.ts.map +1 -1
  38. package/dest/txe_session.js +173 -55
  39. package/dest/util/encoding.d.ts +617 -19
  40. package/dest/util/encoding.d.ts.map +1 -1
  41. package/dest/util/encoding.js +1 -1
  42. package/dest/util/txe_account_store.d.ts +10 -0
  43. package/dest/util/txe_account_store.d.ts.map +1 -0
  44. package/dest/util/{txe_account_data_provider.js → txe_account_store.js} +1 -1
  45. package/dest/util/txe_public_contract_data_source.d.ts +8 -8
  46. package/dest/util/txe_public_contract_data_source.d.ts.map +1 -1
  47. package/dest/util/txe_public_contract_data_source.js +12 -29
  48. package/dest/utils/block_creation.d.ts +21 -6
  49. package/dest/utils/block_creation.d.ts.map +1 -1
  50. package/dest/utils/block_creation.js +38 -4
  51. package/dest/utils/tx_effect_creation.d.ts +3 -3
  52. package/dest/utils/tx_effect_creation.d.ts.map +1 -1
  53. package/dest/utils/tx_effect_creation.js +4 -7
  54. package/package.json +18 -18
  55. package/src/constants.ts +3 -0
  56. package/src/index.ts +103 -63
  57. package/src/oracle/interfaces.ts +36 -32
  58. package/src/oracle/txe_oracle_public_context.ts +21 -28
  59. package/src/oracle/txe_oracle_top_level_context.ts +285 -149
  60. package/src/rpc_translator.ts +552 -193
  61. package/src/state_machine/archiver.ts +62 -117
  62. package/src/state_machine/dummy_p2p_client.ts +58 -33
  63. package/src/state_machine/global_variable_builder.ts +21 -4
  64. package/src/state_machine/index.ts +64 -21
  65. package/src/state_machine/mock_epoch_cache.ts +15 -11
  66. package/src/state_machine/synchronizer.ts +9 -8
  67. package/src/txe_session.ts +239 -104
  68. package/src/util/encoding.ts +1 -1
  69. package/src/util/{txe_account_data_provider.ts → txe_account_store.ts} +1 -1
  70. package/src/util/txe_public_contract_data_source.ts +20 -45
  71. package/src/utils/block_creation.ts +49 -15
  72. package/src/utils/tx_effect_creation.ts +5 -12
  73. package/dest/util/txe_account_data_provider.d.ts +0 -10
  74. package/dest/util/txe_account_data_provider.d.ts.map +0 -1
  75. package/dest/util/txe_contract_data_provider.d.ts +0 -12
  76. package/dest/util/txe_contract_data_provider.d.ts.map +0 -1
  77. package/dest/util/txe_contract_data_provider.js +0 -22
  78. package/src/util/txe_contract_data_provider.ts +0 -36
@@ -1,5 +1,5 @@
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
1
2
  import type { EthAddress } from '@aztec/foundation/eth-address';
2
- import { Fr } from '@aztec/foundation/fields';
3
3
  import { type ContractArtifact } from '@aztec/stdlib/abi';
4
4
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
5
5
  import { type ContractInstanceWithAddress } from '@aztec/stdlib/contract';
@@ -55,29 +55,627 @@ 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">, import("../../../foundation/dest/schemas/types.js").ZodFor<ContractArtifact>, z.ZodIntersection<z.ZodObject<{
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("@aztec/foundation/schemas").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.ZodType<import("@aztec/stdlib/abi").DebugFileMap, z.ZodTypeDef, import("@aztec/stdlib/abi").DebugFileMap>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ debugSymbols: {
264
+ location_tree: {
265
+ locations: {
266
+ parent: number | null;
267
+ value: {
268
+ span: {
269
+ start: number;
270
+ end: number;
271
+ };
272
+ file: number;
273
+ };
274
+ }[];
275
+ };
276
+ acir_locations: Record<string, number>;
277
+ brillig_locations: Record<string, Record<string, number>>;
278
+ };
279
+ files: import("@aztec/stdlib/abi").DebugFileMap;
280
+ }, {
281
+ debugSymbols: {
282
+ location_tree: {
283
+ locations: {
284
+ parent: number | null;
285
+ value: {
286
+ span: {
287
+ start: number;
288
+ end: number;
289
+ };
290
+ file: number;
291
+ };
292
+ }[];
293
+ };
294
+ acir_locations: Record<string, number>;
295
+ brillig_locations: Record<string, Record<string, number>>;
296
+ };
297
+ files: import("@aztec/stdlib/abi").DebugFileMap;
298
+ }>>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ bytecode: Buffer<ArrayBufferLike>;
301
+ verificationKey?: string | undefined;
302
+ debugSymbols: string;
303
+ debug?: {
304
+ debugSymbols: {
305
+ location_tree: {
306
+ locations: {
307
+ parent: number | null;
308
+ value: {
309
+ span: {
310
+ start: number;
311
+ end: number;
312
+ };
313
+ file: number;
314
+ };
315
+ }[];
316
+ };
317
+ acir_locations: Record<string, number>;
318
+ brillig_locations: Record<string, Record<string, number>>;
319
+ };
320
+ files: import("@aztec/stdlib/abi").DebugFileMap;
321
+ } | undefined;
322
+ }, {
323
+ bytecode?: any;
324
+ verificationKey?: string | undefined;
325
+ debugSymbols: string;
326
+ debug?: {
327
+ debugSymbols: {
328
+ location_tree: {
329
+ locations: {
330
+ parent: number | null;
331
+ value: {
332
+ span: {
333
+ start: number;
334
+ end: number;
335
+ };
336
+ file: number;
337
+ };
338
+ }[];
339
+ };
340
+ acir_locations: Record<string, number>;
341
+ brillig_locations: Record<string, Record<string, number>>;
342
+ };
343
+ files: import("@aztec/stdlib/abi").DebugFileMap;
344
+ } | undefined;
345
+ }>>, "many">;
346
+ nonDispatchPublicFunctions: z.ZodArray<z.ZodObject<{
347
+ name: z.ZodString;
348
+ functionType: z.ZodNativeEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
349
+ isOnlySelf: z.ZodBoolean;
350
+ isStatic: z.ZodBoolean;
351
+ isInitializer: z.ZodBoolean;
352
+ parameters: z.ZodArray<z.ZodObject<{
353
+ name: z.ZodString;
354
+ type: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
355
+ visibility: z.ZodEnum<["public", "private", "databus"]>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ name: string;
358
+ type: import("@aztec/stdlib/abi").AbiType;
359
+ visibility: "databus" | "private" | "public";
360
+ }, {
361
+ name: string;
362
+ type: import("@aztec/stdlib/abi").AbiType;
363
+ visibility: "databus" | "private" | "public";
364
+ }>, "many">;
365
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
366
+ errorTypes: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
367
+ error_kind: z.ZodLiteral<"string">;
368
+ string: z.ZodString;
369
+ }, "strip", z.ZodTypeAny, {
370
+ error_kind: "string";
371
+ string: string;
372
+ }, {
373
+ error_kind: "string";
374
+ string: string;
375
+ }>, z.ZodObject<{
376
+ error_kind: z.ZodLiteral<"fmtstring">;
377
+ length: z.ZodNumber;
378
+ item_types: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
379
+ }, "strip", z.ZodTypeAny, {
380
+ error_kind: "fmtstring";
381
+ length: number;
382
+ item_types: import("@aztec/stdlib/abi").AbiType[];
383
+ }, {
384
+ error_kind: "fmtstring";
385
+ length: number;
386
+ item_types: import("@aztec/stdlib/abi").AbiType[];
387
+ }>, z.ZodIntersection<z.ZodObject<{
388
+ error_kind: z.ZodLiteral<"custom">;
389
+ }, "strip", z.ZodTypeAny, {
390
+ error_kind: "custom";
391
+ }, {
392
+ error_kind: "custom";
393
+ }>, z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>>]>>>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ name: string;
396
+ functionType: import("@aztec/stdlib/abi").FunctionType;
397
+ isOnlySelf: boolean;
398
+ isStatic: boolean;
399
+ isInitializer: boolean;
400
+ parameters: {
401
+ name: string;
402
+ type: import("@aztec/stdlib/abi").AbiType;
403
+ visibility: "databus" | "private" | "public";
404
+ }[];
405
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
406
+ errorTypes: Record<string, {
407
+ error_kind: "string";
408
+ string: string;
409
+ } | {
410
+ error_kind: "fmtstring";
411
+ length: number;
412
+ item_types: import("@aztec/stdlib/abi").AbiType[];
413
+ } | ({
414
+ error_kind: "custom";
415
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
416
+ }, {
417
+ name: string;
418
+ functionType: import("@aztec/stdlib/abi").FunctionType;
419
+ isOnlySelf: boolean;
420
+ isStatic: boolean;
421
+ isInitializer: boolean;
422
+ parameters: {
423
+ name: string;
424
+ type: import("@aztec/stdlib/abi").AbiType;
425
+ visibility: "databus" | "private" | "public";
426
+ }[];
427
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
428
+ errorTypes: Record<string, {
429
+ error_kind: "string";
430
+ string: string;
431
+ } | {
432
+ error_kind: "fmtstring";
433
+ length: number;
434
+ item_types: import("@aztec/stdlib/abi").AbiType[];
435
+ } | ({
436
+ error_kind: "custom";
437
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
438
+ }>, "many">;
439
+ outputs: z.ZodObject<{
440
+ 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[]>>;
441
+ globals: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiValue, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiValue>, "many">>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ structs: Record<string, import("@aztec/stdlib/abi").AbiType[]>;
444
+ globals: Record<string, import("@aztec/stdlib/abi").AbiValue[]>;
445
+ }, {
446
+ structs: Record<string, import("@aztec/stdlib/abi").AbiType[]>;
447
+ globals: Record<string, import("@aztec/stdlib/abi").AbiValue[]>;
448
+ }>;
449
+ storageLayout: z.ZodRecord<z.ZodString, z.ZodObject<{
450
+ slot: z.ZodType<Fr, any, string>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ slot: Fr;
453
+ }, {
454
+ slot: string;
455
+ }>>;
456
+ fileMap: z.ZodEffects<z.ZodRecord<z.ZodNumber, z.ZodObject<{
457
+ source: z.ZodString;
458
+ path: z.ZodString;
459
+ function_locations: z.ZodArray<z.ZodObject<{
460
+ start: z.ZodNumber;
461
+ name: z.ZodString;
462
+ }, "strip", z.ZodTypeAny, {
463
+ start: number;
464
+ name: string;
465
+ }, {
466
+ start: number;
467
+ name: string;
468
+ }>, "many">;
469
+ }, "strip", z.ZodTypeAny, {
470
+ source: string;
471
+ path: string;
472
+ function_locations: {
473
+ start: number;
474
+ name: string;
475
+ }[];
476
+ }, {
477
+ source: string;
478
+ path: string;
479
+ function_locations: {
480
+ start: number;
481
+ name: string;
482
+ }[];
483
+ }>>, Record<number, {
484
+ source: string;
485
+ path: string;
486
+ function_locations: {
487
+ start: number;
488
+ name: string;
489
+ }[];
490
+ }>, unknown>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ name: string;
493
+ functions: ({
494
+ name: string;
495
+ functionType: import("@aztec/stdlib/abi").FunctionType;
496
+ isOnlySelf: boolean;
497
+ isStatic: boolean;
498
+ isInitializer: boolean;
499
+ parameters: {
500
+ name: string;
501
+ type: import("@aztec/stdlib/abi").AbiType;
502
+ visibility: "databus" | "private" | "public";
503
+ }[];
504
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
505
+ errorTypes: Record<string, {
506
+ error_kind: "string";
507
+ string: string;
508
+ } | {
509
+ error_kind: "fmtstring";
510
+ length: number;
511
+ item_types: import("@aztec/stdlib/abi").AbiType[];
512
+ } | ({
513
+ error_kind: "custom";
514
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
515
+ } & {
516
+ bytecode: Buffer<ArrayBufferLike>;
517
+ verificationKey?: string | undefined;
518
+ debugSymbols: string;
519
+ debug?: {
520
+ debugSymbols: {
521
+ location_tree: {
522
+ locations: {
523
+ parent: number | null;
524
+ value: {
525
+ span: {
526
+ start: number;
527
+ end: number;
528
+ };
529
+ file: number;
530
+ };
531
+ }[];
532
+ };
533
+ acir_locations: Record<string, number>;
534
+ brillig_locations: Record<string, Record<string, number>>;
535
+ };
536
+ files: import("@aztec/stdlib/abi").DebugFileMap;
537
+ } | undefined;
538
+ })[];
539
+ nonDispatchPublicFunctions: {
540
+ name: string;
541
+ functionType: import("@aztec/stdlib/abi").FunctionType;
542
+ isOnlySelf: boolean;
543
+ isStatic: boolean;
544
+ isInitializer: boolean;
545
+ parameters: {
546
+ name: string;
547
+ type: import("@aztec/stdlib/abi").AbiType;
548
+ visibility: "databus" | "private" | "public";
549
+ }[];
550
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
551
+ errorTypes: Record<string, {
552
+ error_kind: "string";
553
+ string: string;
554
+ } | {
555
+ error_kind: "fmtstring";
556
+ length: number;
557
+ item_types: import("@aztec/stdlib/abi").AbiType[];
558
+ } | ({
559
+ error_kind: "custom";
560
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
561
+ }[];
562
+ outputs: {
563
+ structs: Record<string, import("@aztec/stdlib/abi").AbiType[]>;
564
+ globals: Record<string, import("@aztec/stdlib/abi").AbiValue[]>;
565
+ };
566
+ storageLayout: Record<string, {
567
+ slot: Fr;
568
+ }>;
569
+ fileMap: Record<number, {
570
+ source: string;
571
+ path: string;
572
+ function_locations: {
573
+ start: number;
574
+ name: string;
575
+ }[];
576
+ }>;
577
+ }, {
578
+ name: string;
579
+ functions: ({
580
+ name: string;
581
+ functionType: import("@aztec/stdlib/abi").FunctionType;
582
+ isOnlySelf: boolean;
583
+ isStatic: boolean;
584
+ isInitializer: boolean;
585
+ parameters: {
586
+ name: string;
587
+ type: import("@aztec/stdlib/abi").AbiType;
588
+ visibility: "databus" | "private" | "public";
589
+ }[];
590
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
591
+ errorTypes: Record<string, {
592
+ error_kind: "string";
593
+ string: string;
594
+ } | {
595
+ error_kind: "fmtstring";
596
+ length: number;
597
+ item_types: import("@aztec/stdlib/abi").AbiType[];
598
+ } | ({
599
+ error_kind: "custom";
600
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
601
+ } & {
602
+ bytecode?: any;
603
+ verificationKey?: string | undefined;
604
+ debugSymbols: string;
605
+ debug?: {
606
+ debugSymbols: {
607
+ location_tree: {
608
+ locations: {
609
+ parent: number | null;
610
+ value: {
611
+ span: {
612
+ start: number;
613
+ end: number;
614
+ };
615
+ file: number;
616
+ };
617
+ }[];
618
+ };
619
+ acir_locations: Record<string, number>;
620
+ brillig_locations: Record<string, Record<string, number>>;
621
+ };
622
+ files: import("@aztec/stdlib/abi").DebugFileMap;
623
+ } | undefined;
624
+ })[];
625
+ nonDispatchPublicFunctions: {
626
+ name: string;
627
+ functionType: import("@aztec/stdlib/abi").FunctionType;
628
+ isOnlySelf: boolean;
629
+ isStatic: boolean;
630
+ isInitializer: boolean;
631
+ parameters: {
632
+ name: string;
633
+ type: import("@aztec/stdlib/abi").AbiType;
634
+ visibility: "databus" | "private" | "public";
635
+ }[];
636
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
637
+ errorTypes: Record<string, {
638
+ error_kind: "string";
639
+ string: string;
640
+ } | {
641
+ error_kind: "fmtstring";
642
+ length: number;
643
+ item_types: import("@aztec/stdlib/abi").AbiType[];
644
+ } | ({
645
+ error_kind: "custom";
646
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
647
+ }[];
648
+ outputs: {
649
+ structs: Record<string, import("@aztec/stdlib/abi").AbiType[]>;
650
+ globals: Record<string, import("@aztec/stdlib/abi").AbiValue[]>;
651
+ };
652
+ storageLayout: Record<string, {
653
+ slot: string;
654
+ }>;
655
+ fileMap?: unknown;
656
+ }>, z.ZodIntersection<z.ZodObject<{
59
657
  version: z.ZodLiteral<1>;
60
- salt: import("../../../foundation/dest/schemas/types.js").ZodFor<Fr>;
61
- deployer: import("../../../foundation/dest/schemas/types.js").ZodFor<AztecAddress>;
62
- currentContractClassId: import("../../../foundation/dest/schemas/types.js").ZodFor<Fr>;
63
- originalContractClassId: import("../../../foundation/dest/schemas/types.js").ZodFor<Fr>;
64
- initializationHash: import("../../../foundation/dest/schemas/types.js").ZodFor<Fr>;
658
+ salt: import("@aztec/foundation/schemas").ZodFor<Fr>;
659
+ deployer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
660
+ currentContractClassId: import("@aztec/foundation/schemas").ZodFor<Fr>;
661
+ originalContractClassId: import("@aztec/foundation/schemas").ZodFor<Fr>;
662
+ initializationHash: import("@aztec/foundation/schemas").ZodFor<Fr>;
65
663
  publicKeys: z.ZodEffects<z.ZodObject<{
66
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
67
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
68
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
69
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
664
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
665
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
666
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
667
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
70
668
  }, "strip", z.ZodTypeAny, {
71
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
72
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
73
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
74
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
669
+ masterNullifierPublicKey: import("@aztec/foundation/schemas").Point;
670
+ masterIncomingViewingPublicKey: import("@aztec/foundation/schemas").Point;
671
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/schemas").Point;
672
+ masterTaggingPublicKey: import("@aztec/foundation/schemas").Point;
75
673
  }, {
76
674
  masterNullifierPublicKey: string;
77
675
  masterIncomingViewingPublicKey: string;
78
676
  masterOutgoingViewingPublicKey: string;
79
677
  masterTaggingPublicKey: string;
80
- }>, import("../../../stdlib/dest/keys/public_keys.js").PublicKeys, {
678
+ }>, import("@aztec/stdlib/keys").PublicKeys, {
81
679
  masterNullifierPublicKey: string;
82
680
  masterIncomingViewingPublicKey: string;
83
681
  masterOutgoingViewingPublicKey: string;
@@ -90,7 +688,7 @@ export declare const ForeignCallArgsSchema: z.ZodArray<z.ZodUnion<[z.ZodString,
90
688
  currentContractClassId: Fr;
91
689
  originalContractClassId: Fr;
92
690
  initializationHash: Fr;
93
- publicKeys: import("../../../stdlib/dest/keys/public_keys.js").PublicKeys;
691
+ publicKeys: import("@aztec/stdlib/keys").PublicKeys;
94
692
  }, {
95
693
  version: 1;
96
694
  salt?: any;
@@ -105,7 +703,7 @@ export declare const ForeignCallArgsSchema: z.ZodArray<z.ZodUnion<[z.ZodString,
105
703
  masterTaggingPublicKey: string;
106
704
  };
107
705
  }>, z.ZodObject<{
108
- address: import("../../../foundation/dest/schemas/types.js").ZodFor<AztecAddress>;
706
+ address: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
109
707
  }, "strip", z.ZodTypeAny, {
110
708
  address: AztecAddress;
111
709
  }, {
@@ -118,4 +716,4 @@ export declare const ForeignCallResultSchema: z.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