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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/README.md +1 -1
  2. package/dest/account/account.d.ts +60 -0
  3. package/dest/account/account.d.ts.map +1 -0
  4. package/dest/account/account.js +59 -0
  5. package/dest/account/{contract.d.ts → account_contract.d.ts} +16 -10
  6. package/dest/account/account_contract.d.ts.map +1 -0
  7. package/dest/account/{contract.js → account_contract.js} +7 -4
  8. package/dest/{wallet/account_wallet_with_private_key.d.ts → account/account_with_secret_key.d.ts} +7 -8
  9. package/dest/account/account_with_secret_key.d.ts.map +1 -0
  10. package/dest/{wallet/account_wallet_with_private_key.js → account/account_with_secret_key.js} +5 -5
  11. package/dest/account/index.d.ts +3 -7
  12. package/dest/account/index.d.ts.map +1 -1
  13. package/dest/account/index.js +2 -6
  14. package/dest/account/interface.d.ts +1 -13
  15. package/dest/account/interface.d.ts.map +1 -1
  16. package/dest/account/interface.js +1 -0
  17. package/dest/account/signerless_account.d.ts +24 -0
  18. package/dest/account/signerless_account.d.ts.map +1 -0
  19. package/dest/account/signerless_account.js +27 -0
  20. package/dest/api/abi.d.ts +2 -1
  21. package/dest/api/abi.d.ts.map +1 -1
  22. package/dest/api/abi.js +1 -1
  23. package/dest/api/account.d.ts +5 -2
  24. package/dest/api/account.d.ts.map +1 -1
  25. package/dest/api/account.js +3 -1
  26. package/dest/api/addresses.d.ts +1 -0
  27. package/dest/api/addresses.d.ts.map +1 -1
  28. package/dest/api/addresses.js +1 -0
  29. package/dest/api/authorization.d.ts +5 -0
  30. package/dest/api/authorization.d.ts.map +1 -0
  31. package/dest/api/authorization.js +4 -0
  32. package/dest/api/block.d.ts +3 -0
  33. package/dest/api/block.d.ts.map +1 -0
  34. package/dest/api/block.js +2 -0
  35. package/dest/{contract/index.d.ts → api/contract.d.ts} +15 -11
  36. package/dest/api/contract.d.ts.map +1 -0
  37. package/dest/{contract/index.js → api/contract.js} +14 -10
  38. package/dest/api/crypto.d.ts +2 -0
  39. package/dest/api/crypto.d.ts.map +1 -0
  40. package/dest/api/crypto.js +1 -0
  41. package/dest/api/deployment.d.ts +4 -3
  42. package/dest/api/deployment.d.ts.map +1 -1
  43. package/dest/api/deployment.js +4 -3
  44. package/dest/api/ethereum.d.ts +2 -0
  45. package/dest/api/ethereum.d.ts.map +1 -0
  46. package/dest/api/ethereum.js +1 -0
  47. package/dest/api/events.d.ts +12 -0
  48. package/dest/api/events.d.ts.map +1 -0
  49. package/dest/api/events.js +30 -0
  50. package/dest/api/fee.d.ts +1 -1
  51. package/dest/api/fee.d.ts.map +1 -1
  52. package/dest/api/fee.js +1 -1
  53. package/dest/api/fee_testing.d.ts +2 -0
  54. package/dest/api/fee_testing.d.ts.map +1 -0
  55. package/dest/api/fee_testing.js +1 -0
  56. package/dest/api/keys.d.ts +4 -0
  57. package/dest/api/keys.d.ts.map +1 -0
  58. package/dest/api/keys.js +3 -0
  59. package/dest/api/log.d.ts +1 -0
  60. package/dest/api/log.d.ts.map +1 -1
  61. package/dest/api/log.js +1 -0
  62. package/dest/api/messaging.d.ts +3 -0
  63. package/dest/api/messaging.d.ts.map +1 -0
  64. package/dest/api/messaging.js +2 -0
  65. package/dest/api/node.d.ts +21 -0
  66. package/dest/api/node.d.ts.map +1 -0
  67. package/dest/api/node.js +18 -0
  68. package/dest/api/note.d.ts +2 -0
  69. package/dest/api/note.d.ts.map +1 -0
  70. package/dest/api/note.js +1 -0
  71. package/dest/api/protocol.d.ts +3 -0
  72. package/dest/api/protocol.d.ts.map +1 -0
  73. package/dest/api/protocol.js +2 -0
  74. package/dest/api/trees.d.ts +3 -0
  75. package/dest/api/trees.d.ts.map +1 -0
  76. package/dest/api/trees.js +2 -0
  77. package/dest/api/tx.d.ts +2 -0
  78. package/dest/api/tx.d.ts.map +1 -0
  79. package/dest/api/tx.js +1 -0
  80. package/dest/api/utils.d.ts +13 -0
  81. package/dest/api/utils.d.ts.map +1 -0
  82. package/dest/api/utils.js +12 -0
  83. package/dest/api/wallet.d.ts +4 -1
  84. package/dest/api/wallet.d.ts.map +1 -1
  85. package/dest/api/wallet.js +4 -1
  86. package/dest/authorization/call_authorization_request.d.ts +67 -0
  87. package/dest/authorization/call_authorization_request.d.ts.map +1 -0
  88. package/dest/authorization/call_authorization_request.js +49 -0
  89. package/dest/contract/base_contract_interaction.d.ts +16 -79
  90. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  91. package/dest/contract/base_contract_interaction.js +15 -128
  92. package/dest/contract/batch_call.d.ts +13 -14
  93. package/dest/contract/batch_call.d.ts.map +1 -1
  94. package/dest/contract/batch_call.js +60 -60
  95. package/dest/contract/checker.d.ts +1 -1
  96. package/dest/contract/checker.d.ts.map +1 -1
  97. package/dest/contract/checker.js +2 -2
  98. package/dest/contract/contract.d.ts +7 -6
  99. package/dest/contract/contract.d.ts.map +1 -1
  100. package/dest/contract/contract.js +7 -16
  101. package/dest/contract/contract_base.d.ts +3 -9
  102. package/dest/contract/contract_base.d.ts.map +1 -1
  103. package/dest/contract/contract_base.js +2 -2
  104. package/dest/contract/contract_function_interaction.d.ts +52 -44
  105. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  106. package/dest/contract/contract_function_interaction.js +75 -74
  107. package/dest/contract/deploy_method.d.ts +102 -57
  108. package/dest/contract/deploy_method.d.ts.map +1 -1
  109. package/dest/contract/deploy_method.js +122 -132
  110. package/dest/contract/deploy_sent_tx.d.ts +3 -5
  111. package/dest/contract/deploy_sent_tx.d.ts.map +1 -1
  112. package/dest/contract/deploy_sent_tx.js +10 -13
  113. package/dest/contract/get_gas_limits.d.ts +5 -6
  114. package/dest/contract/get_gas_limits.d.ts.map +1 -1
  115. package/dest/contract/get_gas_limits.js +9 -3
  116. package/dest/contract/interaction_options.d.ts +114 -0
  117. package/dest/contract/interaction_options.d.ts.map +1 -0
  118. package/dest/contract/interaction_options.js +52 -0
  119. package/dest/contract/protocol_contracts.d.ts +6 -6
  120. package/dest/contract/protocol_contracts.d.ts.map +1 -1
  121. package/dest/contract/protocol_contracts.js +7 -7
  122. package/dest/contract/sent_tx.d.ts +8 -18
  123. package/dest/contract/sent_tx.d.ts.map +1 -1
  124. package/dest/contract/sent_tx.js +30 -42
  125. package/dest/contract/unsafe_contract.d.ts +1 -1
  126. package/dest/contract/unsafe_contract.d.ts.map +1 -1
  127. package/dest/contract/wait_for_proven.d.ts +17 -0
  128. package/dest/contract/wait_for_proven.d.ts.map +1 -0
  129. package/dest/contract/wait_for_proven.js +17 -0
  130. package/dest/deployment/broadcast_function.d.ts +3 -3
  131. package/dest/deployment/broadcast_function.d.ts.map +1 -1
  132. package/dest/deployment/broadcast_function.js +27 -23
  133. package/dest/deployment/contract_deployer.d.ts +1 -1
  134. package/dest/deployment/contract_deployer.d.ts.map +1 -1
  135. package/dest/deployment/publish_class.d.ts +6 -0
  136. package/dest/deployment/publish_class.d.ts.map +1 -0
  137. package/dest/deployment/publish_class.js +17 -0
  138. package/dest/deployment/publish_instance.d.ts +10 -0
  139. package/dest/deployment/publish_instance.d.ts.map +1 -0
  140. package/dest/deployment/publish_instance.js +11 -0
  141. package/dest/{api/ethereum → ethereum}/portal_manager.d.ts +29 -25
  142. package/dest/ethereum/portal_manager.d.ts.map +1 -0
  143. package/dest/{api/ethereum → ethereum}/portal_manager.js +106 -73
  144. package/dest/fee/fee_juice_payment_method_with_claim.d.ts +16 -11
  145. package/dest/fee/fee_juice_payment_method_with_claim.d.ts.map +1 -1
  146. package/dest/fee/fee_juice_payment_method_with_claim.js +26 -16
  147. package/dest/fee/fee_payment_method.d.ts +11 -7
  148. package/dest/fee/fee_payment_method.d.ts.map +1 -1
  149. package/dest/fee/private_fee_payment_method.d.ts +25 -8
  150. package/dest/fee/private_fee_payment_method.d.ts.map +1 -1
  151. package/dest/fee/private_fee_payment_method.js +43 -21
  152. package/dest/fee/public_fee_payment_method.d.ts +26 -9
  153. package/dest/fee/public_fee_payment_method.d.ts.map +1 -1
  154. package/dest/fee/public_fee_payment_method.js +45 -23
  155. package/dest/fee/sponsored_fee_payment.d.ts +17 -0
  156. package/dest/fee/sponsored_fee_payment.d.ts.map +1 -0
  157. package/dest/fee/sponsored_fee_payment.js +34 -0
  158. package/dest/utils/abi_types.d.ts +0 -2
  159. package/dest/utils/abi_types.d.ts.map +1 -1
  160. package/dest/utils/authwit.d.ts +81 -24
  161. package/dest/utils/authwit.d.ts.map +1 -1
  162. package/dest/utils/authwit.js +226 -40
  163. package/dest/utils/cross_chain.d.ts +24 -0
  164. package/dest/utils/cross_chain.d.ts.map +1 -0
  165. package/dest/utils/cross_chain.js +30 -0
  166. package/dest/utils/fee_juice.d.ts +3 -2
  167. package/dest/utils/fee_juice.d.ts.map +1 -1
  168. package/dest/utils/fee_juice.js +3 -2
  169. package/dest/utils/field_compressed_string.d.ts.map +1 -1
  170. package/dest/utils/node.d.ts.map +1 -1
  171. package/dest/utils/node.js +1 -1
  172. package/dest/utils/pub_key.d.ts.map +1 -1
  173. package/dest/utils/pub_key.js +1 -2
  174. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +34 -0
  175. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -0
  176. package/dest/wallet/account_entrypoint_meta_payment_method.js +76 -0
  177. package/dest/wallet/account_manager.d.ts +69 -0
  178. package/dest/wallet/account_manager.d.ts.map +1 -0
  179. package/dest/wallet/account_manager.js +113 -0
  180. package/dest/wallet/base_wallet.d.ts +81 -63
  181. package/dest/wallet/base_wallet.d.ts.map +1 -1
  182. package/dest/wallet/base_wallet.js +221 -106
  183. package/dest/wallet/deploy_account_method.d.ts +52 -0
  184. package/dest/wallet/deploy_account_method.d.ts.map +1 -0
  185. package/dest/wallet/deploy_account_method.js +77 -0
  186. package/dest/wallet/index.d.ts +3 -16
  187. package/dest/wallet/index.d.ts.map +1 -1
  188. package/dest/wallet/index.js +3 -20
  189. package/dest/wallet/wallet.d.ts +2478 -0
  190. package/dest/wallet/wallet.d.ts.map +1 -0
  191. package/dest/wallet/wallet.js +202 -0
  192. package/package.json +40 -32
  193. package/src/account/account.ts +97 -0
  194. package/src/account/{contract.ts → account_contract.ts} +24 -13
  195. package/src/{wallet/account_wallet_with_private_key.ts → account/account_with_secret_key.ts} +6 -8
  196. package/src/account/index.ts +3 -7
  197. package/src/account/interface.ts +1 -12
  198. package/src/account/signerless_account.ts +46 -0
  199. package/src/api/abi.ts +26 -0
  200. package/src/api/account.ts +5 -9
  201. package/src/api/addresses.ts +1 -0
  202. package/src/api/authorization.ts +14 -0
  203. package/src/api/block.ts +2 -0
  204. package/src/{contract/index.ts → api/contract.ts} +37 -13
  205. package/src/api/crypto.ts +1 -0
  206. package/src/api/deployment.ts +4 -3
  207. package/src/api/ethereum.ts +10 -0
  208. package/src/api/events.ts +44 -0
  209. package/src/api/fee.ts +1 -1
  210. package/src/api/fee_testing.ts +1 -0
  211. package/src/api/keys.ts +8 -0
  212. package/src/api/log.ts +1 -0
  213. package/src/api/messaging.ts +2 -0
  214. package/src/api/node.ts +20 -0
  215. package/src/api/note.ts +1 -0
  216. package/src/api/protocol.ts +2 -0
  217. package/src/api/trees.ts +2 -0
  218. package/src/api/tx.ts +11 -0
  219. package/src/api/utils.ts +14 -0
  220. package/src/api/wallet.ts +33 -5
  221. package/src/authorization/call_authorization_request.ts +63 -0
  222. package/src/contract/base_contract_interaction.ts +24 -166
  223. package/src/contract/batch_call.ts +81 -49
  224. package/src/contract/checker.ts +8 -3
  225. package/src/contract/contract.ts +8 -17
  226. package/src/contract/contract_base.ts +4 -11
  227. package/src/contract/contract_function_interaction.ts +136 -106
  228. package/src/contract/deploy_method.ts +199 -129
  229. package/src/contract/deploy_sent_tx.ts +9 -15
  230. package/src/contract/get_gas_limits.ts +15 -8
  231. package/src/contract/interaction_options.ts +169 -0
  232. package/src/contract/protocol_contracts.ts +10 -10
  233. package/src/contract/sent_tx.ts +40 -51
  234. package/src/contract/unsafe_contract.ts +1 -1
  235. package/src/contract/wait_for_proven.ts +38 -0
  236. package/src/deployment/broadcast_function.ts +57 -57
  237. package/src/deployment/contract_deployer.ts +1 -1
  238. package/src/deployment/publish_class.ts +34 -0
  239. package/src/deployment/publish_instance.ts +26 -0
  240. package/src/{api/ethereum → ethereum}/portal_manager.ts +120 -74
  241. package/src/fee/fee_juice_payment_method_with_claim.ts +46 -33
  242. package/src/fee/fee_payment_method.ts +11 -7
  243. package/src/fee/private_fee_payment_method.ts +77 -57
  244. package/src/fee/public_fee_payment_method.ts +91 -67
  245. package/src/fee/sponsored_fee_payment.ts +44 -0
  246. package/src/utils/authwit.ts +255 -53
  247. package/src/utils/cross_chain.ts +53 -0
  248. package/src/utils/fee_juice.ts +4 -4
  249. package/src/utils/node.ts +1 -1
  250. package/src/utils/pub_key.ts +1 -2
  251. package/src/wallet/account_entrypoint_meta_payment_method.ts +105 -0
  252. package/src/wallet/account_manager.ts +154 -0
  253. package/src/wallet/base_wallet.ts +295 -143
  254. package/src/wallet/deploy_account_method.ts +125 -0
  255. package/src/wallet/index.ts +3 -33
  256. package/src/wallet/wallet.ts +362 -0
  257. package/dest/account/contract.d.ts.map +0 -1
  258. package/dest/account/wallet.d.ts +0 -11
  259. package/dest/account/wallet.d.ts.map +0 -1
  260. package/dest/account/wallet.js +0 -3
  261. package/dest/account_manager/deploy_account_method.d.ts +0 -15
  262. package/dest/account_manager/deploy_account_method.d.ts.map +0 -1
  263. package/dest/account_manager/deploy_account_method.js +0 -43
  264. package/dest/account_manager/deploy_account_sent_tx.d.ts +0 -30
  265. package/dest/account_manager/deploy_account_sent_tx.d.ts.map +0 -1
  266. package/dest/account_manager/deploy_account_sent_tx.js +0 -29
  267. package/dest/account_manager/index.d.ts +0 -108
  268. package/dest/account_manager/index.d.ts.map +0 -1
  269. package/dest/account_manager/index.js +0 -159
  270. package/dest/api/cheat_codes.d.ts +0 -26
  271. package/dest/api/cheat_codes.d.ts.map +0 -1
  272. package/dest/api/cheat_codes.js +0 -25
  273. package/dest/api/entrypoint.d.ts +0 -2
  274. package/dest/api/entrypoint.d.ts.map +0 -1
  275. package/dest/api/entrypoint.js +0 -1
  276. package/dest/api/ethereum/anvil_test_watcher.d.ts +0 -32
  277. package/dest/api/ethereum/anvil_test_watcher.d.ts.map +0 -1
  278. package/dest/api/ethereum/anvil_test_watcher.js +0 -133
  279. package/dest/api/ethereum/chain_monitor.d.ts +0 -25
  280. package/dest/api/ethereum/chain_monitor.d.ts.map +0 -1
  281. package/dest/api/ethereum/chain_monitor.js +0 -74
  282. package/dest/api/ethereum/cheat_codes.d.ts +0 -63
  283. package/dest/api/ethereum/cheat_codes.d.ts.map +0 -1
  284. package/dest/api/ethereum/cheat_codes.js +0 -162
  285. package/dest/api/ethereum/index.d.ts +0 -7
  286. package/dest/api/ethereum/index.d.ts.map +0 -1
  287. package/dest/api/ethereum/index.js +0 -6
  288. package/dest/api/ethereum/l1_contracts.d.ts +0 -3
  289. package/dest/api/ethereum/l1_contracts.d.ts.map +0 -1
  290. package/dest/api/ethereum/l1_contracts.js +0 -13
  291. package/dest/api/ethereum/portal_manager.d.ts.map +0 -1
  292. package/dest/api/interfaces/pxe.d.ts +0 -2
  293. package/dest/api/interfaces/pxe.d.ts.map +0 -1
  294. package/dest/api/interfaces/pxe.js +0 -1
  295. package/dest/api/log_id.d.ts +0 -2
  296. package/dest/api/log_id.d.ts.map +0 -1
  297. package/dest/api/log_id.js +0 -1
  298. package/dest/api/tx_hash.d.ts +0 -2
  299. package/dest/api/tx_hash.d.ts.map +0 -1
  300. package/dest/api/tx_hash.js +0 -1
  301. package/dest/contract/deploy_proven_tx.d.ts +0 -21
  302. package/dest/contract/deploy_proven_tx.d.ts.map +0 -1
  303. package/dest/contract/deploy_proven_tx.js +0 -19
  304. package/dest/contract/index.d.ts.map +0 -1
  305. package/dest/contract/proven_tx.d.ts +0 -17
  306. package/dest/contract/proven_tx.d.ts.map +0 -1
  307. package/dest/contract/proven_tx.js +0 -22
  308. package/dest/deployment/deploy_instance.d.ts +0 -10
  309. package/dest/deployment/deploy_instance.d.ts.map +0 -1
  310. package/dest/deployment/deploy_instance.js +0 -14
  311. package/dest/deployment/index.d.ts +0 -2
  312. package/dest/deployment/index.d.ts.map +0 -1
  313. package/dest/deployment/index.js +0 -1
  314. package/dest/deployment/register_class.d.ts +0 -6
  315. package/dest/deployment/register_class.d.ts.map +0 -1
  316. package/dest/deployment/register_class.js +0 -22
  317. package/dest/entrypoint/default_entrypoint.d.ts +0 -12
  318. package/dest/entrypoint/default_entrypoint.d.ts.map +0 -1
  319. package/dest/entrypoint/default_entrypoint.js +0 -28
  320. package/dest/entrypoint/default_multi_call_entrypoint.d.ts +0 -15
  321. package/dest/entrypoint/default_multi_call_entrypoint.d.ts.map +0 -1
  322. package/dest/entrypoint/default_multi_call_entrypoint.js +0 -130
  323. package/dest/entrypoint/entrypoint.d.ts +0 -35
  324. package/dest/entrypoint/entrypoint.d.ts.map +0 -1
  325. package/dest/entrypoint/entrypoint.js +0 -4
  326. package/dest/entrypoint/payload.d.ts +0 -128
  327. package/dest/entrypoint/payload.d.ts.map +0 -1
  328. package/dest/entrypoint/payload.js +0 -143
  329. package/dest/fee/fee_juice_payment_method.d.ts +0 -14
  330. package/dest/fee/fee_juice_payment_method.d.ts.map +0 -1
  331. package/dest/fee/fee_juice_payment_method.js +0 -20
  332. package/dest/index.d.ts +0 -66
  333. package/dest/index.d.ts.map +0 -1
  334. package/dest/index.js +0 -69
  335. package/dest/rpc_clients/index.d.ts +0 -3
  336. package/dest/rpc_clients/index.d.ts.map +0 -1
  337. package/dest/rpc_clients/index.js +0 -2
  338. package/dest/rpc_clients/node/index.d.ts +0 -12
  339. package/dest/rpc_clients/node/index.d.ts.map +0 -1
  340. package/dest/rpc_clients/node/index.js +0 -78
  341. package/dest/rpc_clients/pxe_client.d.ts +0 -10
  342. package/dest/rpc_clients/pxe_client.d.ts.map +0 -1
  343. package/dest/rpc_clients/pxe_client.js +0 -23
  344. package/dest/utils/aztec_cheatcodes.d.ts +0 -59
  345. package/dest/utils/aztec_cheatcodes.d.ts.map +0 -1
  346. package/dest/utils/aztec_cheatcodes.js +0 -62
  347. package/dest/utils/index.d.ts +0 -8
  348. package/dest/utils/index.d.ts.map +0 -1
  349. package/dest/utils/index.js +0 -6
  350. package/dest/utils/pxe.d.ts +0 -4
  351. package/dest/utils/pxe.d.ts.map +0 -1
  352. package/dest/utils/pxe.js +0 -14
  353. package/dest/wallet/account_wallet.d.ts +0 -76
  354. package/dest/wallet/account_wallet.d.ts.map +0 -1
  355. package/dest/wallet/account_wallet.js +0 -231
  356. package/dest/wallet/account_wallet_with_private_key.d.ts.map +0 -1
  357. package/dest/wallet/signerless_wallet.d.ts +0 -25
  358. package/dest/wallet/signerless_wallet.d.ts.map +0 -1
  359. package/dest/wallet/signerless_wallet.js +0 -36
  360. package/src/account/wallet.ts +0 -13
  361. package/src/account_manager/deploy_account_method.ts +0 -86
  362. package/src/account_manager/deploy_account_sent_tx.ts +0 -42
  363. package/src/account_manager/index.ts +0 -229
  364. package/src/api/cheat_codes.ts +0 -35
  365. package/src/api/entrypoint.ts +0 -1
  366. package/src/api/ethereum/anvil_test_watcher.ts +0 -158
  367. package/src/api/ethereum/chain_monitor.ts +0 -88
  368. package/src/api/ethereum/cheat_codes.ts +0 -184
  369. package/src/api/ethereum/index.ts +0 -19
  370. package/src/api/ethereum/l1_contracts.ts +0 -21
  371. package/src/api/interfaces/pxe.ts +0 -1
  372. package/src/api/log_id.ts +0 -1
  373. package/src/api/tx_hash.ts +0 -1
  374. package/src/contract/deploy_proven_tx.ts +0 -34
  375. package/src/contract/proven_tx.ts +0 -42
  376. package/src/deployment/deploy_instance.ts +0 -31
  377. package/src/deployment/index.ts +0 -1
  378. package/src/deployment/register_class.ts +0 -44
  379. package/src/entrypoint/default_entrypoint.ts +0 -39
  380. package/src/entrypoint/default_multi_call_entrypoint.ts +0 -93
  381. package/src/entrypoint/entrypoint.ts +0 -39
  382. package/src/entrypoint/payload.ts +0 -238
  383. package/src/fee/fee_juice_payment_method.ts +0 -26
  384. package/src/index.ts +0 -106
  385. package/src/rpc_clients/index.ts +0 -2
  386. package/src/rpc_clients/node/index.ts +0 -77
  387. package/src/rpc_clients/pxe_client.ts +0 -25
  388. package/src/utils/aztec_cheatcodes.ts +0 -77
  389. package/src/utils/index.ts +0 -21
  390. package/src/utils/pxe.ts +0 -17
  391. package/src/wallet/account_wallet.ts +0 -242
  392. package/src/wallet/signerless_wallet.ts +0 -52
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Aztec.js
2
2
 
