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

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