@aztec/txe 5.0.0-private.20260319 → 5.0.0-rc.1

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 (154) hide show
  1. package/dest/AuthRegistry-CPGFQR26.js +3 -0
  2. package/dest/AuthRegistry-CPGFQR26.js.map +7 -0
  3. package/dest/ContractClassRegistry-EHVIHGEK.js +3 -0
  4. package/dest/ContractClassRegistry-EHVIHGEK.js.map +7 -0
  5. package/dest/ContractInstanceRegistry-DWZDXHRG.js +3 -0
  6. package/dest/ContractInstanceRegistry-DWZDXHRG.js.map +7 -0
  7. package/dest/FeeJuice-MI32ZO7B.js +3 -0
  8. package/dest/FeeJuice-MI32ZO7B.js.map +7 -0
  9. package/dest/HandshakeRegistry-3KSP3ITH.js +3 -0
  10. package/dest/HandshakeRegistry-3KSP3ITH.js.map +7 -0
  11. package/dest/MultiCallEntrypoint-IU7HYFYE.js +3 -0
  12. package/dest/MultiCallEntrypoint-IU7HYFYE.js.map +7 -0
  13. package/dest/SchnorrAccount-6TUE7JX4.js +3 -0
  14. package/dest/SchnorrAccount-6TUE7JX4.js.map +7 -0
  15. package/dest/SchnorrInitializerlessAccount-S3DU2DJK.js +3 -0
  16. package/dest/SchnorrInitializerlessAccount-S3DU2DJK.js.map +7 -0
  17. package/dest/bin/check_txe_oracle_version.d.ts +2 -0
  18. package/dest/bin/check_txe_oracle_version.d.ts.map +1 -0
  19. package/dest/bin/check_txe_oracle_version.js +61 -0
  20. package/dest/bin/index.js +3 -30
  21. package/dest/bin/index.js.map +7 -0
  22. package/dest/bin/oracle_test_server.d.ts +3 -0
  23. package/dest/bin/oracle_test_server.d.ts.map +1 -0
  24. package/dest/bin/oracle_test_server.js +41 -0
  25. package/dest/chunk-5U25VAFR.js +265 -0
  26. package/dest/chunk-5U25VAFR.js.map +7 -0
  27. package/dest/chunk-BJVAAXNA.js +3 -0
  28. package/dest/chunk-BJVAAXNA.js.map +7 -0
  29. package/dest/chunk-UPW55EJX.js +304 -0
  30. package/dest/chunk-UPW55EJX.js.map +7 -0
  31. package/dest/constants.d.ts +5 -1
  32. package/dest/constants.d.ts.map +1 -1
  33. package/dest/constants.js +8 -0
  34. package/dest/dispatcher_pool.d.ts +67 -0
  35. package/dest/dispatcher_pool.d.ts.map +1 -0
  36. package/dest/dispatcher_pool.js +286 -0
  37. package/dest/index.d.ts +51 -7
  38. package/dest/index.d.ts.map +1 -1
  39. package/dest/index.js +70 -190
  40. package/dest/metafile.json +38829 -0
  41. package/dest/msgpackr_fr_extension.d.ts +2 -0
  42. package/dest/msgpackr_fr_extension.d.ts.map +1 -0
  43. package/dest/msgpackr_fr_extension.js +21 -0
  44. package/dest/oracle/interfaces.d.ts +33 -8
  45. package/dest/oracle/interfaces.d.ts.map +1 -1
  46. package/dest/oracle/test-resolver/fixtures.d.ts +43 -0
  47. package/dest/oracle/test-resolver/fixtures.d.ts.map +1 -0
  48. package/dest/oracle/test-resolver/fixtures.js +39 -0
  49. package/dest/oracle/test-resolver/index.d.ts +9 -0
  50. package/dest/oracle/test-resolver/index.d.ts.map +1 -0
  51. package/dest/oracle/test-resolver/index.js +33 -0
  52. package/dest/oracle/test-resolver/resolver.d.ts +34 -0
  53. package/dest/oracle/test-resolver/resolver.d.ts.map +1 -0
  54. package/dest/oracle/test-resolver/resolver.js +114 -0
  55. package/dest/oracle/txe_oracle_public_context.d.ts +26 -2
  56. package/dest/oracle/txe_oracle_public_context.d.ts.map +1 -1
  57. package/dest/oracle/txe_oracle_public_context.js +43 -1
  58. package/dest/oracle/txe_oracle_registry.d.ts +14 -0
  59. package/dest/oracle/txe_oracle_registry.d.ts.map +1 -0
  60. package/dest/oracle/txe_oracle_registry.js +562 -0
  61. package/dest/oracle/txe_oracle_top_level_context.d.ts +33 -20
  62. package/dest/oracle/txe_oracle_top_level_context.d.ts.map +1 -1
  63. package/dest/oracle/txe_oracle_top_level_context.js +151 -58
  64. package/dest/oracle/txe_oracle_version.d.ts +17 -0
  65. package/dest/oracle/txe_oracle_version.d.ts.map +1 -0
  66. package/dest/oracle/txe_oracle_version.js +14 -0
  67. package/dest/oracle/txe_private_execution_oracle.d.ts +17 -0
  68. package/dest/oracle/txe_private_execution_oracle.d.ts.map +1 -0
  69. package/dest/oracle/txe_private_execution_oracle.js +15 -0
  70. package/dest/rpc_server.d.ts +14 -0
  71. package/dest/rpc_server.d.ts.map +1 -0
  72. package/dest/rpc_server.js +78 -0
  73. package/dest/rpc_translator.d.ts +103 -233
  74. package/dest/rpc_translator.d.ts.map +1 -1
  75. package/dest/rpc_translator.js +695 -636
  76. package/dest/server.bundle.js +3 -0
  77. package/dest/server.bundle.js.map +7 -0
  78. package/dest/state_machine/archiver.d.ts +4 -3
  79. package/dest/state_machine/archiver.d.ts.map +1 -1
  80. package/dest/state_machine/archiver.js +26 -15
  81. package/dest/state_machine/dummy_p2p_client.d.ts +14 -7
  82. package/dest/state_machine/dummy_p2p_client.d.ts.map +1 -1
  83. package/dest/state_machine/dummy_p2p_client.js +19 -4
  84. package/dest/state_machine/global_variable_builder.d.ts +9 -4
  85. package/dest/state_machine/global_variable_builder.d.ts.map +1 -1
  86. package/dest/state_machine/global_variable_builder.js +9 -3
  87. package/dest/state_machine/index.d.ts +4 -2
  88. package/dest/state_machine/index.d.ts.map +1 -1
  89. package/dest/state_machine/index.js +11 -3
  90. package/dest/state_machine/mock_epoch_cache.d.ts +1 -2
  91. package/dest/state_machine/mock_epoch_cache.d.ts.map +1 -1
  92. package/dest/state_machine/mock_epoch_cache.js +0 -3
  93. package/dest/state_machine/synchronizer.js +1 -1
  94. package/dest/txe_session.d.ts +86 -19
  95. package/dest/txe_session.d.ts.map +1 -1
  96. package/dest/txe_session.js +244 -45
  97. package/dest/utils/encoding.d.ts +191 -0
  98. package/dest/utils/encoding.d.ts.map +1 -0
  99. package/dest/{util → utils}/encoding.js +7 -2
  100. package/dest/{util → utils}/expected_failure_error.d.ts +1 -1
  101. package/dest/utils/expected_failure_error.d.ts.map +1 -0
  102. package/dest/{util → utils}/txe_account_store.d.ts +1 -1
  103. package/dest/utils/txe_account_store.d.ts.map +1 -0
  104. package/dest/utils/txe_artifact_resolver.d.ts +37 -0
  105. package/dest/utils/txe_artifact_resolver.d.ts.map +1 -0
  106. package/dest/utils/txe_artifact_resolver.js +161 -0
  107. package/dest/utils/txe_public_contract_data_source.d.ts +20 -0
  108. package/dest/utils/txe_public_contract_data_source.d.ts.map +1 -0
  109. package/dest/{util → utils}/txe_public_contract_data_source.js +1 -3
  110. package/dest/worker.bundle.js +3 -0
  111. package/dest/worker.bundle.js.map +7 -0
  112. package/dest/worker.d.ts +2 -0
  113. package/dest/worker.d.ts.map +1 -0
  114. package/dest/worker.js +92 -0
  115. package/package.json +38 -21
  116. package/src/bin/check_txe_oracle_version.ts +70 -0
  117. package/src/bin/index.ts +11 -2
  118. package/src/bin/oracle_test_server.ts +51 -0
  119. package/src/constants.ts +10 -0
  120. package/src/dispatcher_pool.ts +317 -0
  121. package/src/index.ts +97 -227
  122. package/src/msgpackr_fr_extension.ts +23 -0
  123. package/src/oracle/interfaces.ts +29 -7
  124. package/src/oracle/test-resolver/fixtures.ts +84 -0
  125. package/src/oracle/test-resolver/index.ts +45 -0
  126. package/src/oracle/test-resolver/resolver.ts +165 -0
  127. package/src/oracle/txe_oracle_public_context.ts +60 -0
  128. package/src/oracle/txe_oracle_registry.ts +401 -0
  129. package/src/oracle/txe_oracle_top_level_context.ts +185 -67
  130. package/src/oracle/txe_oracle_version.ts +17 -0
  131. package/src/oracle/txe_private_execution_oracle.ts +30 -0
  132. package/src/rpc_server.ts +87 -0
  133. package/src/rpc_translator.ts +765 -913
  134. package/src/state_machine/archiver.ts +38 -16
  135. package/src/state_machine/dummy_p2p_client.ts +35 -11
  136. package/src/state_machine/global_variable_builder.ts +18 -3
  137. package/src/state_machine/index.ts +17 -5
  138. package/src/state_machine/mock_epoch_cache.ts +0 -4
  139. package/src/state_machine/synchronizer.ts +1 -1
  140. package/src/txe_session.ts +434 -57
  141. package/src/{util → utils}/encoding.ts +8 -2
  142. package/src/utils/txe_artifact_resolver.ts +217 -0
  143. package/src/{util → utils}/txe_public_contract_data_source.ts +0 -2
  144. package/src/worker.ts +98 -0
  145. package/dest/util/encoding.d.ts +0 -720
  146. package/dest/util/encoding.d.ts.map +0 -1
  147. package/dest/util/expected_failure_error.d.ts.map +0 -1
  148. package/dest/util/txe_account_store.d.ts.map +0 -1
  149. package/dest/util/txe_public_contract_data_source.d.ts +0 -20
  150. package/dest/util/txe_public_contract_data_source.d.ts.map +0 -1
  151. /package/dest/{util → utils}/expected_failure_error.js +0 -0
  152. /package/dest/{util → utils}/txe_account_store.js +0 -0
  153. /package/src/{util → utils}/expected_failure_error.ts +0 -0
  154. /package/src/{util → utils}/txe_account_store.ts +0 -0
