@aztec/aztec.js 3.0.0-nightly.20251118 → 3.0.0-nightly.20251120

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 (48) hide show
  1. package/dest/api/contract.d.ts +1 -1
  2. package/dest/api/contract.js +1 -1
  3. package/dest/api/tx.d.ts +1 -1
  4. package/dest/api/tx.d.ts.map +1 -1
  5. package/dest/api/tx.js +1 -1
  6. package/dest/api/wallet.d.ts +1 -1
  7. package/dest/api/wallet.d.ts.map +1 -1
  8. package/dest/api/wallet.js +1 -1
  9. package/dest/contract/batch_call.js +1 -2
  10. package/dest/contract/contract.d.ts +1 -1
  11. package/dest/contract/contract.d.ts.map +1 -1
  12. package/dest/contract/contract.js +4 -5
  13. package/dest/contract/contract_base.d.ts +5 -9
  14. package/dest/contract/contract_base.d.ts.map +1 -1
  15. package/dest/contract/contract_base.js +5 -12
  16. package/dest/contract/deploy_method.d.ts +5 -4
  17. package/dest/contract/deploy_method.d.ts.map +1 -1
  18. package/dest/contract/deploy_method.js +4 -2
  19. package/dest/contract/deploy_sent_tx.d.ts +11 -6
  20. package/dest/contract/deploy_sent_tx.d.ts.map +1 -1
  21. package/dest/contract/deploy_sent_tx.js +10 -4
  22. package/dest/contract/unsafe_contract.js +1 -1
  23. package/dest/deployment/contract_deployer.d.ts.map +1 -1
  24. package/dest/deployment/contract_deployer.js +1 -1
  25. package/dest/wallet/account_manager.js +1 -1
  26. package/dest/wallet/base_wallet.d.ts +4 -4
  27. package/dest/wallet/base_wallet.d.ts.map +1 -1
  28. package/dest/wallet/base_wallet.js +24 -41
  29. package/dest/wallet/deploy_account_method.d.ts +2 -2
  30. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  31. package/dest/wallet/wallet.d.ts +57 -860
  32. package/dest/wallet/wallet.d.ts.map +1 -1
  33. package/dest/wallet/wallet.js +7 -28
  34. package/package.json +8 -8
  35. package/src/api/contract.ts +1 -1
  36. package/src/api/tx.ts +1 -0
  37. package/src/api/wallet.ts +0 -3
  38. package/src/contract/batch_call.ts +1 -1
  39. package/src/contract/contract.ts +7 -5
  40. package/src/contract/contract_base.ts +5 -15
  41. package/src/contract/deploy_method.ts +8 -7
  42. package/src/contract/deploy_sent_tx.ts +17 -10
  43. package/src/contract/unsafe_contract.ts +1 -1
  44. package/src/deployment/contract_deployer.ts +3 -2
  45. package/src/wallet/account_manager.ts +1 -1
  46. package/src/wallet/base_wallet.ts +26 -49
  47. package/src/wallet/deploy_account_method.ts +2 -1
  48. package/src/wallet/wallet.ts +9 -45
@@ -3,14 +3,12 @@ import type { Fr } from '@aztec/foundation/fields';
3
3
  import { type ContractArtifact, type EventMetadataDefinition, type FunctionCall, FunctionType } from '@aztec/stdlib/abi';
4
4
  import { AuthWitness } from '@aztec/stdlib/auth-witness';
5
5
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
6
- import { type ContractClassMetadata, type ContractInstanceWithAddress, type ContractInstantiationData, type ContractMetadata } from '@aztec/stdlib/contract';
6
+ import { type ContractClassMetadata, type ContractInstanceWithAddress, type ContractMetadata } from '@aztec/stdlib/contract';
7
7
  import { Gas } from '@aztec/stdlib/gas';
8
- import { PublicKeys } from '@aztec/stdlib/keys';
9
8
  import { type ApiSchemaFor, type ZodFor } from '@aztec/stdlib/schemas';
10
9
  import { Capsule, HashedValues, TxHash, TxProfileResult, TxReceipt, TxSimulationResult, UtilitySimulationResult } from '@aztec/stdlib/tx';
11
10
  import type { ExecutionPayload } from '@aztec/stdlib/tx';
12
11
  import { z } from 'zod';
13
- import type { Contract } from '../contract/contract.js';
14
12
  import type { FeeEstimationOptions, GasSettingsOption, ProfileInteractionOptions, SendInteractionOptions, SimulateInteractionOptions } from '../contract/interaction_options.js';
15
13
  import type { CallIntent, IntentInnerHash } from '../utils/authwit.js';
16
14
  /**
@@ -26,10 +24,6 @@ export type Aliased<T> = {
26
24
  */
27
25
  item: T;
28
26
  };