3
- Aztec.js is a library that provides APIs for managing accounts and interacting with contracts on the Aztec network. It communicates with the [Private eXecution Environment (PXE)](https://docs.aztec.network/developers/reference/aztecjs/pxe) through a `PXE` implementation, allowing developers to easily register new accounts, deploy contracts, view functions, and send transactions.
3
+ Aztec.js is a library that provides APIs for managing accounts and interacting with contracts on the Aztec network. It communicates with the [Private eXecution Environment (PXE)](https://docs.aztec.network/developers/foundational-topics/pxe) through a `PXE` implementation, allowing developers to easily register new accounts, deploy contracts, view functions, and send transactions.
4
4
 
5
5
  ## Installing
6
6
 
@@ -0,0 +1,60 @@
1
+ import type { DefaultAccountEntrypointOptions } from '@aztec/entrypoints/account';
2
+ import type { ExecutionPayload } from '@aztec/entrypoints/payload';
3
+ import { Fr } from '@aztec/foundation/fields';
4
+ import { AuthWitness } from '@aztec/stdlib/auth-witness';
5
+ import type { GasSettings } from '@aztec/stdlib/gas';
6
+ import type { TxExecutionRequest } from '@aztec/stdlib/tx';
7
+ import { type CallIntent, type IntentInnerHash } from '../utils/authwit.js';
8
+ import type { AccountInterface } from './interface.js';
9
+ /**
10
+ * An authwit provider that can create both private and public authwits
11
+ * with an intent as input, as opposed to just a precomputed inner hash
12
+ */
13
+ interface AuthwitnessIntentProvider {
14
+ /**
15
+ * Creates a private authwit from an intent or inner hash, to be provided
16
+ * during function execution
17
+ * @param intent - The action (or inner hash) to authorize
18
+ */
19
+ createAuthWit(intent: IntentInnerHash | CallIntent | Buffer | Fr): Promise<AuthWitness>;
20
+ }
21
+ /**
22
+ * A type defining an account, capable of both creating authwits and using them
23
+ * to authenticate transaction execution requests.
24
+ */
25
+ export type Account = AccountInterface & AuthwitnessIntentProvider;
26
+ /**
27
+ * An account implementation that uses authwits as an authentication mechanism
28
+ * and can assemble transaction execution requests for an entrypoint.
29
+ */
30
+ export declare class BaseAccount implements Account {
31
+ protected account: AccountInterface;
32
+ constructor(account: AccountInterface);
33
+ createTxExecutionRequest(exec: ExecutionPayload, gasSettings: GasSettings, options: DefaultAccountEntrypointOptions): Promise<TxExecutionRequest>;
34
+ getChainId(): Fr;
35
+ getVersion(): Fr;
36
+ /** Returns the complete address of the account that implements this wallet. */
37
+ getCompleteAddress(): import("../api/addresses.js").CompleteAddress;
38
+ /** Returns the address of the account that implements this wallet. */
39
+ getAddress(): import("../api/addresses.js").AztecAddress;
40
+ /**
41
+ * Computes an authentication witness from either a message hash or an intent.
42
+ *
43
+ * If a message hash is provided, it will create a witness for the hash directly.
44
+ * Otherwise, it will compute the message hash using the intent, along with the
45
+ * chain id and the version values provided by the wallet.
46
+ *
47
+ * @param messageHashOrIntent - The message hash of the intent to approve
48
+ * @returns The authentication witness
49
+ */
50
+ createAuthWit(messageHashOrIntent: Fr | Buffer | CallIntent | IntentInnerHash): Promise<AuthWitness>;
51
+ /**
52
+ * Returns the message hash for the given intent
53
+ *
54
+ * @param intent - A tuple of (consumer and inner hash) or (caller and action)
55
+ * @returns The message hash
56
+ */
57
+ private getMessageHash;
58
+ }
59
+ export {};
60
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAA6B,MAAM,qBAAqB,CAAC;AACvG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,UAAU,yBAAyB;IACjC;;;;OAIG;IACH,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,UAAU,GAAG,MAAM,GAAG,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACzF;AAED;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,gBAAgB,GAAG,yBAAyB,CAAC;AAEnE;;;GAGG;AACH,qBAAa,WAAY,YAAW,OAAO;IAC7B,SAAS,CAAC,OAAO,EAAE,gBAAgB;gBAAzB,OAAO,EAAE,gBAAgB;IAE/C,wBAAwB,CACtB,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,kBAAkB,CAAC;IAI9B,UAAU,IAAI,EAAE;IAIhB,UAAU,IAAI,EAAE;IAIhB,+EAA+E;IACxE,kBAAkB;IAIzB,sEAAsE;IAC/D,UAAU;IAIjB;;;;;;;;;OASG;IACG,aAAa,CAAC,mBAAmB,EAAE,EAAE,GAAG,MAAM,GAAG,UAAU,GAAG,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;IAa1G;;;;;OAKG;IACH,OAAO,CAAC,cAAc;CAKvB"}
@@ -0,0 +1,59 @@
1
+ import { Fr } from '@aztec/foundation/fields';
2
+ import { computeAuthWitMessageHash } from '../utils/authwit.js';
3
+ /**
4
+ * An account implementation that uses authwits as an authentication mechanism
5
+ * and can assemble transaction execution requests for an entrypoint.
6
+ */ export class BaseAccount {
7
+ account;
8
+ constructor(account){
9
+ this.account = account;
10
+ }
11
+ createTxExecutionRequest(exec, gasSettings, options) {
12
+ return this.account.createTxExecutionRequest(exec, gasSettings, options);
13
+ }
14
+ getChainId() {
15
+ return this.account.getChainId();
16
+ }
17
+ getVersion() {
18
+ return this.account.getVersion();
19
+ }
20
+ /** Returns the complete address of the account that implements this wallet. */ getCompleteAddress() {
21
+ return this.account.getCompleteAddress();
22
+ }
23
+ /** Returns the address of the account that implements this wallet. */ getAddress() {
24
+ return this.getCompleteAddress().address;
25
+ }
26
+ /**
27
+ * Computes an authentication witness from either a message hash or an intent.
28
+ *
29
+ * If a message hash is provided, it will create a witness for the hash directly.
30
+ * Otherwise, it will compute the message hash using the intent, along with the
31
+ * chain id and the version values provided by the wallet.
32
+ *
33
+ * @param messageHashOrIntent - The message hash of the intent to approve
34
+ * @returns The authentication witness
35
+ */ async createAuthWit(messageHashOrIntent) {
36
+ let messageHash;
37
+ if (Buffer.isBuffer(messageHashOrIntent)) {
38
+ messageHash = Fr.fromBuffer(messageHashOrIntent);
39
+ } else if (messageHashOrIntent instanceof Fr) {
40
+ messageHash = messageHashOrIntent;
41
+ } else {
42
+ messageHash = await this.getMessageHash(messageHashOrIntent);
43
+ }
44
+ return this.account.createAuthWit(messageHash);
45
+ }
46
+ /**
47
+ * Returns the message hash for the given intent
48
+ *
49
+ * @param intent - A tuple of (consumer and inner hash) or (caller and action)
50
+ * @returns The message hash
51
+ */ getMessageHash(intent) {
52
+ const chainId = this.getChainId();
53
+ const version = this.getVersion();
54
+ return computeAuthWitMessageHash(intent, {
55
+ chainId,
56
+ version
57
+ });
58
+ }
59
+ }
@@ -1,7 +1,8 @@
1
+ import type { AuthWitnessProvider, ChainInfo } from '@aztec/entrypoints/interfaces';
1
2
  import { Fr } from '@aztec/foundation/fields';
2
3
  import type { ContractArtifact } from '@aztec/stdlib/abi';
3
- import type { CompleteAddress, NodeInfo } from '@aztec/stdlib/contract';
4
- import type { AccountInterface, AuthWitnessProvider } from './interface.js';
4
+ import type { CompleteAddress } from '@aztec/stdlib/contract';
5
+ import type { AccountInterface } from './interface.js';
5
6
  /**
6
7
  * An account contract instance. Knows its artifact, deployment arguments, how to create
7
8
  * transaction execution requests out of function calls, and how to authorize actions.
@@ -12,18 +13,23 @@ export interface AccountContract {
12
13
  */
13
14
  getContractArtifact(): Promise<ContractArtifact>;
14
15
  /**
15
- * Returns the deployment arguments for this instance, or undefined if this contract does not require deployment.
16
+ * Returns the initializer function name and arguments for this instance, or undefined if this contract does not require initialization.
16
17
  */
17
- getDeploymentArgs(): Promise<any[] | undefined>;
18
+ getInitializationFunctionAndArgs(): Promise<{
19
+ /** The name of the function used to initialize the contract */
20
+ constructorName: string;
21
+ /** The args to the function used to initialize the contract */
22
+ constructorArgs: any[];
23
+ } | undefined>;
18
24
  /**
19
- * Returns the account interface for this account contract given a deployment at the provided address.
25
+ * Returns the account interface for this account contract given an instance at the provided address.
20
26
  * The account interface is responsible for assembling tx requests given requested function calls, and
21
27
  * for creating signed auth witnesses given action identifiers (message hashes).
22
- * @param address - Address where this account contract is deployed.
23
- * @param nodeInfo - Info on the chain where it is deployed.
28
+ * @param address - Address of this account contract.
29
+ * @param chainInfo - Chain id and version of the rollup where the account contract is initialized / published.
24
30
  * @returns An account interface instance for creating tx requests and authorizing actions.
25
31
  */
26
- getInterface(address: CompleteAddress, nodeInfo: NodeInfo): AccountInterface;
32
+ getInterface(address: CompleteAddress, chainInfo: ChainInfo): AccountInterface;
27
33
  /**
28
34
  * Returns the auth witness provider for the given address.
29
35
  * @param address - Address for which to create auth witnesses.
@@ -33,5 +39,5 @@ export interface AccountContract {
33
39
  /**
34
40
  * Compute the address of an account contract from secret and salt.
35
41
  */
36
- export declare function getAccountContractAddress(accountContract: AccountContract, secret: Fr, salt: Fr): Promise<import("@aztec/stdlib/aztec-address").AztecAddress>;
37
- //# sourceMappingURL=contract.d.ts.map
42
+ export declare function getAccountContractAddress(accountContract: AccountContract, secret: Fr, salt: Fr): Promise<import("../api/addresses.js").AztecAddress>;
43
+ //# sourceMappingURL=account_contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account_contract.d.ts","sourceRoot":"","sources":["../../src/account/account_contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAI9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEjD;;OAEG;IACH,gCAAgC,IAAI,OAAO,CACvC;QACE,+DAA+D;QAC/D,eAAe,EAAE,MAAM,CAAC;QACxB,+DAA+D;QAC/D,eAAe,EAAE,GAAG,EAAE,CAAC;KACxB,GACD,SAAS,CACZ,CAAC;IAEF;;;;;;;OAOG;IACH,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,GAAG,gBAAgB,CAAC;IAE/E;;;OAGG;IACH,sBAAsB,CAAC,OAAO,EAAE,eAAe,GAAG,mBAAmB,CAAC;CACvE;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,uDAcrG"}
@@ -1,13 +1,16 @@
1
- import { getContractInstanceFromDeployParams } from '@aztec/stdlib/contract';
1
+ import { getContractInstanceFromInstantiationParams } from '@aztec/stdlib/contract';
2
2
  import { deriveKeys } from '@aztec/stdlib/keys';
3
- // docs:end:account-contract-interface
4
3
  /**
5
4
  * Compute the address of an account contract from secret and salt.
6
5
  */ export async function getAccountContractAddress(accountContract, secret, salt) {
7
6
  const { publicKeys } = await deriveKeys(secret);
8
- const constructorArgs = await accountContract.getDeploymentArgs();
7
+ const { constructorName, constructorArgs } = await accountContract.getInitializationFunctionAndArgs() ?? {
8
+ constructorName: undefined,
9
+ constructorArgs: undefined
10
+ };
9
11
  const artifact = await accountContract.getContractArtifact();
10
- const instance = await getContractInstanceFromDeployParams(artifact, {
12
+ const instance = await getContractInstanceFromInstantiationParams(artifact, {
13
+ constructorArtifact: constructorName,
11
14
  constructorArgs,
12
15
  salt,
13
16
  publicKeys
@@ -1,18 +1,17 @@
1
1
  import type { Fr } from '@aztec/foundation/fields';
2
- import type { PXE } from '@aztec/stdlib/interfaces/client';
3
- import type { Salt } from '../account/index.js';
4
- import type { AccountInterface } from '../account/interface.js';
5
- import { AccountWallet } from './account_wallet.js';
2
+ import { BaseAccount } from './account.js';
3
+ import type { Salt } from './index.js';
4
+ import type { AccountInterface } from './interface.js';
6
5
  /**
7
- * Extends {@link AccountWallet} with the encryption private key. Not required for
6
+ * Extends {@link Account} with the encryption private key. Not required for
8
7
  * implementing the wallet interface but useful for testing purposes or exporting
9
8
  * an account to another pxe.
10
9
  */
11
- export declare class AccountWalletWithSecretKey extends AccountWallet {
10
+ export declare class AccountWithSecretKey extends BaseAccount {
12
11
  private secretKey;
13
12
  /** Deployment salt for this account contract. */
14
13
  readonly salt: Salt;
15
- constructor(pxe: PXE, account: AccountInterface, secretKey: Fr,
14
+ constructor(account: AccountInterface, secretKey: Fr,
16
15
  /** Deployment salt for this account contract. */
17
16
  salt: Salt);
18
17
  /** Returns the encryption private key associated with this account. */
@@ -23,4 +22,4 @@ export declare class AccountWalletWithSecretKey extends AccountWallet {
23
22
  */
24
23
  getEncryptionSecret(): Promise<import("@aztec/foundation/fields").Fq>;
25
24
  }
26
- //# sourceMappingURL=account_wallet_with_private_key.d.ts.map
25
+ //# sourceMappingURL=account_with_secret_key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account_with_secret_key.d.ts","sourceRoot":"","sources":["../../src/account/account_with_secret_key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAGnD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IAGjD,OAAO,CAAC,SAAS;IACjB,iDAAiD;aACjC,IAAI,EAAE,IAAI;gBAH1B,OAAO,EAAE,gBAAgB,EACjB,SAAS,EAAE,EAAE;IACrB,iDAAiD;IACjC,IAAI,EAAE,IAAI;IAK5B,uEAAuE;IAChE,YAAY;IAInB;;;OAGG;IACU,mBAAmB;CAMjC"}
@@ -1,14 +1,14 @@
1
1
  import { computeAddressSecret, deriveMasterIncomingViewingSecretKey } from '@aztec/stdlib/keys';
2
- import { AccountWallet } from './account_wallet.js';
2
+ import { BaseAccount } from './account.js';
3
3
  /**
4
- * Extends {@link AccountWallet} with the encryption private key. Not required for
4
+ * Extends {@link Account} with the encryption private key. Not required for
5
5
  * implementing the wallet interface but useful for testing purposes or exporting
6
6
  * an account to another pxe.
7
- */ export class AccountWalletWithSecretKey extends AccountWallet {
7
+ */ export class AccountWithSecretKey extends BaseAccount {
8
8
  secretKey;
9
9
  salt;
10
- constructor(pxe, account, secretKey, /** Deployment salt for this account contract. */ salt){
11
- super(pxe, account), this.secretKey = secretKey, this.salt = salt;
10
+ constructor(account, secretKey, /** Deployment salt for this account contract. */ salt){
11
+ super(account), this.secretKey = secretKey, this.salt = salt;
12
12
  }
13
13
  /** Returns the encryption private key associated with this account. */ getSecretKey() {
14
14
  return this.secretKey;
@@ -1,15 +1,11 @@
1
1
  /**
2
- * The `account` module provides utilities for managing accounts. The {@link AccountManager} class
3
- * allows to deploy and register a fresh account, or to obtain a `Wallet` instance out of an account
4
- * already deployed. Use the `@aztec/accounts` package to load default account implementations that rely
5
- * on ECDSA or Schnorr signatures.
2
+ * The `account` module provides utilities for managing accounts.
6
3
  *
7
4
  * @packageDocumentation
8
5
  */
9
6
  import type { Fr } from '@aztec/foundation/fields';
10
- export { type AccountContract, getAccountContractAddress } from './contract.js';
11
- export { type AccountInterface, type AuthWitnessProvider } from './interface.js';
12
- export * from './wallet.js';
7
+ export { type AccountContract, getAccountContractAddress } from './account_contract.js';
8
+ export { type AccountInterface } from './interface.js';
13
9
  /** A contract deployment salt. */
14
10
  export type Salt = Fr | number | bigint;
15
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,KAAK,eAAe,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACjF,cAAc,aAAa,CAAC;AAE5B,kCAAkC;AAClC,MAAM,MAAM,IAAI,GAAG,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,KAAK,eAAe,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,kCAAkC;AAClC,MAAM,MAAM,IAAI,GAAG,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC"}
@@ -1,9 +1,5 @@
1
1
  /**
2
- * The `account` module provides utilities for managing accounts. The {@link AccountManager} class
3
- * allows to deploy and register a fresh account, or to obtain a `Wallet` instance out of an account
4
- * already deployed. Use the `@aztec/accounts` package to load default account implementations that rely
5
- * on ECDSA or Schnorr signatures.
2
+ * The `account` module provides utilities for managing accounts.
6
3
  *
7
4
  * @packageDocumentation
8
- */ export { getAccountContractAddress } from './contract.js';
9
- export * from './wallet.js';
5
+ */ export { getAccountContractAddress } from './account_contract.js';
@@ -1,19 +1,7 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- /// <reference types="node" resolution-mode="require"/>
1
+ import type { AuthWitnessProvider, EntrypointInterface } from '@aztec/entrypoints/interfaces';
3
2
  import type { Fr } from '@aztec/foundation/fields';
4
- import type { AuthWitness } from '@aztec/stdlib/auth-witness';
5
3
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
6
4
  import type { CompleteAddress } from '@aztec/stdlib/contract';
7
- import type { EntrypointInterface } from '../entrypoint/entrypoint.js';
8
- /** Creates authorization witnesses. */
9
- export interface AuthWitnessProvider {
10
- /**
11
- * Computes an authentication witness from either a message hash
12
- * @param messageHash - The message hash to approve
13
- * @returns The authentication witness
14
- */
15
- createAuthWit(messageHash: Fr | Buffer): Promise<AuthWitness>;
16
- }
17
5
  /**
18
6
  * Handler for interfacing with an account. Knows how to create transaction execution
19
7
  * requests and authorize actions for its corresponding account.
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/account/interface.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGvE,uCAAuC;AACvC,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/D;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,EAAE,mBAAmB;IAChF,qDAAqD;IACrD,kBAAkB,IAAI,eAAe,CAAC;IAEtC,4CAA4C;IAC5C,UAAU,IAAI,YAAY,CAAC;IAE3B,4CAA4C;IAC5C,UAAU,IAAI,EAAE,CAAC;IAEjB,kDAAkD;IAClD,UAAU,IAAI,EAAE,CAAC;CAClB"}
1
+ {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/account/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAI9D;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,EAAE,mBAAmB;IAChF,qDAAqD;IACrD,kBAAkB,IAAI,eAAe,CAAC;IAEtC,4CAA4C;IAC5C,UAAU,IAAI,YAAY,CAAC;IAE3B,4CAA4C;IAC5C,UAAU,IAAI,EAAE,CAAC;IAEjB,kDAAkD;IAClD,UAAU,IAAI,EAAE,CAAC;CAClB"}
@@ -1,3 +1,4 @@
1
+ // docs:start:account-interface
1
2
  /**
2
3
  * Handler for interfacing with an account. Knows how to create transaction execution
3
4
  * requests and authorize actions for its corresponding account.
@@ -0,0 +1,24 @@
1
+ import type { ChainInfo } from '@aztec/entrypoints/interfaces';
2
+ import type { ExecutionPayload } from '@aztec/entrypoints/payload';
3
+ import type { Fr } from '@aztec/foundation/fields';
4
+ import { AuthWitness } from '@aztec/stdlib/auth-witness';
5
+ import type { AztecAddress } from '@aztec/stdlib/aztec-address';
6
+ import type { CompleteAddress } from '@aztec/stdlib/contract';
7
+ import type { GasSettings } from '@aztec/stdlib/gas';
8
+ import type { TxExecutionRequest } from '@aztec/stdlib/tx';
9
+ import type { CallIntent, IntentInnerHash } from '../utils/authwit.js';
10
+ import type { Account } from './account.js';
11
+ /**
12
+ * Account implementation which creates a transaction using the multicall protocol contract as entrypoint.
13
+ */
14
+ export declare class SignerlessAccount implements Account {
15
+ private entrypoint;
16
+ constructor(chainInfo: ChainInfo);
17
+ createTxExecutionRequest(exec: ExecutionPayload, gasSettings: GasSettings): Promise<TxExecutionRequest>;
18
+ getChainId(): Fr;
19
+ getVersion(): Fr;
20
+ getCompleteAddress(): CompleteAddress;
21
+ getAddress(): AztecAddress;
22
+ createAuthWit(_intent: Fr | Buffer | IntentInnerHash | CallIntent): Promise<AuthWitness>;
23
+ }
24
+ //# sourceMappingURL=signerless_account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signerless_account.d.ts","sourceRoot":"","sources":["../../src/account/signerless_account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,+BAA+B,CAAC;AAEpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;GAEG;AACH,qBAAa,iBAAkB,YAAW,OAAO;IAC/C,OAAO,CAAC,UAAU,CAAsB;gBAC5B,SAAS,EAAE,SAAS;IAIhC,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIvG,UAAU,IAAI,EAAE;IAIhB,UAAU,IAAI,EAAE;IAIhB,kBAAkB,IAAI,eAAe;IAIrC,UAAU,IAAI,YAAY;IAI1B,aAAa,CAAC,OAAO,EAAE,EAAE,GAAG,MAAM,GAAG,eAAe,GAAG,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;CAGzF"}
@@ -0,0 +1,27 @@
1
+ import { DefaultMultiCallEntrypoint } from '@aztec/entrypoints/multicall';
2
+ /**
3
+ * Account implementation which creates a transaction using the multicall protocol contract as entrypoint.
4
+ */ export class SignerlessAccount {
5
+ entrypoint;
6
+ constructor(chainInfo){
7
+ this.entrypoint = new DefaultMultiCallEntrypoint(chainInfo.chainId.toNumber(), chainInfo.version.toNumber());
8
+ }
9
+ createTxExecutionRequest(exec, gasSettings) {
10
+ return this.entrypoint.createTxExecutionRequest(exec, gasSettings);
11
+ }
12
+ getChainId() {
13
+ throw new Error('SignerlessAccount: Method getChainId not implemented.');
14
+ }
15
+ getVersion() {
16
+ throw new Error('SignerlessAccount: Method getVersion not implemented.');
17
+ }
18
+ getCompleteAddress() {
19
+ throw new Error('SignerlessAccount: Method getCompleteAddress not implemented.');
20
+ }
21
+ getAddress() {
22
+ throw new Error('SignerlessAccount: Method getAddress not implemented.');
23
+ }
24
+ createAuthWit(_intent) {
25
+ throw new Error('SignerlessAccount: Method createAuthWit not implemented.');
26
+ }
27
+ }
package/dest/api/abi.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- export { type ContractArtifact, type FunctionArtifact, EventSelector, FunctionSelector, loadContractArtifact, contractArtifactToBuffer, contractArtifactFromBuffer, } from '@aztec/stdlib/abi';
1
+ export { type ContractArtifact, type FunctionArtifact, type FunctionAbi, EventSelector, FunctionType, FunctionSelector, FunctionCall, NoteSelector, type ABIParameter, decodeFromAbi, encodeArguments, type AbiType, isAddressStruct, isAztecAddressStruct, isEthAddressStruct, isWrappedFieldStruct, isFunctionSelectorStruct, loadContractArtifact, loadContractArtifactForPublic, getAllFunctionAbis, contractArtifactToBuffer, contractArtifactFromBuffer, } from '@aztec/stdlib/abi';
2
2
  export { type NoirCompiledContract } from '@aztec/stdlib/noir';
3
+ export { type AztecAddressLike, type EthAddressLike, type EventSelectorLike, type FieldLike, type FunctionSelectorLike, type U128Like, type WrappedFieldLike, } from '../utils/abi_types.js';
3
4
  //# sourceMappingURL=abi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../src/api/abi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../src/api/abi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,KAAK,YAAY,EACjB,aAAa,EACb,eAAe,EACf,KAAK,OAAO,EACZ,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,6BAA6B,EAC7B,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG/D,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,uBAAuB,CAAC"}
package/dest/api/abi.js CHANGED
@@ -1 +1 @@
1
- export { EventSelector, FunctionSelector, loadContractArtifact, contractArtifactToBuffer, contractArtifactFromBuffer } from '@aztec/stdlib/abi';
1
+ export { EventSelector, FunctionType, FunctionSelector, FunctionCall, NoteSelector, decodeFromAbi, encodeArguments, isAddressStruct, isAztecAddressStruct, isEthAddressStruct, isWrappedFieldStruct, isFunctionSelectorStruct, loadContractArtifact, loadContractArtifactForPublic, getAllFunctionAbis, contractArtifactToBuffer, contractArtifactFromBuffer } from '@aztec/stdlib/abi';
@@ -1,3 +1,6 @@
1
- export { type AccountContract, type AccountInterface, type AuthWitnessProvider, type Salt, type Wallet, getAccountContractAddress, } from '../account/index.js';
2
- export { AccountManager } from '../account_manager/index.js';
1
+ export { type AccountContract, type AccountInterface, type Salt, getAccountContractAddress } from '../account/index.js';
2
+ export type { AuthWitnessProvider, ChainInfo } from '@aztec/entrypoints/interfaces';
3
+ export { AccountWithSecretKey } from '../account/account_with_secret_key.js';
4
+ export { type Account, BaseAccount } from '../account/account.js';
5
+ export { SignerlessAccount } from '../account/signerless_account.js';
3
6
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,IAAI,EACT,KAAK,MAAM,EACX,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/api/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,KAAK,IAAI,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AACxH,YAAY,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAEpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,KAAK,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC"}
@@ -1,2 +1,4 @@
1
1
  export { getAccountContractAddress } from '../account/index.js';
2
- export { AccountManager } from '../account_manager/index.js';
2
+ export { AccountWithSecretKey } from '../account/account_with_secret_key.js';
3
+ export { BaseAccount } from '../account/account.js';
4
+ export { SignerlessAccount } from '../account/signerless_account.js';
@@ -1,3 +1,4 @@
1
1
  export { AztecAddress } from '@aztec/stdlib/aztec-address';
2
2
  export { CompleteAddress } from '@aztec/stdlib/contract';
3
+ export { EthAddress } from '@aztec/foundation/eth-address';
3
4
  //# sourceMappingURL=addresses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../src/api/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../src/api/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { AztecAddress } from '@aztec/stdlib/aztec-address';
2
2
  export { CompleteAddress } from '@aztec/stdlib/contract';
3
+ export { EthAddress } from '@aztec/foundation/eth-address';
@@ -0,0 +1,5 @@
1
+ export { AuthWitness } from '@aztec/stdlib/auth-witness';
2
+ export { SetPublicAuthwitContractInteraction, type ContractFunctionInteractionCallIntent, getMessageHashFromIntent, computeAuthWitMessageHash, computeInnerAuthWitHashFromAction, lookupValidity, type CallIntent, type IntentInnerHash, } from '../utils/authwit.js';
3
+ export { computeInnerAuthWitHash } from '@aztec/stdlib/auth-witness';
4
+ export { CallAuthorizationRequest } from '../authorization/call_authorization_request.js';
5
+ //# sourceMappingURL=authorization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../src/api/authorization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACL,mCAAmC,EACnC,KAAK,qCAAqC,EAC1C,wBAAwB,EACxB,yBAAyB,EACzB,iCAAiC,EACjC,cAAc,EACd,KAAK,UAAU,EACf,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { AuthWitness } from '@aztec/stdlib/auth-witness';
2
+ export { SetPublicAuthwitContractInteraction, getMessageHashFromIntent, computeAuthWitMessageHash, computeInnerAuthWitHashFromAction, lookupValidity } from '../utils/authwit.js';
3
+ export { computeInnerAuthWitHash } from '@aztec/stdlib/auth-witness';
4
+ export { CallAuthorizationRequest } from '../authorization/call_authorization_request.js';
@@ -0,0 +1,3 @@
1
+ export { Body, L2Block } from '@aztec/stdlib/block';
2
+ export { getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
3
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../src/api/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Body, L2Block } from '@aztec/stdlib/block';
2
+ export { getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `contract` module provides utilities for deploying and interacting with contracts, based on a
3
3
  * `Wallet` instance and a compiled artifact. Refer to the {@link account} module for how to obtain a valid
4
- * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract | Compiling contracts}
4
+ * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract | Compiling contracts}
5
5
  * section of the documentation for how to generate an artifact out of your Noir source code.
6
6
  *
7
7
  * The {@link Contract} class is the main class in this module, and provides static methods for deploying
@@ -26,20 +26,24 @@
26
26
  * or obtaining the `request` for aggregating into a {@link BatchCall}.
27
27
  *
28
28
  * The result of `send`ing a transaction is a {@link SentTx} object, from which you can get the
29
- * transaction hash, or simply `wait` until the transaction is mined and the local PXE Service
29
+ * transaction hash, or simply `wait` until the transaction is mined and the local PXE
30
30
  * has synchronized its changes.
31
31
  *
32
32
  * @remarks If you are using typescript, consider using the
33
- * {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract#typescript-interfaces | autogenerated type-safe interfaces}
33
+ * {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract#use-generated-interfaces | autogenerated type-safe interfaces}
34
34
  * for interacting with your contracts.
35
35
  *
36
36
  * @packageDocumentation
37
37
  */
38
- export { Contract } from './contract.js';
39
- export { ContractFunctionInteraction, type ProfileResult, type SendMethodOptions, } from './contract_function_interaction.js';
40
- export { DefaultWaitOpts, SentTx, type WaitOpts } from './sent_tx.js';
41
- export { ContractBase, type ContractMethod, type ContractNotes, type ContractStorageLayout } from './contract_base.js';
42
- export { BatchCall } from './batch_call.js';
43
- export { type DeployOptions, DeployMethod } from './deploy_method.js';
44
- export { DeploySentTx } from './deploy_sent_tx.js';
45
- //# sourceMappingURL=index.d.ts.map
38
+ export { Contract } from '../contract/contract.js';
39
+ export { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
40
+ export { type RequestInteractionOptions, type SendInteractionOptions, type ProfileInteractionOptions, type SimulateInteractionOptions, type InteractionFeeOptions, toProfileOptions, toSendOptions, toSimulateOptions, } from '../contract/interaction_options.js';
41
+ export { DefaultWaitOpts, SentTx, type WaitOpts } from '../contract/sent_tx.js';
42
+ export { ContractBase, type ContractMethod, type ContractStorageLayout } from '../contract/contract_base.js';
43
+ export { BatchCall } from '../contract/batch_call.js';
44
+ export { type DeployOptions, DeployMethod, type RequestDeployOptions, type SimulateDeployOptions, } from '../contract/deploy_method.js';
45
+ export { DeploySentTx } from '../contract/deploy_sent_tx.js';
46
+ export { waitForProven, type WaitForProvenOpts, DefaultWaitForProvenOpts } from '../contract/wait_for_proven.js';
47
+ export { getGasLimits } from '../contract/get_gas_limits.js';
48
+ export { type PartialAddress, type ContractClassWithId, type ContractInstanceWithAddress, getContractClassFromArtifact, getContractInstanceFromInstantiationParams, type NodeInfo, } from '@aztec/stdlib/contract';
49
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/api/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAE3F,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,gBAAgB,EAChB,aAAa,EACb,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EACL,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,4BAA4B,EAC5B,0CAA0C,EAC1C,KAAK,QAAQ,GACd,MAAM,wBAAwB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `contract` module provides utilities for deploying and interacting with contracts, based on a
3
3
  * `Wallet` instance and a compiled artifact. Refer to the {@link account} module for how to obtain a valid
4
- * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract | Compiling contracts}
4
+ * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract | Compiling contracts}
5
5
  * section of the documentation for how to generate an artifact out of your Noir source code.
6
6
  *
7
7
  * The {@link Contract} class is the main class in this module, and provides static methods for deploying
@@ -26,18 +26,22 @@
26
26
  * or obtaining the `request` for aggregating into a {@link BatchCall}.
27
27
  *
28
28
  * The result of `send`ing a transaction is a {@link SentTx} object, from which you can get the
29
- * transaction hash, or simply `wait` until the transaction is mined and the local PXE Service
29
+ * transaction hash, or simply `wait` until the transaction is mined and the local PXE
30
30
  * has synchronized its changes.
31
31
  *
32
32
  * @remarks If you are using typescript, consider using the
33
- * {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract#typescript-interfaces | autogenerated type-safe interfaces}
33
+ * {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract#use-generated-interfaces | autogenerated type-safe interfaces}
34
34
  * for interacting with your contracts.
35
35
  *
36
36
  * @packageDocumentation
37
- */ export { Contract } from './contract.js';
38
- export { ContractFunctionInteraction } from './contract_function_interaction.js';
39
- export { DefaultWaitOpts, SentTx } from './sent_tx.js';
40
- export { ContractBase } from './contract_base.js';
41
- export { BatchCall } from './batch_call.js';
42
- export { DeployMethod } from './deploy_method.js';
43
- export { DeploySentTx } from './deploy_sent_tx.js';
37
+ */ export { Contract } from '../contract/contract.js';
38
+ export { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
39
+ export { toProfileOptions, toSendOptions, toSimulateOptions } from '../contract/interaction_options.js';
40
+ export { DefaultWaitOpts, SentTx } from '../contract/sent_tx.js';
41
+ export { ContractBase } from '../contract/contract_base.js';
42
+ export { BatchCall } from '../contract/batch_call.js';
43
+ export { DeployMethod } from '../contract/deploy_method.js';
44
+ export { DeploySentTx } from '../contract/deploy_sent_tx.js';
45
+ export { waitForProven, DefaultWaitForProvenOpts } from '../contract/wait_for_proven.js';
46
+ export { getGasLimits } from '../contract/get_gas_limits.js';
47
+ export { getContractClassFromArtifact, getContractInstanceFromInstantiationParams } from '@aztec/stdlib/contract';
@@ -0,0 +1,2 @@
1
+ export { computeSecretHash } from '@aztec/stdlib/hash';
2
+ //# sourceMappingURL=crypto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/api/crypto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ export { computeSecretHash } from '@aztec/stdlib/hash';
@@ -1,4 +1,5 @@
1
- export { registerContractClass } from '../deployment/register_class.js';
2
- export { broadcastPrivateFunction, broadcastUnconstrainedFunction } from '../deployment/broadcast_function.js';
3
- export { deployInstance } from '../deployment/deploy_instance.js';
1
+ export { publishContractClass } from '../deployment/publish_class.js';
2
+ export { broadcastPrivateFunction, broadcastUtilityFunction } from '../deployment/broadcast_function.js';
3
+ export { publishInstance } from '../deployment/publish_instance.js';
4
+ export { ContractDeployer } from '../deployment/contract_deployer.js';
4
5
  //# sourceMappingURL=deployment.d.ts.map