@aztec/aztec.js 0.0.0-test.1 → 0.0.1-commit.b655e406

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 (392) hide show
  1. package/README.md +1 -1
  2. package/dest/account/account.d.ts +60 -0
  3. package/dest/account/account.d.ts.map +1 -0
  4. package/dest/account/account.js +59 -0
  5. package/dest/account/{contract.d.ts → account_contract.d.ts} +16 -10
  6. package/dest/account/account_contract.d.ts.map +1 -0
  7. package/dest/account/{contract.js → account_contract.js} +7 -4
  8. package/dest/{wallet/account_wallet_with_private_key.d.ts → account/account_with_secret_key.d.ts} +7 -8
  9. package/dest/account/account_with_secret_key.d.ts.map +1 -0
  10. package/dest/{wallet/account_wallet_with_private_key.js → account/account_with_secret_key.js} +5 -5
  11. package/dest/account/index.d.ts +3 -7
  12. package/dest/account/index.d.ts.map +1 -1
  13. package/dest/account/index.js +2 -6
  14. package/dest/account/interface.d.ts +1 -13
  15. package/dest/account/interface.d.ts.map +1 -1
  16. package/dest/account/interface.js +1 -0
  17. package/dest/account/signerless_account.d.ts +24 -0
  18. package/dest/account/signerless_account.d.ts.map +1 -0
  19. package/dest/account/signerless_account.js +27 -0
  20. package/dest/api/abi.d.ts +2 -1
  21. package/dest/api/abi.d.ts.map +1 -1
  22. package/dest/api/abi.js +1 -1
  23. package/dest/api/account.d.ts +5 -2
  24. package/dest/api/account.d.ts.map +1 -1
  25. package/dest/api/account.js +3 -1
  26. package/dest/api/addresses.d.ts +1 -0
  27. package/dest/api/addresses.d.ts.map +1 -1
  28. package/dest/api/addresses.js +1 -0
  29. package/dest/api/authorization.d.ts +5 -0
  30. package/dest/api/authorization.d.ts.map +1 -0
  31. package/dest/api/authorization.js +4 -0
  32. package/dest/api/block.d.ts +3 -0
  33. package/dest/api/block.d.ts.map +1 -0
  34. package/dest/api/block.js +2 -0
  35. package/dest/{contract/index.d.ts → api/contract.d.ts} +15 -11
  36. package/dest/api/contract.d.ts.map +1 -0
  37. package/dest/{contract/index.js → api/contract.js} +14 -10
  38. package/dest/api/crypto.d.ts +2 -0
  39. package/dest/api/crypto.d.ts.map +1 -0
  40. package/dest/api/crypto.js +1 -0
  41. package/dest/api/deployment.d.ts +4 -3
  42. package/dest/api/deployment.d.ts.map +1 -1
  43. package/dest/api/deployment.js +4 -3
  44. package/dest/api/ethereum.d.ts +2 -0
  45. package/dest/api/ethereum.d.ts.map +1 -0
  46. package/dest/api/ethereum.js +1 -0
  47. package/dest/api/events.d.ts +12 -0
  48. package/dest/api/events.d.ts.map +1 -0
  49. package/dest/api/events.js +30 -0
  50. package/dest/api/fee.d.ts +1 -1
  51. package/dest/api/fee.d.ts.map +1 -1
  52. package/dest/api/fee.js +1 -1
  53. package/dest/api/fee_testing.d.ts +2 -0
  54. package/dest/api/fee_testing.d.ts.map +1 -0
  55. package/dest/api/fee_testing.js +1 -0
  56. package/dest/api/keys.d.ts +4 -0
  57. package/dest/api/keys.d.ts.map +1 -0
  58. package/dest/api/keys.js +3 -0
  59. package/dest/api/log.d.ts +1 -0
  60. package/dest/api/log.d.ts.map +1 -1
  61. package/dest/api/log.js +1 -0
  62. package/dest/api/messaging.d.ts +3 -0
  63. package/dest/api/messaging.d.ts.map +1 -0
  64. package/dest/api/messaging.js +2 -0
  65. package/dest/api/node.d.ts +21 -0
  66. package/dest/api/node.d.ts.map +1 -0
  67. package/dest/api/node.js +18 -0
  68. package/dest/api/note.d.ts +2 -0
  69. package/dest/api/note.d.ts.map +1 -0
  70. package/dest/api/note.js +1 -0
  71. package/dest/api/protocol.d.ts +3 -0
  72. package/dest/api/protocol.d.ts.map +1 -0
  73. package/dest/api/protocol.js +2 -0
  74. package/dest/api/trees.d.ts +3 -0
  75. package/dest/api/trees.d.ts.map +1 -0
  76. package/dest/api/trees.js +2 -0
  77. package/dest/api/tx.d.ts +2 -0
  78. package/dest/api/tx.d.ts.map +1 -0
  79. package/dest/api/tx.js +1 -0
  80. package/dest/api/utils.d.ts +13 -0
  81. package/dest/api/utils.d.ts.map +1 -0
  82. package/dest/api/utils.js +12 -0
  83. package/dest/api/wallet.d.ts +4 -1
  84. package/dest/api/wallet.d.ts.map +1 -1
  85. package/dest/api/wallet.js +4 -1
  86. package/dest/authorization/call_authorization_request.d.ts +67 -0
  87. package/dest/authorization/call_authorization_request.d.ts.map +1 -0
  88. package/dest/authorization/call_authorization_request.js +49 -0
  89. package/dest/contract/base_contract_interaction.d.ts +16 -79
  90. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  91. package/dest/contract/base_contract_interaction.js +15 -128
  92. package/dest/contract/batch_call.d.ts +13 -14
  93. package/dest/contract/batch_call.d.ts.map +1 -1
  94. package/dest/contract/batch_call.js +60 -60
  95. package/dest/contract/checker.d.ts +1 -1
  96. package/dest/contract/checker.d.ts.map +1 -1
  97. package/dest/contract/checker.js +2 -2
  98. package/dest/contract/contract.d.ts +7 -6
  99. package/dest/contract/contract.d.ts.map +1 -1
  100. package/dest/contract/contract.js +7 -16
  101. package/dest/contract/contract_base.d.ts +3 -9
  102. package/dest/contract/contract_base.d.ts.map +1 -1
  103. package/dest/contract/contract_base.js +2 -2
  104. package/dest/contract/contract_function_interaction.d.ts +52 -44
  105. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  106. package/dest/contract/contract_function_interaction.js +75 -74
  107. package/dest/contract/deploy_method.d.ts +102 -57
  108. package/dest/contract/deploy_method.d.ts.map +1 -1
  109. package/dest/contract/deploy_method.js +122 -132
  110. package/dest/contract/deploy_sent_tx.d.ts +3 -5
  111. package/dest/contract/deploy_sent_tx.d.ts.map +1 -1
  112. package/dest/contract/deploy_sent_tx.js +10 -13
  113. package/dest/contract/get_gas_limits.d.ts +5 -6
  114. package/dest/contract/get_gas_limits.d.ts.map +1 -1
  115. package/dest/contract/get_gas_limits.js +9 -3
  116. package/dest/contract/interaction_options.d.ts +114 -0
  117. package/dest/contract/interaction_options.d.ts.map +1 -0
  118. package/dest/contract/interaction_options.js +52 -0
  119. package/dest/contract/protocol_contracts.d.ts +6 -6
  120. package/dest/contract/protocol_contracts.d.ts.map +1 -1
  121. package/dest/contract/protocol_contracts.js +7 -7
  122. package/dest/contract/sent_tx.d.ts +8 -18
  123. package/dest/contract/sent_tx.d.ts.map +1 -1
  124. package/dest/contract/sent_tx.js +30 -42
  125. package/dest/contract/unsafe_contract.d.ts +1 -1
  126. package/dest/contract/unsafe_contract.d.ts.map +1 -1
  127. package/dest/contract/wait_for_proven.d.ts +17 -0
  128. package/dest/contract/wait_for_proven.d.ts.map +1 -0
  129. package/dest/contract/wait_for_proven.js +17 -0
  130. package/dest/deployment/broadcast_function.d.ts +3 -3
  131. package/dest/deployment/broadcast_function.d.ts.map +1 -1
  132. package/dest/deployment/broadcast_function.js +27 -23
  133. package/dest/deployment/contract_deployer.d.ts +1 -1
  134. package/dest/deployment/contract_deployer.d.ts.map +1 -1
  135. package/dest/deployment/publish_class.d.ts +6 -0
  136. package/dest/deployment/publish_class.d.ts.map +1 -0
  137. package/dest/deployment/publish_class.js +17 -0
  138. package/dest/deployment/publish_instance.d.ts +10 -0
  139. package/dest/deployment/publish_instance.d.ts.map +1 -0
  140. package/dest/deployment/publish_instance.js +11 -0
  141. package/dest/{api/ethereum → ethereum}/portal_manager.d.ts +29 -25
  142. package/dest/ethereum/portal_manager.d.ts.map +1 -0
  143. package/dest/{api/ethereum → ethereum}/portal_manager.js +106 -73
  144. package/dest/fee/fee_juice_payment_method_with_claim.d.ts +16 -11
  145. package/dest/fee/fee_juice_payment_method_with_claim.d.ts.map +1 -1
  146. package/dest/fee/fee_juice_payment_method_with_claim.js +26 -16
  147. package/dest/fee/fee_payment_method.d.ts +11 -7
  148. package/dest/fee/fee_payment_method.d.ts.map +1 -1
  149. package/dest/fee/private_fee_payment_method.d.ts +25 -8
  150. package/dest/fee/private_fee_payment_method.d.ts.map +1 -1
  151. package/dest/fee/private_fee_payment_method.js +43 -21
  152. package/dest/fee/public_fee_payment_method.d.ts +26 -9
  153. package/dest/fee/public_fee_payment_method.d.ts.map +1 -1
  154. package/dest/fee/public_fee_payment_method.js +45 -23
  155. package/dest/fee/sponsored_fee_payment.d.ts +17 -0
  156. package/dest/fee/sponsored_fee_payment.d.ts.map +1 -0
  157. package/dest/fee/sponsored_fee_payment.js +34 -0
  158. package/dest/utils/abi_types.d.ts +0 -2
  159. package/dest/utils/abi_types.d.ts.map +1 -1
  160. package/dest/utils/authwit.d.ts +81 -24
  161. package/dest/utils/authwit.d.ts.map +1 -1
  162. package/dest/utils/authwit.js +226 -40
  163. package/dest/utils/cross_chain.d.ts +24 -0
  164. package/dest/utils/cross_chain.d.ts.map +1 -0
  165. package/dest/utils/cross_chain.js +30 -0
  166. package/dest/utils/fee_juice.d.ts +3 -2
  167. package/dest/utils/fee_juice.d.ts.map +1 -1
  168. package/dest/utils/fee_juice.js +3 -2
  169. package/dest/utils/field_compressed_string.d.ts.map +1 -1
  170. package/dest/utils/node.d.ts.map +1 -1
  171. package/dest/utils/node.js +1 -1
  172. package/dest/utils/pub_key.d.ts.map +1 -1
  173. package/dest/utils/pub_key.js +1 -2
  174. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +34 -0
  175. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -0
  176. package/dest/wallet/account_entrypoint_meta_payment_method.js +76 -0
  177. package/dest/wallet/account_manager.d.ts +69 -0
  178. package/dest/wallet/account_manager.d.ts.map +1 -0
  179. package/dest/wallet/account_manager.js +113 -0
  180. package/dest/wallet/base_wallet.d.ts +81 -63
  181. package/dest/wallet/base_wallet.d.ts.map +1 -1
  182. package/dest/wallet/base_wallet.js +221 -106
  183. package/dest/wallet/deploy_account_method.d.ts +52 -0
  184. package/dest/wallet/deploy_account_method.d.ts.map +1 -0
  185. package/dest/wallet/deploy_account_method.js +77 -0
  186. package/dest/wallet/index.d.ts +3 -16
  187. package/dest/wallet/index.d.ts.map +1 -1
  188. package/dest/wallet/index.js +3 -20
  189. package/dest/wallet/wallet.d.ts +2478 -0
  190. package/dest/wallet/wallet.d.ts.map +1 -0
  191. package/dest/wallet/wallet.js +202 -0
  192. package/package.json +40 -32
  193. package/src/account/account.ts +97 -0
  194. package/src/account/{contract.ts → account_contract.ts} +24 -13
  195. package/src/{wallet/account_wallet_with_private_key.ts → account/account_with_secret_key.ts} +6 -8
  196. package/src/account/index.ts +3 -7
  197. package/src/account/interface.ts +1 -12
  198. package/src/account/signerless_account.ts +46 -0
  199. package/src/api/abi.ts +26 -0
  200. package/src/api/account.ts +5 -9
  201. package/src/api/addresses.ts +1 -0
  202. package/src/api/authorization.ts +14 -0
  203. package/src/api/block.ts +2 -0
  204. package/src/{contract/index.ts → api/contract.ts} +37 -13
  205. package/src/api/crypto.ts +1 -0
  206. package/src/api/deployment.ts +4 -3
  207. package/src/api/ethereum.ts +10 -0
  208. package/src/api/events.ts +44 -0
  209. package/src/api/fee.ts +1 -1
  210. package/src/api/fee_testing.ts +1 -0
  211. package/src/api/keys.ts +8 -0
  212. package/src/api/log.ts +1 -0
  213. package/src/api/messaging.ts +2 -0
  214. package/src/api/node.ts +20 -0
  215. package/src/api/note.ts +1 -0
  216. package/src/api/protocol.ts +2 -0
  217. package/src/api/trees.ts +2 -0
  218. package/src/api/tx.ts +11 -0
  219. package/src/api/utils.ts +14 -0
  220. package/src/api/wallet.ts +33 -5
  221. package/src/authorization/call_authorization_request.ts +63 -0
  222. package/src/contract/base_contract_interaction.ts +24 -166
  223. package/src/contract/batch_call.ts +81 -49
  224. package/src/contract/checker.ts +8 -3
  225. package/src/contract/contract.ts +8 -17
  226. package/src/contract/contract_base.ts +4 -11
  227. package/src/contract/contract_function_interaction.ts +136 -106
  228. package/src/contract/deploy_method.ts +199 -129
  229. package/src/contract/deploy_sent_tx.ts +9 -15
  230. package/src/contract/get_gas_limits.ts +15 -8
  231. package/src/contract/interaction_options.ts +169 -0
  232. package/src/contract/protocol_contracts.ts +10 -10
  233. package/src/contract/sent_tx.ts +40 -51
  234. package/src/contract/unsafe_contract.ts +1 -1
  235. package/src/contract/wait_for_proven.ts +38 -0
  236. package/src/deployment/broadcast_function.ts +57 -57
  237. package/src/deployment/contract_deployer.ts +1 -1
  238. package/src/deployment/publish_class.ts +34 -0
  239. package/src/deployment/publish_instance.ts +26 -0
  240. package/src/{api/ethereum → ethereum}/portal_manager.ts +120 -74
  241. package/src/fee/fee_juice_payment_method_with_claim.ts +46 -33
  242. package/src/fee/fee_payment_method.ts +11 -7
  243. package/src/fee/private_fee_payment_method.ts +77 -57
  244. package/src/fee/public_fee_payment_method.ts +91 -67
  245. package/src/fee/sponsored_fee_payment.ts +44 -0
  246. package/src/utils/authwit.ts +255 -53
  247. package/src/utils/cross_chain.ts +53 -0
  248. package/src/utils/fee_juice.ts +4 -4
  249. package/src/utils/node.ts +1 -1
  250. package/src/utils/pub_key.ts +1 -2
  251. package/src/wallet/account_entrypoint_meta_payment_method.ts +105 -0
  252. package/src/wallet/account_manager.ts +154 -0
  253. package/src/wallet/base_wallet.ts +295 -143
  254. package/src/wallet/deploy_account_method.ts +125 -0
  255. package/src/wallet/index.ts +3 -33
  256. package/src/wallet/wallet.ts +362 -0
  257. package/dest/account/contract.d.ts.map +0 -1
  258. package/dest/account/wallet.d.ts +0 -11
  259. package/dest/account/wallet.d.ts.map +0 -1
  260. package/dest/account/wallet.js +0 -3
  261. package/dest/account_manager/deploy_account_method.d.ts +0 -15
  262. package/dest/account_manager/deploy_account_method.d.ts.map +0 -1
  263. package/dest/account_manager/deploy_account_method.js +0 -43
  264. package/dest/account_manager/deploy_account_sent_tx.d.ts +0 -30
  265. package/dest/account_manager/deploy_account_sent_tx.d.ts.map +0 -1
  266. package/dest/account_manager/deploy_account_sent_tx.js +0 -29
  267. package/dest/account_manager/index.d.ts +0 -108
  268. package/dest/account_manager/index.d.ts.map +0 -1
  269. package/dest/account_manager/index.js +0 -159
  270. package/dest/api/cheat_codes.d.ts +0 -26
  271. package/dest/api/cheat_codes.d.ts.map +0 -1
  272. package/dest/api/cheat_codes.js +0 -25
  273. package/dest/api/entrypoint.d.ts +0 -2
  274. package/dest/api/entrypoint.d.ts.map +0 -1
  275. package/dest/api/entrypoint.js +0 -1
  276. package/dest/api/ethereum/anvil_test_watcher.d.ts +0 -32
  277. package/dest/api/ethereum/anvil_test_watcher.d.ts.map +0 -1
  278. package/dest/api/ethereum/anvil_test_watcher.js +0 -133
  279. package/dest/api/ethereum/chain_monitor.d.ts +0 -25
  280. package/dest/api/ethereum/chain_monitor.d.ts.map +0 -1
  281. package/dest/api/ethereum/chain_monitor.js +0 -74
  282. package/dest/api/ethereum/cheat_codes.d.ts +0 -63
  283. package/dest/api/ethereum/cheat_codes.d.ts.map +0 -1
  284. package/dest/api/ethereum/cheat_codes.js +0 -162
  285. package/dest/api/ethereum/index.d.ts +0 -7
  286. package/dest/api/ethereum/index.d.ts.map +0 -1
  287. package/dest/api/ethereum/index.js +0 -6
  288. package/dest/api/ethereum/l1_contracts.d.ts +0 -3
  289. package/dest/api/ethereum/l1_contracts.d.ts.map +0 -1
  290. package/dest/api/ethereum/l1_contracts.js +0 -13
  291. package/dest/api/ethereum/portal_manager.d.ts.map +0 -1
  292. package/dest/api/interfaces/pxe.d.ts +0 -2
  293. package/dest/api/interfaces/pxe.d.ts.map +0 -1
  294. package/dest/api/interfaces/pxe.js +0 -1
  295. package/dest/api/log_id.d.ts +0 -2
  296. package/dest/api/log_id.d.ts.map +0 -1
  297. package/dest/api/log_id.js +0 -1
  298. package/dest/api/tx_hash.d.ts +0 -2
  299. package/dest/api/tx_hash.d.ts.map +0 -1
  300. package/dest/api/tx_hash.js +0 -1
  301. package/dest/contract/deploy_proven_tx.d.ts +0 -21
  302. package/dest/contract/deploy_proven_tx.d.ts.map +0 -1
  303. package/dest/contract/deploy_proven_tx.js +0 -19
  304. package/dest/contract/index.d.ts.map +0 -1
  305. package/dest/contract/proven_tx.d.ts +0 -17
  306. package/dest/contract/proven_tx.d.ts.map +0 -1
  307. package/dest/contract/proven_tx.js +0 -22
  308. package/dest/deployment/deploy_instance.d.ts +0 -10
  309. package/dest/deployment/deploy_instance.d.ts.map +0 -1
  310. package/dest/deployment/deploy_instance.js +0 -14
  311. package/dest/deployment/index.d.ts +0 -2
  312. package/dest/deployment/index.d.ts.map +0 -1
  313. package/dest/deployment/index.js +0 -1
  314. package/dest/deployment/register_class.d.ts +0 -6
  315. package/dest/deployment/register_class.d.ts.map +0 -1
  316. package/dest/deployment/register_class.js +0 -22
  317. package/dest/entrypoint/default_entrypoint.d.ts +0 -12
  318. package/dest/entrypoint/default_entrypoint.d.ts.map +0 -1
  319. package/dest/entrypoint/default_entrypoint.js +0 -28
  320. package/dest/entrypoint/default_multi_call_entrypoint.d.ts +0 -15
  321. package/dest/entrypoint/default_multi_call_entrypoint.d.ts.map +0 -1
  322. package/dest/entrypoint/default_multi_call_entrypoint.js +0 -130
  323. package/dest/entrypoint/entrypoint.d.ts +0 -35
  324. package/dest/entrypoint/entrypoint.d.ts.map +0 -1
  325. package/dest/entrypoint/entrypoint.js +0 -4
  326. package/dest/entrypoint/payload.d.ts +0 -128
  327. package/dest/entrypoint/payload.d.ts.map +0 -1
  328. package/dest/entrypoint/payload.js +0 -143
  329. package/dest/fee/fee_juice_payment_method.d.ts +0 -14
  330. package/dest/fee/fee_juice_payment_method.d.ts.map +0 -1
  331. package/dest/fee/fee_juice_payment_method.js +0 -20
  332. package/dest/index.d.ts +0 -66
  333. package/dest/index.d.ts.map +0 -1
  334. package/dest/index.js +0 -69
  335. package/dest/rpc_clients/index.d.ts +0 -3
  336. package/dest/rpc_clients/index.d.ts.map +0 -1
  337. package/dest/rpc_clients/index.js +0 -2
  338. package/dest/rpc_clients/node/index.d.ts +0 -12
  339. package/dest/rpc_clients/node/index.d.ts.map +0 -1
  340. package/dest/rpc_clients/node/index.js +0 -78
  341. package/dest/rpc_clients/pxe_client.d.ts +0 -10
  342. package/dest/rpc_clients/pxe_client.d.ts.map +0 -1
  343. package/dest/rpc_clients/pxe_client.js +0 -23
  344. package/dest/utils/aztec_cheatcodes.d.ts +0 -59
  345. package/dest/utils/aztec_cheatcodes.d.ts.map +0 -1
  346. package/dest/utils/aztec_cheatcodes.js +0 -62
  347. package/dest/utils/index.d.ts +0 -8
  348. package/dest/utils/index.d.ts.map +0 -1
  349. package/dest/utils/index.js +0 -6
  350. package/dest/utils/pxe.d.ts +0 -4
  351. package/dest/utils/pxe.d.ts.map +0 -1
  352. package/dest/utils/pxe.js +0 -14
  353. package/dest/wallet/account_wallet.d.ts +0 -76
  354. package/dest/wallet/account_wallet.d.ts.map +0 -1
  355. package/dest/wallet/account_wallet.js +0 -231
  356. package/dest/wallet/account_wallet_with_private_key.d.ts.map +0 -1
  357. package/dest/wallet/signerless_wallet.d.ts +0 -25
  358. package/dest/wallet/signerless_wallet.d.ts.map +0 -1
  359. package/dest/wallet/signerless_wallet.js +0 -36
  360. package/src/account/wallet.ts +0 -13
  361. package/src/account_manager/deploy_account_method.ts +0 -86
  362. package/src/account_manager/deploy_account_sent_tx.ts +0 -42
  363. package/src/account_manager/index.ts +0 -229
  364. package/src/api/cheat_codes.ts +0 -35
  365. package/src/api/entrypoint.ts +0 -1
  366. package/src/api/ethereum/anvil_test_watcher.ts +0 -158
  367. package/src/api/ethereum/chain_monitor.ts +0 -88
  368. package/src/api/ethereum/cheat_codes.ts +0 -184
  369. package/src/api/ethereum/index.ts +0 -19
  370. package/src/api/ethereum/l1_contracts.ts +0 -21
  371. package/src/api/interfaces/pxe.ts +0 -1
  372. package/src/api/log_id.ts +0 -1
  373. package/src/api/tx_hash.ts +0 -1
  374. package/src/contract/deploy_proven_tx.ts +0 -34
  375. package/src/contract/proven_tx.ts +0 -42
  376. package/src/deployment/deploy_instance.ts +0 -31
  377. package/src/deployment/index.ts +0 -1
  378. package/src/deployment/register_class.ts +0 -44
  379. package/src/entrypoint/default_entrypoint.ts +0 -39
  380. package/src/entrypoint/default_multi_call_entrypoint.ts +0 -93
  381. package/src/entrypoint/entrypoint.ts +0 -39
  382. package/src/entrypoint/payload.ts +0 -238
  383. package/src/fee/fee_juice_payment_method.ts +0 -26
  384. package/src/index.ts +0 -106
  385. package/src/rpc_clients/index.ts +0 -2
  386. package/src/rpc_clients/node/index.ts +0 -77
  387. package/src/rpc_clients/pxe_client.ts +0 -25
  388. package/src/utils/aztec_cheatcodes.ts +0 -77
  389. package/src/utils/index.ts +0 -21
  390. package/src/utils/pxe.ts +0 -17
  391. package/src/wallet/account_wallet.ts +0 -242
  392. package/src/wallet/signerless_wallet.ts +0 -52
