@aztec/txe 4.0.0-nightly.20250907 → 4.0.0-nightly.20260108

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 (100) hide show
  1. package/dest/bin/index.d.ts +1 -1
  2. package/dest/bin/index.js +1 -1
  3. package/dest/constants.d.ts +3 -0
  4. package/dest/constants.d.ts.map +1 -0
  5. package/dest/constants.js +2 -0
  6. package/dest/index.d.ts +1 -1
  7. package/dest/index.d.ts.map +1 -1
  8. package/dest/index.js +8 -4
  9. package/dest/oracle/interfaces.d.ts +57 -0
  10. package/dest/oracle/interfaces.d.ts.map +1 -0
  11. package/dest/oracle/interfaces.js +3 -0
  12. package/dest/oracle/txe_oracle_public_context.d.ts +12 -12
  13. package/dest/oracle/txe_oracle_public_context.d.ts.map +1 -1
  14. package/dest/oracle/txe_oracle_public_context.js +30 -34
  15. package/dest/oracle/txe_oracle_top_level_context.d.ts +65 -0
  16. package/dest/oracle/txe_oracle_top_level_context.d.ts.map +1 -0
  17. package/dest/oracle/txe_oracle_top_level_context.js +463 -0
  18. package/dest/rpc_translator.d.ts +246 -0
  19. package/dest/rpc_translator.d.ts.map +1 -0
  20. package/dest/{txe_service/txe_service.js → rpc_translator.js} +201 -124
  21. package/dest/state_machine/archiver.d.ts +34 -13
  22. package/dest/state_machine/archiver.d.ts.map +1 -1
  23. package/dest/state_machine/archiver.js +111 -16
  24. package/dest/state_machine/dummy_p2p_client.d.ts +5 -2
  25. package/dest/state_machine/dummy_p2p_client.d.ts.map +1 -1
  26. package/dest/state_machine/dummy_p2p_client.js +9 -1
  27. package/dest/state_machine/global_variable_builder.d.ts +6 -17
  28. package/dest/state_machine/global_variable_builder.d.ts.map +1 -1
  29. package/dest/state_machine/global_variable_builder.js +16 -23
  30. package/dest/state_machine/index.d.ts +5 -5
  31. package/dest/state_machine/index.d.ts.map +1 -1
  32. package/dest/state_machine/index.js +17 -21
  33. package/dest/state_machine/mock_epoch_cache.d.ts +6 -5
  34. package/dest/state_machine/mock_epoch_cache.d.ts.map +1 -1
  35. package/dest/state_machine/mock_epoch_cache.js +8 -7
  36. package/dest/state_machine/synchronizer.d.ts +5 -4
  37. package/dest/state_machine/synchronizer.d.ts.map +1 -1
  38. package/dest/state_machine/synchronizer.js +5 -4
  39. package/dest/txe_session.d.ts +42 -46
  40. package/dest/txe_session.d.ts.map +1 -1
  41. package/dest/txe_session.js +241 -93
  42. package/dest/util/encoding.d.ts +623 -24
  43. package/dest/util/encoding.d.ts.map +1 -1
  44. package/dest/util/encoding.js +1 -1
  45. package/dest/util/expected_failure_error.d.ts +1 -1
  46. package/dest/util/expected_failure_error.d.ts.map +1 -1
  47. package/dest/util/txe_account_store.d.ts +10 -0
  48. package/dest/util/txe_account_store.d.ts.map +1 -0
  49. package/dest/util/{txe_account_data_provider.js → txe_account_store.js} +1 -1
  50. package/dest/util/txe_contract_store.d.ts +12 -0
  51. package/dest/util/txe_contract_store.d.ts.map +1 -0
  52. package/dest/util/{txe_contract_data_provider.js → txe_contract_store.js} +4 -4
  53. package/dest/util/txe_public_contract_data_source.d.ts +8 -6
  54. package/dest/util/txe_public_contract_data_source.d.ts.map +1 -1
  55. package/dest/util/txe_public_contract_data_source.js +14 -12
  56. package/dest/utils/block_creation.d.ts +28 -0
  57. package/dest/utils/block_creation.d.ts.map +1 -0
  58. package/dest/utils/block_creation.js +45 -0
  59. package/dest/utils/tx_effect_creation.d.ts +6 -0
  60. package/dest/utils/tx_effect_creation.d.ts.map +1 -0
  61. package/dest/utils/tx_effect_creation.js +16 -0
  62. package/package.json +18 -17
  63. package/src/bin/index.ts +1 -1
  64. package/src/constants.ts +3 -0
  65. package/src/index.ts +20 -20
  66. package/src/oracle/interfaces.ts +86 -0
  67. package/src/oracle/txe_oracle_public_context.ts +37 -75
  68. package/src/oracle/txe_oracle_top_level_context.ts +716 -0
  69. package/src/{txe_service/txe_service.ts → rpc_translator.ts} +261 -125
  70. package/src/state_machine/archiver.ts +147 -29
  71. package/src/state_machine/dummy_p2p_client.ts +13 -2
  72. package/src/state_machine/global_variable_builder.ts +25 -42
  73. package/src/state_machine/index.ts +24 -21
  74. package/src/state_machine/mock_epoch_cache.ts +12 -11
  75. package/src/state_machine/synchronizer.ts +8 -7
  76. package/src/txe_session.ts +416 -115
  77. package/src/util/encoding.ts +1 -1
  78. package/src/util/{txe_account_data_provider.ts → txe_account_store.ts} +1 -1
  79. package/src/util/{txe_contract_data_provider.ts → txe_contract_store.ts} +5 -4
  80. package/src/util/txe_public_contract_data_source.ts +16 -13
  81. package/src/utils/block_creation.ts +94 -0
  82. package/src/utils/tx_effect_creation.ts +38 -0
  83. package/dest/oracle/txe_oracle.d.ts +0 -124
  84. package/dest/oracle/txe_oracle.d.ts.map +0 -1
  85. package/dest/oracle/txe_oracle.js +0 -770
  86. package/dest/oracle/txe_typed_oracle.d.ts +0 -42
  87. package/dest/oracle/txe_typed_oracle.d.ts.map +0 -1
  88. package/dest/oracle/txe_typed_oracle.js +0 -83
  89. package/dest/txe_constants.d.ts +0 -2
  90. package/dest/txe_constants.d.ts.map +0 -1
  91. package/dest/txe_constants.js +0 -7
  92. package/dest/txe_service/txe_service.d.ts +0 -231
  93. package/dest/txe_service/txe_service.d.ts.map +0 -1
  94. package/dest/util/txe_account_data_provider.d.ts +0 -10
  95. package/dest/util/txe_account_data_provider.d.ts.map +0 -1
  96. package/dest/util/txe_contract_data_provider.d.ts +0 -11
  97. package/dest/util/txe_contract_data_provider.d.ts.map +0 -1
  98. package/src/oracle/txe_oracle.ts +0 -1287
  99. package/src/oracle/txe_typed_oracle.ts +0 -142
  100. package/src/txe_constants.ts +0 -9
