@aztec/aztec.js 0.0.1-commit.21caa21 → 0.0.1-commit.21ecf947b

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 (212) hide show
  1. package/dest/account/account.d.ts +25 -40
  2. package/dest/account/account.d.ts.map +1 -1
  3. package/dest/account/account.js +19 -47
  4. package/dest/account/account_contract.d.ts +9 -10
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +21 -9
  7. package/dest/account/account_with_secret_key.d.ts.map +1 -1
  8. package/dest/account/account_with_secret_key.js +21 -4
  9. package/dest/account/index.d.ts +4 -3
  10. package/dest/account/index.d.ts.map +1 -1
  11. package/dest/account/index.js +2 -0
  12. package/dest/account/signerless_account.d.ts +6 -7
  13. package/dest/account/signerless_account.d.ts.map +1 -1
  14. package/dest/account/signerless_account.js +8 -11
  15. package/dest/api/account.d.ts +2 -4
  16. package/dest/api/account.d.ts.map +1 -1
  17. package/dest/api/account.js +1 -3
  18. package/dest/api/authorization.d.ts +2 -2
  19. package/dest/api/authorization.d.ts.map +1 -1
  20. package/dest/api/authorization.js +1 -1
  21. package/dest/api/contract.d.ts +18 -12
  22. package/dest/api/contract.d.ts.map +1 -1
  23. package/dest/api/contract.js +16 -10
  24. package/dest/api/deployment.d.ts +1 -2
  25. package/dest/api/deployment.d.ts.map +1 -1
  26. package/dest/api/deployment.js +0 -1
  27. package/dest/api/events.d.ts +10 -6
  28. package/dest/api/events.d.ts.map +1 -1
  29. package/dest/api/events.js +30 -20
  30. package/dest/api/fields.d.ts +4 -2
  31. package/dest/api/fields.d.ts.map +1 -1
  32. package/dest/api/fields.js +3 -1
  33. package/dest/api/keys.d.ts +1 -1
  34. package/dest/api/keys.js +1 -1
  35. package/dest/api/node.d.ts +8 -4
  36. package/dest/api/node.d.ts.map +1 -1
  37. package/dest/api/node.js +7 -3
  38. package/dest/api/protocol.d.ts +7 -1
  39. package/dest/api/protocol.d.ts.map +1 -1
  40. package/dest/api/protocol.js +6 -0
  41. package/dest/api/tx.d.ts +2 -2
  42. package/dest/api/tx.d.ts.map +1 -1
  43. package/dest/api/tx.js +1 -1
  44. package/dest/api/wallet.d.ts +3 -2
  45. package/dest/api/wallet.d.ts.map +1 -1
  46. package/dest/api/wallet.js +2 -1
  47. package/dest/authorization/call_authorization_request.d.ts +23 -2
  48. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  49. package/dest/contract/base_contract_interaction.d.ts +8 -10
  50. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  51. package/dest/contract/base_contract_interaction.js +5 -17
  52. package/dest/contract/batch_call.d.ts +1 -1
  53. package/dest/contract/batch_call.d.ts.map +1 -1
  54. package/dest/contract/batch_call.js +7 -2
  55. package/dest/contract/contract_base.d.ts +4 -1
  56. package/dest/contract/contract_base.d.ts.map +1 -1
  57. package/dest/contract/contract_function_interaction.d.ts +3 -12
  58. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  59. package/dest/contract/contract_function_interaction.js +10 -7
  60. package/dest/contract/deploy_method.d.ts +64 -17
  61. package/dest/contract/deploy_method.d.ts.map +1 -1
  62. package/dest/contract/deploy_method.js +42 -24
  63. package/dest/contract/interaction_options.d.ts +42 -5
  64. package/dest/contract/interaction_options.d.ts.map +1 -1
  65. package/dest/contract/interaction_options.js +8 -1
  66. package/dest/contract/protocol_contracts/auth-registry.d.ts +27 -0
  67. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  68. package/dest/contract/protocol_contracts/auth-registry.js +558 -0
  69. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +15 -0
  70. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  71. package/dest/contract/protocol_contracts/contract-class-registry.js +139 -0
  72. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
  73. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  74. package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
  75. package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
  76. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  77. package/dest/contract/protocol_contracts/fee-juice.js +426 -0
  78. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  79. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  80. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +585 -0
  81. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  82. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  83. package/dest/contract/protocol_contracts/public-checks.js +593 -0
  84. package/dest/contract/wait_for_proven.d.ts +2 -2
  85. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  86. package/dest/contract/wait_for_proven.js +1 -1
  87. package/dest/contract/wait_opts.d.ts +16 -0
  88. package/dest/contract/wait_opts.d.ts.map +1 -0
  89. package/dest/contract/wait_opts.js +5 -0
  90. package/dest/deployment/publish_class.js +3 -3
  91. package/dest/deployment/publish_instance.d.ts +2 -2
  92. package/dest/deployment/publish_instance.d.ts.map +1 -1
  93. package/dest/deployment/publish_instance.js +3 -3
  94. package/dest/ethereum/portal_manager.d.ts +9 -6
  95. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  96. package/dest/ethereum/portal_manager.js +17 -18
  97. package/dest/fee/fee_juice_payment_method_with_claim.js +7 -7
  98. package/dest/fee/private_fee_payment_method.js +11 -11
  99. package/dest/fee/public_fee_payment_method.js +11 -11
  100. package/dest/fee/sponsored_fee_payment.js +3 -3
  101. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  102. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  103. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  104. package/dest/utils/abi_types.d.ts +2 -2
  105. package/dest/utils/abi_types.d.ts.map +1 -1
  106. package/dest/utils/authwit.d.ts +9 -7
  107. package/dest/utils/authwit.d.ts.map +1 -1
  108. package/dest/utils/authwit.js +6 -10
  109. package/dest/utils/cross_chain.d.ts +2 -2
  110. package/dest/utils/cross_chain.d.ts.map +1 -1
  111. package/dest/utils/fee_juice.js +1 -1
  112. package/dest/utils/field_compressed_string.js +1 -1
  113. package/dest/utils/node.d.ts +12 -1
  114. package/dest/utils/node.d.ts.map +1 -1
  115. package/dest/utils/node.js +46 -0
  116. package/dest/utils/pub_key.d.ts +2 -2
  117. package/dest/utils/pub_key.d.ts.map +1 -1
  118. package/dest/utils/pub_key.js +1 -1
  119. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
  120. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  121. package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
  122. package/dest/wallet/account_manager.d.ts +6 -9
  123. package/dest/wallet/account_manager.d.ts.map +1 -1
  124. package/dest/wallet/account_manager.js +6 -12
  125. package/dest/wallet/capabilities.d.ts +444 -0
  126. package/dest/wallet/capabilities.d.ts.map +1 -0
  127. package/dest/wallet/capabilities.js +3 -0
  128. package/dest/wallet/deploy_account_method.d.ts +35 -7
  129. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  130. package/dest/wallet/deploy_account_method.js +8 -6
  131. package/dest/wallet/index.d.ts +2 -1
  132. package/dest/wallet/index.d.ts.map +1 -1
  133. package/dest/wallet/index.js +1 -0
  134. package/dest/wallet/wallet.d.ts +1679 -984
  135. package/dest/wallet/wallet.d.ts.map +1 -1
  136. package/dest/wallet/wallet.js +209 -100
  137. package/package.json +25 -14
  138. package/src/account/account.ts +34 -58
  139. package/src/account/account_contract.ts +7 -8
  140. package/src/account/account_with_secret_key.ts +34 -9
  141. package/src/account/index.ts +3 -2
  142. package/src/account/signerless_account.ts +14 -13
  143. package/src/api/account.ts +9 -3
  144. package/src/api/authorization.ts +1 -0
  145. package/src/api/contract.ts +24 -9
  146. package/src/api/deployment.ts +0 -1
  147. package/src/api/events.ts +35 -27
  148. package/src/api/fields.ts +3 -1
  149. package/src/api/keys.ts +2 -2
  150. package/src/api/node.ts +7 -3
  151. package/src/api/protocol.ts +7 -0
  152. package/src/api/tx.ts +2 -0
  153. package/src/api/wallet.ts +52 -3
  154. package/src/authorization/call_authorization_request.ts +1 -1
  155. package/src/contract/base_contract_interaction.ts +27 -15
  156. package/src/contract/batch_call.ts +4 -2
  157. package/src/contract/contract_function_interaction.ts +17 -7
  158. package/src/contract/deploy_method.ts +123 -30
  159. package/src/contract/interaction_options.ts +49 -4
  160. package/src/contract/protocol_contracts/auth-registry.ts +351 -0
  161. package/src/contract/protocol_contracts/contract-class-registry.ts +99 -0
  162. package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
  163. package/src/contract/protocol_contracts/fee-juice.ts +264 -0
  164. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +332 -0
  165. package/src/contract/protocol_contracts/public-checks.ts +316 -0
  166. package/src/contract/wait_for_proven.ts +1 -1
  167. package/src/contract/wait_opts.ts +21 -0
  168. package/src/deployment/publish_class.ts +3 -3
  169. package/src/deployment/publish_instance.ts +3 -6
  170. package/src/ethereum/portal_manager.ts +20 -24
  171. package/src/fee/fee_juice_payment_method_with_claim.ts +6 -6
  172. package/src/fee/private_fee_payment_method.ts +8 -8
  173. package/src/fee/public_fee_payment_method.ts +9 -9
  174. package/src/fee/sponsored_fee_payment.ts +3 -3
  175. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  176. package/src/utils/abi_types.ts +1 -1
  177. package/src/utils/authwit.ts +20 -8
  178. package/src/utils/cross_chain.ts +1 -1
  179. package/src/utils/fee_juice.ts +1 -1
  180. package/src/utils/field_compressed_string.ts +1 -1
  181. package/src/utils/node.ts +62 -0
  182. package/src/utils/pub_key.ts +2 -2
  183. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  184. package/src/wallet/account_manager.ts +6 -14
  185. package/src/wallet/capabilities.ts +491 -0
  186. package/src/wallet/deploy_account_method.ts +38 -14
  187. package/src/wallet/index.ts +1 -0
  188. package/src/wallet/wallet.ts +369 -107
  189. package/dest/account/interface.d.ts +0 -19
  190. package/dest/account/interface.d.ts.map +0 -1
  191. package/dest/account/interface.js +0 -5
  192. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  193. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  194. package/dest/contract/deploy_sent_tx.js +0 -46
  195. package/dest/contract/protocol_contracts.d.ts +0 -9
  196. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  197. package/dest/contract/protocol_contracts.js +0 -26
  198. package/dest/contract/sent_tx.d.ts +0 -51
  199. package/dest/contract/sent_tx.d.ts.map +0 -1
  200. package/dest/contract/sent_tx.js +0 -90
  201. package/dest/contract/unsafe_contract.d.ts +0 -15
  202. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  203. package/dest/contract/unsafe_contract.js +0 -6
  204. package/dest/deployment/broadcast_function.d.ts +0 -24
  205. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  206. package/dest/deployment/broadcast_function.js +0 -74
  207. package/src/account/interface.ts +0 -25
  208. package/src/contract/deploy_sent_tx.ts +0 -75
  209. package/src/contract/protocol_contracts.ts +0 -35
  210. package/src/contract/sent_tx.ts +0 -130
  211. package/src/contract/unsafe_contract.ts +0 -19
  212. package/src/deployment/broadcast_function.ts +0 -148
@@ -1,16 +1,18 @@
1
1
  import type { ChainInfo } from '@aztec/entrypoints/interfaces';
2
- import type { Fr } from '@aztec/foundation/fields';
3
- import { type ContractArtifact, type EventMetadataDefinition, type FunctionCall, FunctionType } from '@aztec/stdlib/abi';
2
+ import { BlockNumber } from '@aztec/foundation/branded-types';
3
+ import type { Fr } from '@aztec/foundation/curves/bn254';
4
+ import { type AbiDecoded, type ContractArtifact, type EventMetadataDefinition, FunctionCall } from '@aztec/stdlib/abi';
4
5
  import { AuthWitness } from '@aztec/stdlib/auth-witness';
5
6
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
6
- import { type ContractClassMetadata, type ContractInstanceWithAddress, type ContractMetadata } from '@aztec/stdlib/contract';
7
+ import { type ContractInstanceWithAddress } from '@aztec/stdlib/contract';
7
8
  import { Gas } from '@aztec/stdlib/gas';
8
- import { type ApiSchemaFor, type ZodFor } from '@aztec/stdlib/schemas';
9
- import { Capsule, HashedValues, TxHash, TxProfileResult, TxReceipt, TxSimulationResult, UtilitySimulationResult } from '@aztec/stdlib/tx';
10
- import type { ExecutionPayload } from '@aztec/stdlib/tx';
9
+ import { type ApiSchemaFor } from '@aztec/stdlib/schemas';
10
+ import type { ExecutionPayload, InTx } from '@aztec/stdlib/tx';
11
+ import { Capsule, HashedValues, TxHash, TxProfileResult, TxSimulationResult, UtilitySimulationResult } from '@aztec/stdlib/tx';
11
12
  import { z } from 'zod';
12
- import type { FeeEstimationOptions, GasSettingsOption, ProfileInteractionOptions, SendInteractionOptions, SimulateInteractionOptions } from '../contract/interaction_options.js';
13
+ import { type FeeEstimationOptions, type GasSettingsOption, type InteractionWaitOptions, type ProfileInteractionOptions, type SendInteractionOptionsWithoutWait, type SendReturn, type SimulateInteractionOptions } from '../contract/interaction_options.js';
13
14
  import type { CallIntent, IntentInnerHash } from '../utils/authwit.js';
15
+ import type { AppCapabilities, WalletCapabilities } from './capabilities.js';
14
16
  /**
15
17
  * A wrapper type that allows any item to be associated with an alias.
16
18
  */
@@ -26,7 +28,7 @@ export type Aliased<T> = {
26
28
  };
27
29
  /**
28
30
  * Options for simulating interactions with the wallet. Overrides the fee settings of an interaction with
29
- * a simplified version that only hints at the wallet wether the interaction contains a
31
+ * a simplified version that only hints at the wallet whether the interaction contains a
30
32
  * fee payment method or not
31
33
  */