@@ -0,0 +1,2478 @@
1
+ import type { ChainInfo } from '@aztec/entrypoints/interfaces';
2
+ import type { ExecutionPayload } from '@aztec/entrypoints/payload';
3
+ import type { Fr } from '@aztec/foundation/fields';
4
+ import { type ContractArtifact, type EventMetadataDefinition, FunctionType } from '@aztec/stdlib/abi';
5
+ import { AuthWitness } from '@aztec/stdlib/auth-witness';
6
+ import type { AztecAddress } from '@aztec/stdlib/aztec-address';
7
+ import { type ContractClassMetadata, type ContractInstanceWithAddress, type ContractInstantiationData, type ContractMetadata } from '@aztec/stdlib/contract';
8
+ import { Gas } from '@aztec/stdlib/gas';
9
+ import { PublicKeys } from '@aztec/stdlib/keys';
10
+ import { type ApiSchemaFor, type ZodFor } from '@aztec/stdlib/schemas';
11
+ import { Capsule, HashedValues, TxHash, TxProfileResult, TxReceipt, TxSimulationResult, UtilitySimulationResult } from '@aztec/stdlib/tx';
12
+ import { z } from 'zod';
13
+ import type { Contract } from '../contract/contract.js';
14
+ import type { FeeEstimationOptions, GasSettingsOption, ProfileInteractionOptions, SendInteractionOptions, SimulateInteractionOptions } from '../contract/interaction_options.js';
15
+ import type { CallIntent, IntentInnerHash } from '../utils/authwit.js';
16
+ /**
17
+ * A wrapper type that allows any item to be associated with an alias.
18
+ */
19
+ export type Aliased<T> = {
20
+ /**
21
+ * The alias
22
+ */
23
+ alias: string;
24
+ /**
25
+ * The item being aliased.
26
+ */
27
+ item: T;
28
+ };
29
+ /**
30
+ * A reduced representation of a Contract, only including its instance and artifact
31
+ */
32
+ export type ContractInstanceAndArtifact = Pick<Contract, 'artifact' | 'instance'>;
33
+ /**
34
+ * Options that can be provided to the wallet for configuration of the fee payment.
35
+ */
36
+ export type UserFeeOptions = {
37
+ /**
38
+ * Informs the wallet that the crafted tx already contains the necessary calls to pay for its fee
39
+ * and who is paying
40
+ */
41
+ embeddedPaymentMethodFeePayer?: AztecAddress;
42
+ } & GasSettingsOption;
43
+ /**
44
+ * Options for simulating interactions with the wallet. Overrides the fee settings of an interaction with
45
+ * a simplified version that only hints at the wallet wether the interaction contains a
46
+ * fee payment method or not
47
+ */
48
+ export type SimulateOptions = Omit<SimulateInteractionOptions, 'fee'> & {
49
+ /** The fee options */
50
+ fee?: UserFeeOptions & FeeEstimationOptions;
51
+ };
52
+ /**
53
+ * Options for profiling interactions with the wallet. Overrides the fee settings of an interaction with
54
+ * a simplified version that only hints at the wallet wether the interaction contains a
55
+ * fee payment method or not
56
+ */
57
+ export type ProfileOptions = Omit<ProfileInteractionOptions, 'fee'> & {
58
+ /** The fee options */
59
+ fee?: UserFeeOptions;
60
+ };
61
+ /**
62
+ * Options for sending/proving interactions with the wallet. Overrides the fee settings of an interaction with
63
+ * a simplified version that only hints at the wallet wether the interaction contains a
64
+ * fee payment method or not
65
+ */
66
+ export type SendOptions = Omit<SendInteractionOptions, 'fee'> & {
67
+ /** The fee options */
68
+ fee?: UserFeeOptions;
69
+ };
70
+ /**
71
+ * Helper type that represents all methods that can be batched.
72
+ */
73
+ export type BatchableMethods = Pick<Wallet, 'registerContract' | 'sendTx' | 'registerSender' | 'simulateUtility'>;
74
+ /**
75
+ * From the batchable methods, we create a type that represents a method call with its name and arguments.
76
+ * This is what the wallet will accept as arguments to the `batch` method.
77
+ */
78
+ export type BatchedMethod<T extends keyof BatchableMethods> = {
79
+ /** The method name */
80
+ name: T;
81
+ /** The method arguments */
82
+ args: Parameters<BatchableMethods[T]>;
83
+ };
84
+ /**
85
+ * Helper type to extract the return type of a batched method
86
+ */
87
+ export type BatchedMethodResult<T> = T extends BatchedMethod<infer K> ? Awaited<ReturnType<BatchableMethods[K]>> : never;
88
+ /**
89
+ * Wrapper type for batch results that includes the method name for discriminated union deserialization.
90
+ * Each result is wrapped as \{ name: 'methodName', result: ActualResult \} to allow proper deserialization
91
+ * when AztecAddress and TxHash would otherwise be ambiguous (both are hex strings).
92
+ */
93
+ export type BatchedMethodResultWrapper<T extends BatchedMethod<keyof BatchableMethods>> = {
94
+ /** The method name */
95
+ name: T['name'];
96
+ /** The method result */
97
+ result: BatchedMethodResult<T>;
98
+ };
99
+ /**
100
+ * Maps a tuple of BatchedMethod to a tuple of their wrapped return types
101
+ */
102
+ export type BatchResults<T extends readonly BatchedMethod<keyof BatchableMethods>[]> = {
103
+ [K in keyof T]: BatchedMethodResultWrapper<T[K]>;
104
+ };
105
+ /**
106
+ * The wallet interface.
107
+ */
108
+ export type Wallet = {
109
+ getContractClassMetadata(id: Fr, includeArtifact?: boolean): Promise<ContractClassMetadata>;
110
+ getContractMetadata(address: AztecAddress): Promise<ContractMetadata>;
111
+ getPrivateEvents<T>(contractAddress: AztecAddress, eventMetadata: EventMetadataDefinition, from: number, numBlocks: number, recipients: AztecAddress[]): Promise<T[]>;
112
+ getChainInfo(): Promise<ChainInfo>;
113
+ getTxReceipt(txHash: TxHash): Promise<TxReceipt>;
114
+ registerSender(address: AztecAddress, alias?: string): Promise<AztecAddress>;
115
+ getAddressBook(): Promise<Aliased<AztecAddress>[]>;
116
+ getAccounts(): Promise<Aliased<AztecAddress>[]>;
117
+ registerContract(instanceData: AztecAddress | ContractInstanceWithAddress | ContractInstantiationData | ContractInstanceAndArtifact): Promise<ContractInstanceWithAddress>;
118
+ registerContract(instanceData: AztecAddress | ContractInstanceWithAddress | ContractInstantiationData | ContractInstanceAndArtifact, artifact: ContractArtifact): Promise<ContractInstanceWithAddress>;
119
+ registerContract(instanceData: AztecAddress | ContractInstanceWithAddress | ContractInstantiationData | ContractInstanceAndArtifact, artifact: ContractArtifact | undefined, secretKey: Fr | undefined): Promise<ContractInstanceWithAddress>;
120
+ simulateTx(exec: ExecutionPayload, opts: SimulateOptions): Promise<TxSimulationResult>;
121
+ simulateUtility(functionName: string, args: any[], to: AztecAddress, authwits?: AuthWitness[]): Promise<UtilitySimulationResult>;
122
+ profileTx(exec: ExecutionPayload, opts: ProfileOptions): Promise<TxProfileResult>;
123
+ sendTx(exec: ExecutionPayload, opts: SendOptions): Promise<TxHash>;
124
+ createAuthWit(from: AztecAddress, messageHashOrIntent: Fr | Buffer<ArrayBuffer> | IntentInnerHash | CallIntent): Promise<AuthWitness>;
125
+ batch<const T extends readonly BatchedMethod<keyof BatchableMethods>[]>(methods: T): Promise<BatchResults<T>>;
126
+ };
127
+ export declare const ContractInstantiationDataSchema: z.ZodObject<{
128
+ constructorArtifact: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodObject<{
129
+ name: z.ZodString;
130
+ functionType: z.ZodNativeEnum<typeof FunctionType>;
131
+ isInternal: z.ZodBoolean;
132
+ isStatic: z.ZodBoolean;
133
+ isInitializer: z.ZodBoolean;
134
+ parameters: z.ZodArray<z.ZodObject<{
135
+ name: z.ZodString;
136
+ type: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
137
+ visibility: z.ZodEnum<["public", "private", "databus"]>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: import("@aztec/stdlib/abi").AbiType;
140
+ name: string;
141
+ visibility: "public" | "private" | "databus";
142
+ }, {
143
+ type: import("@aztec/stdlib/abi").AbiType;
144
+ name: string;
145
+ visibility: "public" | "private" | "databus";
146
+ }>, "many">;
147
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
148
+ errorTypes: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
149
+ error_kind: z.ZodLiteral<"string">;
150
+ string: z.ZodString;
151
+ }, "strip", z.ZodTypeAny, {
152
+ string: string;
153
+ error_kind: "string";
154
+ }, {
155
+ string: string;
156
+ error_kind: "string";
157
+ }>, z.ZodObject<{
158
+ error_kind: z.ZodLiteral<"fmtstring">;
159
+ length: z.ZodNumber;
160
+ item_types: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
161
+ }, "strip", z.ZodTypeAny, {
162
+ length: number;
163
+ error_kind: "fmtstring";
164
+ item_types: import("@aztec/stdlib/abi").AbiType[];
165
+ }, {
166
+ length: number;
167
+ error_kind: "fmtstring";
168
+ item_types: import("@aztec/stdlib/abi").AbiType[];
169
+ }>, z.ZodIntersection<z.ZodObject<{
170
+ error_kind: z.ZodLiteral<"custom">;
171
+ }, "strip", z.ZodTypeAny, {
172
+ error_kind: "custom";
173
+ }, {
174
+ error_kind: "custom";
175
+ }>, z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>>]>>>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ name: string;
178
+ parameters: {
179
+ type: import("@aztec/stdlib/abi").AbiType;
180
+ name: string;
181
+ visibility: "public" | "private" | "databus";
182
+ }[];
183
+ functionType: FunctionType;
184
+ isInternal: boolean;
185
+ isStatic: boolean;
186
+ isInitializer: boolean;
187
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
188
+ errorTypes: Record<string, {
189
+ string: string;
190
+ error_kind: "string";
191
+ } | {
192
+ length: number;
193
+ error_kind: "fmtstring";
194
+ item_types: import("@aztec/stdlib/abi").AbiType[];
195
+ } | ({
196
+ error_kind: "custom";
197
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
198
+ }, {
199
+ name: string;
200
+ parameters: {
201
+ type: import("@aztec/stdlib/abi").AbiType;
202
+ name: string;
203
+ visibility: "public" | "private" | "databus";
204
+ }[];
205
+ functionType: FunctionType;
206
+ isInternal: boolean;
207
+ isStatic: boolean;
208
+ isInitializer: boolean;
209
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
210
+ errorTypes: Record<string, {
211
+ string: string;
212
+ error_kind: "string";
213
+ } | {
214
+ length: number;
215
+ error_kind: "fmtstring";
216
+ item_types: import("@aztec/stdlib/abi").AbiType[];
217
+ } | ({
218
+ error_kind: "custom";
219
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
220
+ }>, z.ZodString]>>;
221
+ constructorArgs: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodAny, "many">>;
222
+ skipArgsDecoding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
223
+ salt: ZodFor<Fr>;
224
+ publicKeys: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
225
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
226
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
227
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
228
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
231
+ masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
232
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
233
+ masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
234
+ }, {
235
+ masterNullifierPublicKey: string;
236
+ masterIncomingViewingPublicKey: string;
237
+ masterOutgoingViewingPublicKey: string;
238
+ masterTaggingPublicKey: string;
239
+ }>, PublicKeys, {
240
+ masterNullifierPublicKey: string;
241
+ masterIncomingViewingPublicKey: string;
242
+ masterOutgoingViewingPublicKey: string;
243
+ masterTaggingPublicKey: string;
244
+ }>>;
245
+ deployer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ salt: Fr;
248
+ deployer?: AztecAddress | undefined;
249
+ publicKeys?: PublicKeys | undefined;
250
+ constructorArgs?: any[] | undefined;
251
+ constructorArtifact?: string | {
252
+ name: string;
253
+ parameters: {
254
+ type: import("@aztec/stdlib/abi").AbiType;
255
+ name: string;
256
+ visibility: "public" | "private" | "databus";
257
+ }[];
258
+ functionType: FunctionType;
259
+ isInternal: boolean;
260
+ isStatic: boolean;
261
+ isInitializer: boolean;
262
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
263
+ errorTypes: Record<string, {
264
+ string: string;
265
+ error_kind: "string";
266
+ } | {
267
+ length: number;
268
+ error_kind: "fmtstring";
269
+ item_types: import("@aztec/stdlib/abi").AbiType[];
270
+ } | ({
271
+ error_kind: "custom";
272
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
273
+ } | undefined;
274
+ skipArgsDecoding?: boolean | undefined;
275
+ }, {
276
+ salt?: any;
277
+ deployer?: any;
278
+ publicKeys?: {
279
+ masterNullifierPublicKey: string;
280
+ masterIncomingViewingPublicKey: string;
281
+ masterOutgoingViewingPublicKey: string;
282
+ masterTaggingPublicKey: string;
283
+ } | undefined;
284
+ constructorArgs?: any[] | undefined;
285
+ constructorArtifact?: string | {
286
+ name: string;
287
+ parameters: {
288
+ type: import("@aztec/stdlib/abi").AbiType;
289
+ name: string;
290
+ visibility: "public" | "private" | "databus";
291
+ }[];
292
+ functionType: FunctionType;
293
+ isInternal: boolean;
294
+ isStatic: boolean;
295
+ isInitializer: boolean;
296
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
297
+ errorTypes: Record<string, {
298
+ string: string;
299
+ error_kind: "string";
300
+ } | {
301
+ length: number;
302
+ error_kind: "fmtstring";
303
+ item_types: import("@aztec/stdlib/abi").AbiType[];
304
+ } | ({
305
+ error_kind: "custom";
306
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
307
+ } | undefined;
308
+ skipArgsDecoding?: boolean | undefined;
309
+ }>;
310
+ export declare const FunctionCallSchema: z.ZodObject<{
311
+ name: z.ZodString;
312
+ to: ZodFor<AztecAddress>;
313
+ selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
314
+ type: z.ZodNativeEnum<typeof FunctionType>;
315
+ isStatic: z.ZodBoolean;
316
+ hideMsgSender: z.ZodBoolean;
317
+ args: z.ZodArray<ZodFor<Fr>, "many">;
318
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
319
+ }, "strip", z.ZodTypeAny, {
320
+ name: string;
321
+ args: Fr[];
322
+ type: FunctionType;
323
+ to: AztecAddress;
324
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
325
+ isStatic: boolean;
326
+ hideMsgSender: boolean;
327
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
328
+ }, {
329
+ name: string;
330
+ args: any[];
331
+ type: FunctionType;
332
+ isStatic: boolean;
333
+ hideMsgSender: boolean;
334
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
335
+ to?: any;
336
+ selector?: any;
337
+ }>;
338
+ export declare const ExecutionPayloadSchema: z.ZodObject<{
339
+ calls: z.ZodArray<z.ZodObject<{
340
+ name: z.ZodString;
341
+ to: ZodFor<AztecAddress>;
342
+ selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
343
+ type: z.ZodNativeEnum<typeof FunctionType>;
344
+ isStatic: z.ZodBoolean;
345
+ hideMsgSender: z.ZodBoolean;
346
+ args: z.ZodArray<ZodFor<Fr>, "many">;
347
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
348
+ }, "strip", z.ZodTypeAny, {
349
+ name: string;
350
+ args: Fr[];
351
+ type: FunctionType;
352
+ to: AztecAddress;
353
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
354
+ isStatic: boolean;
355
+ hideMsgSender: boolean;
356
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
357
+ }, {
358
+ name: string;
359
+ args: any[];
360
+ type: FunctionType;
361
+ isStatic: boolean;
362
+ hideMsgSender: boolean;
363
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
364
+ to?: any;
365
+ selector?: any;
366
+ }>, "many">;
367
+ authWitnesses: z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">;
368
+ capsules: z.ZodArray<z.ZodType<Capsule, any, string>, "many">;
369
+ extraHashedArgs: z.ZodArray<ZodFor<HashedValues>, "many">;
370
+ }, "strip", z.ZodTypeAny, {
371
+ authWitnesses: AuthWitness[];
372
+ capsules: Capsule[];
373
+ calls: {
374
+ name: string;
375
+ args: Fr[];
376
+ type: FunctionType;
377
+ to: AztecAddress;
378
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
379
+ isStatic: boolean;
380
+ hideMsgSender: boolean;
381
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
382
+ }[];
383
+ extraHashedArgs: HashedValues[];
384
+ }, {
385
+ authWitnesses: string[];
386
+ capsules: string[];
387
+ calls: {
388
+ name: string;
389
+ args: any[];
390
+ type: FunctionType;
391
+ isStatic: boolean;
392
+ hideMsgSender: boolean;
393
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
394
+ to?: any;
395
+ selector?: any;
396
+ }[];
397
+ extraHashedArgs: any[];
398
+ }>;
399
+ export declare const UserFeeOptionsSchema: z.ZodObject<{
400
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
401
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
402
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
403
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ daGas: number;
406
+ l2Gas: number;
407
+ }, {
408
+ daGas: string | number | bigint;
409
+ l2Gas: string | number | bigint;
410
+ }>, Gas, {
411
+ daGas: string | number | bigint;
412
+ l2Gas: string | number | bigint;
413
+ }>>;
414
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
415
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
416
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ daGas: number;
419
+ l2Gas: number;
420
+ }, {
421
+ daGas: string | number | bigint;
422
+ l2Gas: string | number | bigint;
423
+ }>, Gas, {
424
+ daGas: string | number | bigint;
425
+ l2Gas: string | number | bigint;
426
+ }>>;
427
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
428
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
429
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ feePerDaGas: bigint;
432
+ feePerL2Gas: bigint;
433
+ }, {
434
+ feePerDaGas: string | number | bigint;
435
+ feePerL2Gas: string | number | bigint;
436
+ }>>;
437
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
438
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
439
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ feePerDaGas: bigint;
442
+ feePerL2Gas: bigint;
443
+ }, {
444
+ feePerDaGas: string | number | bigint;
445
+ feePerL2Gas: string | number | bigint;
446
+ }>>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ gasLimits?: Gas | undefined;
449
+ teardownGasLimits?: Gas | undefined;
450
+ maxFeePerGas?: {
451
+ feePerDaGas: bigint;
452
+ feePerL2Gas: bigint;
453
+ } | undefined;
454
+ maxPriorityFeePerGas?: {
455
+ feePerDaGas: bigint;
456
+ feePerL2Gas: bigint;
457
+ } | undefined;
458
+ }, {
459
+ gasLimits?: {
460
+ daGas: string | number | bigint;
461
+ l2Gas: string | number | bigint;
462
+ } | undefined;
463
+ teardownGasLimits?: {
464
+ daGas: string | number | bigint;
465
+ l2Gas: string | number | bigint;
466
+ } | undefined;
467
+ maxFeePerGas?: {
468
+ feePerDaGas: string | number | bigint;
469
+ feePerL2Gas: string | number | bigint;
470
+ } | undefined;
471
+ maxPriorityFeePerGas?: {
472
+ feePerDaGas: string | number | bigint;
473
+ feePerL2Gas: string | number | bigint;
474
+ } | undefined;
475
+ }>>;
476
+ embeddedPaymentMethodFeePayer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
477
+ }, "strip", z.ZodTypeAny, {
478
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
479
+ gasSettings?: {
480
+ gasLimits?: Gas | undefined;
481
+ teardownGasLimits?: Gas | undefined;
482
+ maxFeePerGas?: {
483
+ feePerDaGas: bigint;
484
+ feePerL2Gas: bigint;
485
+ } | undefined;
486
+ maxPriorityFeePerGas?: {
487
+ feePerDaGas: bigint;
488
+ feePerL2Gas: bigint;
489
+ } | undefined;
490
+ } | undefined;
491
+ }, {
492
+ embeddedPaymentMethodFeePayer?: any;
493
+ gasSettings?: {
494
+ gasLimits?: {
495
+ daGas: string | number | bigint;
496
+ l2Gas: string | number | bigint;
497
+ } | undefined;
498
+ teardownGasLimits?: {
499
+ daGas: string | number | bigint;
500
+ l2Gas: string | number | bigint;
501
+ } | undefined;
502
+ maxFeePerGas?: {
503
+ feePerDaGas: string | number | bigint;
504
+ feePerL2Gas: string | number | bigint;
505
+ } | undefined;
506
+ maxPriorityFeePerGas?: {
507
+ feePerDaGas: string | number | bigint;
508
+ feePerL2Gas: string | number | bigint;
509
+ } | undefined;
510
+ } | undefined;
511
+ }>;
512
+ export declare const WalletSimulationFeeOptionSchema: z.ZodObject<{
513
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
514
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
515
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
516
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ daGas: number;
519
+ l2Gas: number;
520
+ }, {
521
+ daGas: string | number | bigint;
522
+ l2Gas: string | number | bigint;
523
+ }>, Gas, {
524
+ daGas: string | number | bigint;
525
+ l2Gas: string | number | bigint;
526
+ }>>;
527
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
528
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
529
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ daGas: number;
532
+ l2Gas: number;
533
+ }, {
534
+ daGas: string | number | bigint;
535
+ l2Gas: string | number | bigint;
536
+ }>, Gas, {
537
+ daGas: string | number | bigint;
538
+ l2Gas: string | number | bigint;
539
+ }>>;
540
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
541
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
542
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ feePerDaGas: bigint;
545
+ feePerL2Gas: bigint;
546
+ }, {
547
+ feePerDaGas: string | number | bigint;
548
+ feePerL2Gas: string | number | bigint;
549
+ }>>;
550
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
551
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
552
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
553
+ }, "strip", z.ZodTypeAny, {
554
+ feePerDaGas: bigint;
555
+ feePerL2Gas: bigint;
556
+ }, {
557
+ feePerDaGas: string | number | bigint;
558
+ feePerL2Gas: string | number | bigint;
559
+ }>>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ gasLimits?: Gas | undefined;
562
+ teardownGasLimits?: Gas | undefined;
563
+ maxFeePerGas?: {
564
+ feePerDaGas: bigint;
565
+ feePerL2Gas: bigint;
566
+ } | undefined;
567
+ maxPriorityFeePerGas?: {
568
+ feePerDaGas: bigint;
569
+ feePerL2Gas: bigint;
570
+ } | undefined;
571
+ }, {
572
+ gasLimits?: {
573
+ daGas: string | number | bigint;
574
+ l2Gas: string | number | bigint;
575
+ } | undefined;
576
+ teardownGasLimits?: {
577
+ daGas: string | number | bigint;
578
+ l2Gas: string | number | bigint;
579
+ } | undefined;
580
+ maxFeePerGas?: {
581
+ feePerDaGas: string | number | bigint;
582
+ feePerL2Gas: string | number | bigint;
583
+ } | undefined;
584
+ maxPriorityFeePerGas?: {
585
+ feePerDaGas: string | number | bigint;
586
+ feePerL2Gas: string | number | bigint;
587
+ } | undefined;
588
+ }>>;
589
+ embeddedPaymentMethodFeePayer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
590
+ } & {
591
+ estimatedGasPadding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
592
+ estimateGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
595
+ gasSettings?: {
596
+ gasLimits?: Gas | undefined;
597
+ teardownGasLimits?: Gas | undefined;
598
+ maxFeePerGas?: {
599
+ feePerDaGas: bigint;
600
+ feePerL2Gas: bigint;
601
+ } | undefined;
602
+ maxPriorityFeePerGas?: {
603
+ feePerDaGas: bigint;
604
+ feePerL2Gas: bigint;
605
+ } | undefined;
606
+ } | undefined;
607
+ estimateGas?: boolean | undefined;
608
+ estimatedGasPadding?: number | undefined;
609
+ }, {
610
+ embeddedPaymentMethodFeePayer?: any;
611
+ gasSettings?: {
612
+ gasLimits?: {
613
+ daGas: string | number | bigint;
614
+ l2Gas: string | number | bigint;
615
+ } | undefined;
616
+ teardownGasLimits?: {
617
+ daGas: string | number | bigint;
618
+ l2Gas: string | number | bigint;
619
+ } | undefined;
620
+ maxFeePerGas?: {
621
+ feePerDaGas: string | number | bigint;
622
+ feePerL2Gas: string | number | bigint;
623
+ } | undefined;
624
+ maxPriorityFeePerGas?: {
625
+ feePerDaGas: string | number | bigint;
626
+ feePerL2Gas: string | number | bigint;
627
+ } | undefined;
628
+ } | undefined;
629
+ estimateGas?: boolean | undefined;
630
+ estimatedGasPadding?: number | undefined;
631
+ }>;
632
+ export declare const SendOptionsSchema: z.ZodObject<{
633
+ from: ZodFor<AztecAddress>;
634
+ authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
635
+ capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
636
+ fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
637
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
638
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
639
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
640
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
641
+ }, "strip", z.ZodTypeAny, {
642
+ daGas: number;
643
+ l2Gas: number;
644
+ }, {
645
+ daGas: string | number | bigint;
646
+ l2Gas: string | number | bigint;
647
+ }>, Gas, {
648
+ daGas: string | number | bigint;
649
+ l2Gas: string | number | bigint;
650
+ }>>;
651
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
652
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
653
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ daGas: number;
656
+ l2Gas: number;
657
+ }, {
658
+ daGas: string | number | bigint;
659
+ l2Gas: string | number | bigint;
660
+ }>, Gas, {
661
+ daGas: string | number | bigint;
662
+ l2Gas: string | number | bigint;
663
+ }>>;
664
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
665
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
666
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ feePerDaGas: bigint;
669
+ feePerL2Gas: bigint;
670
+ }, {
671
+ feePerDaGas: string | number | bigint;
672
+ feePerL2Gas: string | number | bigint;
673
+ }>>;
674
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
675
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
676
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ feePerDaGas: bigint;
679
+ feePerL2Gas: bigint;
680
+ }, {
681
+ feePerDaGas: string | number | bigint;
682
+ feePerL2Gas: string | number | bigint;
683
+ }>>;
684
+ }, "strip", z.ZodTypeAny, {
685
+ gasLimits?: Gas | undefined;
686
+ teardownGasLimits?: Gas | undefined;
687
+ maxFeePerGas?: {
688
+ feePerDaGas: bigint;
689
+ feePerL2Gas: bigint;
690
+ } | undefined;
691
+ maxPriorityFeePerGas?: {
692
+ feePerDaGas: bigint;
693
+ feePerL2Gas: bigint;
694
+ } | undefined;
695
+ }, {
696
+ gasLimits?: {
697
+ daGas: string | number | bigint;
698
+ l2Gas: string | number | bigint;
699
+ } | undefined;
700
+ teardownGasLimits?: {
701
+ daGas: string | number | bigint;
702
+ l2Gas: string | number | bigint;
703
+ } | undefined;
704
+ maxFeePerGas?: {
705
+ feePerDaGas: string | number | bigint;
706
+ feePerL2Gas: string | number | bigint;
707
+ } | undefined;
708
+ maxPriorityFeePerGas?: {
709
+ feePerDaGas: string | number | bigint;
710
+ feePerL2Gas: string | number | bigint;
711
+ } | undefined;
712
+ }>>;
713
+ embeddedPaymentMethodFeePayer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
716
+ gasSettings?: {
717
+ gasLimits?: Gas | undefined;
718
+ teardownGasLimits?: Gas | undefined;
719
+ maxFeePerGas?: {
720
+ feePerDaGas: bigint;
721
+ feePerL2Gas: bigint;
722
+ } | undefined;
723
+ maxPriorityFeePerGas?: {
724
+ feePerDaGas: bigint;
725
+ feePerL2Gas: bigint;
726
+ } | undefined;
727
+ } | undefined;
728
+ }, {
729
+ embeddedPaymentMethodFeePayer?: any;
730
+ gasSettings?: {
731
+ gasLimits?: {
732
+ daGas: string | number | bigint;
733
+ l2Gas: string | number | bigint;
734
+ } | undefined;
735
+ teardownGasLimits?: {
736
+ daGas: string | number | bigint;
737
+ l2Gas: string | number | bigint;
738
+ } | undefined;
739
+ maxFeePerGas?: {
740
+ feePerDaGas: string | number | bigint;
741
+ feePerL2Gas: string | number | bigint;
742
+ } | undefined;
743
+ maxPriorityFeePerGas?: {
744
+ feePerDaGas: string | number | bigint;
745
+ feePerL2Gas: string | number | bigint;
746
+ } | undefined;
747
+ } | undefined;
748
+ }>>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ from: AztecAddress;
751
+ fee?: {
752
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
753
+ gasSettings?: {
754
+ gasLimits?: Gas | undefined;
755
+ teardownGasLimits?: Gas | undefined;
756
+ maxFeePerGas?: {
757
+ feePerDaGas: bigint;
758
+ feePerL2Gas: bigint;
759
+ } | undefined;
760
+ maxPriorityFeePerGas?: {
761
+ feePerDaGas: bigint;
762
+ feePerL2Gas: bigint;
763
+ } | undefined;
764
+ } | undefined;
765
+ } | undefined;
766
+ authWitnesses?: AuthWitness[] | undefined;
767
+ capsules?: Capsule[] | undefined;
768
+ }, {
769
+ fee?: {
770
+ embeddedPaymentMethodFeePayer?: any;
771
+ gasSettings?: {
772
+ gasLimits?: {
773
+ daGas: string | number | bigint;
774
+ l2Gas: string | number | bigint;
775
+ } | undefined;
776
+ teardownGasLimits?: {
777
+ daGas: string | number | bigint;
778
+ l2Gas: string | number | bigint;
779
+ } | undefined;
780
+ maxFeePerGas?: {
781
+ feePerDaGas: string | number | bigint;
782
+ feePerL2Gas: string | number | bigint;
783
+ } | undefined;
784
+ maxPriorityFeePerGas?: {
785
+ feePerDaGas: string | number | bigint;
786
+ feePerL2Gas: string | number | bigint;
787
+ } | undefined;
788
+ } | undefined;
789
+ } | undefined;
790
+ authWitnesses?: string[] | undefined;
791
+ capsules?: string[] | undefined;
792
+ from?: any;
793
+ }>;
794
+ export declare const SimulateOptionsSchema: z.ZodObject<{
795
+ from: ZodFor<AztecAddress>;
796
+ authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
797
+ capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
798
+ fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
799
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
800
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
801
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
802
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
803
+ }, "strip", z.ZodTypeAny, {
804
+ daGas: number;
805
+ l2Gas: number;
806
+ }, {
807
+ daGas: string | number | bigint;
808
+ l2Gas: string | number | bigint;
809
+ }>, Gas, {
810
+ daGas: string | number | bigint;
811
+ l2Gas: string | number | bigint;
812
+ }>>;
813
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
814
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
815
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
816
+ }, "strip", z.ZodTypeAny, {
817
+ daGas: number;
818
+ l2Gas: number;
819
+ }, {
820
+ daGas: string | number | bigint;
821
+ l2Gas: string | number | bigint;
822
+ }>, Gas, {
823
+ daGas: string | number | bigint;
824
+ l2Gas: string | number | bigint;
825
+ }>>;
826
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
827
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
828
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
829
+ }, "strip", z.ZodTypeAny, {
830
+ feePerDaGas: bigint;
831
+ feePerL2Gas: bigint;
832
+ }, {
833
+ feePerDaGas: string | number | bigint;
834
+ feePerL2Gas: string | number | bigint;
835
+ }>>;
836
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
837
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
838
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ feePerDaGas: bigint;
841
+ feePerL2Gas: bigint;
842
+ }, {
843
+ feePerDaGas: string | number | bigint;
844
+ feePerL2Gas: string | number | bigint;
845
+ }>>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ gasLimits?: Gas | undefined;
848
+ teardownGasLimits?: Gas | undefined;
849
+ maxFeePerGas?: {
850
+ feePerDaGas: bigint;
851
+ feePerL2Gas: bigint;
852
+ } | undefined;
853
+ maxPriorityFeePerGas?: {
854
+ feePerDaGas: bigint;
855
+ feePerL2Gas: bigint;
856
+ } | undefined;
857
+ }, {
858
+ gasLimits?: {
859
+ daGas: string | number | bigint;
860
+ l2Gas: string | number | bigint;
861
+ } | undefined;
862
+ teardownGasLimits?: {
863
+ daGas: string | number | bigint;
864
+ l2Gas: string | number | bigint;
865
+ } | undefined;
866
+ maxFeePerGas?: {
867
+ feePerDaGas: string | number | bigint;
868
+ feePerL2Gas: string | number | bigint;
869
+ } | undefined;
870
+ maxPriorityFeePerGas?: {
871
+ feePerDaGas: string | number | bigint;
872
+ feePerL2Gas: string | number | bigint;
873
+ } | undefined;
874
+ }>>;
875
+ embeddedPaymentMethodFeePayer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
876
+ } & {
877
+ estimatedGasPadding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
878
+ estimateGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
881
+ gasSettings?: {
882
+ gasLimits?: Gas | undefined;
883
+ teardownGasLimits?: Gas | undefined;
884
+ maxFeePerGas?: {
885
+ feePerDaGas: bigint;
886
+ feePerL2Gas: bigint;
887
+ } | undefined;
888
+ maxPriorityFeePerGas?: {
889
+ feePerDaGas: bigint;
890
+ feePerL2Gas: bigint;
891
+ } | undefined;
892
+ } | undefined;
893
+ estimateGas?: boolean | undefined;
894
+ estimatedGasPadding?: number | undefined;
895
+ }, {
896
+ embeddedPaymentMethodFeePayer?: any;
897
+ gasSettings?: {
898
+ gasLimits?: {
899
+ daGas: string | number | bigint;
900
+ l2Gas: string | number | bigint;
901
+ } | undefined;
902
+ teardownGasLimits?: {
903
+ daGas: string | number | bigint;
904
+ l2Gas: string | number | bigint;
905
+ } | undefined;
906
+ maxFeePerGas?: {
907
+ feePerDaGas: string | number | bigint;
908
+ feePerL2Gas: string | number | bigint;
909
+ } | undefined;
910
+ maxPriorityFeePerGas?: {
911
+ feePerDaGas: string | number | bigint;
912
+ feePerL2Gas: string | number | bigint;
913
+ } | undefined;
914
+ } | undefined;
915
+ estimateGas?: boolean | undefined;
916
+ estimatedGasPadding?: number | undefined;
917
+ }>>;
918
+ skipTxValidation: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
919
+ skipFeeEnforcement: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
920
+ includeMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ from: AztecAddress;
923
+ fee?: {
924
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
925
+ gasSettings?: {
926
+ gasLimits?: Gas | undefined;
927
+ teardownGasLimits?: Gas | undefined;
928
+ maxFeePerGas?: {
929
+ feePerDaGas: bigint;
930
+ feePerL2Gas: bigint;
931
+ } | undefined;
932
+ maxPriorityFeePerGas?: {
933
+ feePerDaGas: bigint;
934
+ feePerL2Gas: bigint;
935
+ } | undefined;
936
+ } | undefined;
937
+ estimateGas?: boolean | undefined;
938
+ estimatedGasPadding?: number | undefined;
939
+ } | undefined;
940
+ authWitnesses?: AuthWitness[] | undefined;
941
+ capsules?: Capsule[] | undefined;
942
+ skipTxValidation?: boolean | undefined;
943
+ skipFeeEnforcement?: boolean | undefined;
944
+ includeMetadata?: boolean | undefined;
945
+ }, {
946
+ fee?: {
947
+ embeddedPaymentMethodFeePayer?: any;
948
+ gasSettings?: {
949
+ gasLimits?: {
950
+ daGas: string | number | bigint;
951
+ l2Gas: string | number | bigint;
952
+ } | undefined;
953
+ teardownGasLimits?: {
954
+ daGas: string | number | bigint;
955
+ l2Gas: string | number | bigint;
956
+ } | undefined;
957
+ maxFeePerGas?: {
958
+ feePerDaGas: string | number | bigint;
959
+ feePerL2Gas: string | number | bigint;
960
+ } | undefined;
961
+ maxPriorityFeePerGas?: {
962
+ feePerDaGas: string | number | bigint;
963
+ feePerL2Gas: string | number | bigint;
964
+ } | undefined;
965
+ } | undefined;
966
+ estimateGas?: boolean | undefined;
967
+ estimatedGasPadding?: number | undefined;
968
+ } | undefined;
969
+ authWitnesses?: string[] | undefined;
970
+ capsules?: string[] | undefined;
971
+ from?: any;
972
+ skipTxValidation?: boolean | undefined;
973
+ skipFeeEnforcement?: boolean | undefined;
974
+ includeMetadata?: boolean | undefined;
975
+ }>;
976
+ export declare const ProfileOptionsSchema: z.ZodObject<{
977
+ from: ZodFor<AztecAddress>;
978
+ authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
979
+ capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
980
+ fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
981
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
982
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
983
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
984
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ daGas: number;
987
+ l2Gas: number;
988
+ }, {
989
+ daGas: string | number | bigint;
990
+ l2Gas: string | number | bigint;
991
+ }>, Gas, {
992
+ daGas: string | number | bigint;
993
+ l2Gas: string | number | bigint;
994
+ }>>;
995
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
996
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
997
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
998
+ }, "strip", z.ZodTypeAny, {
999
+ daGas: number;
1000
+ l2Gas: number;
1001
+ }, {
1002
+ daGas: string | number | bigint;
1003
+ l2Gas: string | number | bigint;
1004
+ }>, Gas, {
1005
+ daGas: string | number | bigint;
1006
+ l2Gas: string | number | bigint;
1007
+ }>>;
1008
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1009
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1010
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ feePerDaGas: bigint;
1013
+ feePerL2Gas: bigint;
1014
+ }, {
1015
+ feePerDaGas: string | number | bigint;
1016
+ feePerL2Gas: string | number | bigint;
1017
+ }>>;
1018
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
1019
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1020
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
1021
+ }, "strip", z.ZodTypeAny, {
1022
+ feePerDaGas: bigint;
1023
+ feePerL2Gas: bigint;
1024
+ }, {
1025
+ feePerDaGas: string | number | bigint;
1026
+ feePerL2Gas: string | number | bigint;
1027
+ }>>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ gasLimits?: Gas | undefined;
1030
+ teardownGasLimits?: Gas | undefined;
1031
+ maxFeePerGas?: {
1032
+ feePerDaGas: bigint;
1033
+ feePerL2Gas: bigint;
1034
+ } | undefined;
1035
+ maxPriorityFeePerGas?: {
1036
+ feePerDaGas: bigint;
1037
+ feePerL2Gas: bigint;
1038
+ } | undefined;
1039
+ }, {
1040
+ gasLimits?: {
1041
+ daGas: string | number | bigint;
1042
+ l2Gas: string | number | bigint;
1043
+ } | undefined;
1044
+ teardownGasLimits?: {
1045
+ daGas: string | number | bigint;
1046
+ l2Gas: string | number | bigint;
1047
+ } | undefined;
1048
+ maxFeePerGas?: {
1049
+ feePerDaGas: string | number | bigint;
1050
+ feePerL2Gas: string | number | bigint;
1051
+ } | undefined;
1052
+ maxPriorityFeePerGas?: {
1053
+ feePerDaGas: string | number | bigint;
1054
+ feePerL2Gas: string | number | bigint;
1055
+ } | undefined;
1056
+ }>>;
1057
+ embeddedPaymentMethodFeePayer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
1058
+ } & {
1059
+ estimatedGasPadding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
1060
+ estimateGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
1063
+ gasSettings?: {
1064
+ gasLimits?: Gas | undefined;
1065
+ teardownGasLimits?: Gas | undefined;
1066
+ maxFeePerGas?: {
1067
+ feePerDaGas: bigint;
1068
+ feePerL2Gas: bigint;
1069
+ } | undefined;
1070
+ maxPriorityFeePerGas?: {
1071
+ feePerDaGas: bigint;
1072
+ feePerL2Gas: bigint;
1073
+ } | undefined;
1074
+ } | undefined;
1075
+ estimateGas?: boolean | undefined;
1076
+ estimatedGasPadding?: number | undefined;
1077
+ }, {
1078
+ embeddedPaymentMethodFeePayer?: any;
1079
+ gasSettings?: {
1080
+ gasLimits?: {
1081
+ daGas: string | number | bigint;
1082
+ l2Gas: string | number | bigint;
1083
+ } | undefined;
1084
+ teardownGasLimits?: {
1085
+ daGas: string | number | bigint;
1086
+ l2Gas: string | number | bigint;
1087
+ } | undefined;
1088
+ maxFeePerGas?: {
1089
+ feePerDaGas: string | number | bigint;
1090
+ feePerL2Gas: string | number | bigint;
1091
+ } | undefined;
1092
+ maxPriorityFeePerGas?: {
1093
+ feePerDaGas: string | number | bigint;
1094
+ feePerL2Gas: string | number | bigint;
1095
+ } | undefined;
1096
+ } | undefined;
1097
+ estimateGas?: boolean | undefined;
1098
+ estimatedGasPadding?: number | undefined;
1099
+ }>>;
1100
+ skipTxValidation: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1101
+ skipFeeEnforcement: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1102
+ includeMetadata: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1103
+ } & {
1104
+ profileMode: z.ZodEnum<["gates", "execution-steps", "full"]>;
1105
+ skipProofGeneration: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ from: AztecAddress;
1108
+ profileMode: "gates" | "execution-steps" | "full";
1109
+ fee?: {
1110
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
1111
+ gasSettings?: {
1112
+ gasLimits?: Gas | undefined;
1113
+ teardownGasLimits?: Gas | undefined;
1114
+ maxFeePerGas?: {
1115
+ feePerDaGas: bigint;
1116
+ feePerL2Gas: bigint;
1117
+ } | undefined;
1118
+ maxPriorityFeePerGas?: {
1119
+ feePerDaGas: bigint;
1120
+ feePerL2Gas: bigint;
1121
+ } | undefined;
1122
+ } | undefined;
1123
+ estimateGas?: boolean | undefined;
1124
+ estimatedGasPadding?: number | undefined;
1125
+ } | undefined;
1126
+ authWitnesses?: AuthWitness[] | undefined;
1127
+ capsules?: Capsule[] | undefined;
1128
+ skipTxValidation?: boolean | undefined;
1129
+ skipFeeEnforcement?: boolean | undefined;
1130
+ includeMetadata?: boolean | undefined;
1131
+ skipProofGeneration?: boolean | undefined;
1132
+ }, {
1133
+ profileMode: "gates" | "execution-steps" | "full";
1134
+ fee?: {
1135
+ embeddedPaymentMethodFeePayer?: any;
1136
+ gasSettings?: {
1137
+ gasLimits?: {
1138
+ daGas: string | number | bigint;
1139
+ l2Gas: string | number | bigint;
1140
+ } | undefined;
1141
+ teardownGasLimits?: {
1142
+ daGas: string | number | bigint;
1143
+ l2Gas: string | number | bigint;
1144
+ } | undefined;
1145
+ maxFeePerGas?: {
1146
+ feePerDaGas: string | number | bigint;
1147
+ feePerL2Gas: string | number | bigint;
1148
+ } | undefined;
1149
+ maxPriorityFeePerGas?: {
1150
+ feePerDaGas: string | number | bigint;
1151
+ feePerL2Gas: string | number | bigint;
1152
+ } | undefined;
1153
+ } | undefined;
1154
+ estimateGas?: boolean | undefined;
1155
+ estimatedGasPadding?: number | undefined;
1156
+ } | undefined;
1157
+ authWitnesses?: string[] | undefined;
1158
+ capsules?: string[] | undefined;
1159
+ from?: any;
1160
+ skipTxValidation?: boolean | undefined;
1161
+ skipFeeEnforcement?: boolean | undefined;
1162
+ includeMetadata?: boolean | undefined;
1163
+ skipProofGeneration?: boolean | undefined;
1164
+ }>;
1165
+ export declare const InstanceDataSchema: z.ZodUnion<[ZodFor<AztecAddress>, z.ZodIntersection<z.ZodObject<{
1166
+ version: z.ZodLiteral<1>;
1167
+ salt: ZodFor<Fr>;
1168
+ deployer: ZodFor<AztecAddress>;
1169
+ currentContractClassId: ZodFor<Fr>;
1170
+ originalContractClassId: ZodFor<Fr>;
1171
+ initializationHash: ZodFor<Fr>;
1172
+ publicKeys: z.ZodEffects<z.ZodObject<{
1173
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1174
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1175
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1176
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1177
+ }, "strip", z.ZodTypeAny, {
1178
+ masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1179
+ masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1180
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1181
+ masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1182
+ }, {
1183
+ masterNullifierPublicKey: string;
1184
+ masterIncomingViewingPublicKey: string;
1185
+ masterOutgoingViewingPublicKey: string;
1186
+ masterTaggingPublicKey: string;
1187
+ }>, PublicKeys, {
1188
+ masterNullifierPublicKey: string;
1189
+ masterIncomingViewingPublicKey: string;
1190
+ masterOutgoingViewingPublicKey: string;
1191
+ masterTaggingPublicKey: string;
1192
+ }>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ version: 1;
1195
+ salt: Fr;
1196
+ deployer: AztecAddress;
1197
+ currentContractClassId: Fr;
1198
+ originalContractClassId: Fr;
1199
+ initializationHash: Fr;
1200
+ publicKeys: PublicKeys;
1201
+ }, {
1202
+ version: 1;
1203
+ publicKeys: {
1204
+ masterNullifierPublicKey: string;
1205
+ masterIncomingViewingPublicKey: string;
1206
+ masterOutgoingViewingPublicKey: string;
1207
+ masterTaggingPublicKey: string;
1208
+ };
1209
+ salt?: any;
1210
+ deployer?: any;
1211
+ currentContractClassId?: any;
1212
+ originalContractClassId?: any;
1213
+ initializationHash?: any;
1214
+ }>, z.ZodObject<{
1215
+ address: ZodFor<AztecAddress>;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ address: AztecAddress;
1218
+ }, {
1219
+ address?: any;
1220
+ }>>, z.ZodObject<{
1221
+ constructorArtifact: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodObject<{
1222
+ name: z.ZodString;
1223
+ functionType: z.ZodNativeEnum<typeof FunctionType>;
1224
+ isInternal: z.ZodBoolean;
1225
+ isStatic: z.ZodBoolean;
1226
+ isInitializer: z.ZodBoolean;
1227
+ parameters: z.ZodArray<z.ZodObject<{
1228
+ name: z.ZodString;
1229
+ type: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
1230
+ visibility: z.ZodEnum<["public", "private", "databus"]>;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ type: import("@aztec/stdlib/abi").AbiType;
1233
+ name: string;
1234
+ visibility: "public" | "private" | "databus";
1235
+ }, {
1236
+ type: import("@aztec/stdlib/abi").AbiType;
1237
+ name: string;
1238
+ visibility: "public" | "private" | "databus";
1239
+ }>, "many">;
1240
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1241
+ errorTypes: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1242
+ error_kind: z.ZodLiteral<"string">;
1243
+ string: z.ZodString;
1244
+ }, "strip", z.ZodTypeAny, {
1245
+ string: string;
1246
+ error_kind: "string";
1247
+ }, {
1248
+ string: string;
1249
+ error_kind: "string";
1250
+ }>, z.ZodObject<{
1251
+ error_kind: z.ZodLiteral<"fmtstring">;
1252
+ length: z.ZodNumber;
1253
+ item_types: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ length: number;
1256
+ error_kind: "fmtstring";
1257
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1258
+ }, {
1259
+ length: number;
1260
+ error_kind: "fmtstring";
1261
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1262
+ }>, z.ZodIntersection<z.ZodObject<{
1263
+ error_kind: z.ZodLiteral<"custom">;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ error_kind: "custom";
1266
+ }, {
1267
+ error_kind: "custom";
1268
+ }>, z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>>]>>>;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ name: string;
1271
+ parameters: {
1272
+ type: import("@aztec/stdlib/abi").AbiType;
1273
+ name: string;
1274
+ visibility: "public" | "private" | "databus";
1275
+ }[];
1276
+ functionType: FunctionType;
1277
+ isInternal: boolean;
1278
+ isStatic: boolean;
1279
+ isInitializer: boolean;
1280
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1281
+ errorTypes: Record<string, {
1282
+ string: string;
1283
+ error_kind: "string";
1284
+ } | {
1285
+ length: number;
1286
+ error_kind: "fmtstring";
1287
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1288
+ } | ({
1289
+ error_kind: "custom";
1290
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1291
+ }, {
1292
+ name: string;
1293
+ parameters: {
1294
+ type: import("@aztec/stdlib/abi").AbiType;
1295
+ name: string;
1296
+ visibility: "public" | "private" | "databus";
1297
+ }[];
1298
+ functionType: FunctionType;
1299
+ isInternal: boolean;
1300
+ isStatic: boolean;
1301
+ isInitializer: boolean;
1302
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1303
+ errorTypes: Record<string, {
1304
+ string: string;
1305
+ error_kind: "string";
1306
+ } | {
1307
+ length: number;
1308
+ error_kind: "fmtstring";
1309
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1310
+ } | ({
1311
+ error_kind: "custom";
1312
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1313
+ }>, z.ZodString]>>;
1314
+ constructorArgs: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodAny, "many">>;
1315
+ skipArgsDecoding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1316
+ salt: ZodFor<Fr>;
1317
+ publicKeys: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
1318
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1319
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1320
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1321
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1324
+ masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1325
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1326
+ masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1327
+ }, {
1328
+ masterNullifierPublicKey: string;
1329
+ masterIncomingViewingPublicKey: string;
1330
+ masterOutgoingViewingPublicKey: string;
1331
+ masterTaggingPublicKey: string;
1332
+ }>, PublicKeys, {
1333
+ masterNullifierPublicKey: string;
1334
+ masterIncomingViewingPublicKey: string;
1335
+ masterOutgoingViewingPublicKey: string;
1336
+ masterTaggingPublicKey: string;
1337
+ }>>;
1338
+ deployer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ salt: Fr;
1341
+ deployer?: AztecAddress | undefined;
1342
+ publicKeys?: PublicKeys | undefined;
1343
+ constructorArgs?: any[] | undefined;
1344
+ constructorArtifact?: string | {
1345
+ name: string;
1346
+ parameters: {
1347
+ type: import("@aztec/stdlib/abi").AbiType;
1348
+ name: string;
1349
+ visibility: "public" | "private" | "databus";
1350
+ }[];
1351
+ functionType: FunctionType;
1352
+ isInternal: boolean;
1353
+ isStatic: boolean;
1354
+ isInitializer: boolean;
1355
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1356
+ errorTypes: Record<string, {
1357
+ string: string;
1358
+ error_kind: "string";
1359
+ } | {
1360
+ length: number;
1361
+ error_kind: "fmtstring";
1362
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1363
+ } | ({
1364
+ error_kind: "custom";
1365
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1366
+ } | undefined;
1367
+ skipArgsDecoding?: boolean | undefined;
1368
+ }, {
1369
+ salt?: any;
1370
+ deployer?: any;
1371
+ publicKeys?: {
1372
+ masterNullifierPublicKey: string;
1373
+ masterIncomingViewingPublicKey: string;
1374
+ masterOutgoingViewingPublicKey: string;
1375
+ masterTaggingPublicKey: string;
1376
+ } | undefined;
1377
+ constructorArgs?: any[] | undefined;
1378
+ constructorArtifact?: string | {
1379
+ name: string;
1380
+ parameters: {
1381
+ type: import("@aztec/stdlib/abi").AbiType;
1382
+ name: string;
1383
+ visibility: "public" | "private" | "databus";
1384
+ }[];
1385
+ functionType: FunctionType;
1386
+ isInternal: boolean;
1387
+ isStatic: boolean;
1388
+ isInitializer: boolean;
1389
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1390
+ errorTypes: Record<string, {
1391
+ string: string;
1392
+ error_kind: "string";
1393
+ } | {
1394
+ length: number;
1395
+ error_kind: "fmtstring";
1396
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1397
+ } | ({
1398
+ error_kind: "custom";
1399
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1400
+ } | undefined;
1401
+ skipArgsDecoding?: boolean | undefined;
1402
+ }>, z.ZodObject<{
1403
+ instance: z.ZodIntersection<z.ZodObject<{
1404
+ version: z.ZodLiteral<1>;
1405
+ salt: ZodFor<Fr>;
1406
+ deployer: ZodFor<AztecAddress>;
1407
+ currentContractClassId: ZodFor<Fr>;
1408
+ originalContractClassId: ZodFor<Fr>;
1409
+ initializationHash: ZodFor<Fr>;
1410
+ publicKeys: z.ZodEffects<z.ZodObject<{
1411
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1412
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1413
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1414
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1417
+ masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1418
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1419
+ masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1420
+ }, {
1421
+ masterNullifierPublicKey: string;
1422
+ masterIncomingViewingPublicKey: string;
1423
+ masterOutgoingViewingPublicKey: string;
1424
+ masterTaggingPublicKey: string;
1425
+ }>, PublicKeys, {
1426
+ masterNullifierPublicKey: string;
1427
+ masterIncomingViewingPublicKey: string;
1428
+ masterOutgoingViewingPublicKey: string;
1429
+ masterTaggingPublicKey: string;
1430
+ }>;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ version: 1;
1433
+ salt: Fr;
1434
+ deployer: AztecAddress;
1435
+ currentContractClassId: Fr;
1436
+ originalContractClassId: Fr;
1437
+ initializationHash: Fr;
1438
+ publicKeys: PublicKeys;
1439
+ }, {
1440
+ version: 1;
1441
+ publicKeys: {
1442
+ masterNullifierPublicKey: string;
1443
+ masterIncomingViewingPublicKey: string;
1444
+ masterOutgoingViewingPublicKey: string;
1445
+ masterTaggingPublicKey: string;
1446
+ };
1447
+ salt?: any;
1448
+ deployer?: any;
1449
+ currentContractClassId?: any;
1450
+ originalContractClassId?: any;
1451
+ initializationHash?: any;
1452
+ }>, z.ZodObject<{
1453
+ address: ZodFor<AztecAddress>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ address: AztecAddress;
1456
+ }, {
1457
+ address?: any;
1458
+ }>>;
1459
+ artifact: ZodFor<ContractArtifact>;
1460
+ }, "strip", z.ZodTypeAny, {
1461
+ artifact: ContractArtifact;
1462
+ instance: {
1463
+ version: 1;
1464
+ salt: Fr;
1465
+ deployer: AztecAddress;
1466
+ currentContractClassId: Fr;
1467
+ originalContractClassId: Fr;
1468
+ initializationHash: Fr;
1469
+ publicKeys: PublicKeys;
1470
+ } & {
1471
+ address: AztecAddress;
1472
+ };
1473
+ }, {
1474
+ instance: {
1475
+ version: 1;
1476
+ publicKeys: {
1477
+ masterNullifierPublicKey: string;
1478
+ masterIncomingViewingPublicKey: string;
1479
+ masterOutgoingViewingPublicKey: string;
1480
+ masterTaggingPublicKey: string;
1481
+ };
1482
+ salt?: any;
1483
+ deployer?: any;
1484
+ currentContractClassId?: any;
1485
+ originalContractClassId?: any;
1486
+ initializationHash?: any;
1487
+ } & {
1488
+ address?: any;
1489
+ };
1490
+ artifact?: any;
1491
+ }>]>;
1492
+ export declare const MessageHashOrIntentSchema: z.ZodUnion<[ZodFor<Fr>, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer<ArrayBuffer>, string>, z.ZodEffects<z.ZodObject<{
1493
+ type: z.ZodLiteral<"Buffer">;
1494
+ data: z.ZodArray<z.ZodNumber, "many">;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ type: "Buffer";
1497
+ data: number[];
1498
+ }, {
1499
+ type: "Buffer";
1500
+ data: number[];
1501
+ }>, Buffer<ArrayBuffer>, {
1502
+ type: "Buffer";
1503
+ data: number[];
1504
+ }>]>, z.ZodObject<{
1505
+ consumer: ZodFor<AztecAddress>;
1506
+ innerHash: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer<ArrayBuffer>, string>, z.ZodEffects<z.ZodObject<{
1507
+ type: z.ZodLiteral<"Buffer">;
1508
+ data: z.ZodArray<z.ZodNumber, "many">;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ type: "Buffer";
1511
+ data: number[];
1512
+ }, {
1513
+ type: "Buffer";
1514
+ data: number[];
1515
+ }>, Buffer<ArrayBuffer>, {
1516
+ type: "Buffer";
1517
+ data: number[];
1518
+ }>]>, ZodFor<Fr>]>;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ consumer: AztecAddress;
1521
+ innerHash: Fr | Buffer<ArrayBuffer>;
1522
+ }, {
1523
+ consumer?: any;
1524
+ innerHash?: any;
1525
+ }>, z.ZodObject<{
1526
+ caller: ZodFor<AztecAddress>;
1527
+ call: z.ZodObject<{
1528
+ name: z.ZodString;
1529
+ to: ZodFor<AztecAddress>;
1530
+ selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
1531
+ type: z.ZodNativeEnum<typeof FunctionType>;
1532
+ isStatic: z.ZodBoolean;
1533
+ hideMsgSender: z.ZodBoolean;
1534
+ args: z.ZodArray<ZodFor<Fr>, "many">;
1535
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ name: string;
1538
+ args: Fr[];
1539
+ type: FunctionType;
1540
+ to: AztecAddress;
1541
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
1542
+ isStatic: boolean;
1543
+ hideMsgSender: boolean;
1544
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1545
+ }, {
1546
+ name: string;
1547
+ args: any[];
1548
+ type: FunctionType;
1549
+ isStatic: boolean;
1550
+ hideMsgSender: boolean;
1551
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1552
+ to?: any;
1553
+ selector?: any;
1554
+ }>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ caller: AztecAddress;
1557
+ call: {
1558
+ name: string;
1559
+ args: Fr[];
1560
+ type: FunctionType;
1561
+ to: AztecAddress;
1562
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
1563
+ isStatic: boolean;
1564
+ hideMsgSender: boolean;
1565
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1566
+ };
1567
+ }, {
1568
+ call: {
1569
+ name: string;
1570
+ args: any[];
1571
+ type: FunctionType;
1572
+ isStatic: boolean;
1573
+ hideMsgSender: boolean;
1574
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1575
+ to?: any;
1576
+ selector?: any;
1577
+ };
1578
+ caller?: any;
1579
+ }>]>;
1580
+ export declare const BatchedMethodSchema: z.ZodUnion<[z.ZodObject<{
1581
+ name: z.ZodLiteral<"registerSender">;
1582
+ args: z.ZodTuple<[ZodFor<AztecAddress>, import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodString>], null>;
1583
+ }, "strip", z.ZodTypeAny, {
1584
+ name: "registerSender";
1585
+ args: [AztecAddress, string | undefined];
1586
+ }, {
1587
+ name: "registerSender";
1588
+ args: [any, string | undefined];
1589
+ }>, z.ZodObject<{
1590
+ name: z.ZodLiteral<"registerContract">;
1591
+ args: z.ZodTuple<[z.ZodUnion<[ZodFor<AztecAddress>, z.ZodIntersection<z.ZodObject<{
1592
+ version: z.ZodLiteral<1>;
1593
+ salt: ZodFor<Fr>;
1594
+ deployer: ZodFor<AztecAddress>;
1595
+ currentContractClassId: ZodFor<Fr>;
1596
+ originalContractClassId: ZodFor<Fr>;
1597
+ initializationHash: ZodFor<Fr>;
1598
+ publicKeys: z.ZodEffects<z.ZodObject<{
1599
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1600
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1601
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1602
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1605
+ masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1606
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1607
+ masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1608
+ }, {
1609
+ masterNullifierPublicKey: string;
1610
+ masterIncomingViewingPublicKey: string;
1611
+ masterOutgoingViewingPublicKey: string;
1612
+ masterTaggingPublicKey: string;
1613
+ }>, PublicKeys, {
1614
+ masterNullifierPublicKey: string;
1615
+ masterIncomingViewingPublicKey: string;
1616
+ masterOutgoingViewingPublicKey: string;
1617
+ masterTaggingPublicKey: string;
1618
+ }>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ version: 1;
1621
+ salt: Fr;
1622
+ deployer: AztecAddress;
1623
+ currentContractClassId: Fr;
1624
+ originalContractClassId: Fr;
1625
+ initializationHash: Fr;
1626
+ publicKeys: PublicKeys;
1627
+ }, {
1628
+ version: 1;
1629
+ publicKeys: {
1630
+ masterNullifierPublicKey: string;
1631
+ masterIncomingViewingPublicKey: string;
1632
+ masterOutgoingViewingPublicKey: string;
1633
+ masterTaggingPublicKey: string;
1634
+ };
1635
+ salt?: any;
1636
+ deployer?: any;
1637
+ currentContractClassId?: any;
1638
+ originalContractClassId?: any;
1639
+ initializationHash?: any;
1640
+ }>, z.ZodObject<{
1641
+ address: ZodFor<AztecAddress>;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ address: AztecAddress;
1644
+ }, {
1645
+ address?: any;
1646
+ }>>, z.ZodObject<{
1647
+ constructorArtifact: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodObject<{
1648
+ name: z.ZodString;
1649
+ functionType: z.ZodNativeEnum<typeof FunctionType>;
1650
+ isInternal: z.ZodBoolean;
1651
+ isStatic: z.ZodBoolean;
1652
+ isInitializer: z.ZodBoolean;
1653
+ parameters: z.ZodArray<z.ZodObject<{
1654
+ name: z.ZodString;
1655
+ type: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
1656
+ visibility: z.ZodEnum<["public", "private", "databus"]>;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ type: import("@aztec/stdlib/abi").AbiType;
1659
+ name: string;
1660
+ visibility: "public" | "private" | "databus";
1661
+ }, {
1662
+ type: import("@aztec/stdlib/abi").AbiType;
1663
+ name: string;
1664
+ visibility: "public" | "private" | "databus";
1665
+ }>, "many">;
1666
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1667
+ errorTypes: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1668
+ error_kind: z.ZodLiteral<"string">;
1669
+ string: z.ZodString;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ string: string;
1672
+ error_kind: "string";
1673
+ }, {
1674
+ string: string;
1675
+ error_kind: "string";
1676
+ }>, z.ZodObject<{
1677
+ error_kind: z.ZodLiteral<"fmtstring">;
1678
+ length: z.ZodNumber;
1679
+ item_types: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1680
+ }, "strip", z.ZodTypeAny, {
1681
+ length: number;
1682
+ error_kind: "fmtstring";
1683
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1684
+ }, {
1685
+ length: number;
1686
+ error_kind: "fmtstring";
1687
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1688
+ }>, z.ZodIntersection<z.ZodObject<{
1689
+ error_kind: z.ZodLiteral<"custom">;
1690
+ }, "strip", z.ZodTypeAny, {
1691
+ error_kind: "custom";
1692
+ }, {
1693
+ error_kind: "custom";
1694
+ }>, z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>>]>>>;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ name: string;
1697
+ parameters: {
1698
+ type: import("@aztec/stdlib/abi").AbiType;
1699
+ name: string;
1700
+ visibility: "public" | "private" | "databus";
1701
+ }[];
1702
+ functionType: FunctionType;
1703
+ isInternal: boolean;
1704
+ isStatic: boolean;
1705
+ isInitializer: boolean;
1706
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1707
+ errorTypes: Record<string, {
1708
+ string: string;
1709
+ error_kind: "string";
1710
+ } | {
1711
+ length: number;
1712
+ error_kind: "fmtstring";
1713
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1714
+ } | ({
1715
+ error_kind: "custom";
1716
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1717
+ }, {
1718
+ name: string;
1719
+ parameters: {
1720
+ type: import("@aztec/stdlib/abi").AbiType;
1721
+ name: string;
1722
+ visibility: "public" | "private" | "databus";
1723
+ }[];
1724
+ functionType: FunctionType;
1725
+ isInternal: boolean;
1726
+ isStatic: boolean;
1727
+ isInitializer: boolean;
1728
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1729
+ errorTypes: Record<string, {
1730
+ string: string;
1731
+ error_kind: "string";
1732
+ } | {
1733
+ length: number;
1734
+ error_kind: "fmtstring";
1735
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1736
+ } | ({
1737
+ error_kind: "custom";
1738
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1739
+ }>, z.ZodString]>>;
1740
+ constructorArgs: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodAny, "many">>;
1741
+ skipArgsDecoding: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
1742
+ salt: ZodFor<Fr>;
1743
+ publicKeys: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
1744
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1745
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1746
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1747
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1748
+ }, "strip", z.ZodTypeAny, {
1749
+ masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1750
+ masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1751
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1752
+ masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1753
+ }, {
1754
+ masterNullifierPublicKey: string;
1755
+ masterIncomingViewingPublicKey: string;
1756
+ masterOutgoingViewingPublicKey: string;
1757
+ masterTaggingPublicKey: string;
1758
+ }>, PublicKeys, {
1759
+ masterNullifierPublicKey: string;
1760
+ masterIncomingViewingPublicKey: string;
1761
+ masterOutgoingViewingPublicKey: string;
1762
+ masterTaggingPublicKey: string;
1763
+ }>>;
1764
+ deployer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ salt: Fr;
1767
+ deployer?: AztecAddress | undefined;
1768
+ publicKeys?: PublicKeys | undefined;
1769
+ constructorArgs?: any[] | undefined;
1770
+ constructorArtifact?: string | {
1771
+ name: string;
1772
+ parameters: {
1773
+ type: import("@aztec/stdlib/abi").AbiType;
1774
+ name: string;
1775
+ visibility: "public" | "private" | "databus";
1776
+ }[];
1777
+ functionType: FunctionType;
1778
+ isInternal: boolean;
1779
+ isStatic: boolean;
1780
+ isInitializer: boolean;
1781
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1782
+ errorTypes: Record<string, {
1783
+ string: string;
1784
+ error_kind: "string";
1785
+ } | {
1786
+ length: number;
1787
+ error_kind: "fmtstring";
1788
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1789
+ } | ({
1790
+ error_kind: "custom";
1791
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1792
+ } | undefined;
1793
+ skipArgsDecoding?: boolean | undefined;
1794
+ }, {
1795
+ salt?: any;
1796
+ deployer?: any;
1797
+ publicKeys?: {
1798
+ masterNullifierPublicKey: string;
1799
+ masterIncomingViewingPublicKey: string;
1800
+ masterOutgoingViewingPublicKey: string;
1801
+ masterTaggingPublicKey: string;
1802
+ } | undefined;
1803
+ constructorArgs?: any[] | undefined;
1804
+ constructorArtifact?: string | {
1805
+ name: string;
1806
+ parameters: {
1807
+ type: import("@aztec/stdlib/abi").AbiType;
1808
+ name: string;
1809
+ visibility: "public" | "private" | "databus";
1810
+ }[];
1811
+ functionType: FunctionType;
1812
+ isInternal: boolean;
1813
+ isStatic: boolean;
1814
+ isInitializer: boolean;
1815
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1816
+ errorTypes: Record<string, {
1817
+ string: string;
1818
+ error_kind: "string";
1819
+ } | {
1820
+ length: number;
1821
+ error_kind: "fmtstring";
1822
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1823
+ } | ({
1824
+ error_kind: "custom";
1825
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1826
+ } | undefined;
1827
+ skipArgsDecoding?: boolean | undefined;
1828
+ }>, z.ZodObject<{
1829
+ instance: z.ZodIntersection<z.ZodObject<{
1830
+ version: z.ZodLiteral<1>;
1831
+ salt: ZodFor<Fr>;
1832
+ deployer: ZodFor<AztecAddress>;
1833
+ currentContractClassId: ZodFor<Fr>;
1834
+ originalContractClassId: ZodFor<Fr>;
1835
+ initializationHash: ZodFor<Fr>;
1836
+ publicKeys: z.ZodEffects<z.ZodObject<{
1837
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1838
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1839
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1840
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
1841
+ }, "strip", z.ZodTypeAny, {
1842
+ masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
1843
+ masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
1844
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
1845
+ masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
1846
+ }, {
1847
+ masterNullifierPublicKey: string;
1848
+ masterIncomingViewingPublicKey: string;
1849
+ masterOutgoingViewingPublicKey: string;
1850
+ masterTaggingPublicKey: string;
1851
+ }>, PublicKeys, {
1852
+ masterNullifierPublicKey: string;
1853
+ masterIncomingViewingPublicKey: string;
1854
+ masterOutgoingViewingPublicKey: string;
1855
+ masterTaggingPublicKey: string;
1856
+ }>;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ version: 1;
1859
+ salt: Fr;
1860
+ deployer: AztecAddress;
1861
+ currentContractClassId: Fr;
1862
+ originalContractClassId: Fr;
1863
+ initializationHash: Fr;
1864
+ publicKeys: PublicKeys;
1865
+ }, {
1866
+ version: 1;
1867
+ publicKeys: {
1868
+ masterNullifierPublicKey: string;
1869
+ masterIncomingViewingPublicKey: string;
1870
+ masterOutgoingViewingPublicKey: string;
1871
+ masterTaggingPublicKey: string;
1872
+ };
1873
+ salt?: any;
1874
+ deployer?: any;
1875
+ currentContractClassId?: any;
1876
+ originalContractClassId?: any;
1877
+ initializationHash?: any;
1878
+ }>, z.ZodObject<{
1879
+ address: ZodFor<AztecAddress>;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ address: AztecAddress;
1882
+ }, {
1883
+ address?: any;
1884
+ }>>;
1885
+ artifact: ZodFor<ContractArtifact>;
1886
+ }, "strip", z.ZodTypeAny, {
1887
+ artifact: ContractArtifact;
1888
+ instance: {
1889
+ version: 1;
1890
+ salt: Fr;
1891
+ deployer: AztecAddress;
1892
+ currentContractClassId: Fr;
1893
+ originalContractClassId: Fr;
1894
+ initializationHash: Fr;
1895
+ publicKeys: PublicKeys;
1896
+ } & {
1897
+ address: AztecAddress;
1898
+ };
1899
+ }, {
1900
+ instance: {
1901
+ version: 1;
1902
+ publicKeys: {
1903
+ masterNullifierPublicKey: string;
1904
+ masterIncomingViewingPublicKey: string;
1905
+ masterOutgoingViewingPublicKey: string;
1906
+ masterTaggingPublicKey: string;
1907
+ };
1908
+ salt?: any;
1909
+ deployer?: any;
1910
+ currentContractClassId?: any;
1911
+ originalContractClassId?: any;
1912
+ initializationHash?: any;
1913
+ } & {
1914
+ address?: any;
1915
+ };
1916
+ artifact?: any;
1917
+ }>]>, import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<ContractArtifact>>, import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<Fr>>], null>;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ name: "registerContract";
1920
+ args: [AztecAddress | {
1921
+ salt: Fr;
1922
+ deployer?: AztecAddress | undefined;
1923
+ publicKeys?: PublicKeys | undefined;
1924
+ constructorArgs?: any[] | undefined;
1925
+ constructorArtifact?: string | {
1926
+ name: string;
1927
+ parameters: {
1928
+ type: import("@aztec/stdlib/abi").AbiType;
1929
+ name: string;
1930
+ visibility: "public" | "private" | "databus";
1931
+ }[];
1932
+ functionType: FunctionType;
1933
+ isInternal: boolean;
1934
+ isStatic: boolean;
1935
+ isInitializer: boolean;
1936
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1937
+ errorTypes: Record<string, {
1938
+ string: string;
1939
+ error_kind: "string";
1940
+ } | {
1941
+ length: number;
1942
+ error_kind: "fmtstring";
1943
+ item_types: import("@aztec/stdlib/abi").AbiType[];
1944
+ } | ({
1945
+ error_kind: "custom";
1946
+ } & import("@aztec/stdlib/abi").AbiType) | undefined>;
1947
+ } | undefined;
1948
+ skipArgsDecoding?: boolean | undefined;
1949
+ } | ({
1950
+ version: 1;
1951
+ salt: Fr;
1952
+ deployer: AztecAddress;
1953
+ currentContractClassId: Fr;
1954
+ originalContractClassId: Fr;
1955
+ initializationHash: Fr;
1956
+ publicKeys: PublicKeys;
1957
+ } & {
1958
+ address: AztecAddress;
1959
+ }) | {
1960
+ artifact: ContractArtifact;
1961
+ instance: {
1962
+ version: 1;
1963
+ salt: Fr;
1964
+ deployer: AztecAddress;
1965
+ currentContractClassId: Fr;
1966
+ originalContractClassId: Fr;
1967
+ initializationHash: Fr;
1968
+ publicKeys: PublicKeys;
1969
+ } & {
1970
+ address: AztecAddress;
1971
+ };
1972
+ }, ContractArtifact | undefined, Fr | undefined];
1973
+ }, {
1974
+ name: "registerContract";
1975
+ args: [any, any, any];
1976
+ }>, z.ZodObject<{
1977
+ name: z.ZodLiteral<"sendTx">;
1978
+ args: z.ZodTuple<[z.ZodObject<{
1979
+ calls: z.ZodArray<z.ZodObject<{
1980
+ name: z.ZodString;
1981
+ to: ZodFor<AztecAddress>;
1982
+ selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
1983
+ type: z.ZodNativeEnum<typeof FunctionType>;
1984
+ isStatic: z.ZodBoolean;
1985
+ hideMsgSender: z.ZodBoolean;
1986
+ args: z.ZodArray<ZodFor<Fr>, "many">;
1987
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
1988
+ }, "strip", z.ZodTypeAny, {
1989
+ name: string;
1990
+ args: Fr[];
1991
+ type: FunctionType;
1992
+ to: AztecAddress;
1993
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
1994
+ isStatic: boolean;
1995
+ hideMsgSender: boolean;
1996
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
1997
+ }, {
1998
+ name: string;
1999
+ args: any[];
2000
+ type: FunctionType;
2001
+ isStatic: boolean;
2002
+ hideMsgSender: boolean;
2003
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
2004
+ to?: any;
2005
+ selector?: any;
2006
+ }>, "many">;
2007
+ authWitnesses: z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">;
2008
+ capsules: z.ZodArray<z.ZodType<Capsule, any, string>, "many">;
2009
+ extraHashedArgs: z.ZodArray<ZodFor<HashedValues>, "many">;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ authWitnesses: AuthWitness[];
2012
+ capsules: Capsule[];
2013
+ calls: {
2014
+ name: string;
2015
+ args: Fr[];
2016
+ type: FunctionType;
2017
+ to: AztecAddress;
2018
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
2019
+ isStatic: boolean;
2020
+ hideMsgSender: boolean;
2021
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
2022
+ }[];
2023
+ extraHashedArgs: HashedValues[];
2024
+ }, {
2025
+ authWitnesses: string[];
2026
+ capsules: string[];
2027
+ calls: {
2028
+ name: string;
2029
+ args: any[];
2030
+ type: FunctionType;
2031
+ isStatic: boolean;
2032
+ hideMsgSender: boolean;
2033
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
2034
+ to?: any;
2035
+ selector?: any;
2036
+ }[];
2037
+ extraHashedArgs: any[];
2038
+ }>, z.ZodObject<{
2039
+ from: ZodFor<AztecAddress>;
2040
+ authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>;
2041
+ capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<Capsule, any, string>, "many">>;
2042
+ fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2043
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2044
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
2045
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2046
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2047
+ }, "strip", z.ZodTypeAny, {
2048
+ daGas: number;
2049
+ l2Gas: number;
2050
+ }, {
2051
+ daGas: string | number | bigint;
2052
+ l2Gas: string | number | bigint;
2053
+ }>, Gas, {
2054
+ daGas: string | number | bigint;
2055
+ l2Gas: string | number | bigint;
2056
+ }>>;
2057
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
2058
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2059
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
2060
+ }, "strip", z.ZodTypeAny, {
2061
+ daGas: number;
2062
+ l2Gas: number;
2063
+ }, {
2064
+ daGas: string | number | bigint;
2065
+ l2Gas: string | number | bigint;
2066
+ }>, Gas, {
2067
+ daGas: string | number | bigint;
2068
+ l2Gas: string | number | bigint;
2069
+ }>>;
2070
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2071
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2072
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2073
+ }, "strip", z.ZodTypeAny, {
2074
+ feePerDaGas: bigint;
2075
+ feePerL2Gas: bigint;
2076
+ }, {
2077
+ feePerDaGas: string | number | bigint;
2078
+ feePerL2Gas: string | number | bigint;
2079
+ }>>;
2080
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
2081
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2082
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
2083
+ }, "strip", z.ZodTypeAny, {
2084
+ feePerDaGas: bigint;
2085
+ feePerL2Gas: bigint;
2086
+ }, {
2087
+ feePerDaGas: string | number | bigint;
2088
+ feePerL2Gas: string | number | bigint;
2089
+ }>>;
2090
+ }, "strip", z.ZodTypeAny, {
2091
+ gasLimits?: Gas | undefined;
2092
+ teardownGasLimits?: Gas | undefined;
2093
+ maxFeePerGas?: {
2094
+ feePerDaGas: bigint;
2095
+ feePerL2Gas: bigint;
2096
+ } | undefined;
2097
+ maxPriorityFeePerGas?: {
2098
+ feePerDaGas: bigint;
2099
+ feePerL2Gas: bigint;
2100
+ } | undefined;
2101
+ }, {
2102
+ gasLimits?: {
2103
+ daGas: string | number | bigint;
2104
+ l2Gas: string | number | bigint;
2105
+ } | undefined;
2106
+ teardownGasLimits?: {
2107
+ daGas: string | number | bigint;
2108
+ l2Gas: string | number | bigint;
2109
+ } | undefined;
2110
+ maxFeePerGas?: {
2111
+ feePerDaGas: string | number | bigint;
2112
+ feePerL2Gas: string | number | bigint;
2113
+ } | undefined;
2114
+ maxPriorityFeePerGas?: {
2115
+ feePerDaGas: string | number | bigint;
2116
+ feePerL2Gas: string | number | bigint;
2117
+ } | undefined;
2118
+ }>>;
2119
+ embeddedPaymentMethodFeePayer: import("@aztec/foundation/schemas").ZodNullableOptional<ZodFor<AztecAddress>>;
2120
+ }, "strip", z.ZodTypeAny, {
2121
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
2122
+ gasSettings?: {
2123
+ gasLimits?: Gas | undefined;
2124
+ teardownGasLimits?: Gas | undefined;
2125
+ maxFeePerGas?: {
2126
+ feePerDaGas: bigint;
2127
+ feePerL2Gas: bigint;
2128
+ } | undefined;
2129
+ maxPriorityFeePerGas?: {
2130
+ feePerDaGas: bigint;
2131
+ feePerL2Gas: bigint;
2132
+ } | undefined;
2133
+ } | undefined;
2134
+ }, {
2135
+ embeddedPaymentMethodFeePayer?: any;
2136
+ gasSettings?: {
2137
+ gasLimits?: {
2138
+ daGas: string | number | bigint;
2139
+ l2Gas: string | number | bigint;
2140
+ } | undefined;
2141
+ teardownGasLimits?: {
2142
+ daGas: string | number | bigint;
2143
+ l2Gas: string | number | bigint;
2144
+ } | undefined;
2145
+ maxFeePerGas?: {
2146
+ feePerDaGas: string | number | bigint;
2147
+ feePerL2Gas: string | number | bigint;
2148
+ } | undefined;
2149
+ maxPriorityFeePerGas?: {
2150
+ feePerDaGas: string | number | bigint;
2151
+ feePerL2Gas: string | number | bigint;
2152
+ } | undefined;
2153
+ } | undefined;
2154
+ }>>;
2155
+ }, "strip", z.ZodTypeAny, {
2156
+ from: AztecAddress;
2157
+ fee?: {
2158
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
2159
+ gasSettings?: {
2160
+ gasLimits?: Gas | undefined;
2161
+ teardownGasLimits?: Gas | undefined;
2162
+ maxFeePerGas?: {
2163
+ feePerDaGas: bigint;
2164
+ feePerL2Gas: bigint;
2165
+ } | undefined;
2166
+ maxPriorityFeePerGas?: {
2167
+ feePerDaGas: bigint;
2168
+ feePerL2Gas: bigint;
2169
+ } | undefined;
2170
+ } | undefined;
2171
+ } | undefined;
2172
+ authWitnesses?: AuthWitness[] | undefined;
2173
+ capsules?: Capsule[] | undefined;
2174
+ }, {
2175
+ fee?: {
2176
+ embeddedPaymentMethodFeePayer?: any;
2177
+ gasSettings?: {
2178
+ gasLimits?: {
2179
+ daGas: string | number | bigint;
2180
+ l2Gas: string | number | bigint;
2181
+ } | undefined;
2182
+ teardownGasLimits?: {
2183
+ daGas: string | number | bigint;
2184
+ l2Gas: string | number | bigint;
2185
+ } | undefined;
2186
+ maxFeePerGas?: {
2187
+ feePerDaGas: string | number | bigint;
2188
+ feePerL2Gas: string | number | bigint;
2189
+ } | undefined;
2190
+ maxPriorityFeePerGas?: {
2191
+ feePerDaGas: string | number | bigint;
2192
+ feePerL2Gas: string | number | bigint;
2193
+ } | undefined;
2194
+ } | undefined;
2195
+ } | undefined;
2196
+ authWitnesses?: string[] | undefined;
2197
+ capsules?: string[] | undefined;
2198
+ from?: any;
2199
+ }>], null>;
2200
+ }, "strip", z.ZodTypeAny, {
2201
+ name: "sendTx";
2202
+ args: [{
2203
+ authWitnesses: AuthWitness[];
2204
+ capsules: Capsule[];
2205
+ calls: {
2206
+ name: string;
2207
+ args: Fr[];
2208
+ type: FunctionType;
2209
+ to: AztecAddress;
2210
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
2211
+ isStatic: boolean;
2212
+ hideMsgSender: boolean;
2213
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
2214
+ }[];
2215
+ extraHashedArgs: HashedValues[];
2216
+ }, {
2217
+ from: AztecAddress;
2218
+ fee?: {
2219
+ embeddedPaymentMethodFeePayer?: AztecAddress | undefined;
2220
+ gasSettings?: {
2221
+ gasLimits?: Gas | undefined;
2222
+ teardownGasLimits?: Gas | undefined;
2223
+ maxFeePerGas?: {
2224
+ feePerDaGas: bigint;
2225
+ feePerL2Gas: bigint;
2226
+ } | undefined;
2227
+ maxPriorityFeePerGas?: {
2228
+ feePerDaGas: bigint;
2229
+ feePerL2Gas: bigint;
2230
+ } | undefined;
2231
+ } | undefined;
2232
+ } | undefined;
2233
+ authWitnesses?: AuthWitness[] | undefined;
2234
+ capsules?: Capsule[] | undefined;
2235
+ }];
2236
+ }, {
2237
+ name: "sendTx";
2238
+ args: [{
2239
+ authWitnesses: string[];
2240
+ capsules: string[];
2241
+ calls: {
2242
+ name: string;
2243
+ args: any[];
2244
+ type: FunctionType;
2245
+ isStatic: boolean;
2246
+ hideMsgSender: boolean;
2247
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
2248
+ to?: any;
2249
+ selector?: any;
2250
+ }[];
2251
+ extraHashedArgs: any[];
2252
+ }, {
2253
+ fee?: {
2254
+ embeddedPaymentMethodFeePayer?: any;
2255
+ gasSettings?: {
2256
+ gasLimits?: {
2257
+ daGas: string | number | bigint;
2258
+ l2Gas: string | number | bigint;
2259
+ } | undefined;
2260
+ teardownGasLimits?: {
2261
+ daGas: string | number | bigint;
2262
+ l2Gas: string | number | bigint;
2263
+ } | undefined;
2264
+ maxFeePerGas?: {
2265
+ feePerDaGas: string | number | bigint;
2266
+ feePerL2Gas: string | number | bigint;
2267
+ } | undefined;
2268
+ maxPriorityFeePerGas?: {
2269
+ feePerDaGas: string | number | bigint;
2270
+ feePerL2Gas: string | number | bigint;
2271
+ } | undefined;
2272
+ } | undefined;
2273
+ } | undefined;
2274
+ authWitnesses?: string[] | undefined;
2275
+ capsules?: string[] | undefined;
2276
+ from?: any;
2277
+ }];
2278
+ }>, z.ZodObject<{
2279
+ name: z.ZodLiteral<"simulateUtility">;
2280
+ args: z.ZodTuple<[z.ZodString, z.ZodArray<z.ZodAny, "many">, ZodFor<AztecAddress>, import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<AuthWitness, any, string>, "many">>], null>;
2281
+ }, "strip", z.ZodTypeAny, {
2282
+ name: "simulateUtility";
2283
+ args: [string, any[], AztecAddress, AuthWitness[] | undefined];
2284
+ }, {
2285
+ name: "simulateUtility";
2286
+ args: [string, any[], any, string[] | undefined];
2287
+ }>]>;
2288
+ export declare const ContractMetadataSchema: z.ZodObject<{
2289
+ contractInstance: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
2290
+ version: z.ZodLiteral<1>;
2291
+ salt: ZodFor<Fr>;
2292
+ deployer: ZodFor<AztecAddress>;
2293
+ currentContractClassId: ZodFor<Fr>;
2294
+ originalContractClassId: ZodFor<Fr>;
2295
+ initializationHash: ZodFor<Fr>;
2296
+ publicKeys: z.ZodEffects<z.ZodObject<{
2297
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
2298
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
2299
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
2300
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/fields").Point, any, string>;
2301
+ }, "strip", z.ZodTypeAny, {
2302
+ masterNullifierPublicKey: import("@aztec/foundation/fields").Point;
2303
+ masterIncomingViewingPublicKey: import("@aztec/foundation/fields").Point;
2304
+ masterOutgoingViewingPublicKey: import("@aztec/foundation/fields").Point;
2305
+ masterTaggingPublicKey: import("@aztec/foundation/fields").Point;
2306
+ }, {
2307
+ masterNullifierPublicKey: string;
2308
+ masterIncomingViewingPublicKey: string;
2309
+ masterOutgoingViewingPublicKey: string;
2310
+ masterTaggingPublicKey: string;
2311
+ }>, PublicKeys, {
2312
+ masterNullifierPublicKey: string;
2313
+ masterIncomingViewingPublicKey: string;
2314
+ masterOutgoingViewingPublicKey: string;
2315
+ masterTaggingPublicKey: string;
2316
+ }>;
2317
+ }, "strip", z.ZodTypeAny, {
2318
+ version: 1;
2319
+ salt: Fr;
2320
+ deployer: AztecAddress;
2321
+ currentContractClassId: Fr;
2322
+ originalContractClassId: Fr;
2323
+ initializationHash: Fr;
2324
+ publicKeys: PublicKeys;
2325
+ }, {
2326
+ version: 1;
2327
+ publicKeys: {
2328
+ masterNullifierPublicKey: string;
2329
+ masterIncomingViewingPublicKey: string;
2330
+ masterOutgoingViewingPublicKey: string;
2331
+ masterTaggingPublicKey: string;
2332
+ };
2333
+ salt?: any;
2334
+ deployer?: any;
2335
+ currentContractClassId?: any;
2336
+ originalContractClassId?: any;
2337
+ initializationHash?: any;
2338
+ }>, z.ZodObject<{
2339
+ address: ZodFor<AztecAddress>;
2340
+ }, "strip", z.ZodTypeAny, {
2341
+ address: AztecAddress;
2342
+ }, {
2343
+ address?: any;
2344
+ }>>, z.ZodUndefined]>;
2345
+ isContractInitialized: z.ZodBoolean;
2346
+ isContractPublished: z.ZodBoolean;
2347
+ }, "strip", z.ZodTypeAny, {
2348
+ isContractInitialized: boolean;
2349
+ isContractPublished: boolean;
2350
+ contractInstance?: ({
2351
+ version: 1;
2352
+ salt: Fr;
2353
+ deployer: AztecAddress;
2354
+ currentContractClassId: Fr;
2355
+ originalContractClassId: Fr;
2356
+ initializationHash: Fr;
2357
+ publicKeys: PublicKeys;
2358
+ } & {
2359
+ address: AztecAddress;
2360
+ }) | undefined;
2361
+ }, {
2362
+ isContractInitialized: boolean;
2363
+ isContractPublished: boolean;
2364
+ contractInstance?: ({
2365
+ version: 1;
2366
+ publicKeys: {
2367
+ masterNullifierPublicKey: string;
2368
+ masterIncomingViewingPublicKey: string;
2369
+ masterOutgoingViewingPublicKey: string;
2370
+ masterTaggingPublicKey: string;
2371
+ };
2372
+ salt?: any;
2373
+ deployer?: any;
2374
+ currentContractClassId?: any;
2375
+ originalContractClassId?: any;
2376
+ initializationHash?: any;
2377
+ } & {
2378
+ address?: any;
2379
+ }) | undefined;
2380
+ }>;
2381
+ export declare const ContractClassMetadataSchema: z.ZodObject<{
2382
+ contractClass: z.ZodUnion<[z.ZodObject<{
2383
+ version: z.ZodLiteral<1>;
2384
+ artifactHash: z.ZodType<Fr, any, string>;
2385
+ privateFunctions: z.ZodArray<z.ZodObject<{
2386
+ selector: ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
2387
+ vkHash: z.ZodType<Fr, any, string>;
2388
+ }, "strip", z.ZodTypeAny, {
2389
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
2390
+ vkHash: Fr;
2391
+ }, {
2392
+ vkHash: string;
2393
+ selector?: any;
2394
+ }>, "many">;
2395
+ packedBytecode: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer<ArrayBuffer>, string>, z.ZodEffects<z.ZodObject<{
2396
+ type: z.ZodLiteral<"Buffer">;
2397
+ data: z.ZodArray<z.ZodNumber, "many">;
2398
+ }, "strip", z.ZodTypeAny, {
2399
+ type: "Buffer";
2400
+ data: number[];
2401
+ }, {
2402
+ type: "Buffer";
2403
+ data: number[];
2404
+ }>, Buffer<ArrayBuffer>, {
2405
+ type: "Buffer";
2406
+ data: number[];
2407
+ }>]>;
2408
+ } & {
2409
+ id: z.ZodType<Fr, any, string>;
2410
+ }, "strip", z.ZodTypeAny, {
2411
+ version: 1;
2412
+ id: Fr;
2413
+ artifactHash: Fr;
2414
+ packedBytecode: Buffer<ArrayBuffer>;
2415
+ privateFunctions: {
2416
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
2417
+ vkHash: Fr;
2418
+ }[];
2419
+ }, {
2420
+ version: 1;
2421
+ id: string;
2422
+ artifactHash: string;
2423
+ packedBytecode: string | {
2424
+ type: "Buffer";
2425
+ data: number[];
2426
+ };
2427
+ privateFunctions: {
2428
+ vkHash: string;
2429
+ selector?: any;
2430
+ }[];
2431
+ }>, z.ZodUndefined]>;
2432
+ isContractClassPubliclyRegistered: z.ZodBoolean;
2433
+ artifact: z.ZodUnion<[ZodFor<ContractArtifact>, z.ZodUndefined]>;
2434
+ }, "strip", z.ZodTypeAny, {
2435
+ isContractClassPubliclyRegistered: boolean;
2436
+ artifact?: ContractArtifact | undefined;
2437
+ contractClass?: {
2438
+ version: 1;
2439
+ id: Fr;
2440
+ artifactHash: Fr;
2441
+ packedBytecode: Buffer<ArrayBuffer>;
2442
+ privateFunctions: {
2443
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
2444
+ vkHash: Fr;
2445
+ }[];
2446
+ } | undefined;
2447
+ }, {
2448
+ isContractClassPubliclyRegistered: boolean;
2449
+ artifact?: any;
2450
+ contractClass?: {
2451
+ version: 1;
2452
+ id: string;
2453
+ artifactHash: string;
2454
+ packedBytecode: string | {
2455
+ type: "Buffer";
2456
+ data: number[];
2457
+ };
2458
+ privateFunctions: {
2459
+ vkHash: string;
2460
+ selector?: any;
2461
+ }[];
2462
+ } | undefined;
2463
+ }>;
2464
+ export declare const EventMetadataDefinitionSchema: z.ZodObject<{
2465
+ eventSelector: z.ZodType<import("@aztec/stdlib/abi").EventSelector, any, string>;
2466
+ abiType: z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>;
2467
+ fieldNames: z.ZodArray<z.ZodString, "many">;
2468
+ }, "strip", z.ZodTypeAny, {
2469
+ eventSelector: import("@aztec/stdlib/abi").EventSelector;
2470
+ abiType: import("@aztec/stdlib/abi").AbiType;
2471
+ fieldNames: string[];
2472
+ }, {
2473
+ eventSelector: string;
2474
+ abiType: import("@aztec/stdlib/abi").AbiType;
2475
+ fieldNames: string[];
2476
+ }>;
2477
+ export declare const WalletSchema: ApiSchemaFor<Wallet>;
2478
+ //# sourceMappingURL=wallet.d.ts.map