@@ -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,628 @@ 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("@aztec/foundation/schemas").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("../../../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
- salt: import("@aztec/foundation/schemas").ZodFor<Fr>;
61
- deployer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
62
- currentContractClassId: import("@aztec/foundation/schemas").ZodFor<Fr>;
63
- originalContractClassId: import("@aztec/foundation/schemas").ZodFor<Fr>;
64
- initializationHash: import("@aztec/foundation/schemas").ZodFor<Fr>;
659
+ salt: import("../../../foundation/dest/schemas/types.js").ZodFor<Fr>;
660
+ deployer: import("../../../foundation/dest/schemas/types.js").ZodFor<AztecAddress>;
661
+ currentContractClassId: import("../../../foundation/dest/schemas/types.js").ZodFor<Fr>;
662
+ originalContractClassId: import("../../../foundation/dest/schemas/types.js").ZodFor<Fr>;
663
+ initializationHash: import("../../../foundation/dest/schemas/types.js").ZodFor<Fr>;
65
664
  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>;
665
+ masterNullifierPublicKey: z.ZodType<import("../../../foundation/dest/schemas/schemas.js").Point, any, string>;
666
+ masterIncomingViewingPublicKey: z.ZodType<import("../../../foundation/dest/schemas/schemas.js").Point, any, string>;
667
+ masterOutgoingViewingPublicKey: z.ZodType<import("../../../foundation/dest/schemas/schemas.js").Point, any, string>;
668
+ masterTaggingPublicKey: z.ZodType<import("../../../foundation/dest/schemas/schemas.js").Point, any, string>;
70
669
  }, "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;