32
34
  export type SimulateOptions = Omit<SimulateInteractionOptions, 'fee'> & {
@@ -35,7 +37,7 @@ export type SimulateOptions = Omit<SimulateInteractionOptions, 'fee'> & {
35
37
  };
36
38
  /**
37
39
  * Options for profiling interactions with the wallet. Overrides the fee settings of an interaction with
38
- * a simplified version that only hints at the wallet wether the interaction contains a
40
+ * a simplified version that only hints at the wallet whether the interaction contains a
39
41
  * fee payment method or not
40
42
  */
41
43
  export type ProfileOptions = Omit<ProfileInteractionOptions, 'fee'> & {
@@ -44,37 +46,45 @@ export type ProfileOptions = Omit<ProfileInteractionOptions, 'fee'> & {
44
46
  };
45
47
  /**
46
48
  * Options for sending/proving interactions with the wallet. Overrides the fee settings of an interaction with
47
- * a simplified version that only hints at the wallet wether the interaction contains a
49
+ * a simplified version that only hints at the wallet whether the interaction contains a
48
50
  * fee payment method or not
49
51
  */
50
- export type SendOptions = Omit<SendInteractionOptions, 'fee'> & {
52
+ export type SendOptions<W extends InteractionWaitOptions = undefined> = Omit<SendInteractionOptionsWithoutWait, 'fee'> & {
51
53
  /** The fee options */
52
54
  fee?: GasSettingsOption;
55
+ /** Whether to wait for the transaction to be mined */
56
+ wait?: W;
53
57
  };
54
58
  /**
55
- * Helper type that represents all methods that can be batched.
59
+ * Helper type that represents all methods that can be batched (all methods except batch itself).
56
60
  */
57
- export type BatchableMethods = Pick<Wallet, 'registerContract' | 'sendTx' | 'registerSender' | 'simulateUtility' | 'simulateTx'>;
61
+ export type BatchableMethods = Omit<Wallet, 'batch'>;
58
62
  /**
59
- * From the batchable methods, we create a type that represents a method call with its name and arguments.
60
- * This is what the wallet will accept as arguments to the `batch` method.
63
+ * A method call with its name and arguments.
61
64
  */
62
- export type BatchedMethod<T extends keyof BatchableMethods> = {
65
+ type BatchedMethodInternal<T extends keyof BatchableMethods> = {
63
66
  /** The method name */
64
67
  name: T;
65
68
  /** The method arguments */
66
69
  args: Parameters<BatchableMethods[T]>;
67
70
  };
71
+ /**
72
+ * Union of all possible batched method calls.
73
+ * This ensures type safety: the `args` must match the specific `name`.
74
+ */
75
+ export type BatchedMethod = {
76
+ [K in keyof BatchableMethods]: BatchedMethodInternal<K>;
77
+ }[keyof BatchableMethods];
68
78
  /**
69
79
  * Helper type to extract the return type of a batched method
70
80
  */
71
- export type BatchedMethodResult<T> = T extends BatchedMethod<infer K> ? Awaited<ReturnType<BatchableMethods[K]>> : never;
81
+ export type BatchedMethodResult<T> = T extends BatchedMethodInternal<infer K> ? Awaited<ReturnType<BatchableMethods[K]>> : never;
72
82
  /**
73
83
  * Wrapper type for batch results that includes the method name for discriminated union deserialization.
74
84
  * Each result is wrapped as \{ name: 'methodName', result: ActualResult \} to allow proper deserialization
75
85
  * when AztecAddress and TxHash would otherwise be ambiguous (both are hex strings).
76
86
  */
77
- export type BatchedMethodResultWrapper<T extends BatchedMethod<keyof BatchableMethods>> = {
87
+ export type BatchedMethodResultWrapper<T extends BatchedMethod> = {
78
88
  /** The method name */
79
89
  name: T['name'];
80
90
  /** The method result */
@@ -83,72 +93,129 @@ export type BatchedMethodResultWrapper<T extends BatchedMethod<keyof BatchableMe
83
93
  /**
84
94
  * Maps a tuple of BatchedMethod to a tuple of their wrapped return types
85
95
  */
86
- export type BatchResults<T extends readonly BatchedMethod<keyof BatchableMethods>[]> = {
96
+ export type BatchResults<T extends readonly BatchedMethod[]> = {
87
97
  [K in keyof T]: BatchedMethodResultWrapper<T[K]>;
88
98
  };
99
+ /**
100
+ * Base filter options for event queries.
101
+ */
102
+ export type EventFilterBase = {
103
+ /** Transaction in which the events were emitted. */
104
+ txHash?: TxHash;
105
+ /** The block number from which to start fetching events (inclusive).
106
+ * Optional. If provided, it must be greater or equal than 1.
107
+ * Defaults to the initial L2 block number (INITIAL_L2_BLOCK_NUM).
108
+ */
109
+ fromBlock?: BlockNumber;
110
+ /** The block number until which to fetch logs (not inclusive).
111
+ * Optional. If provided, it must be greater than fromBlock.
112
+ */
113
+ toBlock?: BlockNumber;
114
+ };
115
+ /**
116
+ * Filter options when querying private events.
117
+ */
118
+ export type PrivateEventFilter = EventFilterBase & {
119
+ /** The address of the contract that emitted the events. */
120
+ contractAddress: AztecAddress;
121
+ /** Addresses of accounts that are in scope for this filter. */
122
+ scopes: AztecAddress[];
123
+ };
124
+ /**
125
+ * Filter options when querying public events.
126
+ */
127
+ export type PublicEventFilter = EventFilterBase & {
128
+ /** The address of the contract that emitted the events. */
129
+ contractAddress?: AztecAddress;
130
+ };
131
+ /**
132
+ * An ABI decoded event with associated metadata.
133
+ * @typeParam T - The decoded event type
134
+ * @typeParam M - Additional metadata fields (empty by default)
135
+ */
136
+ export type Event<T, M extends object = object> = {
137
+ /** The ABI decoded event */
138
+ event: T;
139
+ /** Metadata describing event context information such as tx and block */
140
+ metadata: InTx & M;
141
+ };
142
+ /** An ABI decoded private event with associated metadata. */
143
+ export type PrivateEvent<T> = Event<T>;
144
+ /** An ABI decoded public event with associated metadata (includes contract address). */
145
+ export type PublicEvent<T> = Event<T, {
146
+ /**
147
+ * Address of the contract that emitted this event
148
+ */
149
+ contractAddress: AztecAddress;
150
+ }>;
151
+ /**
152
+ * Contract metadata including deployment and registration status.
153
+ */
154
+ export type ContractMetadata = {
155
+ /** The contract instance */
156
+ instance?: ContractInstanceWithAddress;
157
+ /** Whether the contract has been initialized (init nullifier exists) */
158
+ isContractInitialized: boolean;
159
+ /** Whether the contract instance is publicly deployed on-chain */
160
+ isContractPublished: boolean;
161
+ /** Whether the contract has been updated to a different class */
162
+ isContractUpdated: boolean;
163
+ /** The updated contract class ID if the contract has been updated */
164
+ updatedContractClassId?: Fr | undefined;
165
+ };
166
+ /**
167
+ * Contract class metadata.
168
+ */
169
+ export type ContractClassMetadata = {
170
+ /** Whether the artifact is registered in the wallet */
171
+ isArtifactRegistered: boolean;
172
+ /** Whether the contract class is publicly registered on-chain */
173
+ isContractClassPubliclyRegistered: boolean;
174
+ };
175
+ /**
176
+ * Options for simulating a utility function call.
177
+ */
178
+ export type SimulateUtilityOptions = {
179
+ /** The scope for the utility simulation (determines which notes and keys are visible). */
180
+ scope: AztecAddress;
181
+ /** Optional auth witnesses to use during execution. */
182
+ authWitnesses?: AuthWitness[];
183
+ };
89
184
  /**
90
185
  * The wallet interface.
91
186
  */
92
187
  export type Wallet = {
93
- getContractClassMetadata(id: Fr, includeArtifact?: boolean): Promise<ContractClassMetadata>;
94
- getContractMetadata(address: AztecAddress): Promise<ContractMetadata>;
95
- getPrivateEvents<T>(contractAddress: AztecAddress, eventMetadata: EventMetadataDefinition, from: number, numBlocks: number, recipients: AztecAddress[]): Promise<T[]>;
188
+ getPrivateEvents<T>(eventMetadata: EventMetadataDefinition, eventFilter: PrivateEventFilter): Promise<PrivateEvent<T>[]>;
96
189
  getChainInfo(): Promise<ChainInfo>;
97
- getTxReceipt(txHash: TxHash): Promise<TxReceipt>;
190
+ getContractMetadata(address: AztecAddress): Promise<ContractMetadata>;
191
+ getContractClassMetadata(id: Fr): Promise<ContractClassMetadata>;
98
192
  registerSender(address: AztecAddress, alias?: string): Promise<AztecAddress>;
99
193
  getAddressBook(): Promise<Aliased<AztecAddress>[]>;
100
194
  getAccounts(): Promise<Aliased<AztecAddress>[]>;
101
195
  registerContract(instance: ContractInstanceWithAddress, artifact?: ContractArtifact, secretKey?: Fr): Promise<ContractInstanceWithAddress>;
102
196
  simulateTx(exec: ExecutionPayload, opts: SimulateOptions): Promise<TxSimulationResult>;
103
- simulateUtility(call: FunctionCall, authwits?: AuthWitness[]): Promise<UtilitySimulationResult>;
197
+ simulateUtility(call: FunctionCall, opts: SimulateUtilityOptions): Promise<UtilitySimulationResult>;
104
198
  profileTx(exec: ExecutionPayload, opts: ProfileOptions): Promise<TxProfileResult>;
105
- sendTx(exec: ExecutionPayload, opts: SendOptions): Promise<TxHash>;
106
- createAuthWit(from: AztecAddress, messageHashOrIntent: Fr | IntentInnerHash | CallIntent): Promise<AuthWitness>;
107
- batch<const T extends readonly BatchedMethod<keyof BatchableMethods>[]>(methods: T): Promise<BatchResults<T>>;
199
+ sendTx<W extends InteractionWaitOptions = undefined>(exec: ExecutionPayload, opts: SendOptions<W>): Promise<SendReturn<W>>;
200
+ createAuthWit(from: AztecAddress, messageHashOrIntent: IntentInnerHash | CallIntent): Promise<AuthWitness>;
201
+ requestCapabilities(manifest: AppCapabilities): Promise<WalletCapabilities>;
202
+ batch<const T extends readonly BatchedMethod[]>(methods: T): Promise<BatchResults<T>>;
108
203
  };
109
- export declare const FunctionCallSchema: z.ZodObject<{
110
- name: z.ZodString;
111
- to: ZodFor<AztecAddress>;
112
- selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
113
- type: z.ZodNativeEnum<typeof FunctionType>;
114
- isStatic: z.ZodBoolean;
115
- hideMsgSender: z.ZodBoolean;
116
- args: z.ZodArray<ZodFor<Fr>, "many">;
117
- returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
118
- }, "strip", z.ZodTypeAny, {
119
- name: string;
120
- to: AztecAddress;
121
- selector: import("@aztec/stdlib/abi").FunctionSelector;
122
- type: FunctionType;
123
- isStatic: boolean;
124
- hideMsgSender: boolean;
125
- args: Fr[];
126
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
127
- }, {
128
- name: string;
129
- to?: any;
130
- selector?: any;
131
- type: FunctionType;
132
- isStatic: boolean;
133
- hideMsgSender: boolean;
134
- args: any[];
135
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
136
- }>;
137
204
  export declare const ExecutionPayloadSchema: z.ZodObject<{
138
- calls: z.ZodArray<z.ZodObject<{
205
+ calls: z.ZodArray<z.ZodEffects<z.ZodObject<{
139
206
  name: z.ZodString;
140
- to: ZodFor<AztecAddress>;
141
- selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
142
- type: z.ZodNativeEnum<typeof FunctionType>;
207
+ to: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
208
+ selector: import("@aztec/stdlib/schemas").ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
209
+ type: z.ZodNativeEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
143
210
  isStatic: z.ZodBoolean;
144
211
  hideMsgSender: z.ZodBoolean;
145
- args: z.ZodArray<ZodFor<Fr>, "many">;
212
+ args: z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<Fr>, "many">;
146
213
  returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
147
214
  }, "strip", z.ZodTypeAny, {
148
215
  name: string;
149
216
  to: AztecAddress;
150
217
  selector: import("@aztec/stdlib/abi").FunctionSelector;
151
- type: FunctionType;
218
+ type: import("@aztec/stdlib/abi").FunctionType;
152
219
  isStatic: boolean;
153
220
  hideMsgSender: boolean;
154
221
  args: Fr[];
@@ -157,27 +224,27 @@ export declare const ExecutionPayloadSchema: z.ZodObject<{
157
224
  name: string;
158
225
  to?: any;
159
226
  selector?: any;
160
- type: FunctionType;
227
+ type: import("@aztec/stdlib/abi").FunctionType;
161
228
  isStatic: boolean;
162
229
  hideMsgSender: boolean;
163
230
  args: any[];
164
231
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
165
- }>, "many">;
166
- authWitnesses: z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">;
167
- capsules: z.ZodArray<z.ZodType<Capsule, any, string>, "many">;
168
- extraHashedArgs: z.ZodArray<ZodFor<HashedValues>, "many">;
169
- feePayer: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<ZodFor<AztecAddress>>;
170
- }, "strip", z.ZodTypeAny, {
171
- calls: {
232
+ }>, FunctionCall, {
172
233
  name: string;
173
- to: AztecAddress;
174
- selector: import("@aztec/stdlib/abi").FunctionSelector;
175
- type: FunctionType;
234
+ to?: any;
235
+ selector?: any;
236
+ type: import("@aztec/stdlib/abi").FunctionType;
176
237
  isStatic: boolean;
177
238
  hideMsgSender: boolean;
178
- args: Fr[];
239
+ args: any[];
179
240
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
180
- }[];
241
+ }>, "many">;
242
+ authWitnesses: z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">;
243
+ capsules: z.ZodArray<z.ZodType<Capsule, any, string>, "many">;
244
+ extraHashedArgs: z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<HashedValues>, "many">;
245
+ feePayer: import("@aztec/foundation/schemas").ZodNullableOptional<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ calls: FunctionCall[];
181
248
  authWitnesses: AuthWitness[];
182
249
  capsules: Capsule[];
183
250
  extraHashedArgs: HashedValues[];
@@ -187,7 +254,7 @@ export declare const ExecutionPayloadSchema: z.ZodObject<{
187
254
  name: string;
188
255
  to?: any;
189
256
  selector?: any;
190
- type: FunctionType;
257
+ type: import("@aztec/stdlib/abi").FunctionType;
191
258
  isStatic: boolean;
192
259
  hideMsgSender: boolean;
193
260
  args: any[];
@@ -199,8 +266,8 @@ export declare const ExecutionPayloadSchema: z.ZodObject<{
199
266
  feePayer?: any;
200
267
  }>;
201
268
  export declare const GasSettingsOptionSchema: z.ZodObject<{
202
- gasSettings: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
203
- gasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
269
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
270
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
204
271
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
205
272
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
206
273
  }, "strip", z.ZodTypeAny, {
@@ -213,7 +280,7 @@ export declare const GasSettingsOptionSchema: z.ZodObject<{
213
280
  daGas: string | number | bigint;
214
281
  l2Gas: string | number | bigint;
215
282
  }>>;
216
- teardownGasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
283
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
217
284
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
218
285
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
219
286
  }, "strip", z.ZodTypeAny, {
@@ -226,7 +293,7 @@ export declare const GasSettingsOptionSchema: z.ZodObject<{
226
293
  daGas: string | number | bigint;
227
294
  l2Gas: string | number | bigint;
228
295
  }>>;
229
- maxFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
296
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
230
297
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
231
298
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
232
299
  }, "strip", z.ZodTypeAny, {
@@ -236,7 +303,7 @@ export declare const GasSettingsOptionSchema: z.ZodObject<{
236
303
  feePerDaGas: string | number | bigint;
237
304
  feePerL2Gas: string | number | bigint;
238
305
  }>>;
239
- maxPriorityFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
306
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
240
307
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
241
308
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
242
309
  }, "strip", z.ZodTypeAny, {
@@ -309,8 +376,8 @@ export declare const GasSettingsOptionSchema: z.ZodObject<{
309
376
  } | undefined;
310
377
  }>;
311
378
  export declare const WalletSimulationFeeOptionSchema: z.ZodObject<{
312
- gasSettings: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
313
- gasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
379
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
380
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
314
381
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
315
382
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
316
383
  }, "strip", z.ZodTypeAny, {
@@ -323,7 +390,7 @@ export declare const WalletSimulationFeeOptionSchema: z.ZodObject<{
323
390
  daGas: string | number | bigint;
324
391
  l2Gas: string | number | bigint;
325
392
  }>>;
326
- teardownGasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
393
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
327
394
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
328
395
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
329
396
  }, "strip", z.ZodTypeAny, {
@@ -336,7 +403,7 @@ export declare const WalletSimulationFeeOptionSchema: z.ZodObject<{
336
403
  daGas: string | number | bigint;
337
404
  l2Gas: string | number | bigint;
338
405
  }>>;
339
- maxFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
406
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
340
407
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
341
408
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
342
409
  }, "strip", z.ZodTypeAny, {
@@ -346,7 +413,7 @@ export declare const WalletSimulationFeeOptionSchema: z.ZodObject<{
346
413
  feePerDaGas: string | number | bigint;
347
414
  feePerL2Gas: string | number | bigint;
348
415
  }>>;
349
- maxPriorityFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
416
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
350
417
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
351
418
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
352
419
  }, "strip", z.ZodTypeAny, {
@@ -386,8 +453,8 @@ export declare const WalletSimulationFeeOptionSchema: z.ZodObject<{
386
453
  } | undefined;
387
454
  }>>;
388
455
  } & {
389
- estimatedGasPadding: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodNumber>;
390
- estimateGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
456
+ estimatedGasPadding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
457
+ estimateGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
391
458
  }, "strip", z.ZodTypeAny, {
392
459
  gasSettings?: {
393
460
  gasLimits?: Gas | undefined;
@@ -425,13 +492,29 @@ export declare const WalletSimulationFeeOptionSchema: z.ZodObject<{
425
492
  estimatedGasPadding?: number | undefined;
426
493
  estimateGas?: boolean | undefined;
427
494
  }>;
495
+ export declare const WaitOptsSchema: z.ZodObject<{
496
+ ignoreDroppedReceiptsFor: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
497
+ timeout: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
498
+ interval: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
499
+ dontThrowOnRevert: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ ignoreDroppedReceiptsFor?: number | undefined;
502
+ timeout?: number | undefined;
503
+ interval?: number | undefined;
504
+ dontThrowOnRevert?: boolean | undefined;
505
+ }, {
506
+ ignoreDroppedReceiptsFor?: number | undefined;
507
+ timeout?: number | undefined;
508
+ interval?: number | undefined;
509
+ dontThrowOnRevert?: boolean | undefined;
510
+ }>;
428
511
  export declare const SendOptionsSchema: z.ZodObject<{
429
- from: ZodFor<AztecAddress>;
430
- authWitnesses: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
431
- capsules: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
432
- fee: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
433
- gasSettings: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
434
- gasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
512
+ from: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
513
+ authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
514
+ capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
515
+ fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
516
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
517
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
435
518
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
436
519
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
437
520
  }, "strip", z.ZodTypeAny, {
@@ -444,7 +527,7 @@ export declare const SendOptionsSchema: z.ZodObject<{
444
527
  daGas: string | number | bigint;
445
528
  l2Gas: string | number | bigint;
446
529
  }>>;
447
- teardownGasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
530
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
448
531
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
449
532
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
450
533
  }, "strip", z.ZodTypeAny, {
@@ -457,7 +540,7 @@ export declare const SendOptionsSchema: z.ZodObject<{
457
540
  daGas: string | number | bigint;
458
541
  l2Gas: string | number | bigint;
459
542
  }>>;
460
- maxFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
543
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
461
544
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
462
545
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
463
546
  }, "strip", z.ZodTypeAny, {
@@ -467,7 +550,7 @@ export declare const SendOptionsSchema: z.ZodObject<{
467
550
  feePerDaGas: string | number | bigint;
468
551
  feePerL2Gas: string | number | bigint;
469
552
  }>>;
470
- maxPriorityFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
553
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
471
554
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
472
555
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
473
556
  }, "strip", z.ZodTypeAny, {
@@ -539,6 +622,22 @@ export declare const SendOptionsSchema: z.ZodObject<{
539
622
  } | undefined;
540
623
  } | undefined;
541
624
  }>>;
625
+ wait: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodLiteral<"NO_WAIT">, z.ZodObject<{
626
+ ignoreDroppedReceiptsFor: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
627
+ timeout: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
628
+ interval: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
629
+ dontThrowOnRevert: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
630
+ }, "strip", z.ZodTypeAny, {
631
+ ignoreDroppedReceiptsFor?: number | undefined;
632
+ timeout?: number | undefined;
633
+ interval?: number | undefined;
634
+ dontThrowOnRevert?: boolean | undefined;
635
+ }, {
636
+ ignoreDroppedReceiptsFor?: number | undefined;
637
+ timeout?: number | undefined;
638
+ interval?: number | undefined;
639
+ dontThrowOnRevert?: boolean | undefined;
640
+ }>]>>;
542
641
  }, "strip", z.ZodTypeAny, {
543
642
  from: AztecAddress;
544
643
  authWitnesses?: AuthWitness[] | undefined;
@@ -557,6 +656,12 @@ export declare const SendOptionsSchema: z.ZodObject<{
557
656
  } | undefined;
558
657
  } | undefined;
559
658
  } | undefined;
659
+ wait?: "NO_WAIT" | {
660
+ ignoreDroppedReceiptsFor?: number | undefined;
661
+ timeout?: number | undefined;
662
+ interval?: number | undefined;
663
+ dontThrowOnRevert?: boolean | undefined;
664
+ } | undefined;
560
665
  }, {
561
666
  from?: any;
562
667
  authWitnesses?: string[] | undefined;
@@ -581,14 +686,20 @@ export declare const SendOptionsSchema: z.ZodObject<{
581
686
  } | undefined;
582
687
  } | undefined;
583
688
  } | undefined;
689
+ wait?: "NO_WAIT" | {
690
+ ignoreDroppedReceiptsFor?: number | undefined;
691
+ timeout?: number | undefined;
692
+ interval?: number | undefined;
693
+ dontThrowOnRevert?: boolean | undefined;
694
+ } | undefined;
584
695
  }>;
585
696
  export declare const SimulateOptionsSchema: z.ZodObject<{
586
- from: ZodFor<AztecAddress>;
587
- authWitnesses: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
588
- capsules: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
589
- fee: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
590
- gasSettings: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
591
- gasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
697
+ from: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
698
+ authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
699
+ capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
700
+ fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
701
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
702
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
592
703
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
593
704
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
594
705
  }, "strip", z.ZodTypeAny, {
@@ -601,7 +712,7 @@ export declare const SimulateOptionsSchema: z.ZodObject<{
601
712
  daGas: string | number | bigint;
602
713
  l2Gas: string | number | bigint;
603
714
  }>>;
604
- teardownGasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
715
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
605
716
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
606
717
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
607
718
  }, "strip", z.ZodTypeAny, {
@@ -614,7 +725,7 @@ export declare const SimulateOptionsSchema: z.ZodObject<{
614
725
  daGas: string | number | bigint;
615
726
  l2Gas: string | number | bigint;
616
727
  }>>;
617
- maxFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
728
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
618
729
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
619
730
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
620
731
  }, "strip", z.ZodTypeAny, {
@@ -624,7 +735,7 @@ export declare const SimulateOptionsSchema: z.ZodObject<{
624
735
  feePerDaGas: string | number | bigint;
625
736
  feePerL2Gas: string | number | bigint;
626
737
  }>>;
627
- maxPriorityFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
738
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
628
739
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
629
740
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
630
741
  }, "strip", z.ZodTypeAny, {
@@ -664,8 +775,8 @@ export declare const SimulateOptionsSchema: z.ZodObject<{
664
775
  } | undefined;
665
776
  }>>;
666
777
  } & {
667
- estimatedGasPadding: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodNumber>;
668
- estimateGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
778
+ estimatedGasPadding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
779
+ estimateGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
669
780
  }, "strip", z.ZodTypeAny, {
670
781
  gasSettings?: {
671
782
  gasLimits?: Gas | undefined;
@@ -703,9 +814,9 @@ export declare const SimulateOptionsSchema: z.ZodObject<{
703
814
  estimatedGasPadding?: number | undefined;
704
815
  estimateGas?: boolean | undefined;
705
816
  }>>;
706
- skipTxValidation: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
707
- skipFeeEnforcement: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
708
- includeMetadata: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
817
+ skipTxValidation: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
818
+ skipFeeEnforcement: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
819
+ includeMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
709
820
  }, "strip", z.ZodTypeAny, {
710
821
  from: AztecAddress;
711
822
  authWitnesses?: AuthWitness[] | undefined;
@@ -760,12 +871,12 @@ export declare const SimulateOptionsSchema: z.ZodObject<{
760
871
  includeMetadata?: boolean | undefined;
761
872
  }>;
762
873
  export declare const ProfileOptionsSchema: z.ZodObject<{
763
- from: ZodFor<AztecAddress>;
764
- authWitnesses: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
765
- capsules: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
766
- fee: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
767
- gasSettings: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
768
- gasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
874
+ from: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
875
+ authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
876
+ capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
877
+ fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
878
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
879
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
769
880
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
770
881
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
771
882
  }, "strip", z.ZodTypeAny, {
@@ -778,7 +889,7 @@ export declare const ProfileOptionsSchema: z.ZodObject<{
778
889
  daGas: string | number | bigint;
779
890
  l2Gas: string | number | bigint;
780
891
  }>>;
781
- teardownGasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
892
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
782
893
  daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
783
894
  l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
784
895
  }, "strip", z.ZodTypeAny, {
@@ -791,7 +902,7 @@ export declare const ProfileOptionsSchema: z.ZodObject<{
791
902
  daGas: string | number | bigint;
792
903
  l2Gas: string | number | bigint;
793
904
  }>>;
794
- maxFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
905
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
795
906
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
796
907
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
797
908
  }, "strip", z.ZodTypeAny, {
@@ -801,7 +912,7 @@ export declare const ProfileOptionsSchema: z.ZodObject<{
801
912
  feePerDaGas: string | number | bigint;
802
913
  feePerL2Gas: string | number | bigint;
803
914
  }>>;
804
- maxPriorityFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
915
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
805
916
  feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
806
917
  feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
807
918
  }, "strip", z.ZodTypeAny, {
@@ -841,8 +952,8 @@ export declare const ProfileOptionsSchema: z.ZodObject<{
841
952
  } | undefined;
842
953
  }>>;
843
954
  } & {
844
- estimatedGasPadding: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodNumber>;
845
- estimateGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
955
+ estimatedGasPadding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
956
+ estimateGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
846
957
  }, "strip", z.ZodTypeAny, {
847
958
  gasSettings?: {
848
959
  gasLimits?: Gas | undefined;
@@ -880,12 +991,12 @@ export declare const ProfileOptionsSchema: z.ZodObject<{
880
991
  estimatedGasPadding?: number | undefined;
881
992
  estimateGas?: boolean | undefined;
882
993
  }>>;
883
- skipTxValidation: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
884
- skipFeeEnforcement: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
885
- includeMetadata: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
994
+ skipTxValidation: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
995
+ skipFeeEnforcement: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
996
+ includeMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
886
997
  } & {
887
998
  profileMode: z.ZodEnum<["gates", "execution-steps", "full"]>;
888
- skipProofGeneration: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
999
+ skipProofGeneration: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
889
1000
  }, "strip", z.ZodTypeAny, {
890
1001
  from: AztecAddress;
891
1002
  authWitnesses?: AuthWitness[] | undefined;
@@ -943,9 +1054,9 @@ export declare const ProfileOptionsSchema: z.ZodObject<{
943
1054
  profileMode: "execution-steps" | "full" | "gates";
944
1055
  skipProofGeneration?: boolean | undefined;
945
1056
  }>;
946
- export declare const MessageHashOrIntentSchema: z.ZodUnion<[ZodFor<Fr>, z.ZodObject<{
947
- consumer: ZodFor<AztecAddress>;
948
- innerHash: ZodFor<Fr>;
1057
+ export declare const MessageHashOrIntentSchema: z.ZodUnion<[z.ZodObject<{
1058
+ consumer: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
1059
+ innerHash: import("@aztec/stdlib/schemas").ZodFor<Fr>;
949
1060
  }, "strip", z.ZodTypeAny, {
950
1061
  consumer: AztecAddress;
951
1062
  innerHash: Fr;
@@ -953,21 +1064,21 @@ export declare const MessageHashOrIntentSchema: z.ZodUnion<[ZodFor<Fr>, z.ZodObj
953
1064
  consumer?: any;
954
1065
  innerHash?: any;
955
1066
  }>, z.ZodObject<{
956
- caller: ZodFor<AztecAddress>;
957
- call: z.ZodObject<{
1067
+ caller: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
1068
+ call: z.ZodEffects<z.ZodObject<{
958
1069
  name: z.ZodString;
959
- to: ZodFor<AztecAddress>;
960
- selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
961
- type: z.ZodNativeEnum<typeof FunctionType>;
1070
+ to: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
1071
+ selector: import("@aztec/stdlib/schemas").ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
1072
+ type: z.ZodNativeEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
962
1073
  isStatic: z.ZodBoolean;
963
1074
  hideMsgSender: z.ZodBoolean;
964
- args: z.ZodArray<ZodFor<Fr>, "many">;
1075
+ args: z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<Fr>, "many">;
965
1076
  returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
966
1077
  }, "strip", z.ZodTypeAny, {
967
1078
  name: string;
968
1079
  to: AztecAddress;
969
1080
  selector: import("@aztec/stdlib/abi").FunctionSelector;
970
- type: FunctionType;
1081
+ type: import("@aztec/stdlib/abi").FunctionType;
971
1082
  isStatic: boolean;
972
1083
  hideMsgSender: boolean;
973
1084
  args: Fr[];
@@ -976,71 +1087,161 @@ export declare const MessageHashOrIntentSchema: z.ZodUnion<[ZodFor<Fr>, z.ZodObj
976
1087
  name: string;
977
1088
  to?: any;
978
1089
  selector?: any;
979
- type: FunctionType;
1090
+ type: import("@aztec/stdlib/abi").FunctionType;
980
1091
  isStatic: boolean;
981
1092
  hideMsgSender: boolean;
982
1093
  args: any[];
983
1094
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
984
- }>;
985
- }, "strip", z.ZodTypeAny, {
986
- caller: AztecAddress;
987
- call: {
1095
+ }>, FunctionCall, {
988
1096
  name: string;
989
- to: AztecAddress;
990
- selector: import("@aztec/stdlib/abi").FunctionSelector;
991
- type: FunctionType;
1097
+ to?: any;
1098
+ selector?: any;
1099
+ type: import("@aztec/stdlib/abi").FunctionType;
992
1100
  isStatic: boolean;
993
1101
  hideMsgSender: boolean;
994
- args: Fr[];
1102
+ args: any[];
995
1103
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
996
- };
1104
+ }>;
1105
+ }, "strip", z.ZodTypeAny, {
1106
+ caller: AztecAddress;
1107
+ call: FunctionCall;
997
1108
  }, {
998
1109
  caller?: any;
999
1110
  call: {
1000
1111
  name: string;
1001
1112
  to?: any;
1002
1113
  selector?: any;
1003
- type: FunctionType;
1114
+ type: import("@aztec/stdlib/abi").FunctionType;
1004
1115
  isStatic: boolean;
1005
1116
  hideMsgSender: boolean;
1006
1117
  args: any[];
1007
1118
  returnTypes: import("@aztec/stdlib/abi").AbiType[];
1008
1119
  };
1009
1120
  }>]>;
1010
- export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1011
- name: z.ZodLiteral<"registerSender">;
1012
- args: z.ZodTuple<[ZodFor<AztecAddress>, import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodString>], null>;
1121
+ export declare const EventMetadataDefinitionSchema: z.ZodObject<{
1122
+ eventSelector: z.ZodType<import("@aztec/stdlib/abi").EventSelector, any, string>;
1123
+ abiType: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
1124
+ fieldNames: z.ZodArray<z.ZodString, "many">;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ eventSelector: import("@aztec/stdlib/abi").EventSelector;
1127
+ abiType: import("@aztec/stdlib/abi").AbiType;
1128
+ fieldNames: string[];
1129
+ }, {
1130
+ eventSelector: string;
1131
+ abiType: import("@aztec/stdlib/abi").AbiType;
1132
+ fieldNames: string[];
1133
+ }>;
1134
+ export declare const PrivateEventFilterSchema: z.ZodObject<{
1135
+ txHash: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer<ArrayBuffer>, string>, TxHash, string>>;
1136
+ fromBlock: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, BlockNumber, string | number | bigint>>;
1137
+ toBlock: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, BlockNumber, string | number | bigint>>;
1138
+ } & {
1139
+ contractAddress: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
1140
+ scopes: z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">;
1013
1141
  }, "strip", z.ZodTypeAny, {
1014
- name: "registerSender";
1015
- args: [AztecAddress, string | undefined];
1142
+ txHash?: TxHash | undefined;
1143
+ fromBlock?: BlockNumber | undefined;
1144
+ toBlock?: BlockNumber | undefined;
1145
+ contractAddress: AztecAddress;
1146
+ scopes: AztecAddress[];
1016
1147
  }, {
1017
- name: "registerSender";
1018
- args: [any, string | undefined];
1019
- }>, z.ZodObject<{
1020
- name: z.ZodLiteral<"registerContract">;
1021
- args: z.ZodTuple<[z.ZodIntersection<z.ZodObject<{
1148
+ txHash?: string | undefined;
1149
+ fromBlock?: string | number | bigint | undefined;
1150
+ toBlock?: string | number | bigint | undefined;
1151
+ contractAddress?: any;
1152
+ scopes: any[];
1153
+ }>;
1154
+ export declare const PublicEventFilterSchema: z.ZodObject<{
1155
+ txHash: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer<ArrayBuffer>, string>, TxHash, string>>;
1156
+ fromBlock: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, BlockNumber, string | number | bigint>>;
1157
+ toBlock: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, BlockNumber, string | number | bigint>>;
1158
+ } & {
1159
+ contractAddress: import("@aztec/foundation/schemas").ZodNullableOptional<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>>;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ txHash?: TxHash | undefined;
1162
+ fromBlock?: BlockNumber | undefined;
1163
+ toBlock?: BlockNumber | undefined;
1164
+ contractAddress?: AztecAddress | undefined;
1165
+ }, {
1166
+ txHash?: string | undefined;
1167
+ fromBlock?: string | number | bigint | undefined;
1168
+ toBlock?: string | number | bigint | undefined;
1169
+ contractAddress?: any;
1170
+ }>;
1171
+ export declare const PrivateEventSchema: z.ZodType<any>;
1172
+ export declare const PublicEventSchema: z.ZodObject<{
1173
+ event: import("@aztec/stdlib/schemas").ZodFor<AbiDecoded>;
1174
+ metadata: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1175
+ l2BlockNumber: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodNumber, z.ZodBigInt, z.ZodString]>, z.ZodNumber>, BlockNumber, string | number | bigint>;
1176
+ l2BlockHash: import("@aztec/stdlib/schemas").ZodFor<import("@aztec/stdlib/block").BlockHash>;
1177
+ }, "strip", z.ZodTypeAny, {
1178
+ l2BlockNumber: number & {
1179
+ _branding: "BlockNumber";
1180
+ };
1181
+ l2BlockHash: import("@aztec/stdlib/block").BlockHash;
1182
+ }, {
1183
+ l2BlockNumber: string | number | bigint;
1184
+ l2BlockHash?: any;
1185
+ }>, z.ZodObject<{
1186
+ txHash: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer<ArrayBuffer>, string>, TxHash, string>;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ txHash: TxHash;
1189
+ }, {
1190
+ txHash: string;
1191
+ }>>, z.ZodObject<{
1192
+ contractAddress: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ contractAddress: AztecAddress;
1195
+ }, {
1196
+ contractAddress?: any;
1197
+ }>>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ event: AbiDecoded;
1200
+ metadata: {
1201
+ l2BlockNumber: number & {
1202
+ _branding: "BlockNumber";
1203
+ };
1204
+ l2BlockHash: import("@aztec/stdlib/block").BlockHash;
1205
+ } & {
1206
+ txHash: TxHash;
1207
+ } & {
1208
+ contractAddress: AztecAddress;
1209
+ };
1210
+ }, {
1211
+ event?: any;
1212
+ metadata: {
1213
+ l2BlockNumber: string | number | bigint;
1214
+ l2BlockHash?: any;
1215
+ } & {
1216
+ txHash: string;
1217
+ } & {
1218
+ contractAddress?: any;
1219
+ };
1220
+ }>;
1221
+ export declare const ContractMetadataSchema: z.ZodObject<{
1222
+ instance: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodIntersection<z.ZodObject<{
1022
1223
  version: z.ZodLiteral<1>;
1023
- salt: ZodFor<Fr>;
1024
- deployer: ZodFor<AztecAddress>;
1025
- currentContractClassId: ZodFor<Fr>;
1026
- originalContractClassId: ZodFor<Fr>;
1027
- initializationHash: ZodFor<Fr>;
1224
+ salt: import("@aztec/stdlib/schemas").ZodFor<Fr>;
1225
+ deployer: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
1226
+ currentContractClassId: import("@aztec/stdlib/schemas").ZodFor<Fr>;
1227
+ originalContractClassId: import("@aztec/stdlib/schemas").ZodFor<Fr>;
1228
+ initializationHash: import("@aztec/stdlib/schemas").ZodFor<Fr>;
1028
1229
  publicKeys: z.ZodEffects<z.ZodObject<{
1029
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1030
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1031
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1032
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1230
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
1231
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
1232
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
1233
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
1033
1234
  }, "strip", z.ZodTypeAny, {
1034
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1035
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1036
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1037
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1235
+ masterNullifierPublicKey: import("@aztec/foundation/schemas").Point;
1236
+ masterIncomingViewingPublicKey: import("@aztec/foundation/schemas").Point;
1237
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/schemas").Point;
1238
+ masterTaggingPublicKey: import("@aztec/foundation/schemas").Point;
1038
1239
  }, {
1039
1240
  masterNullifierPublicKey: string;
1040
1241
  masterIncomingViewingPublicKey: string;
1041
1242
  masterOutgoingViewingPublicKey: string;
1042
1243
  masterTaggingPublicKey: string;
1043
- }>, import("../api/keys.js").PublicKeys, {
1244
+ }>, import("@aztec/stdlib/keys").PublicKeys, {
1044
1245
  masterNullifierPublicKey: string;
1045
1246
  masterIncomingViewingPublicKey: string;
1046
1247
  masterOutgoingViewingPublicKey: string;
@@ -1053,7 +1254,7 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1053
1254
  currentContractClassId: Fr;
1054
1255
  originalContractClassId: Fr;
1055
1256
  initializationHash: Fr;
1056
- publicKeys: import("../api/keys.js").PublicKeys;
1257
+ publicKeys: import("@aztec/stdlib/keys").PublicKeys;
1057
1258
  }, {
1058
1259
  version: 1;
1059
1260
  salt?: any;
@@ -1068,28 +1269,34 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1068
1269
  masterTaggingPublicKey: string;
1069
1270
  };
1070
1271
  }>, z.ZodObject<{
1071
- address: ZodFor<AztecAddress>;
1272
+ address: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
1072
1273
  }, "strip", z.ZodTypeAny, {
1073
1274
  address: AztecAddress;
1074
1275
  }, {
1075
1276
  address?: any;
1076
- }>>, import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<ZodFor<ContractArtifact>>, import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<ZodFor<Fr>>], null>;
1277
+ }>>>;
1278
+ isContractInitialized: z.ZodBoolean;
1279
+ isContractPublished: z.ZodBoolean;
1280
+ isContractUpdated: z.ZodBoolean;
1281
+ updatedContractClassId: import("@aztec/foundation/schemas").ZodNullableOptional<import("@aztec/stdlib/schemas").ZodFor<Fr>>;
1077
1282
  }, "strip", z.ZodTypeAny, {
1078
- name: "registerContract";
1079
- args: [{
1283
+ instance?: ({
1080
1284
  version: 1;
1081
1285
  salt: Fr;
1082
1286
  deployer: AztecAddress;
1083
1287
  currentContractClassId: Fr;
1084
1288
  originalContractClassId: Fr;
1085
1289
  initializationHash: Fr;
1086
- publicKeys: import("../api/keys.js").PublicKeys;
1290
+ publicKeys: import("@aztec/stdlib/keys").PublicKeys;
1087
1291
  } & {
1088
1292
  address: AztecAddress;
1089
- }, ContractArtifact | undefined, Fr | undefined];
1293
+ }) | undefined;
1294
+ isContractInitialized: boolean;
1295
+ isContractPublished: boolean;
1296
+ isContractUpdated: boolean;
1297
+ updatedContractClassId?: Fr | undefined;
1090
1298
  }, {
1091
- name: "registerContract";
1092
- args: [{
1299
+ instance?: ({
1093
1300
  version: 1;
1094
1301
  salt?: any;
1095
1302
  deployer?: any;
@@ -1104,862 +1311,1350 @@ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1104
1311
  };
1105
1312
  } & {
1106
1313
  address?: any;
1107
- }, any, any];
1108
- }>, z.ZodObject<{
1109
- name: z.ZodLiteral<"sendTx">;
1110
- args: z.ZodTuple<[z.ZodObject<{
1111
- calls: z.ZodArray<z.ZodObject<{
1112
- name: z.ZodString;
1113
- to: ZodFor<AztecAddress>;
1114
- selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
1115
- type: z.ZodNativeEnum<typeof FunctionType>;
1116
- isStatic: z.ZodBoolean;
1117
- hideMsgSender: z.ZodBoolean;
1118
- args: z.ZodArray<ZodFor<Fr>, "many">;
1119
- returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1314
+ }) | undefined;
1315
+ isContractInitialized: boolean;
1316
+ isContractPublished: boolean;
1317
+ isContractUpdated: boolean;
1318
+ updatedContractClassId?: any;
1319
+ }>;
1320
+ export declare const ContractClassMetadataSchema: z.ZodObject<{
1321
+ isArtifactRegistered: z.ZodBoolean;
1322
+ isContractClassPubliclyRegistered: z.ZodBoolean;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ isArtifactRegistered: boolean;
1325
+ isContractClassPubliclyRegistered: boolean;
1326
+ }, {
1327
+ isArtifactRegistered: boolean;
1328
+ isContractClassPubliclyRegistered: boolean;
1329
+ }>;
1330
+ export declare const ContractFunctionPatternSchema: z.ZodObject<{
1331
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1332
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1333
+ }, "strip", z.ZodTypeAny, {
1334
+ contract: "*" | AztecAddress;
1335
+ function: string;
1336
+ }, {
1337
+ contract?: any;
1338
+ function: string;
1339
+ }>;
1340
+ export declare const AccountsCapabilitySchema: z.ZodObject<{
1341
+ type: z.ZodLiteral<"accounts">;
1342
+ canGet: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1343
+ canCreateAuthWit: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ type: "accounts";
1346
+ canGet?: boolean | undefined;
1347
+ canCreateAuthWit?: boolean | undefined;
1348
+ }, {
1349
+ type: "accounts";
1350
+ canGet?: boolean | undefined;
1351
+ canCreateAuthWit?: boolean | undefined;
1352
+ }>;
1353
+ export declare const GrantedAccountsCapabilitySchema: z.ZodObject<{
1354
+ type: z.ZodLiteral<"accounts">;
1355
+ canGet: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1356
+ canCreateAuthWit: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1357
+ } & {
1358
+ accounts: z.ZodArray<z.ZodObject<{
1359
+ alias: z.ZodString;
1360
+ item: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ alias: string;
1363
+ item: AztecAddress;
1364
+ }, {
1365
+ alias: string;
1366
+ item?: any;
1367
+ }>, "many">;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ type: "accounts";
1370
+ canGet?: boolean | undefined;
1371
+ canCreateAuthWit?: boolean | undefined;
1372
+ accounts: {
1373
+ alias: string;
1374
+ item: AztecAddress;
1375
+ }[];
1376
+ }, {
1377
+ type: "accounts";
1378
+ canGet?: boolean | undefined;
1379
+ canCreateAuthWit?: boolean | undefined;
1380
+ accounts: {
1381
+ alias: string;
1382
+ item?: any;
1383
+ }[];
1384
+ }>;
1385
+ export declare const ContractsCapabilitySchema: z.ZodObject<{
1386
+ type: z.ZodLiteral<"contracts">;
1387
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
1388
+ canRegister: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1389
+ canGetMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ type: "contracts";
1392
+ contracts: "*" | AztecAddress[];
1393
+ canRegister?: boolean | undefined;
1394
+ canGetMetadata?: boolean | undefined;
1395
+ }, {
1396
+ type: "contracts";
1397
+ contracts: "*" | any[];
1398
+ canRegister?: boolean | undefined;
1399
+ canGetMetadata?: boolean | undefined;
1400
+ }>;
1401
+ export declare const GrantedContractsCapabilitySchema: z.ZodObject<{
1402
+ type: z.ZodLiteral<"contracts">;
1403
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
1404
+ canRegister: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1405
+ canGetMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ type: "contracts";
1408
+ contracts: "*" | AztecAddress[];
1409
+ canRegister?: boolean | undefined;
1410
+ canGetMetadata?: boolean | undefined;
1411
+ }, {
1412
+ type: "contracts";
1413
+ contracts: "*" | any[];
1414
+ canRegister?: boolean | undefined;
1415
+ canGetMetadata?: boolean | undefined;
1416
+ }>;
1417
+ export declare const ContractClassesCapabilitySchema: z.ZodObject<{
1418
+ type: z.ZodLiteral<"contractClasses">;
1419
+ classes: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<Fr>, "many">]>;
1420
+ canGetMetadata: z.ZodBoolean;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ type: "contractClasses";
1423
+ classes: "*" | Fr[];
1424
+ canGetMetadata: boolean;
1425
+ }, {
1426
+ type: "contractClasses";
1427
+ classes: "*" | any[];
1428
+ canGetMetadata: boolean;
1429
+ }>;
1430
+ export declare const GrantedContractClassesCapabilitySchema: z.ZodObject<{
1431
+ type: z.ZodLiteral<"contractClasses">;
1432
+ classes: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<Fr>, "many">]>;
1433
+ canGetMetadata: z.ZodBoolean;
1434
+ }, "strip", z.ZodTypeAny, {
1435
+ type: "contractClasses";
1436
+ classes: "*" | Fr[];
1437
+ canGetMetadata: boolean;
1438
+ }, {
1439
+ type: "contractClasses";
1440
+ classes: "*" | any[];
1441
+ canGetMetadata: boolean;
1442
+ }>;
1443
+ export declare const SimulationCapabilitySchema: z.ZodObject<{
1444
+ type: z.ZodLiteral<"simulation">;
1445
+ transactions: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1446
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1447
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1448
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1120
1449
  }, "strip", z.ZodTypeAny, {
1121
- name: string;
1122
- to: AztecAddress;
1123
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1124
- type: FunctionType;
1125
- isStatic: boolean;
1126
- hideMsgSender: boolean;
1127
- args: Fr[];
1128
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1450
+ contract: "*" | AztecAddress;
1451
+ function: string;
1129
1452
  }, {
1130
- name: string;
1131
- to?: any;
1132
- selector?: any;
1133
- type: FunctionType;
1134
- isStatic: boolean;
1135
- hideMsgSender: boolean;
1136
- args: any[];
1137
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1138
- }>, "many">;
1139
- authWitnesses: z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">;
1140
- capsules: z.ZodArray<z.ZodType<Capsule, any, string>, "many">;
1141
- extraHashedArgs: z.ZodArray<ZodFor<HashedValues>, "many">;
1142
- feePayer: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<ZodFor<AztecAddress>>;
1453
+ contract?: any;
1454
+ function: string;
1455
+ }>, "many">]>;
1143
1456
  }, "strip", z.ZodTypeAny, {
1144
- calls: {
1145
- name: string;
1146
- to: AztecAddress;
1147
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1148
- type: FunctionType;
1149
- isStatic: boolean;
1150
- hideMsgSender: boolean;
1151
- args: Fr[];
1152
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1457
+ scope: "*" | {
1458
+ contract: "*" | AztecAddress;
1459
+ function: string;
1153
1460
  }[];
1154
- authWitnesses: AuthWitness[];
1155
- capsules: Capsule[];
1156
- extraHashedArgs: HashedValues[];
1157
- feePayer?: AztecAddress | undefined;
1158
1461
  }, {
1159
- calls: {
1160
- name: string;
1161
- to?: any;
1162
- selector?: any;
1163
- type: FunctionType;
1164
- isStatic: boolean;
1165
- hideMsgSender: boolean;
1166
- args: any[];
1167
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1462
+ scope: "*" | {
1463
+ contract?: any;
1464
+ function: string;
1168
1465
  }[];
1169
- authWitnesses: string[];
1170
- capsules: string[];
1171
- extraHashedArgs: any[];
1172
- feePayer?: any;
1173
- }>, z.ZodObject<{
1174
- from: ZodFor<AztecAddress>;
1175
- authWitnesses: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
1176
- capsules: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
1177
- fee: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
1178
- gasSettings: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
1179
- gasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
1180
- daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1181
- l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1182
- }, "strip", z.ZodTypeAny, {
1183
- daGas: number;
1184
- l2Gas: number;
1185
- }, {
1186
- daGas: string | number | bigint;
1187
- l2Gas: string | number | bigint;
1188
- }>, Gas, {
1189
- daGas: string | number | bigint;
1190
- l2Gas: string | number | bigint;
1191
- }>>;
1192
- teardownGasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
1193
- daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1194
- l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1195
- }, "strip", z.ZodTypeAny, {
1196
- daGas: number;
1197
- l2Gas: number;
1198
- }, {
1199
- daGas: string | number | bigint;
1200
- l2Gas: string | number | bigint;
1201
- }>, Gas, {
1202
- daGas: string | number | bigint;
1203
- l2Gas: string | number | bigint;
1204
- }>>;
1205
- maxFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
1206
- feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1207
- feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1208
- }, "strip", z.ZodTypeAny, {
1209
- feePerDaGas: bigint;
1210
- feePerL2Gas: bigint;
1211
- }, {
1212
- feePerDaGas: string | number | bigint;
1213
- feePerL2Gas: string | number | bigint;
1214
- }>>;
1215
- maxPriorityFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
1216
- feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1217
- feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1218
- }, "strip", z.ZodTypeAny, {
1219
- feePerDaGas: bigint;
1220
- feePerL2Gas: bigint;
1221
- }, {
1222
- feePerDaGas: string | number | bigint;
1223
- feePerL2Gas: string | number | bigint;
1224
- }>>;
1225
- }, "strip", z.ZodTypeAny, {
1226
- gasLimits?: Gas | undefined;
1227
- teardownGasLimits?: Gas | undefined;
1228
- maxFeePerGas?: {
1229
- feePerDaGas: bigint;
1230
- feePerL2Gas: bigint;
1231
- } | undefined;
1232
- maxPriorityFeePerGas?: {
1233
- feePerDaGas: bigint;
1234
- feePerL2Gas: bigint;
1235
- } | undefined;
1236
- }, {
1237
- gasLimits?: {
1238
- daGas: string | number | bigint;
1239
- l2Gas: string | number | bigint;
1240
- } | undefined;
1241
- teardownGasLimits?: {
1242
- daGas: string | number | bigint;
1243
- l2Gas: string | number | bigint;
1244
- } | undefined;
1245
- maxFeePerGas?: {
1246
- feePerDaGas: string | number | bigint;
1247
- feePerL2Gas: string | number | bigint;
1248
- } | undefined;
1249
- maxPriorityFeePerGas?: {
1250
- feePerDaGas: string | number | bigint;
1251
- feePerL2Gas: string | number | bigint;
1252
- } | undefined;
1253
- }>>;
1466
+ }>>;
1467
+ utilities: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1468
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1469
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1470
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1254
1471
  }, "strip", z.ZodTypeAny, {
1255
- gasSettings?: {
1256
- gasLimits?: Gas | undefined;
1257
- teardownGasLimits?: Gas | undefined;
1258
- maxFeePerGas?: {
1259
- feePerDaGas: bigint;
1260
- feePerL2Gas: bigint;
1261
- } | undefined;
1262
- maxPriorityFeePerGas?: {
1263
- feePerDaGas: bigint;
1264
- feePerL2Gas: bigint;
1265
- } | undefined;
1266
- } | undefined;
1472
+ contract: "*" | AztecAddress;
1473
+ function: string;
1267
1474
  }, {
1268
- gasSettings?: {
1269
- gasLimits?: {
1270
- daGas: string | number | bigint;
1271
- l2Gas: string | number | bigint;
1272
- } | undefined;
1273
- teardownGasLimits?: {
1274
- daGas: string | number | bigint;
1275
- l2Gas: string | number | bigint;
1276
- } | undefined;
1277
- maxFeePerGas?: {
1278
- feePerDaGas: string | number | bigint;
1279
- feePerL2Gas: string | number | bigint;
1280
- } | undefined;
1281
- maxPriorityFeePerGas?: {
1282
- feePerDaGas: string | number | bigint;
1283
- feePerL2Gas: string | number | bigint;
1284
- } | undefined;
1285
- } | undefined;
1286
- }>>;
1475
+ contract?: any;
1476
+ function: string;
1477
+ }>, "many">]>;
1287
1478
  }, "strip", z.ZodTypeAny, {
1288
- from: AztecAddress;
1289
- authWitnesses?: AuthWitness[] | undefined;
1290
- capsules?: Capsule[] | undefined;
1291
- fee?: {
1292
- gasSettings?: {
1293
- gasLimits?: Gas | undefined;
1294
- teardownGasLimits?: Gas | undefined;
1295
- maxFeePerGas?: {
1296
- feePerDaGas: bigint;
1297
- feePerL2Gas: bigint;
1298
- } | undefined;
1299
- maxPriorityFeePerGas?: {
1300
- feePerDaGas: bigint;
1301
- feePerL2Gas: bigint;
1302
- } | undefined;
1303
- } | undefined;
1304
- } | undefined;
1305
- }, {
1306
- from?: any;
1307
- authWitnesses?: string[] | undefined;
1308
- capsules?: string[] | undefined;
1309
- fee?: {
1310
- gasSettings?: {
1311
- gasLimits?: {
1312
- daGas: string | number | bigint;
1313
- l2Gas: string | number | bigint;
1314
- } | undefined;
1315
- teardownGasLimits?: {
1316
- daGas: string | number | bigint;
1317
- l2Gas: string | number | bigint;
1318
- } | undefined;
1319
- maxFeePerGas?: {
1320
- feePerDaGas: string | number | bigint;
1321
- feePerL2Gas: string | number | bigint;
1322
- } | undefined;
1323
- maxPriorityFeePerGas?: {
1324
- feePerDaGas: string | number | bigint;
1325
- feePerL2Gas: string | number | bigint;
1326
- } | undefined;
1327
- } | undefined;
1328
- } | undefined;
1329
- }>], null>;
1330
- }, "strip", z.ZodTypeAny, {
1331
- name: "sendTx";
1332
- args: [{
1333
- calls: {
1334
- name: string;
1335
- to: AztecAddress;
1336
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1337
- type: FunctionType;
1338
- isStatic: boolean;
1339
- hideMsgSender: boolean;
1340
- args: Fr[];
1341
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1479
+ scope: "*" | {
1480
+ contract: "*" | AztecAddress;
1481
+ function: string;
1342
1482
  }[];
1343
- authWitnesses: AuthWitness[];
1344
- capsules: Capsule[];
1345
- extraHashedArgs: HashedValues[];
1346
- feePayer?: AztecAddress | undefined;
1347
1483
  }, {
1348
- from: AztecAddress;
1349
- authWitnesses?: AuthWitness[] | undefined;
1350
- capsules?: Capsule[] | undefined;
1351
- fee?: {
1352
- gasSettings?: {
1353
- gasLimits?: Gas | undefined;
1354
- teardownGasLimits?: Gas | undefined;
1355
- maxFeePerGas?: {
1356
- feePerDaGas: bigint;
1357
- feePerL2Gas: bigint;
1358
- } | undefined;
1359
- maxPriorityFeePerGas?: {
1360
- feePerDaGas: bigint;
1361
- feePerL2Gas: bigint;
1362
- } | undefined;
1363
- } | undefined;
1364
- } | undefined;
1365
- }];
1366
- }, {
1367
- name: "sendTx";
1368
- args: [{
1369
- calls: {
1370
- name: string;
1371
- to?: any;
1372
- selector?: any;
1373
- type: FunctionType;
1374
- isStatic: boolean;
1375
- hideMsgSender: boolean;
1376
- args: any[];
1377
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1484
+ scope: "*" | {
1485
+ contract?: any;
1486
+ function: string;
1378
1487
  }[];
1379
- authWitnesses: string[];
1380
- capsules: string[];
1381
- extraHashedArgs: any[];
1382
- feePayer?: any;
1383
- }, {
1384
- from?: any;
1385
- authWitnesses?: string[] | undefined;
1386
- capsules?: string[] | undefined;
1387
- fee?: {
1388
- gasSettings?: {
1389
- gasLimits?: {
1390
- daGas: string | number | bigint;
1391
- l2Gas: string | number | bigint;
1392
- } | undefined;
1393
- teardownGasLimits?: {
1394
- daGas: string | number | bigint;
1395
- l2Gas: string | number | bigint;
1396
- } | undefined;
1397
- maxFeePerGas?: {
1398
- feePerDaGas: string | number | bigint;
1399
- feePerL2Gas: string | number | bigint;
1400
- } | undefined;
1401
- maxPriorityFeePerGas?: {
1402
- feePerDaGas: string | number | bigint;
1403
- feePerL2Gas: string | number | bigint;
1404
- } | undefined;
1405
- } | undefined;
1406
- } | undefined;
1407
- }];
1408
- }>, z.ZodObject<{
1409
- name: z.ZodLiteral<"simulateUtility">;
1410
- args: z.ZodTuple<[z.ZodObject<{
1411
- name: z.ZodString;
1412
- to: ZodFor<AztecAddress>;
1413
- selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
1414
- type: z.ZodNativeEnum<typeof FunctionType>;
1415
- isStatic: z.ZodBoolean;
1416
- hideMsgSender: z.ZodBoolean;
1417
- args: z.ZodArray<ZodFor<Fr>, "many">;
1418
- returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1419
- }, "strip", z.ZodTypeAny, {
1420
- name: string;
1421
- to: AztecAddress;
1422
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1423
- type: FunctionType;
1424
- isStatic: boolean;
1425
- hideMsgSender: boolean;
1426
- args: Fr[];
1427
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1428
- }, {
1429
- name: string;
1430
- to?: any;
1431
- selector?: any;
1432
- type: FunctionType;
1433
- isStatic: boolean;
1434
- hideMsgSender: boolean;
1435
- args: any[];
1436
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1437
- }>, import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>], null>;
1488
+ }>>;
1438
1489
  }, "strip", z.ZodTypeAny, {
1439
- name: "simulateUtility";
1440
- args: [{
1441
- name: string;
1442
- to: AztecAddress;
1443
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1444
- type: FunctionType;
1445
- isStatic: boolean;
1446
- hideMsgSender: boolean;
1447
- args: Fr[];
1448
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1449
- }, AuthWitness[] | undefined];
1490
+ type: "simulation";
1491
+ transactions?: {
1492
+ scope: "*" | {
1493
+ contract: "*" | AztecAddress;
1494
+ function: string;
1495
+ }[];
1496
+ } | undefined;
1497
+ utilities?: {
1498
+ scope: "*" | {
1499
+ contract: "*" | AztecAddress;
1500
+ function: string;
1501
+ }[];
1502
+ } | undefined;
1450
1503
  }, {
1451
- name: "simulateUtility";
1452
- args: [{
1453
- name: string;
1454
- to?: any;
1455
- selector?: any;
1456
- type: FunctionType;
1457
- isStatic: boolean;
1458
- hideMsgSender: boolean;
1459
- args: any[];
1460
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1461
- }, string[] | undefined];
1462
- }>, z.ZodObject<{
1463
- name: z.ZodLiteral<"simulateTx">;
1464
- args: z.ZodTuple<[z.ZodObject<{
1465
- calls: z.ZodArray<z.ZodObject<{
1466
- name: z.ZodString;
1467
- to: ZodFor<AztecAddress>;
1468
- selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
1469
- type: z.ZodNativeEnum<typeof FunctionType>;
1470
- isStatic: z.ZodBoolean;
1471
- hideMsgSender: z.ZodBoolean;
1472
- args: z.ZodArray<ZodFor<Fr>, "many">;
1473
- returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1504
+ type: "simulation";
1505
+ transactions?: {
1506
+ scope: "*" | {
1507
+ contract?: any;
1508
+ function: string;
1509
+ }[];
1510
+ } | undefined;
1511
+ utilities?: {
1512
+ scope: "*" | {
1513
+ contract?: any;
1514
+ function: string;
1515
+ }[];
1516
+ } | undefined;
1517
+ }>;
1518
+ export declare const GrantedSimulationCapabilitySchema: z.ZodObject<{
1519
+ type: z.ZodLiteral<"simulation">;
1520
+ transactions: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1521
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1522
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1523
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1474
1524
  }, "strip", z.ZodTypeAny, {
1475
- name: string;
1476
- to: AztecAddress;
1477
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1478
- type: FunctionType;
1479
- isStatic: boolean;
1480
- hideMsgSender: boolean;
1481
- args: Fr[];
1482
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1525
+ contract: "*" | AztecAddress;
1526
+ function: string;
1483
1527
  }, {
1484
- name: string;
1485
- to?: any;
1486
- selector?: any;
1487
- type: FunctionType;
1488
- isStatic: boolean;
1489
- hideMsgSender: boolean;
1490
- args: any[];
1491
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1492
- }>, "many">;
1493
- authWitnesses: z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">;
1494
- capsules: z.ZodArray<z.ZodType<Capsule, any, string>, "many">;
1495
- extraHashedArgs: z.ZodArray<ZodFor<HashedValues>, "many">;
1496
- feePayer: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<ZodFor<AztecAddress>>;
1528
+ contract?: any;
1529
+ function: string;
1530
+ }>, "many">]>;
1497
1531
  }, "strip", z.ZodTypeAny, {
1498
- calls: {
1499
- name: string;
1500
- to: AztecAddress;
1501
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1502
- type: FunctionType;
1503
- isStatic: boolean;
1504
- hideMsgSender: boolean;
1505
- args: Fr[];
1506
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1532
+ scope: "*" | {
1533
+ contract: "*" | AztecAddress;
1534
+ function: string;
1507
1535
  }[];
1508
- authWitnesses: AuthWitness[];
1509
- capsules: Capsule[];
1510
- extraHashedArgs: HashedValues[];
1511
- feePayer?: AztecAddress | undefined;
1512
1536
  }, {
1513
- calls: {
1514
- name: string;
1515
- to?: any;
1516
- selector?: any;
1517
- type: FunctionType;
1518
- isStatic: boolean;
1519
- hideMsgSender: boolean;
1520
- args: any[];
1521
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1537
+ scope: "*" | {
1538
+ contract?: any;
1539
+ function: string;
1522
1540
  }[];
1523
- authWitnesses: string[];
1524
- capsules: string[];
1525
- extraHashedArgs: any[];
1526
- feePayer?: any;
1527
- }>, z.ZodObject<{
1528
- from: ZodFor<AztecAddress>;
1529
- authWitnesses: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
1530
- capsules: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
1531
- fee: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
1532
- gasSettings: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
1533
- gasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
1534
- daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1535
- l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1536
- }, "strip", z.ZodTypeAny, {
1537
- daGas: number;
1538
- l2Gas: number;
1539
- }, {
1540
- daGas: string | number | bigint;
1541
- l2Gas: string | number | bigint;
1542
- }>, Gas, {
1543
- daGas: string | number | bigint;
1544
- l2Gas: string | number | bigint;
1545
- }>>;
1546
- teardownGasLimits: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
1547
- daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1548
- l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
1549
- }, "strip", z.ZodTypeAny, {
1550
- daGas: number;
1551
- l2Gas: number;
1552
- }, {
1553
- daGas: string | number | bigint;
1554
- l2Gas: string | number | bigint;
1555
- }>, Gas, {
1556
- daGas: string | number | bigint;
1557
- l2Gas: string | number | bigint;
1558
- }>>;
1559
- maxFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
1560
- feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1561
- feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1562
- }, "strip", z.ZodTypeAny, {
1563
- feePerDaGas: bigint;
1564
- feePerL2Gas: bigint;
1565
- }, {
1566
- feePerDaGas: string | number | bigint;
1567
- feePerL2Gas: string | number | bigint;
1568
- }>>;
1569
- maxPriorityFeePerGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodObject<{
1570
- feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1571
- feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1572
- }, "strip", z.ZodTypeAny, {
1573
- feePerDaGas: bigint;
1574
- feePerL2Gas: bigint;
1575
- }, {
1576
- feePerDaGas: string | number | bigint;
1577
- feePerL2Gas: string | number | bigint;
1578
- }>>;
1579
- }, "strip", z.ZodTypeAny, {
1580
- gasLimits?: Gas | undefined;
1581
- teardownGasLimits?: Gas | undefined;
1582
- maxFeePerGas?: {
1583
- feePerDaGas: bigint;
1584
- feePerL2Gas: bigint;
1585
- } | undefined;
1586
- maxPriorityFeePerGas?: {
1587
- feePerDaGas: bigint;
1588
- feePerL2Gas: bigint;
1589
- } | undefined;
1590
- }, {
1591
- gasLimits?: {
1592
- daGas: string | number | bigint;
1593
- l2Gas: string | number | bigint;
1594
- } | undefined;
1595
- teardownGasLimits?: {
1596
- daGas: string | number | bigint;
1597
- l2Gas: string | number | bigint;
1598
- } | undefined;
1599
- maxFeePerGas?: {
1600
- feePerDaGas: string | number | bigint;
1601
- feePerL2Gas: string | number | bigint;
1602
- } | undefined;
1603
- maxPriorityFeePerGas?: {
1604
- feePerDaGas: string | number | bigint;
1605
- feePerL2Gas: string | number | bigint;
1606
- } | undefined;
1607
- }>>;
1608
- } & {
1609
- estimatedGasPadding: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodNumber>;
1610
- estimateGas: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
1541
+ }>>;
1542
+ utilities: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1543
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1544
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1545
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1611
1546
  }, "strip", z.ZodTypeAny, {
1612
- gasSettings?: {
1613
- gasLimits?: Gas | undefined;
1614
- teardownGasLimits?: Gas | undefined;
1615
- maxFeePerGas?: {
1616
- feePerDaGas: bigint;
1617
- feePerL2Gas: bigint;
1618
- } | undefined;
1619
- maxPriorityFeePerGas?: {
1620
- feePerDaGas: bigint;
1621
- feePerL2Gas: bigint;
1622
- } | undefined;
1623
- } | undefined;
1624
- estimatedGasPadding?: number | undefined;
1625
- estimateGas?: boolean | undefined;
1547
+ contract: "*" | AztecAddress;
1548
+ function: string;
1626
1549
  }, {
1627
- gasSettings?: {
1628
- gasLimits?: {
1629
- daGas: string | number | bigint;
1630
- l2Gas: string | number | bigint;
1631
- } | undefined;
1632
- teardownGasLimits?: {
1633
- daGas: string | number | bigint;
1634
- l2Gas: string | number | bigint;
1635
- } | undefined;
1636
- maxFeePerGas?: {
1637
- feePerDaGas: string | number | bigint;
1638
- feePerL2Gas: string | number | bigint;
1639
- } | undefined;
1640
- maxPriorityFeePerGas?: {
1641
- feePerDaGas: string | number | bigint;
1642
- feePerL2Gas: string | number | bigint;
1643
- } | undefined;
1644
- } | undefined;
1645
- estimatedGasPadding?: number | undefined;
1646
- estimateGas?: boolean | undefined;
1647
- }>>;
1648
- skipTxValidation: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
1649
- skipFeeEnforcement: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
1650
- includeMetadata: import("../../../foundation/dest/schemas/utils.js").ZodNullableOptional<z.ZodBoolean>;
1550
+ contract?: any;
1551
+ function: string;
1552
+ }>, "many">]>;
1651
1553
  }, "strip", z.ZodTypeAny, {
1652
- from: AztecAddress;
1653
- authWitnesses?: AuthWitness[] | undefined;
1654
- capsules?: Capsule[] | undefined;
1655
- fee?: {
1656
- gasSettings?: {
1657
- gasLimits?: Gas | undefined;
1658
- teardownGasLimits?: Gas | undefined;
1659
- maxFeePerGas?: {
1660
- feePerDaGas: bigint;
1661
- feePerL2Gas: bigint;
1662
- } | undefined;
1663
- maxPriorityFeePerGas?: {
1664
- feePerDaGas: bigint;
1665
- feePerL2Gas: bigint;
1666
- } | undefined;
1667
- } | undefined;
1668
- estimatedGasPadding?: number | undefined;
1669
- estimateGas?: boolean | undefined;
1670
- } | undefined;
1671
- skipTxValidation?: boolean | undefined;
1672
- skipFeeEnforcement?: boolean | undefined;
1673
- includeMetadata?: boolean | undefined;
1554
+ scope: "*" | {
1555
+ contract: "*" | AztecAddress;
1556
+ function: string;
1557
+ }[];
1674
1558
  }, {
1675
- from?: any;
1676
- authWitnesses?: string[] | undefined;
1677
- capsules?: string[] | undefined;
1678
- fee?: {
1679
- gasSettings?: {
1680
- gasLimits?: {
1681
- daGas: string | number | bigint;
1682
- l2Gas: string | number | bigint;
1683
- } | undefined;
1684
- teardownGasLimits?: {
1685
- daGas: string | number | bigint;
1686
- l2Gas: string | number | bigint;
1687
- } | undefined;
1688
- maxFeePerGas?: {
1689
- feePerDaGas: string | number | bigint;
1690
- feePerL2Gas: string | number | bigint;
1691
- } | undefined;
1692
- maxPriorityFeePerGas?: {
1693
- feePerDaGas: string | number | bigint;
1694
- feePerL2Gas: string | number | bigint;
1695
- } | undefined;
1696
- } | undefined;
1697
- estimatedGasPadding?: number | undefined;
1698
- estimateGas?: boolean | undefined;
1699
- } | undefined;
1700
- skipTxValidation?: boolean | undefined;
1701
- skipFeeEnforcement?: boolean | undefined;
1702
- includeMetadata?: boolean | undefined;
1703
- }>], null>;
1559
+ scope: "*" | {
1560
+ contract?: any;
1561
+ function: string;
1562
+ }[];
1563
+ }>>;
1704
1564
  }, "strip", z.ZodTypeAny, {
1705
- name: "simulateTx";
1706
- args: [{
1707
- calls: {
1708
- name: string;
1709
- to: AztecAddress;
1710
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1711
- type: FunctionType;
1712
- isStatic: boolean;
1713
- hideMsgSender: boolean;
1714
- args: Fr[];
1715
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1565
+ type: "simulation";
1566
+ transactions?: {
1567
+ scope: "*" | {
1568
+ contract: "*" | AztecAddress;
1569
+ function: string;
1716
1570
  }[];
1717
- authWitnesses: AuthWitness[];
1718
- capsules: Capsule[];
1719
- extraHashedArgs: HashedValues[];
1720
- feePayer?: AztecAddress | undefined;
1721
- }, {
1722
- from: AztecAddress;
1723
- authWitnesses?: AuthWitness[] | undefined;
1724
- capsules?: Capsule[] | undefined;
1725
- fee?: {
1726
- gasSettings?: {
1727
- gasLimits?: Gas | undefined;
1728
- teardownGasLimits?: Gas | undefined;
1729
- maxFeePerGas?: {
1730
- feePerDaGas: bigint;
1731
- feePerL2Gas: bigint;
1732
- } | undefined;
1733
- maxPriorityFeePerGas?: {
1734
- feePerDaGas: bigint;
1735
- feePerL2Gas: bigint;
1736
- } | undefined;
1737
- } | undefined;
1738
- estimatedGasPadding?: number | undefined;
1739
- estimateGas?: boolean | undefined;
1740
- } | undefined;
1741
- skipTxValidation?: boolean | undefined;
1742
- skipFeeEnforcement?: boolean | undefined;
1743
- includeMetadata?: boolean | undefined;
1744
- }];
1571
+ } | undefined;
1572
+ utilities?: {
1573
+ scope: "*" | {
1574
+ contract: "*" | AztecAddress;
1575
+ function: string;
1576
+ }[];
1577
+ } | undefined;
1745
1578
  }, {
1746
- name: "simulateTx";
1747
- args: [{
1748
- calls: {
1749
- name: string;
1750
- to?: any;
1751
- selector?: any;
1752
- type: FunctionType;
1753
- isStatic: boolean;
1754
- hideMsgSender: boolean;
1755
- args: any[];
1756
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
1579
+ type: "simulation";
1580
+ transactions?: {
1581
+ scope: "*" | {
1582
+ contract?: any;
1583
+ function: string;
1584
+ }[];
1585
+ } | undefined;
1586
+ utilities?: {
1587
+ scope: "*" | {
1588
+ contract?: any;
1589
+ function: string;
1757
1590
  }[];
1758
- authWitnesses: string[];
1759
- capsules: string[];
1760
- extraHashedArgs: any[];
1761
- feePayer?: any;
1591
+ } | undefined;
1592
+ }>;
1593
+ export declare const TransactionCapabilitySchema: z.ZodObject<{
1594
+ type: z.ZodLiteral<"transaction">;
1595
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1596
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1597
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ contract: "*" | AztecAddress;
1600
+ function: string;
1762
1601
  }, {
1763
- from?: any;
1764
- authWitnesses?: string[] | undefined;
1765
- capsules?: string[] | undefined;
1766
- fee?: {
1767
- gasSettings?: {
1768
- gasLimits?: {
1769
- daGas: string | number | bigint;
1770
- l2Gas: string | number | bigint;
1771
- } | undefined;
1772
- teardownGasLimits?: {
1773
- daGas: string | number | bigint;
1774
- l2Gas: string | number | bigint;
1775
- } | undefined;
1776
- maxFeePerGas?: {
1777
- feePerDaGas: string | number | bigint;
1778
- feePerL2Gas: string | number | bigint;
1779
- } | undefined;
1780
- maxPriorityFeePerGas?: {
1781
- feePerDaGas: string | number | bigint;
1782
- feePerL2Gas: string | number | bigint;
1783
- } | undefined;
1784
- } | undefined;
1785
- estimatedGasPadding?: number | undefined;
1786
- estimateGas?: boolean | undefined;
1787
- } | undefined;
1788
- skipTxValidation?: boolean | undefined;
1789
- skipFeeEnforcement?: boolean | undefined;
1790
- includeMetadata?: boolean | undefined;
1791
- }];
1792
- }>]>;
1793
- export declare const ContractMetadataSchema: z.ZodObject<{
1794
- contractInstance: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
1795
- version: z.ZodLiteral<1>;
1796
- salt: ZodFor<Fr>;
1797
- deployer: ZodFor<AztecAddress>;
1798
- currentContractClassId: ZodFor<Fr>;
1799
- originalContractClassId: ZodFor<Fr>;
1800
- initializationHash: ZodFor<Fr>;
1801
- publicKeys: z.ZodEffects<z.ZodObject<{
1802
- masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1803
- masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1804
- masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1805
- masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1602
+ contract?: any;
1603
+ function: string;
1604
+ }>, "many">]>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ type: "transaction";
1607
+ scope: "*" | {
1608
+ contract: "*" | AztecAddress;
1609
+ function: string;
1610
+ }[];
1611
+ }, {
1612
+ type: "transaction";
1613
+ scope: "*" | {
1614
+ contract?: any;
1615
+ function: string;
1616
+ }[];
1617
+ }>;
1618
+ export declare const GrantedTransactionCapabilitySchema: z.ZodObject<{
1619
+ type: z.ZodLiteral<"transaction">;
1620
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1621
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1622
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1623
+ }, "strip", z.ZodTypeAny, {
1624
+ contract: "*" | AztecAddress;
1625
+ function: string;
1626
+ }, {
1627
+ contract?: any;
1628
+ function: string;
1629
+ }>, "many">]>;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ type: "transaction";
1632
+ scope: "*" | {
1633
+ contract: "*" | AztecAddress;
1634
+ function: string;
1635
+ }[];
1636
+ }, {
1637
+ type: "transaction";
1638
+ scope: "*" | {
1639
+ contract?: any;
1640
+ function: string;
1641
+ }[];
1642
+ }>;
1643
+ export declare const DataCapabilitySchema: z.ZodObject<{
1644
+ type: z.ZodLiteral<"data">;
1645
+ addressBook: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1646
+ privateEvents: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1647
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ contracts: "*" | AztecAddress[];
1650
+ }, {
1651
+ contracts: "*" | any[];
1652
+ }>>;
1653
+ }, "strip", z.ZodTypeAny, {
1654
+ type: "data";
1655
+ addressBook?: boolean | undefined;
1656
+ privateEvents?: {
1657
+ contracts: "*" | AztecAddress[];
1658
+ } | undefined;
1659
+ }, {
1660
+ type: "data";
1661
+ addressBook?: boolean | undefined;
1662
+ privateEvents?: {
1663
+ contracts: "*" | any[];
1664
+ } | undefined;
1665
+ }>;
1666
+ export declare const GrantedDataCapabilitySchema: z.ZodObject<{
1667
+ type: z.ZodLiteral<"data">;
1668
+ addressBook: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1669
+ privateEvents: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1670
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
1671
+ }, "strip", z.ZodTypeAny, {
1672
+ contracts: "*" | AztecAddress[];
1673
+ }, {
1674
+ contracts: "*" | any[];
1675
+ }>>;
1676
+ }, "strip", z.ZodTypeAny, {
1677
+ type: "data";
1678
+ addressBook?: boolean | undefined;
1679
+ privateEvents?: {
1680
+ contracts: "*" | AztecAddress[];
1681
+ } | undefined;
1682
+ }, {
1683
+ type: "data";
1684
+ addressBook?: boolean | undefined;
1685
+ privateEvents?: {
1686
+ contracts: "*" | any[];
1687
+ } | undefined;
1688
+ }>;
1689
+ export declare const CapabilitySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1690
+ type: z.ZodLiteral<"accounts">;
1691
+ canGet: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1692
+ canCreateAuthWit: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ type: "accounts";
1695
+ canGet?: boolean | undefined;
1696
+ canCreateAuthWit?: boolean | undefined;
1697
+ }, {
1698
+ type: "accounts";
1699
+ canGet?: boolean | undefined;
1700
+ canCreateAuthWit?: boolean | undefined;
1701
+ }>, z.ZodObject<{
1702
+ type: z.ZodLiteral<"contracts">;
1703
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
1704
+ canRegister: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1705
+ canGetMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1706
+ }, "strip", z.ZodTypeAny, {
1707
+ type: "contracts";
1708
+ contracts: "*" | AztecAddress[];
1709
+ canRegister?: boolean | undefined;
1710
+ canGetMetadata?: boolean | undefined;
1711
+ }, {
1712
+ type: "contracts";
1713
+ contracts: "*" | any[];
1714
+ canRegister?: boolean | undefined;
1715
+ canGetMetadata?: boolean | undefined;
1716
+ }>, z.ZodObject<{
1717
+ type: z.ZodLiteral<"contractClasses">;
1718
+ classes: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<Fr>, "many">]>;
1719
+ canGetMetadata: z.ZodBoolean;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ type: "contractClasses";
1722
+ classes: "*" | Fr[];
1723
+ canGetMetadata: boolean;
1724
+ }, {
1725
+ type: "contractClasses";
1726
+ classes: "*" | any[];
1727
+ canGetMetadata: boolean;
1728
+ }>, z.ZodObject<{
1729
+ type: z.ZodLiteral<"simulation">;
1730
+ transactions: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1731
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1732
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1733
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1806
1734
  }, "strip", z.ZodTypeAny, {
1807
- masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1808
- masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1809
- masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1810
- masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1735
+ contract: "*" | AztecAddress;
1736
+ function: string;
1811
1737
  }, {
1812
- masterNullifierPublicKey: string;
1813
- masterIncomingViewingPublicKey: string;
1814
- masterOutgoingViewingPublicKey: string;
1815
- masterTaggingPublicKey: string;
1816
- }>, import("../api/keys.js").PublicKeys, {
1817
- masterNullifierPublicKey: string;
1818
- masterIncomingViewingPublicKey: string;
1819
- masterOutgoingViewingPublicKey: string;
1820
- masterTaggingPublicKey: string;
1821
- }>;
1738
+ contract?: any;
1739
+ function: string;
1740
+ }>, "many">]>;
1822
1741
  }, "strip", z.ZodTypeAny, {
1823
- version: 1;
1824
- salt: Fr;
1825
- deployer: AztecAddress;
1826
- currentContractClassId: Fr;
1827
- originalContractClassId: Fr;
1828
- initializationHash: Fr;
1829
- publicKeys: import("../api/keys.js").PublicKeys;
1742
+ scope: "*" | {
1743
+ contract: "*" | AztecAddress;
1744
+ function: string;
1745
+ }[];
1830
1746
  }, {
1831
- version: 1;
1832
- salt?: any;
1833
- deployer?: any;
1834
- currentContractClassId?: any;
1835
- originalContractClassId?: any;
1836
- initializationHash?: any;
1837
- publicKeys: {
1838
- masterNullifierPublicKey: string;
1839
- masterIncomingViewingPublicKey: string;
1840
- masterOutgoingViewingPublicKey: string;
1841
- masterTaggingPublicKey: string;
1842
- };
1843
- }>, z.ZodObject<{
1844
- address: ZodFor<AztecAddress>;
1747
+ scope: "*" | {
1748
+ contract?: any;
1749
+ function: string;
1750
+ }[];
1751
+ }>>;
1752
+ utilities: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1753
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1754
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1755
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1756
+ }, "strip", z.ZodTypeAny, {
1757
+ contract: "*" | AztecAddress;
1758
+ function: string;
1759
+ }, {
1760
+ contract?: any;
1761
+ function: string;
1762
+ }>, "many">]>;
1845
1763
  }, "strip", z.ZodTypeAny, {
1846
- address: AztecAddress;
1764
+ scope: "*" | {
1765
+ contract: "*" | AztecAddress;
1766
+ function: string;
1767
+ }[];
1847
1768
  }, {
1848
- address?: any;
1849
- }>>, z.ZodUndefined]>;
1850
- isContractInitialized: z.ZodBoolean;
1851
- isContractPublished: z.ZodBoolean;
1769
+ scope: "*" | {
1770
+ contract?: any;
1771
+ function: string;
1772
+ }[];
1773
+ }>>;
1852
1774
  }, "strip", z.ZodTypeAny, {
1853
- contractInstance?: ({
1854
- version: 1;
1855
- salt: Fr;
1856
- deployer: AztecAddress;
1857
- currentContractClassId: Fr;
1858
- originalContractClassId: Fr;
1859
- initializationHash: Fr;
1860
- publicKeys: import("../api/keys.js").PublicKeys;
1861
- } & {
1862
- address: AztecAddress;
1863
- }) | undefined;
1864
- isContractInitialized: boolean;
1865
- isContractPublished: boolean;
1775
+ type: "simulation";
1776
+ transactions?: {
1777
+ scope: "*" | {
1778
+ contract: "*" | AztecAddress;
1779
+ function: string;
1780
+ }[];
1781
+ } | undefined;
1782
+ utilities?: {
1783
+ scope: "*" | {
1784
+ contract: "*" | AztecAddress;
1785
+ function: string;
1786
+ }[];
1787
+ } | undefined;
1866
1788
  }, {
1867
- contractInstance?: ({
1868
- version: 1;
1869
- salt?: any;
1870
- deployer?: any;
1871
- currentContractClassId?: any;
1872
- originalContractClassId?: any;
1873
- initializationHash?: any;
1874
- publicKeys: {
1875
- masterNullifierPublicKey: string;
1876
- masterIncomingViewingPublicKey: string;
1877
- masterOutgoingViewingPublicKey: string;
1878
- masterTaggingPublicKey: string;
1879
- };
1880
- } & {
1881
- address?: any;
1882
- }) | undefined;
1883
- isContractInitialized: boolean;
1884
- isContractPublished: boolean;
1885
- }>;
1886
- export declare const ContractClassMetadataSchema: z.ZodObject<{
1887
- contractClass: z.ZodUnion<[z.ZodObject<{
1888
- version: z.ZodLiteral<1>;
1889
- artifactHash: z.ZodType<Fr, any, string>;
1890
- privateFunctions: z.ZodArray<z.ZodObject<{
1891
- selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
1892
- vkHash: z.ZodType<Fr, any, string>;
1789
+ type: "simulation";
1790
+ transactions?: {
1791
+ scope: "*" | {
1792
+ contract?: any;
1793
+ function: string;
1794
+ }[];
1795
+ } | undefined;
1796
+ utilities?: {
1797
+ scope: "*" | {
1798
+ contract?: any;
1799
+ function: string;
1800
+ }[];
1801
+ } | undefined;
1802
+ }>, z.ZodObject<{
1803
+ type: z.ZodLiteral<"transaction">;
1804
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1805
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1806
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1807
+ }, "strip", z.ZodTypeAny, {
1808
+ contract: "*" | AztecAddress;
1809
+ function: string;
1810
+ }, {
1811
+ contract?: any;
1812
+ function: string;
1813
+ }>, "many">]>;
1814
+ }, "strip", z.ZodTypeAny, {
1815
+ type: "transaction";
1816
+ scope: "*" | {
1817
+ contract: "*" | AztecAddress;
1818
+ function: string;
1819
+ }[];
1820
+ }, {
1821
+ type: "transaction";
1822
+ scope: "*" | {
1823
+ contract?: any;
1824
+ function: string;
1825
+ }[];
1826
+ }>, z.ZodObject<{
1827
+ type: z.ZodLiteral<"data">;
1828
+ addressBook: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1829
+ privateEvents: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1830
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
1831
+ }, "strip", z.ZodTypeAny, {
1832
+ contracts: "*" | AztecAddress[];
1833
+ }, {
1834
+ contracts: "*" | any[];
1835
+ }>>;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ type: "data";
1838
+ addressBook?: boolean | undefined;
1839
+ privateEvents?: {
1840
+ contracts: "*" | AztecAddress[];
1841
+ } | undefined;
1842
+ }, {
1843
+ type: "data";
1844
+ addressBook?: boolean | undefined;
1845
+ privateEvents?: {
1846
+ contracts: "*" | any[];
1847
+ } | undefined;
1848
+ }>]>;
1849
+ export declare const GrantedCapabilitySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1850
+ type: z.ZodLiteral<"accounts">;
1851
+ canGet: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1852
+ canCreateAuthWit: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1853
+ } & {
1854
+ accounts: z.ZodArray<z.ZodObject<{
1855
+ alias: z.ZodString;
1856
+ item: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ alias: string;
1859
+ item: AztecAddress;
1860
+ }, {
1861
+ alias: string;
1862
+ item?: any;
1863
+ }>, "many">;
1864
+ }, "strip", z.ZodTypeAny, {
1865
+ type: "accounts";
1866
+ canGet?: boolean | undefined;
1867
+ canCreateAuthWit?: boolean | undefined;
1868
+ accounts: {
1869
+ alias: string;
1870
+ item: AztecAddress;
1871
+ }[];
1872
+ }, {
1873
+ type: "accounts";
1874
+ canGet?: boolean | undefined;
1875
+ canCreateAuthWit?: boolean | undefined;
1876
+ accounts: {
1877
+ alias: string;
1878
+ item?: any;
1879
+ }[];
1880
+ }>, z.ZodObject<{
1881
+ type: z.ZodLiteral<"contracts">;
1882
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
1883
+ canRegister: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1884
+ canGetMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1885
+ }, "strip", z.ZodTypeAny, {
1886
+ type: "contracts";
1887
+ contracts: "*" | AztecAddress[];
1888
+ canRegister?: boolean | undefined;
1889
+ canGetMetadata?: boolean | undefined;
1890
+ }, {
1891
+ type: "contracts";
1892
+ contracts: "*" | any[];
1893
+ canRegister?: boolean | undefined;
1894
+ canGetMetadata?: boolean | undefined;
1895
+ }>, z.ZodObject<{
1896
+ type: z.ZodLiteral<"contractClasses">;
1897
+ classes: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<Fr>, "many">]>;
1898
+ canGetMetadata: z.ZodBoolean;
1899
+ }, "strip", z.ZodTypeAny, {
1900
+ type: "contractClasses";
1901
+ classes: "*" | Fr[];
1902
+ canGetMetadata: boolean;
1903
+ }, {
1904
+ type: "contractClasses";
1905
+ classes: "*" | any[];
1906
+ canGetMetadata: boolean;
1907
+ }>, z.ZodObject<{
1908
+ type: z.ZodLiteral<"simulation">;
1909
+ transactions: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1910
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1911
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1912
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1893
1913
  }, "strip", z.ZodTypeAny, {
1894
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1895
- vkHash: Fr;
1914
+ contract: "*" | AztecAddress;
1915
+ function: string;
1896
1916
  }, {
1897
- selector?: any;
1898
- vkHash: string;
1899
- }>, "many">;
1900
- packedBytecode: ZodFor<Buffer<ArrayBufferLike>>;
1901
- } & {
1902
- id: z.ZodType<Fr, any, string>;
1917
+ contract?: any;
1918
+ function: string;
1919
+ }>, "many">]>;
1903
1920
  }, "strip", z.ZodTypeAny, {
1904
- version: 1;
1905
- artifactHash: Fr;
1906
- privateFunctions: {
1907
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1908
- vkHash: Fr;
1921
+ scope: "*" | {
1922
+ contract: "*" | AztecAddress;
1923
+ function: string;
1909
1924
  }[];
1910
- packedBytecode: Buffer<ArrayBufferLike>;
1911
- id: Fr;
1912
1925
  }, {
1913
- version: 1;
1914
- artifactHash: string;
1915
- privateFunctions: {
1916
- selector?: any;
1917
- vkHash: string;
1926
+ scope: "*" | {
1927
+ contract?: any;
1928
+ function: string;
1918
1929
  }[];
1919
- packedBytecode?: any;
1920
- id: string;
1921
- }>, z.ZodUndefined]>;
1922
- isContractClassPubliclyRegistered: z.ZodBoolean;
1923
- artifact: z.ZodUnion<[ZodFor<ContractArtifact>, z.ZodUndefined]>;
1930
+ }>>;
1931
+ utilities: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1932
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1933
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1934
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ contract: "*" | AztecAddress;
1937
+ function: string;
1938
+ }, {
1939
+ contract?: any;
1940
+ function: string;
1941
+ }>, "many">]>;
1942
+ }, "strip", z.ZodTypeAny, {
1943
+ scope: "*" | {
1944
+ contract: "*" | AztecAddress;
1945
+ function: string;
1946
+ }[];
1947
+ }, {
1948
+ scope: "*" | {
1949
+ contract?: any;
1950
+ function: string;
1951
+ }[];
1952
+ }>>;
1924
1953
  }, "strip", z.ZodTypeAny, {
1925
- contractClass?: {
1926
- version: 1;
1927
- artifactHash: Fr;
1928
- privateFunctions: {
1929
- selector: import("@aztec/stdlib/abi").FunctionSelector;
1930
- vkHash: Fr;
1954
+ type: "simulation";
1955
+ transactions?: {
1956
+ scope: "*" | {
1957
+ contract: "*" | AztecAddress;
1958
+ function: string;
1959
+ }[];
1960
+ } | undefined;
1961
+ utilities?: {
1962
+ scope: "*" | {
1963
+ contract: "*" | AztecAddress;
1964
+ function: string;
1931
1965
  }[];
1932
- packedBytecode: Buffer<ArrayBufferLike>;
1933
- id: Fr;
1934
1966
  } | undefined;
1935
- isContractClassPubliclyRegistered: boolean;
1936
- artifact?: ContractArtifact | undefined;
1937
1967
  }, {
1938
- contractClass?: {
1939
- version: 1;
1940
- artifactHash: string;
1941
- privateFunctions: {
1942
- selector?: any;
1943
- vkHash: string;
1968
+ type: "simulation";
1969
+ transactions?: {
1970
+ scope: "*" | {
1971
+ contract?: any;
1972
+ function: string;
1944
1973
  }[];
1945
- packedBytecode?: any;
1946
- id: string;
1947
1974
  } | undefined;
1948
- isContractClassPubliclyRegistered: boolean;
1949
- artifact?: any;
1975
+ utilities?: {
1976
+ scope: "*" | {
1977
+ contract?: any;
1978
+ function: string;
1979
+ }[];
1980
+ } | undefined;
1981
+ }>, z.ZodObject<{
1982
+ type: z.ZodLiteral<"transaction">;
1983
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
1984
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
1985
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ contract: "*" | AztecAddress;
1988
+ function: string;
1989
+ }, {
1990
+ contract?: any;
1991
+ function: string;
1992
+ }>, "many">]>;
1993
+ }, "strip", z.ZodTypeAny, {
1994
+ type: "transaction";
1995
+ scope: "*" | {
1996
+ contract: "*" | AztecAddress;
1997
+ function: string;
1998
+ }[];
1999
+ }, {
2000
+ type: "transaction";
2001
+ scope: "*" | {
2002
+ contract?: any;
2003
+ function: string;
2004
+ }[];
2005
+ }>, z.ZodObject<{
2006
+ type: z.ZodLiteral<"data">;
2007
+ addressBook: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2008
+ privateEvents: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2009
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ contracts: "*" | AztecAddress[];
2012
+ }, {
2013
+ contracts: "*" | any[];
2014
+ }>>;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ type: "data";
2017
+ addressBook?: boolean | undefined;
2018
+ privateEvents?: {
2019
+ contracts: "*" | AztecAddress[];
2020
+ } | undefined;
2021
+ }, {
2022
+ type: "data";
2023
+ addressBook?: boolean | undefined;
2024
+ privateEvents?: {
2025
+ contracts: "*" | any[];
2026
+ } | undefined;
2027
+ }>]>;
2028
+ export declare const AppCapabilitiesSchema: z.ZodObject<{
2029
+ version: z.ZodLiteral<"1.0">;
2030
+ metadata: z.ZodObject<{
2031
+ name: z.ZodString;
2032
+ version: z.ZodString;
2033
+ description: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodString>;
2034
+ url: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodString>;
2035
+ icon: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodString>;
2036
+ }, "strip", z.ZodTypeAny, {
2037
+ name: string;
2038
+ version: string;
2039
+ description?: string | undefined;
2040
+ url?: string | undefined;
2041
+ icon?: string | undefined;
2042
+ }, {
2043
+ name: string;
2044
+ version: string;
2045
+ description?: string | undefined;
2046
+ url?: string | undefined;
2047
+ icon?: string | undefined;
2048
+ }>;
2049
+ capabilities: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2050
+ type: z.ZodLiteral<"accounts">;
2051
+ canGet: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2052
+ canCreateAuthWit: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ type: "accounts";
2055
+ canGet?: boolean | undefined;
2056
+ canCreateAuthWit?: boolean | undefined;
2057
+ }, {
2058
+ type: "accounts";
2059
+ canGet?: boolean | undefined;
2060
+ canCreateAuthWit?: boolean | undefined;
2061
+ }>, z.ZodObject<{
2062
+ type: z.ZodLiteral<"contracts">;
2063
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
2064
+ canRegister: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2065
+ canGetMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2066
+ }, "strip", z.ZodTypeAny, {
2067
+ type: "contracts";
2068
+ contracts: "*" | AztecAddress[];
2069
+ canRegister?: boolean | undefined;
2070
+ canGetMetadata?: boolean | undefined;
2071
+ }, {
2072
+ type: "contracts";
2073
+ contracts: "*" | any[];
2074
+ canRegister?: boolean | undefined;
2075
+ canGetMetadata?: boolean | undefined;
2076
+ }>, z.ZodObject<{
2077
+ type: z.ZodLiteral<"contractClasses">;
2078
+ classes: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<Fr>, "many">]>;
2079
+ canGetMetadata: z.ZodBoolean;
2080
+ }, "strip", z.ZodTypeAny, {
2081
+ type: "contractClasses";
2082
+ classes: "*" | Fr[];
2083
+ canGetMetadata: boolean;
2084
+ }, {
2085
+ type: "contractClasses";
2086
+ classes: "*" | any[];
2087
+ canGetMetadata: boolean;
2088
+ }>, z.ZodObject<{
2089
+ type: z.ZodLiteral<"simulation">;
2090
+ transactions: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2091
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
2092
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
2093
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ contract: "*" | AztecAddress;
2096
+ function: string;
2097
+ }, {
2098
+ contract?: any;
2099
+ function: string;
2100
+ }>, "many">]>;
2101
+ }, "strip", z.ZodTypeAny, {
2102
+ scope: "*" | {
2103
+ contract: "*" | AztecAddress;
2104
+ function: string;
2105
+ }[];
2106
+ }, {
2107
+ scope: "*" | {
2108
+ contract?: any;
2109
+ function: string;
2110
+ }[];
2111
+ }>>;
2112
+ utilities: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2113
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
2114
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
2115
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
2116
+ }, "strip", z.ZodTypeAny, {
2117
+ contract: "*" | AztecAddress;
2118
+ function: string;
2119
+ }, {
2120
+ contract?: any;
2121
+ function: string;
2122
+ }>, "many">]>;
2123
+ }, "strip", z.ZodTypeAny, {
2124
+ scope: "*" | {
2125
+ contract: "*" | AztecAddress;
2126
+ function: string;
2127
+ }[];
2128
+ }, {
2129
+ scope: "*" | {
2130
+ contract?: any;
2131
+ function: string;
2132
+ }[];
2133
+ }>>;
2134
+ }, "strip", z.ZodTypeAny, {
2135
+ type: "simulation";
2136
+ transactions?: {
2137
+ scope: "*" | {
2138
+ contract: "*" | AztecAddress;
2139
+ function: string;
2140
+ }[];
2141
+ } | undefined;
2142
+ utilities?: {
2143
+ scope: "*" | {
2144
+ contract: "*" | AztecAddress;
2145
+ function: string;
2146
+ }[];
2147
+ } | undefined;
2148
+ }, {
2149
+ type: "simulation";
2150
+ transactions?: {
2151
+ scope: "*" | {
2152
+ contract?: any;
2153
+ function: string;
2154
+ }[];
2155
+ } | undefined;
2156
+ utilities?: {
2157
+ scope: "*" | {
2158
+ contract?: any;
2159
+ function: string;
2160
+ }[];
2161
+ } | undefined;
2162
+ }>, z.ZodObject<{
2163
+ type: z.ZodLiteral<"transaction">;
2164
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
2165
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
2166
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
2167
+ }, "strip", z.ZodTypeAny, {
2168
+ contract: "*" | AztecAddress;
2169
+ function: string;
2170
+ }, {
2171
+ contract?: any;
2172
+ function: string;
2173
+ }>, "many">]>;
2174
+ }, "strip", z.ZodTypeAny, {
2175
+ type: "transaction";
2176
+ scope: "*" | {
2177
+ contract: "*" | AztecAddress;
2178
+ function: string;
2179
+ }[];
2180
+ }, {
2181
+ type: "transaction";
2182
+ scope: "*" | {
2183
+ contract?: any;
2184
+ function: string;
2185
+ }[];
2186
+ }>, z.ZodObject<{
2187
+ type: z.ZodLiteral<"data">;
2188
+ addressBook: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2189
+ privateEvents: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2190
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
2191
+ }, "strip", z.ZodTypeAny, {
2192
+ contracts: "*" | AztecAddress[];
2193
+ }, {
2194
+ contracts: "*" | any[];
2195
+ }>>;
2196
+ }, "strip", z.ZodTypeAny, {
2197
+ type: "data";
2198
+ addressBook?: boolean | undefined;
2199
+ privateEvents?: {
2200
+ contracts: "*" | AztecAddress[];
2201
+ } | undefined;
2202
+ }, {
2203
+ type: "data";
2204
+ addressBook?: boolean | undefined;
2205
+ privateEvents?: {
2206
+ contracts: "*" | any[];
2207
+ } | undefined;
2208
+ }>]>, "many">;
2209
+ behavior: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2210
+ mode: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEnum<["strict", "permissive"]>>;
2211
+ expiration: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
2212
+ }, "strip", z.ZodTypeAny, {
2213
+ mode?: "permissive" | "strict" | undefined;
2214
+ expiration?: number | undefined;
2215
+ }, {
2216
+ mode?: "permissive" | "strict" | undefined;
2217
+ expiration?: number | undefined;
2218
+ }>>;
2219
+ }, "strip", z.ZodTypeAny, {
2220
+ version: "1.0";
2221
+ metadata: {
2222
+ name: string;
2223
+ version: string;
2224
+ description?: string | undefined;
2225
+ url?: string | undefined;
2226
+ icon?: string | undefined;
2227
+ };
2228
+ capabilities: ({
2229
+ type: "accounts";
2230
+ canGet?: boolean | undefined;
2231
+ canCreateAuthWit?: boolean | undefined;
2232
+ } | {
2233
+ type: "contracts";
2234
+ contracts: "*" | AztecAddress[];
2235
+ canRegister?: boolean | undefined;
2236
+ canGetMetadata?: boolean | undefined;
2237
+ } | {
2238
+ type: "contractClasses";
2239
+ classes: "*" | Fr[];
2240
+ canGetMetadata: boolean;
2241
+ } | {
2242
+ type: "simulation";
2243
+ transactions?: {
2244
+ scope: "*" | {
2245
+ contract: "*" | AztecAddress;
2246
+ function: string;
2247
+ }[];
2248
+ } | undefined;
2249
+ utilities?: {
2250
+ scope: "*" | {
2251
+ contract: "*" | AztecAddress;
2252
+ function: string;
2253
+ }[];
2254
+ } | undefined;
2255
+ } | {
2256
+ type: "transaction";
2257
+ scope: "*" | {
2258
+ contract: "*" | AztecAddress;
2259
+ function: string;
2260
+ }[];
2261
+ } | {
2262
+ type: "data";
2263
+ addressBook?: boolean | undefined;
2264
+ privateEvents?: {
2265
+ contracts: "*" | AztecAddress[];
2266
+ } | undefined;
2267
+ })[];
2268
+ behavior?: {
2269
+ mode?: "permissive" | "strict" | undefined;
2270
+ expiration?: number | undefined;
2271
+ } | undefined;
2272
+ }, {
2273
+ version: "1.0";
2274
+ metadata: {
2275
+ name: string;
2276
+ version: string;
2277
+ description?: string | undefined;
2278
+ url?: string | undefined;
2279
+ icon?: string | undefined;
2280
+ };
2281
+ capabilities: ({
2282
+ type: "accounts";
2283
+ canGet?: boolean | undefined;
2284
+ canCreateAuthWit?: boolean | undefined;
2285
+ } | {
2286
+ type: "contracts";
2287
+ contracts: "*" | any[];
2288
+ canRegister?: boolean | undefined;
2289
+ canGetMetadata?: boolean | undefined;
2290
+ } | {
2291
+ type: "contractClasses";
2292
+ classes: "*" | any[];
2293
+ canGetMetadata: boolean;
2294
+ } | {
2295
+ type: "simulation";
2296
+ transactions?: {
2297
+ scope: "*" | {
2298
+ contract?: any;
2299
+ function: string;
2300
+ }[];
2301
+ } | undefined;
2302
+ utilities?: {
2303
+ scope: "*" | {
2304
+ contract?: any;
2305
+ function: string;
2306
+ }[];
2307
+ } | undefined;
2308
+ } | {
2309
+ type: "transaction";
2310
+ scope: "*" | {
2311
+ contract?: any;
2312
+ function: string;
2313
+ }[];
2314
+ } | {
2315
+ type: "data";
2316
+ addressBook?: boolean | undefined;
2317
+ privateEvents?: {
2318
+ contracts: "*" | any[];
2319
+ } | undefined;
2320
+ })[];
2321
+ behavior?: {
2322
+ mode?: "permissive" | "strict" | undefined;
2323
+ expiration?: number | undefined;
2324
+ } | undefined;
1950
2325
  }>;