29
- /**
30
- * A reduced representation of a Contract, only including its instance and artifact
31
- */
32
- export type ContractInstanceAndArtifact = Pick<Contract, 'artifact' | 'instance'>;
33
27
  /**
34
28
  * Options for simulating interactions with the wallet. Overrides the fee settings of an interaction with
35
29
  * a simplified version that only hints at the wallet wether the interaction contains a
@@ -104,199 +98,14 @@ export type Wallet = {
104
98
  registerSender(address: AztecAddress, alias?: string): Promise<AztecAddress>;
105
99
  getAddressBook(): Promise<Aliased<AztecAddress>[]>;
106
100
  getAccounts(): Promise<Aliased<AztecAddress>[]>;
107
- registerContract(instanceData: AztecAddress | ContractInstanceWithAddress | ContractInstantiationData | ContractInstanceAndArtifact): Promise<ContractInstanceWithAddress>;
108
- registerContract(instanceData: AztecAddress | ContractInstanceWithAddress | ContractInstantiationData | ContractInstanceAndArtifact, artifact: ContractArtifact): Promise<ContractInstanceWithAddress>;
109
- registerContract(instanceData: AztecAddress | ContractInstanceWithAddress | ContractInstantiationData | ContractInstanceAndArtifact, artifact: ContractArtifact | undefined, secretKey: Fr | undefined): Promise<ContractInstanceWithAddress>;
101
+ registerContract(instance: ContractInstanceWithAddress, artifact?: ContractArtifact, secretKey?: Fr): Promise<ContractInstanceWithAddress>;
110
102
  simulateTx(exec: ExecutionPayload, opts: SimulateOptions): Promise<TxSimulationResult>;
111
- simulateUtility(call: FunctionCall, authwits?: AuthWitness[], scopes?: AztecAddress[]): Promise<UtilitySimulationResult>;
103
+ simulateUtility(call: FunctionCall, authwits?: AuthWitness[]): Promise<UtilitySimulationResult>;
112
104
  profileTx(exec: ExecutionPayload, opts: ProfileOptions): Promise<TxProfileResult>;
113
105
  sendTx(exec: ExecutionPayload, opts: SendOptions): Promise<TxHash>;
114
106
  createAuthWit(from: AztecAddress, messageHashOrIntent: Fr | IntentInnerHash | CallIntent): Promise<AuthWitness>;
115
107
  batch<const T extends readonly BatchedMethod<keyof BatchableMethods>[]>(methods: T): Promise<BatchResults<T>>;
116
108
  };
117
- export declare const ContractInstantiationDataSchema: z.ZodObject<{
118
- constructorArtifact: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodObject<{
119
- name: z.ZodString;
120
- functionType: z.ZodNativeEnum<typeof FunctionType>;
121
- isOnlySelf: z.ZodBoolean;
122
- isStatic: z.ZodBoolean;
123
- isInitializer: z.ZodBoolean;
124
- parameters: z.ZodArray<z.ZodObject<{
125
- name: z.ZodString;
126
- type: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
127
- visibility: z.ZodEnum<["public", "private", "databus"]>;
128
- }, "strip", z.ZodTypeAny, {
129
- type: import("@aztec/stdlib/abi").AbiType;
130
- name: string;
131
- visibility: "public" | "private" | "databus";
132
- }, {
133
- type: import("@aztec/stdlib/abi").AbiType;
134
- name: string;
135
- visibility: "public" | "private" | "databus";
136
- }>, "many">;
137
- returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
138
- errorTypes: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
139
- error_kind: z.ZodLiteral<"string">;
140
- string: z.ZodString;
141
- }, "strip", z.ZodTypeAny, {
142
- string: string;
143
- error_kind: "string";
144
- }, {
145
- string: string;
146
- error_kind: "string";
147
- }>, z.ZodObject<{
148
- error_kind: z.ZodLiteral<"fmtstring">;
149
- length: z.ZodNumber;
150
- item_types: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
151
- }, "strip", z.ZodTypeAny, {
152
- length: number;
153
- error_kind: "fmtstring";
154
- item_types: import("@aztec/stdlib/abi").AbiType[];
155
- }, {
156
- length: number;
157
- error_kind: "fmtstring";
158
- item_types: import("@aztec/stdlib/abi").AbiType[];
159
- }>, z.ZodIntersection<z.ZodObject<{
160
- error_kind: z.ZodLiteral<"custom">;
161
- }, "strip", z.ZodTypeAny, {
162
- error_kind: "custom";
163
- }, {
164
- error_kind: "custom";
165
- }>, z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>>]>>>;
166
- }, "strip", z.ZodTypeAny, {
167
- name: string;
168
- parameters: {
169
- type: import("@aztec/stdlib/abi").AbiType;
170
- name: string;
171
- visibility: "public" | "private" | "databus";
172
- }[];
173
- functionType: FunctionType;
174
- isOnlySelf: boolean;
175
- isStatic: boolean;
176
- isInitializer: boolean;
177
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
178
- errorTypes: Record<string, {
179
- string: string;
180
- error_kind: "string";
181
- } | {
182
- length: number;
183
- error_kind: "fmtstring";
184
- item_types: import("@aztec/stdlib/abi").AbiType[];
185
- } | ({
186
- error_kind: "custom";
187
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
188
- }, {
189
- name: string;
190
- parameters: {
191
- type: import("@aztec/stdlib/abi").AbiType;
192
- name: string;
193
- visibility: "public" | "private" | "databus";
194
- }[];
195
- functionType: FunctionType;
196
- isOnlySelf: boolean;
197
- isStatic: boolean;
198
- isInitializer: boolean;
199
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
200
- errorTypes: Record<string, {
201
- string: string;
202
- error_kind: "string";
203
- } | {
204
- length: number;
205
- error_kind: "fmtstring";
206
- item_types: import("@aztec/stdlib/abi").AbiType[];
207
- } | ({
208
- error_kind: "custom";
209
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
210
- }>, z.ZodString]>>;
211
- constructorArgs: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodAny, "many">>;
212
- skipArgsDecoding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
213
- salt: ZodFor<Fr>;
214
- publicKeys: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
215
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
216
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
217
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
218
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
219
- }, "strip", z.ZodTypeAny, {
220
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
221
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
222
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
223
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
224
- }, {
225
- masterNullifierPublicKey: string;
226
- masterIncomingViewingPublicKey: string;
227
- masterOutgoingViewingPublicKey: string;
228
- masterTaggingPublicKey: string;
229
- }>, PublicKeys, {
230
- masterNullifierPublicKey: string;
231
- masterIncomingViewingPublicKey: string;
232
- masterOutgoingViewingPublicKey: string;
233
- masterTaggingPublicKey: string;
234
- }>>;
235
- deployer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
236
- }, "strip", z.ZodTypeAny, {
237
- salt: Fr;
238
- deployer?: AztecAddress | undefined;
239
- publicKeys?: PublicKeys | undefined;
240
- constructorArgs?: any[] | undefined;
241
- constructorArtifact?: string | {
242
- name: string;
243
- parameters: {
244
- type: import("@aztec/stdlib/abi").AbiType;
245
- name: string;
246
- visibility: "public" | "private" | "databus";
247
- }[];
248
- functionType: FunctionType;
249
- isOnlySelf: boolean;
250
- isStatic: boolean;
251
- isInitializer: boolean;
252
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
253
- errorTypes: Record<string, {
254
- string: string;
255
- error_kind: "string";
256
- } | {
257
- length: number;
258
- error_kind: "fmtstring";
259
- item_types: import("@aztec/stdlib/abi").AbiType[];
260
- } | ({
261
- error_kind: "custom";
262
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
263
- } | undefined;
264
- skipArgsDecoding?: boolean | undefined;
265
- }, {
266
- salt?: any;
267
- deployer?: any;
268
- publicKeys?: {
269
- masterNullifierPublicKey: string;
270
- masterIncomingViewingPublicKey: string;
271
- masterOutgoingViewingPublicKey: string;
272
- masterTaggingPublicKey: string;
273
- } | undefined;
274
- constructorArgs?: any[] | undefined;
275
- constructorArtifact?: string | {
276
- name: string;
277
- parameters: {
278
- type: import("@aztec/stdlib/abi").AbiType;
279
- name: string;
280
- visibility: "public" | "private" | "databus";
281
- }[];
282
- functionType: FunctionType;
283
- isOnlySelf: boolean;
284
- isStatic: boolean;
285
- isInitializer: boolean;
286
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
287
- errorTypes: Record<string, {
288
- string: string;
289
- error_kind: "string";
290
- } | {
291
- length: number;
292
- error_kind: "fmtstring";
293
- item_types: import("@aztec/stdlib/abi").AbiType[];
294
- } | ({
295
- error_kind: "custom";
296
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
297
- } | undefined;
298
- skipArgsDecoding?: boolean | undefined;
299
- }>;
300
109
  export declare const FunctionCallSchema: z.ZodObject<{
301
110
  name: z.ZodString;
302
111
  to: ZodFor<AztecAddress>;
@@ -309,9 +118,9 @@ export declare const FunctionCallSchema: z.ZodObject<{
309
118
  }, "strip", z.ZodTypeAny, {
310
119
  name: string;
311
120
  args: Fr[];
312
- type: FunctionType;
313
121
  to: AztecAddress;
314
122
  selector: import("@aztec/stdlib/abi").FunctionSelector;
123
+ type: FunctionType;
315
124
  isStatic: boolean;
316
125
  hideMsgSender: boolean;
317
126
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
@@ -338,9 +147,9 @@ export declare const ExecutionPayloadSchema: z.ZodObject<{
338
147
  }, "strip", z.ZodTypeAny, {
339
148
  name: string;
340
149
  args: Fr[];
341
- type: FunctionType;
342
150
  to: AztecAddress;
343
151
  selector: import("@aztec/stdlib/abi").FunctionSelector;
152
+ type: FunctionType;
344
153
  isStatic: boolean;
345
154
  hideMsgSender: boolean;
346
155
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
@@ -357,20 +166,22 @@ export declare const ExecutionPayloadSchema: z.ZodObject<{
357
166
  authWitnesses: z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">;
358
167
  capsules: z.ZodArray<z.ZodType<Capsule, any, string>, "many">;
359
168
  extraHashedArgs: z.ZodArray<ZodFor<HashedValues>, "many">;
169
+ feePayer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
360
170
  }, "strip", z.ZodTypeAny, {
361
171
  authWitnesses: AuthWitness[];
362
172
  capsules: Capsule[];
363
173
  calls: {
364
174
  name: string;
365
175
  args: Fr[];
366
- type: FunctionType;
367
176
  to: AztecAddress;
368
177
  selector: import("@aztec/stdlib/abi").FunctionSelector;
178
+ type: FunctionType;
369
179
  isStatic: boolean;
370
180
  hideMsgSender: boolean;
371
181
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
372
182
  }[];
373
183
  extraHashedArgs: HashedValues[];
184
+ feePayer?: AztecAddress | undefined;
374
185
  }, {
375
186
  authWitnesses: string[];
376
187
  capsules: string[];
@@ -385,6 +196,7 @@ export declare const ExecutionPayloadSchema: z.ZodObject<{
385
196
  selector?: any;
386
197
  }[];
387
198
  extraHashedArgs: any[];
199
+ feePayer?: any;
388
200
  }>;
389
201
  export declare const GasSettingsOptionSchema: z.ZodObject<{
390
202
  gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
@@ -1131,333 +943,6 @@ export declare const ProfileOptionsSchema: z.ZodObject<{
1131
943
  includeMetadata?: boolean | undefined;
1132
944
  skipProofGeneration?: boolean | undefined;
1133
945
  }>;
1134
- export declare const InstanceDataSchema: z.ZodUnion<[ZodFor<AztecAddress>, z.ZodIntersection<z.ZodObject<{
1135
- version: z.ZodLiteral<1>;
1136
- salt: ZodFor<Fr>;
1137
- deployer: ZodFor<AztecAddress>;
1138
- currentContractClassId: ZodFor<Fr>;
1139
- originalContractClassId: ZodFor<Fr>;
1140
- initializationHash: ZodFor<Fr>;
1141
- publicKeys: z.ZodEffects<z.ZodObject<{
1142
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1143
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1144
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1145
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1146
- }, "strip", z.ZodTypeAny, {
1147
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1148
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1149
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1150
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1151
- }, {
1152
- masterNullifierPublicKey: string;
1153
- masterIncomingViewingPublicKey: string;
1154
- masterOutgoingViewingPublicKey: string;
1155
- masterTaggingPublicKey: string;
1156
- }>, PublicKeys, {
1157
- masterNullifierPublicKey: string;
1158
- masterIncomingViewingPublicKey: string;
1159
- masterOutgoingViewingPublicKey: string;
1160
- masterTaggingPublicKey: string;
1161
- }>;
1162
- }, "strip", z.ZodTypeAny, {
1163
- version: 1;
1164
- salt: Fr;
1165
- deployer: AztecAddress;
1166
- currentContractClassId: Fr;
1167
- originalContractClassId: Fr;
1168
- initializationHash: Fr;
1169
- publicKeys: PublicKeys;
1170
- }, {
1171
- version: 1;
1172
- publicKeys: {
1173
- masterNullifierPublicKey: string;
1174
- masterIncomingViewingPublicKey: string;
1175
- masterOutgoingViewingPublicKey: string;
1176
- masterTaggingPublicKey: string;
1177
- };
1178
- salt?: any;
1179
- deployer?: any;
1180
- currentContractClassId?: any;
1181
- originalContractClassId?: any;
1182
- initializationHash?: any;
1183
- }>, z.ZodObject<{
1184
- address: ZodFor<AztecAddress>;
1185
- }, "strip", z.ZodTypeAny, {
1186
- address: AztecAddress;
1187
- }, {
1188
- address?: any;
1189
- }>>, z.ZodObject<{
1190
- constructorArtifact: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodObject<{
1191
- name: z.ZodString;
1192
- functionType: z.ZodNativeEnum<typeof FunctionType>;
1193
- isOnlySelf: z.ZodBoolean;
1194
- isStatic: z.ZodBoolean;
1195
- isInitializer: z.ZodBoolean;
1196
- parameters: z.ZodArray<z.ZodObject<{
1197
- name: z.ZodString;
1198
- type: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
1199
- visibility: z.ZodEnum<["public", "private", "databus"]>;
1200
- }, "strip", z.ZodTypeAny, {
1201
- type: import("@aztec/stdlib/abi").AbiType;
1202
- name: string;
1203
- visibility: "public" | "private" | "databus";
1204
- }, {
1205
- type: import("@aztec/stdlib/abi").AbiType;
1206
- name: string;
1207
- visibility: "public" | "private" | "databus";
1208
- }>, "many">;
1209
- returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1210
- errorTypes: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1211
- error_kind: z.ZodLiteral<"string">;
1212
- string: z.ZodString;
1213
- }, "strip", z.ZodTypeAny, {
1214
- string: string;
1215
- error_kind: "string";
1216
- }, {
1217
- string: string;
1218
- error_kind: "string";
1219
- }>, z.ZodObject<{
1220
- error_kind: z.ZodLiteral<"fmtstring">;
1221
- length: z.ZodNumber;
1222
- item_types: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1223
- }, "strip", z.ZodTypeAny, {
1224
- length: number;
1225
- error_kind: "fmtstring";
1226
- item_types: import("@aztec/stdlib/abi").AbiType[];
1227
- }, {
1228
- length: number;
1229
- error_kind: "fmtstring";
1230
- item_types: import("@aztec/stdlib/abi").AbiType[];
1231
- }>, z.ZodIntersection<z.ZodObject<{
1232
- error_kind: z.ZodLiteral<"custom">;
1233
- }, "strip", z.ZodTypeAny, {
1234
- error_kind: "custom";
1235
- }, {
1236
- error_kind: "custom";
1237
- }>, z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>>]>>>;
1238
- }, "strip", z.ZodTypeAny, {
1239
- name: string;
1240
- parameters: {
1241
- type: import("@aztec/stdlib/abi").AbiType;
1242
- name: string;
1243
- visibility: "public" | "private" | "databus";
1244
- }[];
1245
- functionType: FunctionType;
1246
- isOnlySelf: boolean;
1247
- isStatic: boolean;
1248
- isInitializer: boolean;
1249
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1250
- errorTypes: Record<string, {
1251
- string: string;
1252
- error_kind: "string";
1253
- } | {
1254
- length: number;
1255
- error_kind: "fmtstring";
1256
- item_types: import("@aztec/stdlib/abi").AbiType[];
1257
- } | ({
1258
- error_kind: "custom";
1259
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1260
- }, {
1261
- name: string;
1262
- parameters: {
1263
- type: import("@aztec/stdlib/abi").AbiType;
1264
- name: string;
1265
- visibility: "public" | "private" | "databus";
1266
- }[];
1267
- functionType: FunctionType;
1268
- isOnlySelf: boolean;
1269
- isStatic: boolean;
1270
- isInitializer: boolean;
1271
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1272
- errorTypes: Record<string, {
1273
- string: string;
1274
- error_kind: "string";
1275
- } | {
1276
- length: number;
1277
- error_kind: "fmtstring";
1278
- item_types: import("@aztec/stdlib/abi").AbiType[];
1279
- } | ({
1280
- error_kind: "custom";
1281
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1282
- }>, z.ZodString]>>;
1283
- constructorArgs: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodAny, "many">>;
1284
- skipArgsDecoding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1285
- salt: ZodFor<Fr>;
1286
- publicKeys: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
1287
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1288
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1289
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1290
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1291
- }, "strip", z.ZodTypeAny, {
1292
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1293
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1294
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1295
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1296
- }, {
1297
- masterNullifierPublicKey: string;
1298
- masterIncomingViewingPublicKey: string;
1299
- masterOutgoingViewingPublicKey: string;
1300
- masterTaggingPublicKey: string;
1301
- }>, PublicKeys, {
1302
- masterNullifierPublicKey: string;
1303
- masterIncomingViewingPublicKey: string;
1304
- masterOutgoingViewingPublicKey: string;
1305
- masterTaggingPublicKey: string;
1306
- }>>;
1307
- deployer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
1308
- }, "strip", z.ZodTypeAny, {
1309
- salt: Fr;
1310
- deployer?: AztecAddress | undefined;
1311
- publicKeys?: PublicKeys | undefined;
1312
- constructorArgs?: any[] | undefined;
1313
- constructorArtifact?: string | {
1314
- name: string;
1315
- parameters: {
1316
- type: import("@aztec/stdlib/abi").AbiType;
1317
- name: string;
1318
- visibility: "public" | "private" | "databus";
1319
- }[];
1320
- functionType: FunctionType;
1321
- isOnlySelf: boolean;
1322
- isStatic: boolean;
1323
- isInitializer: boolean;
1324
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1325
- errorTypes: Record<string, {
1326
- string: string;
1327
- error_kind: "string";
1328
- } | {
1329
- length: number;
1330
- error_kind: "fmtstring";
1331
- item_types: import("@aztec/stdlib/abi").AbiType[];
1332
- } | ({
1333
- error_kind: "custom";
1334
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1335
- } | undefined;
1336
- skipArgsDecoding?: boolean | undefined;
1337
- }, {
1338
- salt?: any;
1339
- deployer?: any;
1340
- publicKeys?: {
1341
- masterNullifierPublicKey: string;
1342
- masterIncomingViewingPublicKey: string;
1343
- masterOutgoingViewingPublicKey: string;
1344
- masterTaggingPublicKey: string;
1345
- } | undefined;
1346
- constructorArgs?: any[] | undefined;
1347
- constructorArtifact?: string | {
1348
- name: string;
1349
- parameters: {
1350
- type: import("@aztec/stdlib/abi").AbiType;
1351
- name: string;
1352
- visibility: "public" | "private" | "databus";
1353
- }[];
1354
- functionType: FunctionType;
1355
- isOnlySelf: boolean;
1356
- isStatic: boolean;
1357
- isInitializer: boolean;
1358
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1359
- errorTypes: Record<string, {
1360
- string: string;
1361
- error_kind: "string";
1362
- } | {
1363
- length: number;
1364
- error_kind: "fmtstring";
1365
- item_types: import("@aztec/stdlib/abi").AbiType[];
1366
- } | ({
1367
- error_kind: "custom";
1368
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1369
- } | undefined;
1370
- skipArgsDecoding?: boolean | undefined;
1371
- }>, z.ZodObject<{
1372
- instance: z.ZodIntersection<z.ZodObject<{
1373
- version: z.ZodLiteral<1>;
1374
- salt: ZodFor<Fr>;
1375
- deployer: ZodFor<AztecAddress>;
1376
- currentContractClassId: ZodFor<Fr>;
1377
- originalContractClassId: ZodFor<Fr>;
1378
- initializationHash: ZodFor<Fr>;
1379
- publicKeys: z.ZodEffects<z.ZodObject<{
1380
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1381
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1382
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1383
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1384
- }, "strip", z.ZodTypeAny, {
1385
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1386
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1387
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1388
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1389
- }, {
1390
- masterNullifierPublicKey: string;
1391
- masterIncomingViewingPublicKey: string;
1392
- masterOutgoingViewingPublicKey: string;
1393
- masterTaggingPublicKey: string;
1394
- }>, PublicKeys, {
1395
- masterNullifierPublicKey: string;
1396
- masterIncomingViewingPublicKey: string;
1397
- masterOutgoingViewingPublicKey: string;
1398
- masterTaggingPublicKey: string;
1399
- }>;
1400
- }, "strip", z.ZodTypeAny, {
1401
- version: 1;
1402
- salt: Fr;
1403
- deployer: AztecAddress;
1404
- currentContractClassId: Fr;
1405
- originalContractClassId: Fr;
1406
- initializationHash: Fr;
1407
- publicKeys: PublicKeys;
1408
- }, {
1409
- version: 1;
1410
- publicKeys: {
1411
- masterNullifierPublicKey: string;
1412
- masterIncomingViewingPublicKey: string;
1413
- masterOutgoingViewingPublicKey: string;
1414
- masterTaggingPublicKey: string;
1415
- };
1416
- salt?: any;
1417
- deployer?: any;
1418
- currentContractClassId?: any;
1419
- originalContractClassId?: any;
1420
- initializationHash?: any;
1421
- }>, z.ZodObject<{
1422
- address: ZodFor<AztecAddress>;
1423
- }, "strip", z.ZodTypeAny, {
1424
- address: AztecAddress;
1425
- }, {
1426
- address?: any;
1427
- }>>;
1428
- artifact: ZodFor<ContractArtifact>;
1429
- }, "strip", z.ZodTypeAny, {
1430
- artifact: ContractArtifact;
1431
- instance: {
1432
- version: 1;
1433
- salt: Fr;
1434
- deployer: AztecAddress;
1435
- currentContractClassId: Fr;
1436
- originalContractClassId: Fr;
1437
- initializationHash: Fr;
1438
- publicKeys: PublicKeys;
1439
- } & {
1440
- address: AztecAddress;
1441
- };
1442
- }, {
1443
- instance: {
1444
- version: 1;
1445
- publicKeys: {
1446
- masterNullifierPublicKey: string;
1447
- masterIncomingViewingPublicKey: string;
1448
- masterOutgoingViewingPublicKey: string;
1449
- masterTaggingPublicKey: string;
1450
- };
1451
- salt?: any;
1452
- deployer?: any;
1453
- currentContractClassId?: any;
1454
- originalContractClassId?: any;
1455
- initializationHash?: any;
1456
- } & {
1457
- address?: any;
1458
- };
1459
- artifact?: any;
1460
- }>]>;
1461
946
  export declare const MessageHashOrIntentSchema: z.ZodUnion<[ZodFor<Fr>, z.ZodObject<{
1462
947
  consumer: ZodFor<AztecAddress>;
1463
948
  innerHash: ZodFor<Fr>;
@@ -1481,9 +966,9 @@ export declare const MessageHashOrIntentSchema: z.ZodUnion<[ZodFor<Fr>, z.ZodObj
1481
966
  }, "strip", z.ZodTypeAny, {
1482
967
  name: string;
1483
968
  args: Fr[];
1484
- type: FunctionType;
1485
969
  to: AztecAddress;
1486
970
  selector: import("@aztec/stdlib/abi").FunctionSelector;
971
+ type: FunctionType;
1487
972
  isStatic: boolean;
1488
973
  hideMsgSender: boolean;
1489
974
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
@@ -1502,9 +987,9 @@ export declare const MessageHashOrIntentSchema: z.ZodUnion<[ZodFor<Fr>, z.ZodObj
1502
987
  call: {
1503
988
  name: string;
1504
989
  args: Fr[];
1505
- type: FunctionType;
1506
990
  to: AztecAddress;
1507
991
  selector: import("@aztec/stdlib/abi").FunctionSelector;
992
+ type: FunctionType;
1508
993
  isStatic: boolean;
1509
994
  hideMsgSender: boolean;
1510
995
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
@@ -1533,7 +1018,7 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1533
1018
  args: [any, string | undefined];
1534
1019
  }>, z.ZodObject<{
1535
1020
  name: z.ZodLiteral<"registerContract">;
1536
- args: z.ZodTuple<[z.ZodUnion<[ZodFor<AztecAddress>, z.ZodIntersection<z.ZodObject<{
1021
+ args: z.ZodTuple<[z.ZodIntersection<z.ZodObject<{
1537
1022
  version: z.ZodLiteral<1>;
1538
1023
  salt: ZodFor<Fr>;
1539
1024
  deployer: ZodFor<AztecAddress>;
@@ -1555,7 +1040,7 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1555
1040
  masterIncomingViewingPublicKey: string;
1556
1041
  masterOutgoingViewingPublicKey: string;
1557
1042
  masterTaggingPublicKey: string;
1558
- }>, PublicKeys, {
1043
+ }>, import("@aztec/stdlib/keys").PublicKeys, {
1559
1044
  masterNullifierPublicKey: string;
1560
1045
  masterIncomingViewingPublicKey: string;
1561
1046
  masterOutgoingViewingPublicKey: string;
@@ -1568,7 +1053,7 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1568
1053
  currentContractClassId: Fr;
1569
1054
  originalContractClassId: Fr;
1570
1055
  initializationHash: Fr;
1571
- publicKeys: PublicKeys;
1056
+ publicKeys: import("@aztec/stdlib/keys").PublicKeys;
1572
1057
  }, {
1573
1058
  version: 1;
1574
1059
  publicKeys: {
@@ -1588,336 +1073,38 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1588
1073
  address: AztecAddress;
1589
1074
  }, {
1590
1075
  address?: any;
1591
- }>>, z.ZodObject<{
1592
- constructorArtifact: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodObject<{
1593
- name: z.ZodString;
1594
- functionType: z.ZodNativeEnum<typeof FunctionType>;
1595
- isOnlySelf: z.ZodBoolean;
1596
- isStatic: z.ZodBoolean;
1597
- isInitializer: z.ZodBoolean;
1598
- parameters: z.ZodArray<z.ZodObject<{
1599
- name: z.ZodString;
1600
- type: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
1601
- visibility: z.ZodEnum<["public", "private", "databus"]>;
1602
- }, "strip", z.ZodTypeAny, {
1603
- type: import("@aztec/stdlib/abi").AbiType;
1604
- name: string;
1605
- visibility: "public" | "private" | "databus";
1606
- }, {
1607
- type: import("@aztec/stdlib/abi").AbiType;
1608
- name: string;
1609
- visibility: "public" | "private" | "databus";
1610
- }>, "many">;
1611
- returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1612
- errorTypes: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1613
- error_kind: z.ZodLiteral<"string">;
1614
- string: z.ZodString;
1615
- }, "strip", z.ZodTypeAny, {
1616
- string: string;
1617
- error_kind: "string";
1618
- }, {
1619
- string: string;
1620
- error_kind: "string";
1621
- }>, z.ZodObject<{
1622
- error_kind: z.ZodLiteral<"fmtstring">;
1623
- length: z.ZodNumber;
1624
- item_types: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1625
- }, "strip", z.ZodTypeAny, {
1626
- length: number;
1627
- error_kind: "fmtstring";
1628
- item_types: import("@aztec/stdlib/abi").AbiType[];
1629
- }, {
1630
- length: number;
1631
- error_kind: "fmtstring";
1632
- item_types: import("@aztec/stdlib/abi").AbiType[];
1633
- }>, z.ZodIntersection<z.ZodObject<{
1634
- error_kind: z.ZodLiteral<"custom">;
1635
- }, "strip", z.ZodTypeAny, {
1636
- error_kind: "custom";
1637
- }, {
1638
- error_kind: "custom";
1639
- }>, z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>>]>>>;
1640
- }, "strip", z.ZodTypeAny, {
1641
- name: string;
1642
- parameters: {
1643
- type: import("@aztec/stdlib/abi").AbiType;
1644
- name: string;
1645
- visibility: "public" | "private" | "databus";
1646
- }[];
1647
- functionType: FunctionType;
1648
- isOnlySelf: boolean;
1649
- isStatic: boolean;
1650
- isInitializer: boolean;
1651
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1652
- errorTypes: Record<string, {
1653
- string: string;
1654
- error_kind: "string";
1655
- } | {
1656
- length: number;
1657
- error_kind: "fmtstring";
1658
- item_types: import("@aztec/stdlib/abi").AbiType[];
1659
- } | ({
1660
- error_kind: "custom";
1661
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1662
- }, {
1663
- name: string;
1664
- parameters: {
1665
- type: import("@aztec/stdlib/abi").AbiType;
1666
- name: string;
1667
- visibility: "public" | "private" | "databus";
1668
- }[];
1669
- functionType: FunctionType;
1670
- isOnlySelf: boolean;
1671
- isStatic: boolean;
1672
- isInitializer: boolean;
1673
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1674
- errorTypes: Record<string, {
1675
- string: string;
1676
- error_kind: "string";
1677
- } | {
1678
- length: number;
1679
- error_kind: "fmtstring";
1680
- item_types: import("@aztec/stdlib/abi").AbiType[];
1681
- } | ({
1682
- error_kind: "custom";
1683
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1684
- }>, z.ZodString]>>;
1685
- constructorArgs: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodAny, "many">>;
1686
- skipArgsDecoding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1687
- salt: ZodFor<Fr>;
1688
- publicKeys: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
1689
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1690
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1691
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1692
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1693
- }, "strip", z.ZodTypeAny, {
1694
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1695
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1696
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1697
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1698
- }, {
1699
- masterNullifierPublicKey: string;
1700
- masterIncomingViewingPublicKey: string;
1701
- masterOutgoingViewingPublicKey: string;
1702
- masterTaggingPublicKey: string;
1703
- }>, PublicKeys, {
1704
- masterNullifierPublicKey: string;
1705
- masterIncomingViewingPublicKey: string;
1706
- masterOutgoingViewingPublicKey: string;
1707
- masterTaggingPublicKey: string;
1708
- }>>;
1709
- deployer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
1710
- }, "strip", z.ZodTypeAny, {
1711
- salt: Fr;
1712
- deployer?: AztecAddress | undefined;
1713
- publicKeys?: PublicKeys | undefined;
1714
- constructorArgs?: any[] | undefined;
1715
- constructorArtifact?: string | {
1716
- name: string;
1717
- parameters: {
1718
- type: import("@aztec/stdlib/abi").AbiType;
1719
- name: string;
1720
- visibility: "public" | "private" | "databus";
1721
- }[];
1722
- functionType: FunctionType;
1723
- isOnlySelf: boolean;
1724
- isStatic: boolean;
1725
- isInitializer: boolean;
1726
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1727
- errorTypes: Record<string, {
1728
- string: string;
1729
- error_kind: "string";
1730
- } | {
1731
- length: number;
1732
- error_kind: "fmtstring";
1733
- item_types: import("@aztec/stdlib/abi").AbiType[];
1734
- } | ({
1735
- error_kind: "custom";
1736
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1737
- } | undefined;
1738
- skipArgsDecoding?: boolean | undefined;
1739
- }, {
1740
- salt?: any;
1741
- deployer?: any;
1742
- publicKeys?: {
1743
- masterNullifierPublicKey: string;
1744
- masterIncomingViewingPublicKey: string;
1745
- masterOutgoingViewingPublicKey: string;
1746
- masterTaggingPublicKey: string;
1747
- } | undefined;
1748
- constructorArgs?: any[] | undefined;
1749
- constructorArtifact?: string | {
1750
- name: string;
1751
- parameters: {
1752
- type: import("@aztec/stdlib/abi").AbiType;
1753
- name: string;
1754
- visibility: "public" | "private" | "databus";
1755
- }[];
1756
- functionType: FunctionType;
1757
- isOnlySelf: boolean;
1758
- isStatic: boolean;
1759
- isInitializer: boolean;
1760
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1761
- errorTypes: Record<string, {
1762
- string: string;
1763
- error_kind: "string";
1764
- } | {
1765
- length: number;
1766
- error_kind: "fmtstring";
1767
- item_types: import("@aztec/stdlib/abi").AbiType[];
1768
- } | ({
1769
- error_kind: "custom";
1770
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1771
- } | undefined;
1772
- skipArgsDecoding?: boolean | undefined;
1773
- }>, z.ZodObject<{
1774
- instance: z.ZodIntersection<z.ZodObject<{
1775
- version: z.ZodLiteral<1>;
1776
- salt: ZodFor<Fr>;
1777
- deployer: ZodFor<AztecAddress>;
1778
- currentContractClassId: ZodFor<Fr>;
1779
- originalContractClassId: ZodFor<Fr>;
1780
- initializationHash: ZodFor<Fr>;
1781
- publicKeys: z.ZodEffects<z.ZodObject<{
1782
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1783
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1784
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1785
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1786
- }, "strip", z.ZodTypeAny, {
1787
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1788
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1789
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1790
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1791
- }, {
1792
- masterNullifierPublicKey: string;
1793
- masterIncomingViewingPublicKey: string;
1794
- masterOutgoingViewingPublicKey: string;
1795
- masterTaggingPublicKey: string;
1796
- }>, PublicKeys, {
1797
- masterNullifierPublicKey: string;
1798
- masterIncomingViewingPublicKey: string;
1799
- masterOutgoingViewingPublicKey: string;
1800
- masterTaggingPublicKey: string;
1801
- }>;
1802
- }, "strip", z.ZodTypeAny, {
1803
- version: 1;
1804
- salt: Fr;
1805
- deployer: AztecAddress;
1806
- currentContractClassId: Fr;
1807
- originalContractClassId: Fr;
1808
- initializationHash: Fr;
1809
- publicKeys: PublicKeys;
1810
- }, {
1811
- version: 1;
1812
- publicKeys: {
1813
- masterNullifierPublicKey: string;
1814
- masterIncomingViewingPublicKey: string;
1815
- masterOutgoingViewingPublicKey: string;
1816
- masterTaggingPublicKey: string;
1817
- };
1818
- salt?: any;
1819
- deployer?: any;
1820
- currentContractClassId?: any;
1821
- originalContractClassId?: any;
1822
- initializationHash?: any;
1823
- }>, z.ZodObject<{
1824
- address: ZodFor<AztecAddress>;
1825
- }, "strip", z.ZodTypeAny, {
1826
- address: AztecAddress;
1827
- }, {
1828
- address?: any;
1829
- }>>;
1830
- artifact: ZodFor<ContractArtifact>;
1831
- }, "strip", z.ZodTypeAny, {
1832
- artifact: ContractArtifact;
1833
- instance: {
1834
- version: 1;
1835
- salt: Fr;
1836
- deployer: AztecAddress;
1837
- currentContractClassId: Fr;
1838
- originalContractClassId: Fr;
1839
- initializationHash: Fr;
1840
- publicKeys: PublicKeys;
1841
- } & {
1842
- address: AztecAddress;
1843
- };
1844
- }, {
1845
- instance: {
1846
- version: 1;
1847
- publicKeys: {
1848
- masterNullifierPublicKey: string;
1849
- masterIncomingViewingPublicKey: string;
1850
- masterOutgoingViewingPublicKey: string;
1851
- masterTaggingPublicKey: string;
1852
- };
1853
- salt?: any;
1854
- deployer?: any;
1855
- currentContractClassId?: any;
1856
- originalContractClassId?: any;
1857
- initializationHash?: any;
1858
- } & {
1859
- address?: any;
1860
- };
1861
- artifact?: any;
1862
- }>]>, import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<ContractArtifact>>, import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<Fr>>], null>;
1076
+ }>>, import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<ContractArtifact>>, import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<Fr>>], null>;
1863
1077
  }, "strip", z.ZodTypeAny, {
1864
1078
  name: "registerContract";
1865
- args: [AztecAddress | {
1866
- salt: Fr;
1867
- deployer?: AztecAddress | undefined;
1868
- publicKeys?: PublicKeys | undefined;
1869
- constructorArgs?: any[] | undefined;
1870
- constructorArtifact?: string | {
1871
- name: string;
1872
- parameters: {
1873
- type: import("@aztec/stdlib/abi").AbiType;
1874
- name: string;
1875
- visibility: "public" | "private" | "databus";
1876
- }[];
1877
- functionType: FunctionType;
1878
- isOnlySelf: boolean;
1879
- isStatic: boolean;
1880
- isInitializer: boolean;
1881
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1882
- errorTypes: Record<string, {
1883
- string: string;
1884
- error_kind: "string";
1885
- } | {
1886
- length: number;
1887
- error_kind: "fmtstring";
1888
- item_types: import("@aztec/stdlib/abi").AbiType[];
1889
- } | ({
1890
- error_kind: "custom";
1891
- } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1892
- } | undefined;
1893
- skipArgsDecoding?: boolean | undefined;
1894
- } | ({
1079
+ args: [{
1895
1080
  version: 1;
1896
1081
  salt: Fr;
1897
1082
  deployer: AztecAddress;
1898
1083
  currentContractClassId: Fr;
1899
1084
  originalContractClassId: Fr;
1900
1085
  initializationHash: Fr;
1901
- publicKeys: PublicKeys;
1086
+ publicKeys: import("@aztec/stdlib/keys").PublicKeys;
1902
1087
  } & {
1903
1088
  address: AztecAddress;
1904
- }) | {
1905
- artifact: ContractArtifact;
1906
- instance: {
1907
- version: 1;
1908
- salt: Fr;
1909
- deployer: AztecAddress;
1910
- currentContractClassId: Fr;
1911
- originalContractClassId: Fr;
1912
- initializationHash: Fr;
1913
- publicKeys: PublicKeys;
1914
- } & {
1915
- address: AztecAddress;
1916
- };
1917
1089
  }, ContractArtifact | undefined, Fr | undefined];
1918
1090
  }, {
1919
1091
  name: "registerContract";
1920
- args: [any, any, any];
1092
+ args: [{
1093
+ version: 1;
1094
+ publicKeys: {
1095
+ masterNullifierPublicKey: string;
1096
+ masterIncomingViewingPublicKey: string;
1097
+ masterOutgoingViewingPublicKey: string;
1098
+ masterTaggingPublicKey: string;
1099
+ };
1100
+ salt?: any;
1101
+ deployer?: any;
1102
+ currentContractClassId?: any;
1103
+ originalContractClassId?: any;
1104
+ initializationHash?: any;
1105
+ } & {
1106
+ address?: any;
1107
+ }, any, any];
1921
1108
  }>, z.ZodObject<{
1922
1109
  name: z.ZodLiteral<"sendTx">;
1923
1110
  args: z.ZodTuple<[z.ZodObject<{
@@ -1933,9 +1120,9 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1933
1120
  }, "strip", z.ZodTypeAny, {
1934
1121
  name: string;
1935
1122
  args: Fr[];
1936
- type: FunctionType;
1937
1123
  to: AztecAddress;
1938
1124
  selector: import("@aztec/stdlib/abi").FunctionSelector;
1125
+ type: FunctionType;
1939
1126
  isStatic: boolean;
1940
1127
  hideMsgSender: boolean;
1941
1128
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
@@ -1952,20 +1139,22 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1952
1139
  authWitnesses: z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">;
1953
1140
  capsules: z.ZodArray<z.ZodType<Capsule, any, string>, "many">;
1954
1141
  extraHashedArgs: z.ZodArray<ZodFor<HashedValues>, "many">;
1142
+ feePayer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
1955
1143
  }, "strip", z.ZodTypeAny, {
1956
1144
  authWitnesses: AuthWitness[];
1957
1145
  capsules: Capsule[];
1958
1146
  calls: {
1959
1147
  name: string;
1960
1148
  args: Fr[];
1961
- type: FunctionType;
1962
1149
  to: AztecAddress;
1963
1150
  selector: import("@aztec/stdlib/abi").FunctionSelector;
1151
+ type: FunctionType;
1964
1152
  isStatic: boolean;
1965
1153
  hideMsgSender: boolean;
1966
1154
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
1967
1155
  }[];
1968
1156
  extraHashedArgs: HashedValues[];
1157
+ feePayer?: AztecAddress | undefined;
1969
1158
  }, {
1970
1159
  authWitnesses: string[];
1971
1160
  capsules: string[];
@@ -1980,6 +1169,7 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1980
1169
  selector?: any;
1981
1170
  }[];
1982
1171
  extraHashedArgs: any[];
1172
+ feePayer?: any;
1983
1173
  }>, z.ZodObject<{
1984
1174
  from: ZodFor<AztecAddress>;
1985
1175
  authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
@@ -2145,14 +1335,15 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2145
1335
  calls: {
2146
1336
  name: string;
2147
1337
  args: Fr[];
2148
- type: FunctionType;
2149
1338
  to: AztecAddress;
2150
1339
  selector: import("@aztec/stdlib/abi").FunctionSelector;
1340
+ type: FunctionType;
2151
1341
  isStatic: boolean;
2152
1342
  hideMsgSender: boolean;
2153
1343
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
2154
1344
  }[];
2155
1345
  extraHashedArgs: HashedValues[];
1346
+ feePayer?: AztecAddress | undefined;
2156
1347
  }, {
2157
1348
  from: AztecAddress;
2158
1349
  fee?: {
@@ -2188,6 +1379,7 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2188
1379
  selector?: any;
2189
1380
  }[];
2190
1381
  extraHashedArgs: any[];
1382
+ feePayer?: any;
2191
1383
  }, {
2192
1384
  fee?: {
2193
1385
  gasSettings?: {
@@ -2227,9 +1419,9 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2227
1419
  }, "strip", z.ZodTypeAny, {
2228
1420
  name: string;
2229
1421
  args: Fr[];
2230
- type: FunctionType;
2231
1422
  to: AztecAddress;
2232
1423
  selector: import("@aztec/stdlib/abi").FunctionSelector;
1424
+ type: FunctionType;
2233
1425
  isStatic: boolean;
2234
1426
  hideMsgSender: boolean;
2235
1427
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
@@ -2242,19 +1434,19 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2242
1434
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
2243
1435
  to?: any;
2244
1436
  selector?: any;
2245
- }>, import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>, import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<ZodFor<AztecAddress>, "many">>], null>;
1437
+ }>, import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>], null>;
2246
1438
  }, "strip", z.ZodTypeAny, {
2247
1439
  name: "simulateUtility";
2248
1440
  args: [{
2249
1441
  name: string;
2250
1442
  args: Fr[];
2251
- type: FunctionType;
2252
1443
  to: AztecAddress;
2253
1444
  selector: import("@aztec/stdlib/abi").FunctionSelector;
1445
+ type: FunctionType;
2254
1446
  isStatic: boolean;
2255
1447
  hideMsgSender: boolean;
2256
1448
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
2257
- }, AuthWitness[] | undefined, AztecAddress[] | undefined];
1449
+ }, AuthWitness[] | undefined];
2258
1450
  }, {
2259
1451
  name: "simulateUtility";
2260
1452
  args: [{
@@ -2266,7 +1458,7 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2266
1458
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
2267
1459
  to?: any;
2268
1460
  selector?: any;
2269
- }, string[] | undefined, any[] | undefined];
1461
+ }, string[] | undefined];
2270
1462
  }>, z.ZodObject<{
2271
1463
  name: z.ZodLiteral<"simulateTx">;
2272
1464
  args: z.ZodTuple<[z.ZodObject<{
@@ -2282,9 +1474,9 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2282
1474
  }, "strip", z.ZodTypeAny, {
2283
1475
  name: string;
2284
1476
  args: Fr[];
2285
- type: FunctionType;
2286
1477
  to: AztecAddress;
2287
1478
  selector: import("@aztec/stdlib/abi").FunctionSelector;
1479
+ type: FunctionType;
2288
1480
  isStatic: boolean;
2289
1481
  hideMsgSender: boolean;
2290
1482
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
@@ -2301,20 +1493,22 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2301
1493
  authWitnesses: z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">;
2302
1494
  capsules: z.ZodArray<z.ZodType<Capsule, any, string>, "many">;
2303
1495
  extraHashedArgs: z.ZodArray<ZodFor<HashedValues>, "many">;
1496
+ feePayer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
2304
1497
  }, "strip", z.ZodTypeAny, {
2305
1498
  authWitnesses: AuthWitness[];
2306
1499
  capsules: Capsule[];
2307
1500
  calls: {
2308
1501
  name: string;
2309
1502
  args: Fr[];
2310
- type: FunctionType;
2311
1503
  to: AztecAddress;
2312
1504
  selector: import("@aztec/stdlib/abi").FunctionSelector;
1505
+ type: FunctionType;
2313
1506
  isStatic: boolean;
2314
1507
  hideMsgSender: boolean;
2315
1508
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
2316
1509
  }[];
2317
1510
  extraHashedArgs: HashedValues[];
1511
+ feePayer?: AztecAddress | undefined;
2318
1512
  }, {
2319
1513
  authWitnesses: string[];
2320
1514
  capsules: string[];
@@ -2329,6 +1523,7 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2329
1523
  selector?: any;
2330
1524
  }[];
2331
1525
  extraHashedArgs: any[];
1526
+ feePayer?: any;
2332
1527
  }>, z.ZodObject<{
2333
1528
  from: ZodFor<AztecAddress>;
2334
1529
  authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
@@ -2514,14 +1709,15 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2514
1709
  calls: {
2515
1710
  name: string;
2516
1711
  args: Fr[];
2517
- type: FunctionType;
2518
1712
  to: AztecAddress;
2519
1713
  selector: import("@aztec/stdlib/abi").FunctionSelector;
1714
+ type: FunctionType;
2520
1715
  isStatic: boolean;
2521
1716
  hideMsgSender: boolean;
2522
1717
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
2523
1718
  }[];
2524
1719
  extraHashedArgs: HashedValues[];
1720
+ feePayer?: AztecAddress | undefined;
2525
1721
  }, {
2526
1722
  from: AztecAddress;
2527
1723
  fee?: {
@@ -2562,6 +1758,7 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
2562
1758
  selector?: any;
2563
1759
  }[];
2564
1760
  extraHashedArgs: any[];
1761
+ feePayer?: any;
2565
1762
  }, {
2566
1763
  fee?: {
2567
1764
  gasSettings?: {
@@ -2616,7 +1813,7 @@ export declare const ContractMetadataSchema: z.ZodObject<{
2616
1813
  masterIncomingViewingPublicKey: string;
2617
1814
  masterOutgoingViewingPublicKey: string;
2618
1815
  masterTaggingPublicKey: string;
2619
- }>, PublicKeys, {
1816
+ }>, import("@aztec/stdlib/keys").PublicKeys, {
2620
1817
  masterNullifierPublicKey: string;
2621
1818
  masterIncomingViewingPublicKey: string;
2622
1819
  masterOutgoingViewingPublicKey: string;
@@ -2629,7 +1826,7 @@ export declare const ContractMetadataSchema: z.ZodObject<{
2629
1826
  currentContractClassId: Fr;
2630
1827
  originalContractClassId: Fr;
2631
1828
  initializationHash: Fr;
2632
- publicKeys: PublicKeys;
1829
+ publicKeys: import("@aztec/stdlib/keys").PublicKeys;
2633
1830
  }, {
2634
1831
  version: 1;
2635
1832
  publicKeys: {
@@ -2662,7 +1859,7 @@ export declare const ContractMetadataSchema: z.ZodObject<{
2662
1859
  currentContractClassId: Fr;
2663
1860
  originalContractClassId: Fr;
2664
1861
  initializationHash: Fr;
2665
- publicKeys: PublicKeys;
1862
+ publicKeys: import("@aztec/stdlib/keys").PublicKeys;
2666
1863
  } & {
2667
1864
  address: AztecAddress;
2668
1865
  }) | undefined;