670
+ masterNullifierPublicKey: import("../../../foundation/dest/schemas/schemas.js").Point;
671
+ masterIncomingViewingPublicKey: import("../../../foundation/dest/schemas/schemas.js").Point;
672
+ masterOutgoingViewingPublicKey: import("../../../foundation/dest/schemas/schemas.js").Point;
673
+ masterTaggingPublicKey: import("../../../foundation/dest/schemas/schemas.js").Point;
75
674
  }, {
76
675
  masterNullifierPublicKey: string;
77
676
  masterIncomingViewingPublicKey: string;
78
677
  masterOutgoingViewingPublicKey: string;
79
678
  masterTaggingPublicKey: string;
80
- }>, import("@aztec/stdlib/keys").PublicKeys, {
679
+ }>, import("../../../stdlib/dest/keys/public_keys.js").PublicKeys, {
81
680
  masterNullifierPublicKey: string;
82
681
  masterIncomingViewingPublicKey: string;
83
682
  masterOutgoingViewingPublicKey: string;
@@ -86,26 +685,26 @@ export declare const ForeignCallArgsSchema: z.ZodArray<z.ZodUnion<[z.ZodString,
86
685
  }, "strip", z.ZodTypeAny, {
87
686
  version: 1;
88
687
  salt: Fr;
89
- publicKeys: import("@aztec/stdlib/keys").PublicKeys;
90
688
  deployer: AztecAddress;
91
689
  currentContractClassId: Fr;
92
690
  originalContractClassId: Fr;
93
691
  initializationHash: Fr;
692
+ publicKeys: import("../../../stdlib/dest/keys/public_keys.js").PublicKeys;
94
693
  }, {
95
694
  version: 1;
695
+ salt?: any;
696
+ deployer?: any;
697
+ currentContractClassId?: any;
698
+ originalContractClassId?: any;
699
+ initializationHash?: any;
96
700
  publicKeys: {
97
701
  masterNullifierPublicKey: string;
98
702
  masterIncomingViewingPublicKey: string;
99
703
  masterOutgoingViewingPublicKey: string;
100
704
  masterTaggingPublicKey: string;
101
705
  };
102
- salt?: any;
103
- deployer?: any;
104
- currentContractClassId?: any;
105
- originalContractClassId?: any;
106
- initializationHash?: any;
107
706
  }>, z.ZodObject<{
108
- address: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
707
+ address: import("../../../foundation/dest/schemas/types.js").ZodFor<AztecAddress>;
109
708
  }, "strip", z.ZodTypeAny, {
110
709
  address: AztecAddress;
111
710
  }, {
@@ -118,4 +717,4 @@ export declare const ForeignCallResultSchema: z.ZodObject<{
118
717
  }, {
119
718
  values: (string | string[])[];
120
719
  }>;
121
- //# sourceMappingURL=encoding.d.ts.map
720
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jb2RpbmcuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2VuY29kaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQU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