1951
- export declare const EventMetadataDefinitionSchema: z.ZodObject<{
1952
- eventSelector: z.ZodType<import("@aztec/stdlib/abi").EventSelector, any, string>;
1953
- abiType: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
1954
- fieldNames: z.ZodArray<z.ZodString, "many">;
2326
+ export declare const WalletCapabilitiesSchema: z.ZodObject<{
2327
+ version: z.ZodLiteral<"1.0">;
2328
+ granted: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2329
+ type: z.ZodLiteral<"accounts">;
2330
+ canGet: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2331
+ canCreateAuthWit: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2332
+ } & {
2333
+ accounts: z.ZodArray<z.ZodObject<{
2334
+ alias: z.ZodString;
2335
+ item: import("@aztec/stdlib/schemas").ZodFor<AztecAddress>;
2336
+ }, "strip", z.ZodTypeAny, {
2337
+ alias: string;
2338
+ item: AztecAddress;
2339
+ }, {
2340
+ alias: string;
2341
+ item?: any;
2342
+ }>, "many">;
2343
+ }, "strip", z.ZodTypeAny, {
2344
+ type: "accounts";
2345
+ canGet?: boolean | undefined;
2346
+ canCreateAuthWit?: boolean | undefined;
2347
+ accounts: {
2348
+ alias: string;
2349
+ item: AztecAddress;
2350
+ }[];
2351
+ }, {
2352
+ type: "accounts";
2353
+ canGet?: boolean | undefined;
2354
+ canCreateAuthWit?: boolean | undefined;
2355
+ accounts: {
2356
+ alias: string;
2357
+ item?: any;
2358
+ }[];
2359
+ }>, z.ZodObject<{
2360
+ type: z.ZodLiteral<"contracts">;
2361
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
2362
+ canRegister: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2363
+ canGetMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ type: "contracts";
2366
+ contracts: "*" | AztecAddress[];
2367
+ canRegister?: boolean | undefined;
2368
+ canGetMetadata?: boolean | undefined;
2369
+ }, {
2370
+ type: "contracts";
2371
+ contracts: "*" | any[];
2372
+ canRegister?: boolean | undefined;
2373
+ canGetMetadata?: boolean | undefined;
2374
+ }>, z.ZodObject<{
2375
+ type: z.ZodLiteral<"contractClasses">;
2376
+ classes: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<Fr>, "many">]>;
2377
+ canGetMetadata: z.ZodBoolean;
2378
+ }, "strip", z.ZodTypeAny, {
2379
+ type: "contractClasses";
2380
+ classes: "*" | Fr[];
2381
+ canGetMetadata: boolean;
2382
+ }, {
2383
+ type: "contractClasses";
2384
+ classes: "*" | any[];
2385
+ canGetMetadata: boolean;
2386
+ }>, z.ZodObject<{
2387
+ type: z.ZodLiteral<"simulation">;
2388
+ transactions: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2389
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
2390
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
2391
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
2392
+ }, "strip", z.ZodTypeAny, {
2393
+ contract: "*" | AztecAddress;
2394
+ function: string;
2395
+ }, {
2396
+ contract?: any;
2397
+ function: string;
2398
+ }>, "many">]>;
2399
+ }, "strip", z.ZodTypeAny, {
2400
+ scope: "*" | {
2401
+ contract: "*" | AztecAddress;
2402
+ function: string;
2403
+ }[];
2404
+ }, {
2405
+ scope: "*" | {
2406
+ contract?: any;
2407
+ function: string;
2408
+ }[];
2409
+ }>>;
2410
+ utilities: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2411
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
2412
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
2413
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ contract: "*" | AztecAddress;
2416
+ function: string;
2417
+ }, {
2418
+ contract?: any;
2419
+ function: string;
2420
+ }>, "many">]>;
2421
+ }, "strip", z.ZodTypeAny, {
2422
+ scope: "*" | {
2423
+ contract: "*" | AztecAddress;
2424
+ function: string;
2425
+ }[];
2426
+ }, {
2427
+ scope: "*" | {
2428
+ contract?: any;
2429
+ function: string;
2430
+ }[];
2431
+ }>>;
2432
+ }, "strip", z.ZodTypeAny, {
2433
+ type: "simulation";
2434
+ transactions?: {
2435
+ scope: "*" | {
2436
+ contract: "*" | AztecAddress;
2437
+ function: string;
2438
+ }[];
2439
+ } | undefined;
2440
+ utilities?: {
2441
+ scope: "*" | {
2442
+ contract: "*" | AztecAddress;
2443
+ function: string;
2444
+ }[];
2445
+ } | undefined;
2446
+ }, {
2447
+ type: "simulation";
2448
+ transactions?: {
2449
+ scope: "*" | {
2450
+ contract?: any;
2451
+ function: string;
2452
+ }[];
2453
+ } | undefined;
2454
+ utilities?: {
2455
+ scope: "*" | {
2456
+ contract?: any;
2457
+ function: string;
2458
+ }[];
2459
+ } | undefined;
2460
+ }>, z.ZodObject<{
2461
+ type: z.ZodLiteral<"transaction">;
2462
+ scope: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodObject<{
2463
+ contract: z.ZodUnion<[import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"*">]>;
2464
+ function: z.ZodUnion<[z.ZodString, z.ZodLiteral<"*">]>;
2465
+ }, "strip", z.ZodTypeAny, {
2466
+ contract: "*" | AztecAddress;
2467
+ function: string;
2468
+ }, {
2469
+ contract?: any;
2470
+ function: string;
2471
+ }>, "many">]>;
2472
+ }, "strip", z.ZodTypeAny, {
2473
+ type: "transaction";
2474
+ scope: "*" | {
2475
+ contract: "*" | AztecAddress;
2476
+ function: string;
2477
+ }[];
2478
+ }, {
2479
+ type: "transaction";
2480
+ scope: "*" | {
2481
+ contract?: any;
2482
+ function: string;
2483
+ }[];
2484
+ }>, z.ZodObject<{
2485
+ type: z.ZodLiteral<"data">;
2486
+ addressBook: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
2487
+ privateEvents: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2488
+ contracts: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<import("@aztec/stdlib/schemas").ZodFor<AztecAddress>, "many">]>;
2489
+ }, "strip", z.ZodTypeAny, {
2490
+ contracts: "*" | AztecAddress[];
2491
+ }, {
2492
+ contracts: "*" | any[];
2493
+ }>>;
2494
+ }, "strip", z.ZodTypeAny, {
2495
+ type: "data";
2496
+ addressBook?: boolean | undefined;
2497
+ privateEvents?: {
2498
+ contracts: "*" | AztecAddress[];
2499
+ } | undefined;
2500
+ }, {
2501
+ type: "data";
2502
+ addressBook?: boolean | undefined;
2503
+ privateEvents?: {
2504
+ contracts: "*" | any[];
2505
+ } | undefined;
2506
+ }>]>, "many">;
2507
+ wallet: z.ZodObject<{
2508
+ name: z.ZodString;
2509
+ version: z.ZodString;
2510
+ }, "strip", z.ZodTypeAny, {
2511
+ name: string;
2512
+ version: string;
2513
+ }, {
2514
+ name: string;
2515
+ version: string;
2516
+ }>;
2517
+ expiresAt: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
1955
2518
  }, "strip", z.ZodTypeAny, {
1956
- eventSelector: import("@aztec/stdlib/abi").EventSelector;
1957
- abiType: import("@aztec/stdlib/abi").AbiType;
1958
- fieldNames: string[];
2519
+ version: "1.0";
2520
+ granted: ({
2521
+ type: "accounts";
2522
+ canGet?: boolean | undefined;
2523
+ canCreateAuthWit?: boolean | undefined;
2524
+ accounts: {
2525
+ alias: string;
2526
+ item: AztecAddress;
2527
+ }[];
2528
+ } | {
2529
+ type: "contracts";
2530
+ contracts: "*" | AztecAddress[];
2531
+ canRegister?: boolean | undefined;
2532
+ canGetMetadata?: boolean | undefined;
2533
+ } | {
2534
+ type: "contractClasses";
2535
+ classes: "*" | Fr[];
2536
+ canGetMetadata: boolean;
2537
+ } | {
2538
+ type: "simulation";
2539
+ transactions?: {
2540
+ scope: "*" | {
2541
+ contract: "*" | AztecAddress;
2542
+ function: string;
2543
+ }[];
2544
+ } | undefined;
2545
+ utilities?: {
2546
+ scope: "*" | {
2547
+ contract: "*" | AztecAddress;
2548
+ function: string;
2549
+ }[];
2550
+ } | undefined;
2551
+ } | {
2552
+ type: "transaction";
2553
+ scope: "*" | {
2554
+ contract: "*" | AztecAddress;
2555
+ function: string;
2556
+ }[];
2557
+ } | {
2558
+ type: "data";
2559
+ addressBook?: boolean | undefined;
2560
+ privateEvents?: {
2561
+ contracts: "*" | AztecAddress[];
2562
+ } | undefined;
2563
+ })[];
2564
+ wallet: {
2565
+ name: string;
2566
+ version: string;
2567
+ };
2568
+ expiresAt?: number | undefined;
1959
2569
  }, {
1960
- eventSelector: string;
1961
- abiType: import("@aztec/stdlib/abi").AbiType;
1962
- fieldNames: string[];
2570
+ version: "1.0";
2571
+ granted: ({
2572
+ type: "accounts";
2573
+ canGet?: boolean | undefined;
2574
+ canCreateAuthWit?: boolean | undefined;
2575
+ accounts: {
2576
+ alias: string;
2577
+ item?: any;
2578
+ }[];
2579
+ } | {
2580
+ type: "contracts";
2581
+ contracts: "*" | any[];
2582
+ canRegister?: boolean | undefined;
2583
+ canGetMetadata?: boolean | undefined;
2584
+ } | {
2585
+ type: "contractClasses";
2586
+ classes: "*" | any[];
2587
+ canGetMetadata: boolean;
2588
+ } | {
2589
+ type: "simulation";
2590
+ transactions?: {
2591
+ scope: "*" | {
2592
+ contract?: any;
2593
+ function: string;
2594
+ }[];
2595
+ } | undefined;
2596
+ utilities?: {
2597
+ scope: "*" | {
2598
+ contract?: any;
2599
+ function: string;
2600
+ }[];
2601
+ } | undefined;
2602
+ } | {
2603
+ type: "transaction";
2604
+ scope: "*" | {
2605
+ contract?: any;
2606
+ function: string;
2607
+ }[];
2608
+ } | {
2609
+ type: "data";
2610
+ addressBook?: boolean | undefined;
2611
+ privateEvents?: {
2612
+ contracts: "*" | any[];
2613
+ } | undefined;
2614
+ })[];
2615
+ wallet: {
2616
+ name: string;
2617
+ version: string;
2618
+ };
2619
+ expiresAt?: number | undefined;
1963
2620
  }>;