@@ -1,720 +0,0 @@
1
- import { Fr } from '@aztec/foundation/curves/bn254';
2
- import type { EthAddress } from '@aztec/foundation/eth-address';
3
- import { type ContractArtifact } from '@aztec/stdlib/abi';
4
- import { AztecAddress } from '@aztec/stdlib/aztec-address';
5
- import { type ContractInstanceWithAddress } from '@aztec/stdlib/contract';
6
- import { z } from 'zod';
7
- export type ForeignCallSingle = string;
8
- export type ForeignCallArray = string[];
9
- export type ForeignCallArgs = (ForeignCallSingle | ForeignCallArray | ContractArtifact | ContractInstanceWithAddress)[];
10
- export type ForeignCallResult = {
11
- values: (ForeignCallSingle | ForeignCallArray)[];
12
- };
13
- export declare function fromSingle(obj: ForeignCallSingle): Fr;
14
- export declare function addressFromSingle(obj: ForeignCallSingle): AztecAddress;
15
- export declare function fromArray(obj: ForeignCallArray): Fr[];
16
- /**
17
- * Converts an array of Noir unsigned integers to a single tightly-packed buffer.
18
- * @param uintBitSize If it's an array of Noir u8's, put `8`, etc.
19
- * @returns A buffer where each byte is correctly represented as a single byte in the buffer.
20
- */
21
- export declare function fromUintArray(obj: ForeignCallArray, uintBitSize: number): Buffer;
22
- /**
23
- * Converts a Noir BoundedVec of unsigned integers into a Buffer. Note that BoundedVecs are structs, and therefore
24
- * translated as two separate ForeignCallArray and ForeignCallSingle values (an array and a single field).
25
- *
26
- * @param storage The array with the BoundedVec's storage (i.e. BoundedVec::storage())
27
- * @param length The length of the BoundedVec (i.e. BoundedVec::len())
28
- * @param uintBitSize If it's an array of Noir u8's, put `8`, etc.
29
- * @returns A buffer containing the unsigned integers tightly packed
30
- */
31
- export declare function fromUintBoundedVec(storage: ForeignCallArray, length: ForeignCallSingle, uintBitSize: number): Buffer;
32
- export declare function toSingle(value: AztecAddress | EthAddress | Fr | Buffer | boolean | number | bigint): ForeignCallSingle;
33
- export declare function toArray(objs: Fr[]): ForeignCallArray;
34
- export declare function toSingleOrArray(value: Fr | Fr[]): string | string[];
35
- export declare function bufferToU8Array(buffer: Buffer): ForeignCallArray;
36
- /**
37
- * Converts a ForeignCallArray into a tuple which represents a nr BoundedVec.
38
- * If the input array is shorter than the maxLen, it pads the result with zeros,
39
- * so that nr can correctly coerce this result into a BoundedVec.
40
- * @param bVecStorage - The array underlying the BoundedVec.
41
- * @param maxLen - the max length of the BoundedVec.
42
- * @returns a tuple representing a BoundedVec.
43
- */
44
- export declare function arrayToBoundedVec(bVecStorage: ForeignCallArray, maxLen: number): [ForeignCallArray, ForeignCallSingle];
45
- /**
46
- * Converts an array of arrays representing Noir BoundedVec of nested arrays into its Noir serialized form.
47
- * @param bVecStorage - The array underlying the BoundedVec.
48
- * @param maxLen - The max length of the BoundedVec (max num of the nested arrays in the BoundedVec).
49
- * @param nestedArrayLength - The length of the nested arrays (each nested array has to have the same length).
50
- * @returns Serialized BoundedVec following Noir intrinsic serialization.
51
- */
52
- export declare function arrayOfArraysToBoundedVecOfArrays(bVecStorage: ForeignCallArray[], maxLen: number, nestedArrayLength: number): [ForeignCallArray, ForeignCallSingle];
53
- export declare function toForeignCallResult(obj: (ForeignCallSingle | ForeignCallArray)[]): {
54
- values: (string | ForeignCallArray)[];
55
- };
56
- export declare const ForeignCallSingleSchema: z.ZodString;
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">, 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.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<{
658
- version: z.ZodLiteral<1>;
659
- salt: import("@aztec/foundation/schemas").ZodFor<Fr>;
660
- deployer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
661
- currentContractClassId: import("@aztec/foundation/schemas").ZodFor<Fr>;
662
- originalContractClassId: import("@aztec/foundation/schemas").ZodFor<Fr>;
663
- initializationHash: import("@aztec/foundation/schemas").ZodFor<Fr>;
664
- publicKeys: z.ZodEffects<z.ZodObject<{
665
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
666
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
667
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
668
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
669
- }, "strip", z.ZodTypeAny, {
670
- masterNullifierPublicKey: import("@aztec/foundation/schemas").Point;
671
- masterIncomingViewingPublicKey: import("@aztec/foundation/schemas").Point;
672
- masterOutgoingViewingPublicKey: import("@aztec/foundation/schemas").Point;
673
- masterTaggingPublicKey: import("@aztec/foundation/schemas").Point;
674
- }, {
675
- masterNullifierPublicKey: string;
676
- masterIncomingViewingPublicKey: string;
677
- masterOutgoingViewingPublicKey: string;
678
- masterTaggingPublicKey: string;
679
- }>, import("@aztec/stdlib/keys").PublicKeys, {
680
- masterNullifierPublicKey: string;
681
- masterIncomingViewingPublicKey: string;
682
- masterOutgoingViewingPublicKey: string;
683
- masterTaggingPublicKey: string;
684
- }>;
685
- }, "strip", z.ZodTypeAny, {
686
- version: 1;
687
- salt: Fr;
688
- deployer: AztecAddress;
689
- currentContractClassId: Fr;
690
- originalContractClassId: Fr;
691
- initializationHash: Fr;
692
- publicKeys: import("@aztec/stdlib/keys").PublicKeys;
693
- }, {
694
- version: 1;
695
- salt?: any;
696
- deployer?: any;
697
- currentContractClassId?: any;
698
- originalContractClassId?: any;
699
- initializationHash?: any;
700
- publicKeys: {
701
- masterNullifierPublicKey: string;
702
- masterIncomingViewingPublicKey: string;
703
- masterOutgoingViewingPublicKey: string;
704
- masterTaggingPublicKey: string;
705
- };
706
- }>, z.ZodObject<{
707
- address: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
708
- }, "strip", z.ZodTypeAny, {
709
- address: AztecAddress;
710
- }, {
711
- address?: any;
712
- }>>]>, "many">;
713
- export declare const ForeignCallResultSchema: z.ZodObject<{
714
- values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">;
715
- }, "strip", z.ZodTypeAny, {
716
- values: (string | string[])[];
717
- }, {
718
- values: (string | string[])[];
719
- }>;
720
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jb2RpbmcuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2VuY29kaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUNwRCxPQUFPLEtBQUssRUFBRSxVQUFVLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUVoRSxPQUFPLEVBQUUsS0FBSyxnQkFBZ0IsRUFBMEIsTUFBTSxtQkFBbUIsQ0FBQztBQUNsRixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFFLEtBQUssMkJBQTJCLEVBQXFDLE1BQU0sd0JBQXdCLENBQUM7QUFFN0csT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLEtBQUssQ0FBQztBQUV4QixNQUFNLE1BQU0saUJBQWlCLEdBQUcsTUFBTSxDQUFDO0FBRXZDLE1BQU0sTUFBTSxnQkFBZ0IsR0FBRyxNQUFNLEVBQUUsQ0FBQztBQUV4QyxNQUFNLE1BQU0sZUFBZSxHQUFHLENBQUMsaUJBQWlCLEdBQUcsZ0JBQWdCLEdBQUcsZ0JBQWdCLEdBQUcsMkJBQTJCLENBQUMsRUFBRSxDQUFDO0FBRXhILE1BQU0sTUFBTSxpQkFBaUIsR0FBRztJQUM5QixNQUFNLEVBQUUsQ0FBQyxpQkFBaUIsR0FBRyxnQkFBZ0IsQ0FBQyxFQUFFLENBQU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