2621
+ declare const BatchedMethodSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
2622
+ name: z.ZodLiteral<"createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility">;
2623
+ args: z.ZodTuple<any, any>;
2624
+ }, "strip", z.ZodTypeAny, {
2625
+ name: "createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility";
2626
+ args: any[];
2627
+ }, {
2628
+ name: "createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility";
2629
+ args: any[];
2630
+ }>, ...z.ZodObject<{
2631
+ name: z.ZodLiteral<"createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility">;
2632
+ args: z.ZodTuple<any, any>;
2633
+ }, "strip", z.ZodTypeAny, {
2634
+ name: "createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility";
2635
+ args: any[];
2636
+ }, {
2637
+ name: "createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility";
2638
+ args: any[];
2639
+ }>[]]>, BatchedResultSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
2640
+ name: z.ZodLiteral<"createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility">;
2641
+ result: z.ZodTypeAny;
2642
+ }, "strip", z.ZodTypeAny, {
2643
+ name: "createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility";
2644
+ result?: any;
2645
+ }, {
2646
+ name: "createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility";
2647
+ result?: any;
2648
+ }>, ...z.ZodObject<{
2649
+ name: z.ZodLiteral<"createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility">;
2650
+ result: z.ZodTypeAny;
2651
+ }, "strip", z.ZodTypeAny, {
2652
+ name: "createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility";
2653
+ result?: any;
2654
+ }, {
2655
+ name: "createAuthWit" | "getAccounts" | "getAddressBook" | "getChainInfo" | "getContractClassMetadata" | "getContractMetadata" | "getPrivateEvents" | "profileTx" | "registerContract" | "registerSender" | "requestCapabilities" | "sendTx" | "simulateTx" | "simulateUtility";
2656
+ result?: any;
2657
+ }>[]]>;
2658
+ export { BatchedMethodSchema, BatchedResultSchema };
1964
2659
  export declare const WalletSchema: ApiSchemaFor<Wallet>;
1965
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FsbGV0LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd2FsbGV0L3dhbGxldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUMvRCxPQUFPLEtBQUssRUFBRSxFQUFFLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUNuRCxPQUFPLEVBRUwsS0FBSyxnQkFBZ0IsRUFFckIsS0FBSyx1QkFBdUIsRUFDNUIsS0FBSyxZQUFZLEVBQ2pCLFlBQVksRUFDYixNQUFNLG1CQUFtQixDQUFDO0FBQzNCLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUN6RCxPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNoRSxPQUFPLEVBQ0wsS0FBSyxxQkFBcUIsRUFFMUIsS0FBSywyQkFBMkIsRUFFaEMsS0FBSyxnQkFBZ0IsRUFDdEIsTUFBTSx3QkFBd0IsQ0FBQztBQUNoQyxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDeEMsT0FBTyxFQUFvQixLQUFLLFlBQVksRUFBRSxLQUFLLE1BQU0sRUFBcUIsTUFBTSx1QkFBdUIsQ0FBQztBQUM1RyxPQUFPLEVBQ0wsT0FBTyxFQUNQLFlBQVksRUFDWixNQUFNLEVBQ04sZUFBZSxFQUNmLFNBQVMsRUFDVCxrQkFBa0IsRUFDbEIsdUJBQXVCLEVBQ3hCLE1BQU0sa0JBQWtCLENBQUM7QUFDMUIsT0FBTyxLQUFLLEVBQUUsZ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