@aztec/end-to-end 0.0.1-commit.4d3c002 → 0.0.1-commit.4d9804df

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 (298) hide show
  1. package/README.md +217 -14
  2. package/dest/automine/automine_test_context.d.ts +85 -0
  3. package/dest/automine/automine_test_context.d.ts.map +1 -0
  4. package/dest/automine/automine_test_context.js +98 -0
  5. package/dest/automine/contracts/fixtures/storage_proof_fetcher.d.ts +2 -0
  6. package/dest/automine/contracts/fixtures/storage_proof_fetcher.d.ts.map +1 -0
  7. package/dest/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fixture.d.ts +1 -1
  8. package/dest/automine/contracts/fixtures/storage_proof_fixture.d.ts.map +1 -0
  9. package/dest/automine/delivery/interactive_handshake_responder.d.ts +48 -0
  10. package/dest/automine/delivery/interactive_handshake_responder.d.ts.map +1 -0
  11. package/dest/automine/delivery/interactive_handshake_responder.js +76 -0
  12. package/dest/automine/delivery/onchain_delivery_harness.d.ts +19 -0
  13. package/dest/automine/delivery/onchain_delivery_harness.d.ts.map +1 -0
  14. package/dest/automine/delivery/onchain_delivery_harness.js +141 -0
  15. package/dest/automine/token/blacklist_token_contract_test.d.ts +49 -0
  16. package/dest/automine/token/blacklist_token_contract_test.d.ts.map +1 -0
  17. package/dest/{e2e_blacklist_token_contract → automine/token}/blacklist_token_contract_test.js +23 -36
  18. package/dest/automine/token/token_contract_test.d.ts +40 -0
  19. package/dest/automine/token/token_contract_test.d.ts.map +1 -0
  20. package/dest/{e2e_token_contract → automine/token}/token_contract_test.js +24 -39
  21. package/dest/automine/token/token_test_helpers.d.ts +73 -0
  22. package/dest/automine/token/token_test_helpers.d.ts.map +1 -0
  23. package/dest/automine/token/token_test_helpers.js +97 -0
  24. package/dest/bench/client_flows/benchmark.d.ts +15 -1
  25. package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
  26. package/dest/bench/client_flows/benchmark.js +19 -0
  27. package/dest/bench/client_flows/client_flows_benchmark.d.ts +5 -5
  28. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  29. package/dest/bench/client_flows/client_flows_benchmark.js +45 -29
  30. package/dest/bench/client_flows/data_extractor.js +1 -0
  31. package/dest/bench/utils.d.ts +3 -3
  32. package/dest/bench/utils.d.ts.map +1 -1
  33. package/dest/bench/utils.js +97 -6
  34. package/dest/composed/ha/ha_full_setup.d.ts +77 -0
  35. package/dest/composed/ha/ha_full_setup.d.ts.map +1 -0
  36. package/dest/composed/ha/ha_full_setup.js +383 -0
  37. package/dest/composed/web3signer/multi_validator_keystore_utils.d.ts +12 -0
  38. package/dest/composed/web3signer/multi_validator_keystore_utils.d.ts.map +1 -0
  39. package/dest/fixtures/authwit_proxy.d.ts +1 -1
  40. package/dest/fixtures/authwit_proxy.d.ts.map +1 -1
  41. package/dest/fixtures/authwit_proxy.js +4 -0
  42. package/dest/fixtures/e2e_prover_test.d.ts +12 -9
  43. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  44. package/dest/fixtures/e2e_prover_test.js +50 -30
  45. package/dest/fixtures/fixtures.d.ts +79 -1
  46. package/dest/fixtures/fixtures.d.ts.map +1 -1
  47. package/dest/fixtures/fixtures.js +80 -0
  48. package/dest/fixtures/ha_setup.d.ts +4 -4
  49. package/dest/fixtures/ha_setup.d.ts.map +1 -1
  50. package/dest/fixtures/ha_setup.js +5 -2
  51. package/dest/fixtures/index.d.ts +2 -1
  52. package/dest/fixtures/index.d.ts.map +1 -1
  53. package/dest/fixtures/index.js +1 -0
  54. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts +25 -0
  55. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts.map +1 -0
  56. package/dest/fixtures/schnorr_hardcoded_account_contract.js +37 -0
  57. package/dest/fixtures/setup.d.ts +71 -41
  58. package/dest/fixtures/setup.d.ts.map +1 -1
  59. package/dest/fixtures/setup.js +277 -198
  60. package/dest/fixtures/setup_p2p_test.d.ts +10 -6
  61. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  62. package/dest/fixtures/setup_p2p_test.js +11 -11
  63. package/dest/fixtures/timing.d.ts +42 -0
  64. package/dest/fixtures/timing.d.ts.map +1 -0
  65. package/dest/fixtures/timing.js +72 -0
  66. package/dest/fixtures/token_utils.d.ts +22 -4
  67. package/dest/fixtures/token_utils.d.ts.map +1 -1
  68. package/dest/fixtures/token_utils.js +21 -1
  69. package/dest/fixtures/utils.d.ts +2 -2
  70. package/dest/fixtures/utils.d.ts.map +1 -1
  71. package/dest/fixtures/utils.js +1 -1
  72. package/dest/fixtures/wait_helpers.d.ts +135 -0
  73. package/dest/fixtures/wait_helpers.d.ts.map +1 -0
  74. package/dest/fixtures/wait_helpers.js +154 -0
  75. package/dest/forward-compatibility/wallet_rpc_client.d.ts +7 -0
  76. package/dest/forward-compatibility/wallet_rpc_client.d.ts.map +1 -0
  77. package/dest/forward-compatibility/wallet_rpc_client.js +15 -0
  78. package/dest/forward-compatibility/wallet_service.d.ts +3 -0
  79. package/dest/forward-compatibility/wallet_service.d.ts.map +1 -0
  80. package/dest/forward-compatibility/wallet_service.js +109 -0
  81. package/dest/install_legacy_contracts.d.cts +10 -0
  82. package/dest/install_legacy_contracts.d.cts.map +1 -0
  83. package/dest/legacy-jest-resolver.d.cts +3 -0
  84. package/dest/legacy-jest-resolver.d.cts.map +1 -0
  85. package/dest/multi-node/block-production/setup.d.ts +97 -0
  86. package/dest/multi-node/block-production/setup.d.ts.map +1 -0
  87. package/dest/multi-node/block-production/setup.js +158 -0
  88. package/dest/multi-node/governance/setup.d.ts +67 -0
  89. package/dest/multi-node/governance/setup.d.ts.map +1 -0
  90. package/dest/multi-node/governance/setup.js +126 -0
  91. package/dest/multi-node/multi_node_test_context.d.ts +212 -0
  92. package/dest/multi-node/multi_node_test_context.d.ts.map +1 -0
  93. package/dest/multi-node/multi_node_test_context.js +347 -0
  94. package/dest/multi-node/slashing/inactivity_setup.d.ts +27 -0
  95. package/dest/multi-node/slashing/inactivity_setup.d.ts.map +1 -0
  96. package/dest/multi-node/slashing/inactivity_setup.js +111 -0
  97. package/dest/multi-node/slashing/setup.d.ts +167 -0
  98. package/dest/multi-node/slashing/setup.d.ts.map +1 -0
  99. package/dest/multi-node/slashing/setup.js +275 -0
  100. package/dest/{e2e_p2p → p2p}/p2p_network.d.ts +19 -10
  101. package/dest/p2p/p2p_network.d.ts.map +1 -0
  102. package/dest/{e2e_p2p → p2p}/p2p_network.js +81 -38
  103. package/dest/p2p/reqresp/utils.d.ts +19 -0
  104. package/dest/p2p/reqresp/utils.d.ts.map +1 -0
  105. package/dest/{e2e_p2p → p2p}/reqresp/utils.js +32 -29
  106. package/dest/p2p/shared.d.ts +72 -0
  107. package/dest/p2p/shared.d.ts.map +1 -0
  108. package/dest/p2p/shared.js +212 -0
  109. package/dest/shared/cross_chain_test_harness.d.ts +6 -4
  110. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  111. package/dest/shared/cross_chain_test_harness.js +25 -20
  112. package/dest/shared/gas_portal_test_harness.d.ts +8 -5
  113. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  114. package/dest/shared/gas_portal_test_harness.js +24 -12
  115. package/dest/shared/submit-transactions.d.ts +1 -1
  116. package/dest/shared/submit-transactions.d.ts.map +1 -1
  117. package/dest/shared/submit-transactions.js +12 -5
  118. package/dest/shared/timing_env.d.js +5 -0
  119. package/dest/shared/timing_env.js +365 -0
  120. package/dest/shared/uniswap_l1_l2.d.ts +1 -1
  121. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  122. package/dest/shared/uniswap_l1_l2.js +50 -37
  123. package/dest/shared/wait_for_l1_to_l2_message.d.ts +13 -0
  124. package/dest/shared/wait_for_l1_to_l2_message.d.ts.map +1 -0
  125. package/dest/shared/wait_for_l1_to_l2_message.js +10 -0
  126. package/dest/simulators/lending_simulator.d.ts +10 -3
  127. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  128. package/dest/simulators/lending_simulator.js +24 -12
  129. package/dest/single-node/cross-chain/cross_chain_messaging_test.d.ts +75 -0
  130. package/dest/single-node/cross-chain/cross_chain_messaging_test.d.ts.map +1 -0
  131. package/dest/single-node/cross-chain/cross_chain_messaging_test.js +209 -0
  132. package/dest/single-node/cross-chain/message_test_helpers.d.ts +38 -0
  133. package/dest/single-node/cross-chain/message_test_helpers.d.ts.map +1 -0
  134. package/dest/single-node/cross-chain/message_test_helpers.js +70 -0
  135. package/dest/{e2e_fees → single-node/fees}/bridging_race.notest.d.ts +1 -1
  136. package/dest/single-node/fees/bridging_race.notest.d.ts.map +1 -0
  137. package/dest/{e2e_fees → single-node/fees}/bridging_race.notest.js +17 -4
  138. package/dest/single-node/fees/fees_test.d.ts +93 -0
  139. package/dest/single-node/fees/fees_test.d.ts.map +1 -0
  140. package/dest/{e2e_fees → single-node/fees}/fees_test.js +78 -59
  141. package/dest/single-node/l1-reorgs/setup.d.ts +42 -0
  142. package/dest/single-node/l1-reorgs/setup.d.ts.map +1 -0
  143. package/dest/single-node/l1-reorgs/setup.js +57 -0
  144. package/dest/single-node/partial-proofs/setup.d.ts +5 -0
  145. package/dest/single-node/partial-proofs/setup.d.ts.map +1 -0
  146. package/dest/single-node/partial-proofs/setup.js +5 -0
  147. package/dest/single-node/proving/setup.d.ts +5 -0
  148. package/dest/single-node/proving/setup.d.ts.map +1 -0
  149. package/dest/single-node/proving/setup.js +5 -0
  150. package/dest/single-node/recovery/setup.d.ts +5 -0
  151. package/dest/single-node/recovery/setup.d.ts.map +1 -0
  152. package/dest/single-node/recovery/setup.js +5 -0
  153. package/dest/single-node/setup.d.ts +49 -0
  154. package/dest/single-node/setup.d.ts.map +1 -0
  155. package/dest/single-node/setup.js +56 -0
  156. package/dest/single-node/single_node_test_context.d.ts +360 -0
  157. package/dest/single-node/single_node_test_context.d.ts.map +1 -0
  158. package/dest/single-node/single_node_test_context.js +833 -0
  159. package/dest/spartan/setup_test_wallets.d.ts +1 -1
  160. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  161. package/dest/spartan/setup_test_wallets.js +28 -12
  162. package/dest/spartan/tx_metrics.d.ts +27 -4
  163. package/dest/spartan/tx_metrics.d.ts.map +1 -1
  164. package/dest/spartan/tx_metrics.js +105 -20
  165. package/dest/spartan/utils/config.d.ts +9 -35
  166. package/dest/spartan/utils/config.d.ts.map +1 -1
  167. package/dest/spartan/utils/nodes.js +2 -2
  168. package/dest/test-wallet/test_wallet.d.ts +39 -10
  169. package/dest/test-wallet/test_wallet.d.ts.map +1 -1
  170. package/dest/test-wallet/test_wallet.js +166 -59
  171. package/dest/test-wallet/utils.d.ts +38 -3
  172. package/dest/test-wallet/utils.d.ts.map +1 -1
  173. package/dest/test-wallet/utils.js +65 -10
  174. package/dest/test-wallet/wallet_worker_script.js +12 -4
  175. package/dest/test-wallet/worker_wallet.d.ts +9 -8
  176. package/dest/test-wallet/worker_wallet.d.ts.map +1 -1
  177. package/dest/test-wallet/worker_wallet.js +10 -4
  178. package/dest/test-wallet/worker_wallet_schema.d.ts +3 -273
  179. package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -1
  180. package/dest/test-wallet/worker_wallet_schema.js +15 -2
  181. package/package.json +47 -42
  182. package/src/automine/README.md +60 -0
  183. package/src/automine/automine_test_context.ts +153 -0
  184. package/src/automine/delivery/interactive_handshake_responder.ts +125 -0
  185. package/src/automine/delivery/onchain_delivery_harness.ts +213 -0
  186. package/src/{e2e_blacklist_token_contract → automine/token}/blacklist_token_contract_test.ts +24 -47
  187. package/src/{e2e_token_contract → automine/token}/token_contract_test.ts +25 -48
  188. package/src/automine/token/token_test_helpers.ts +138 -0
  189. package/src/bench/client_flows/benchmark.ts +21 -0
  190. package/src/bench/client_flows/client_flows_benchmark.ts +77 -56
  191. package/src/bench/client_flows/data_extractor.ts +1 -0
  192. package/src/bench/utils.ts +110 -6
  193. package/src/composed/ha/ha_full_setup.ts +466 -0
  194. package/src/fixtures/authwit_proxy.ts +4 -0
  195. package/src/fixtures/e2e_prover_test.ts +64 -48
  196. package/src/fixtures/fixtures.ts +100 -0
  197. package/src/fixtures/ha_setup.ts +11 -5
  198. package/src/fixtures/index.ts +1 -0
  199. package/src/fixtures/schnorr_hardcoded_account_contract.ts +49 -0
  200. package/src/fixtures/setup.ts +336 -255
  201. package/src/fixtures/setup_p2p_test.ts +15 -11
  202. package/src/fixtures/timing.ts +97 -0
  203. package/src/fixtures/token_utils.ts +39 -4
  204. package/src/fixtures/utils.ts +2 -3
  205. package/src/fixtures/wait_helpers.ts +333 -0
  206. package/src/forward-compatibility/wallet_rpc_client.ts +14 -0
  207. package/src/forward-compatibility/wallet_service.ts +106 -0
  208. package/src/guides/up_quick_start.sh +5 -2
  209. package/src/infra/README.md +12 -0
  210. package/src/install_legacy_contracts.cjs +75 -0
  211. package/src/legacy-jest-resolver.cjs +112 -0
  212. package/src/multi-node/README.md +95 -0
  213. package/src/multi-node/block-production/setup.ts +272 -0
  214. package/src/multi-node/governance/setup.ts +172 -0
  215. package/src/multi-node/multi_node_test_context.ts +447 -0
  216. package/src/multi-node/slashing/inactivity_setup.ts +139 -0
  217. package/src/multi-node/slashing/setup.ts +433 -0
  218. package/src/p2p/README.md +78 -0
  219. package/src/{e2e_p2p → p2p}/p2p_network.ts +92 -49
  220. package/src/{e2e_p2p → p2p}/reqresp/utils.ts +35 -28
  221. package/src/p2p/shared.ts +329 -0
  222. package/src/shared/cross_chain_test_harness.ts +35 -14
  223. package/src/shared/gas_portal_test_harness.ts +32 -14
  224. package/src/shared/submit-transactions.ts +13 -5
  225. package/src/shared/timing_env.d.mts +39 -0
  226. package/src/shared/timing_env.mjs +363 -0
  227. package/src/shared/uniswap_l1_l2.ts +80 -43
  228. package/src/shared/wait_for_l1_to_l2_message.ts +23 -0
  229. package/src/simulators/lending_simulator.ts +28 -14
  230. package/src/single-node/README.md +60 -0
  231. package/src/single-node/cross-chain/cross_chain_messaging_test.ts +302 -0
  232. package/src/single-node/cross-chain/message_test_helpers.ts +125 -0
  233. package/src/{e2e_fees → single-node/fees}/bridging_race.notest.ts +19 -5
  234. package/src/{e2e_fees → single-node/fees}/fees_test.ts +103 -66
  235. package/src/single-node/l1-reorgs/setup.ts +93 -0
  236. package/src/single-node/partial-proofs/setup.ts +8 -0
  237. package/src/single-node/proving/setup.ts +15 -0
  238. package/src/single-node/recovery/setup.ts +8 -0
  239. package/src/single-node/setup.ts +63 -0
  240. package/src/single-node/single_node_test_context.ts +1041 -0
  241. package/src/spartan/setup_test_wallets.ts +30 -13
  242. package/src/spartan/tx_metrics.ts +107 -23
  243. package/src/spartan/utils/nodes.ts +2 -2
  244. package/src/test-wallet/test_wallet.ts +185 -60
  245. package/src/test-wallet/utils.ts +104 -11
  246. package/src/test-wallet/wallet_worker_script.ts +11 -5
  247. package/src/test-wallet/worker_wallet.ts +19 -16
  248. package/src/test-wallet/worker_wallet_schema.ts +4 -3
  249. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +0 -55
  250. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +0 -1
  251. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +0 -47
  252. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +0 -1
  253. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +0 -129
  254. package/dest/e2e_deploy_contract/deploy_test.d.ts +0 -37
  255. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +0 -1
  256. package/dest/e2e_deploy_contract/deploy_test.js +0 -50
  257. package/dest/e2e_epochs/epochs_test.d.ts +0 -104
  258. package/dest/e2e_epochs/epochs_test.d.ts.map +0 -1
  259. package/dest/e2e_epochs/epochs_test.js +0 -389
  260. package/dest/e2e_fees/bridging_race.notest.d.ts.map +0 -1
  261. package/dest/e2e_fees/fees_test.d.ts +0 -88
  262. package/dest/e2e_fees/fees_test.d.ts.map +0 -1
  263. package/dest/e2e_l1_publisher/write_json.d.ts +0 -11
  264. package/dest/e2e_l1_publisher/write_json.d.ts.map +0 -1
  265. package/dest/e2e_l1_publisher/write_json.js +0 -56
  266. package/dest/e2e_multi_validator/utils.d.ts +0 -12
  267. package/dest/e2e_multi_validator/utils.d.ts.map +0 -1
  268. package/dest/e2e_nested_contract/nested_contract_test.d.ts +0 -26
  269. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +0 -1
  270. package/dest/e2e_nested_contract/nested_contract_test.js +0 -54
  271. package/dest/e2e_p2p/inactivity_slash_test.d.ts +0 -31
  272. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +0 -1
  273. package/dest/e2e_p2p/inactivity_slash_test.js +0 -136
  274. package/dest/e2e_p2p/p2p_network.d.ts.map +0 -1
  275. package/dest/e2e_p2p/reqresp/utils.d.ts +0 -22
  276. package/dest/e2e_p2p/reqresp/utils.d.ts.map +0 -1
  277. package/dest/e2e_p2p/shared.d.ts +0 -66
  278. package/dest/e2e_p2p/shared.d.ts.map +0 -1
  279. package/dest/e2e_p2p/shared.js +0 -212
  280. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts +0 -2
  281. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts.map +0 -1
  282. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts.map +0 -1
  283. package/dest/e2e_token_contract/token_contract_test.d.ts +0 -44
  284. package/dest/e2e_token_contract/token_contract_test.d.ts.map +0 -1
  285. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +0 -193
  286. package/src/e2e_deploy_contract/deploy_test.ts +0 -85
  287. package/src/e2e_epochs/epochs_test.ts +0 -499
  288. package/src/e2e_l1_publisher/write_json.ts +0 -77
  289. package/src/e2e_nested_contract/nested_contract_test.ts +0 -75
  290. package/src/e2e_p2p/inactivity_slash_test.ts +0 -179
  291. package/src/e2e_p2p/shared.ts +0 -343
  292. /package/dest/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fetcher.js +0 -0
  293. /package/dest/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fixture.js +0 -0
  294. /package/dest/{e2e_multi_validator/utils.js → composed/web3signer/multi_validator_keystore_utils.js} +0 -0
  295. /package/src/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof.json +0 -0
  296. /package/src/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fetcher.ts +0 -0
  297. /package/src/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fixture.ts +0 -0
  298. /package/src/{e2e_multi_validator/utils.ts → composed/web3signer/multi_validator_keystore_utils.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"worker_wallet.d.ts","sourceRoot":"","sources":["../../src/test-wallet/worker_wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EACf,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,eAAe,EACf,MAAM,EACN,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAOzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,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,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC,CAE5E;IAED,wFAAwF;IACxF,eAAe,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAE3E;IAED,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,mBAAmB,EAAE,eAAe,GAAG,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAEzG;IAED,mBAAmB,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAE1E;IAED,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,aAAa,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAEpF;IAED,6DAA6D;IACvD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAG1B;CACF"}
@@ -1,6 +1,7 @@
1
1
  import { jsonStringify } from '@aztec/foundation/json-rpc';
2
2
  import { createLogger } from '@aztec/foundation/log';
3
3
  import { promiseWithResolvers } from '@aztec/foundation/promise';
4
+ import { getSchemaReturnType } from '@aztec/foundation/schemas';
4
5
  import { sleep } from '@aztec/foundation/sleep';
5
6
  import { NodeConnector, TransportClient } from '@aztec/foundation/transport';
6
7
  import { Worker } from 'worker_threads';
@@ -39,7 +40,7 @@ const WORKER_READY_TIMEOUT_MS = 120_000;
39
40
  ...process.stderr.isTTY || process.env.FORCE_COLOR ? {
40
41
  FORCE_COLOR: '1'
41
42
  } : {},
42
- LOG_LEVEL: process.env.WORKER_LOG_LEVEL ?? 'warn'
43
+ LOG_LEVEL: process.env.WORKER_LOG_LEVEL ?? 'info'
43
44
  }
44
45
  });
45
46
  const connector = new NodeConnector(worker);
@@ -91,7 +92,9 @@ const WORKER_READY_TIMEOUT_MS = 120_000;
91
92
  async call(fn, ...args) {
92
93
  const resultJson = await this.callRaw(fn, ...args);
93
94
  const methodSchema = WorkerWalletSchema[fn];
94
- return methodSchema.returnType().parseAsync(JSON.parse(resultJson));
95
+ // Void-returning methods (e.g. registerContract) serialize to `undefined` on the worker side, which
96
+ // JSON.parse cannot handle; hand it straight to the schema, whose `z.void()` output accepts undefined.
97
+ return getSchemaReturnType(methodSchema).parseAsync(resultJson === undefined ? undefined : JSON.parse(resultJson));
95
98
  }
96
99
  getChainInfo() {
97
100
  return this.call('getChainInfo');
@@ -117,6 +120,9 @@ const WORKER_READY_TIMEOUT_MS = 120_000;
117
120
  registerContract(instance, artifact, secretKey) {
118
121
  return this.call('registerContract', instance, artifact, secretKey);
119
122
  }
123
+ registerContractClass(artifact) {
124
+ return this.call('registerContractClass', artifact);
125
+ }
120
126
  simulateTx(exec, opts) {
121
127
  return this.call('simulateTx', exec, opts);
122
128
  }
@@ -132,8 +138,8 @@ const WORKER_READY_TIMEOUT_MS = 120_000;
132
138
  proveTx(exec, opts) {
133
139
  return this.call('proveTx', exec, opts);
134
140
  }
135
- /** Registers an account inside the worker's TestWallet, populating its accounts map. */ registerAccount(secret, salt) {
136
- return this.call('registerAccount', secret, salt);
141
+ /** Registers an account inside the worker's TestWallet, populating its accounts map. */ registerAccount(secret, salt, signingKey) {
142
+ return this.call('registerAccount', secret, salt, signingKey);
137
143
  }
138
144
  createAuthWit(from, messageHashOrIntent) {
139
145
  return this.call('createAuthWit', from, messageHashOrIntent);
@@ -1,274 +1,4 @@
1
- import { AztecAddress } from '@aztec/stdlib/aztec-address';
2
- import { Tx } from '@aztec/stdlib/tx';
3
- import { z } from 'zod';
1
+ import type { ApiSchema } from '@aztec/foundation/schemas';
4
2
  /** Schema for the WorkerWallet API — extends WalletSchema with proveTx and registerAccount. */
5
- export declare const WorkerWalletSchema: {
6
- getPrivateEvents: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/abi").EventMetadataDefinition, z.ZodTypeDef, any>, eventFilter: z.ZodType<import("@aztec/aztec.js/wallet").PrivateEventFilter, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").PrivateEvent<unknown>[], z.ZodTypeDef, any>>;
7
- getChainInfo: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/entrypoints/interfaces").ChainInfo, z.ZodTypeDef, any>>;
8
- getContractMetadata: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").ContractMetadata, z.ZodTypeDef, any>>;
9
- getContractClassMetadata: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/foundation/schemas").Fr, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").ContractClassMetadata, z.ZodTypeDef, any>>;
10
- registerSender: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>, alias?: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<string | undefined, z.ZodTypeDef, any>> | undefined], z.ZodUnknown>, z.ZodType<AztecAddress, z.ZodTypeDef, any>>;
11
- getAddressBook: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], z.ZodTypeDef, any>>;
12
- getAccounts: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], z.ZodTypeDef, any>>;
13
- registerContract: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/contract").ContractInstanceWithAddress, z.ZodTypeDef, any>, artifact?: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<import("@aztec/stdlib/abi").ContractArtifact | undefined, z.ZodTypeDef, any>> | undefined, secretKey?: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<import("@aztec/foundation/schemas").Fr | undefined, z.ZodTypeDef, any>> | undefined], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/contract").ContractInstanceWithAddress, z.ZodTypeDef, any>>;
14
- simulateTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SimulateOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxSimulationResult, z.ZodTypeDef, any>>;
15
- executeUtility: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/abi").FunctionCall, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ExecuteUtilityOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").UtilityExecutionResult, z.ZodTypeDef, any>>;
16
- profileTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ProfileOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxProfileResult, z.ZodTypeDef, any>>;
17
- sendTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SendOptions<import("@aztec/aztec.js/contracts").InteractionWaitOptions>, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/contracts").TxSendResultImmediate | import("@aztec/aztec.js/contracts").TxSendResultMined<import("@aztec/stdlib/tx").TxReceipt>, z.ZodTypeDef, any>>;
18
- createAuthWit: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>, messageHashOrIntent: z.ZodType<import("@aztec/aztec.js/authorization").CallIntent | import("@aztec/aztec.js/authorization").IntentInnerHash, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, z.ZodTypeDef, any>>;
19
- requestCapabilities: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/aztec.js/wallet").AppCapabilities, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").WalletCapabilities, z.ZodTypeDef, any>>;
20
- batch: z.ZodFunction<z.ZodTuple<[z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethod[], z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethodResultWrapper<import("@aztec/aztec.js/wallet").BatchedMethod>[], z.ZodTypeDef, any>>;
21
- proveTx: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
22
- calls: z.ZodArray<z.ZodEffects<z.ZodObject<{
23
- name: z.ZodString;
24
- to: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
25
- selector: import("@aztec/foundation/schemas").ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
26
- type: z.ZodNativeEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
27
- isStatic: z.ZodBoolean;
28
- hideMsgSender: z.ZodBoolean;
29
- args: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("@aztec/foundation/schemas").Fr>, "many">;
30
- returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
31
- }, "strip", z.ZodTypeAny, {
32
- name: string;
33
- to: AztecAddress;
34
- selector: import("@aztec/stdlib/abi").FunctionSelector;
35
- type: import("@aztec/stdlib/abi").FunctionType;
36
- isStatic: boolean;
37
- hideMsgSender: boolean;
38
- args: import("@aztec/foundation/schemas").Fr[];
39
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
40
- }, {
41
- name: string;
42
- to?: any;
43
- selector?: any;
44
- type: import("@aztec/stdlib/abi").FunctionType;
45
- isStatic: boolean;
46
- hideMsgSender: boolean;
47
- args: any[];
48
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
49
- }>, import("@aztec/stdlib/abi").FunctionCall, {
50
- name: string;
51
- to?: any;
52
- selector?: any;
53
- type: import("@aztec/stdlib/abi").FunctionType;
54
- isStatic: boolean;
55
- hideMsgSender: boolean;
56
- args: any[];
57
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
58
- }>, "many">;
59
- authWitnesses: z.ZodArray<z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, any, string>, "many">;
60
- capsules: z.ZodArray<z.ZodType<import("@aztec/stdlib/tx").Capsule, any, string>, "many">;
61
- extraHashedArgs: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("@aztec/stdlib/tx").HashedValues>, "many">;
62
- feePayer: import("@aztec/foundation/schemas").ZodNullableOptional<import("@aztec/foundation/schemas").ZodFor<AztecAddress>>;
63
- }, "strip", z.ZodTypeAny, {
64
- calls: import("@aztec/stdlib/abi").FunctionCall[];
65
- authWitnesses: import("@aztec/stdlib/auth-witness").AuthWitness[];
66
- capsules: import("@aztec/stdlib/tx").Capsule[];
67
- extraHashedArgs: import("@aztec/stdlib/tx").HashedValues[];
68
- feePayer?: AztecAddress | undefined;
69
- }, {
70
- calls: {
71
- name: string;
72
- to?: any;
73
- selector?: any;
74
- type: import("@aztec/stdlib/abi").FunctionType;
75
- isStatic: boolean;
76
- hideMsgSender: boolean;
77
- args: any[];
78
- returnTypes: import("@aztec/stdlib/abi").AbiType[];
79
- }[];
80
- authWitnesses: string[];
81
- capsules: string[];
82
- extraHashedArgs: any[];
83
- feePayer?: any;
84
- }>, z.ZodObject<{
85
- from: z.ZodUnion<[import("@aztec/foundation/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"NO_FROM">]>;
86
- authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, any, string>, "many">>;
87
- capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<import("@aztec/stdlib/tx").Capsule, any, string>, "many">>;
88
- fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
89
- gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
90
- gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
91
- daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
92
- l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
93
- }, "strip", z.ZodTypeAny, {
94
- daGas: number;
95
- l2Gas: number;
96
- }, {
97
- daGas: string | number | bigint;
98
- l2Gas: string | number | bigint;
99
- }>, import("@aztec/stdlib/gas").Gas, {
100
- daGas: string | number | bigint;
101
- l2Gas: string | number | bigint;
102
- }>>;
103
- teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
104
- daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
105
- l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
106
- }, "strip", z.ZodTypeAny, {
107
- daGas: number;
108
- l2Gas: number;
109
- }, {
110
- daGas: string | number | bigint;
111
- l2Gas: string | number | bigint;
112
- }>, import("@aztec/stdlib/gas").Gas, {
113
- daGas: string | number | bigint;
114
- l2Gas: string | number | bigint;
115
- }>>;
116
- maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
117
- feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
118
- feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
119
- }, "strip", z.ZodTypeAny, {
120
- feePerDaGas: bigint;
121
- feePerL2Gas: bigint;
122
- }, {
123
- feePerDaGas: string | number | bigint;
124
- feePerL2Gas: string | number | bigint;
125
- }>>;
126
- maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
127
- feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
128
- feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
129
- }, "strip", z.ZodTypeAny, {
130
- feePerDaGas: bigint;
131
- feePerL2Gas: bigint;
132
- }, {
133
- feePerDaGas: string | number | bigint;
134
- feePerL2Gas: string | number | bigint;
135
- }>>;
136
- }, "strip", z.ZodTypeAny, {
137
- gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
138
- teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
139
- maxFeePerGas?: {
140
- feePerDaGas: bigint;
141
- feePerL2Gas: bigint;
142
- } | undefined;
143
- maxPriorityFeePerGas?: {
144
- feePerDaGas: bigint;
145
- feePerL2Gas: bigint;
146
- } | undefined;
147
- }, {
148
- gasLimits?: {
149
- daGas: string | number | bigint;
150
- l2Gas: string | number | bigint;
151
- } | undefined;
152
- teardownGasLimits?: {
153
- daGas: string | number | bigint;
154
- l2Gas: string | number | bigint;
155
- } | undefined;
156
- maxFeePerGas?: {
157
- feePerDaGas: string | number | bigint;
158
- feePerL2Gas: string | number | bigint;
159
- } | undefined;
160
- maxPriorityFeePerGas?: {
161
- feePerDaGas: string | number | bigint;
162
- feePerL2Gas: string | number | bigint;
163
- } | undefined;
164
- }>>;
165
- }, "strip", z.ZodTypeAny, {
166
- gasSettings?: {
167
- gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
168
- teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
169
- maxFeePerGas?: {
170
- feePerDaGas: bigint;
171
- feePerL2Gas: bigint;
172
- } | undefined;
173
- maxPriorityFeePerGas?: {
174
- feePerDaGas: bigint;
175
- feePerL2Gas: bigint;
176
- } | undefined;
177
- } | undefined;
178
- }, {
179
- gasSettings?: {
180
- gasLimits?: {
181
- daGas: string | number | bigint;
182
- l2Gas: string | number | bigint;
183
- } | undefined;
184
- teardownGasLimits?: {
185
- daGas: string | number | bigint;
186
- l2Gas: string | number | bigint;
187
- } | undefined;
188
- maxFeePerGas?: {
189
- feePerDaGas: string | number | bigint;
190
- feePerL2Gas: string | number | bigint;
191
- } | undefined;
192
- maxPriorityFeePerGas?: {
193
- feePerDaGas: string | number | bigint;
194
- feePerL2Gas: string | number | bigint;
195
- } | undefined;
196
- } | undefined;
197
- }>>;
198
- wait: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodLiteral<"NO_WAIT">, z.ZodObject<{
199
- ignoreDroppedReceiptsFor: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
200
- timeout: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
201
- interval: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
202
- dontThrowOnRevert: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
203
- }, "strip", z.ZodTypeAny, {
204
- ignoreDroppedReceiptsFor?: number | undefined;
205
- timeout?: number | undefined;
206
- interval?: number | undefined;
207
- dontThrowOnRevert?: boolean | undefined;
208
- }, {
209
- ignoreDroppedReceiptsFor?: number | undefined;
210
- timeout?: number | undefined;
211
- interval?: number | undefined;
212
- dontThrowOnRevert?: boolean | undefined;
213
- }>]>>;
214
- additionalScopes: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<import("@aztec/foundation/schemas").ZodFor<AztecAddress>, "many">>;
215
- }, "strip", z.ZodTypeAny, {
216
- from: "NO_FROM" | AztecAddress;
217
- authWitnesses?: import("@aztec/stdlib/auth-witness").AuthWitness[] | undefined;
218
- capsules?: import("@aztec/stdlib/tx").Capsule[] | undefined;
219
- fee?: {
220
- gasSettings?: {
221
- gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
222
- teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
223
- maxFeePerGas?: {
224
- feePerDaGas: bigint;
225
- feePerL2Gas: bigint;
226
- } | undefined;
227
- maxPriorityFeePerGas?: {
228
- feePerDaGas: bigint;
229
- feePerL2Gas: bigint;
230
- } | undefined;
231
- } | undefined;
232
- } | undefined;
233
- wait?: "NO_WAIT" | {
234
- ignoreDroppedReceiptsFor?: number | undefined;
235
- timeout?: number | undefined;
236
- interval?: number | undefined;
237
- dontThrowOnRevert?: boolean | undefined;
238
- } | undefined;
239
- additionalScopes?: AztecAddress[] | undefined;
240
- }, {
241
- from?: any;
242
- authWitnesses?: string[] | undefined;
243
- capsules?: string[] | undefined;
244
- fee?: {
245
- gasSettings?: {
246
- gasLimits?: {
247
- daGas: string | number | bigint;
248
- l2Gas: string | number | bigint;
249
- } | undefined;
250
- teardownGasLimits?: {
251
- daGas: string | number | bigint;
252
- l2Gas: string | number | bigint;
253
- } | undefined;
254
- maxFeePerGas?: {
255
- feePerDaGas: string | number | bigint;
256
- feePerL2Gas: string | number | bigint;
257
- } | undefined;
258
- maxPriorityFeePerGas?: {
259
- feePerDaGas: string | number | bigint;
260
- feePerL2Gas: string | number | bigint;
261
- } | undefined;
262
- } | undefined;
263
- } | undefined;
264
- wait?: "NO_WAIT" | {
265
- ignoreDroppedReceiptsFor?: number | undefined;
266
- timeout?: number | undefined;
267
- interval?: number | undefined;
268
- dontThrowOnRevert?: boolean | undefined;
269
- } | undefined;
270
- additionalScopes?: any[] | undefined;
271
- }>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<Tx>>;
272
- registerAccount: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<AztecAddress>>;
273
- };
274
- //# sourceMappingURL=data:application/json;base64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yYy90ZXN0LXdhbGxldC93b3JrZXJfd2FsbGV0X3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQU8zRCxpR0FBK0Y7QUFDL0YsZUFBTyxNQUFNLGtCQUFrQixFQUFFLFNBSWhDLENBQUMifQ==
@@ -1 +1 @@
1
- {"version":3,"file":"worker_wallet_schema.d.ts","sourceRoot":"","sources":["../../src/test-wallet/worker_wallet_schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iGAA+F;AAC/F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI9B,CAAC"}
1
+ {"version":3,"file":"worker_wallet_schema.d.ts","sourceRoot":"","sources":["../../src/test-wallet/worker_wallet_schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAO3D,iGAA+F;AAC/F,eAAO,MAAM,kBAAkB,EAAE,SAIhC,CAAC"}
@@ -5,6 +5,19 @@ import { Tx } from '@aztec/stdlib/tx';
5
5
  import { z } from 'zod';
6
6
  /** Schema for the WorkerWallet API — extends WalletSchema with proveTx and registerAccount. */ export const WorkerWalletSchema = {
7
7
  ...WalletSchema,
8
- proveTx: z.function().args(ExecutionPayloadSchema, SendOptionsSchema).returns(Tx.schema),
9
- registerAccount: z.function().args(schemas.Fr, schemas.Fr).returns(AztecAddress.schema)
8
+ proveTx: z.function({
9
+ input: z.tuple([
10
+ ExecutionPayloadSchema,
11
+ SendOptionsSchema
12
+ ]),
13
+ output: Tx.schema
14
+ }),
15
+ registerAccount: z.function({
16
+ input: z.tuple([
17
+ schemas.Fr,
18
+ schemas.Fr,
19
+ schemas.Fq
20
+ ]),
21
+ output: AztecAddress.schema
22
+ })
10
23
  };
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@aztec/end-to-end",
3
- "version": "0.0.1-commit.4d3c002",
3
+ "version": "0.0.1-commit.4d9804df",
4
4
  "type": "module",
5
- "exports": "./dest/index.js",
5
+ "exports": {
6
+ ".": "./dest/index.js",
7
+ "./*": "./dest/*"
8
+ },
6
9
  "inherits": [
7
10
  "../package.common.json",
8
11
  "./package.local.json"
@@ -26,44 +29,45 @@
26
29
  "formatting": "run -T prettier --check ./src && run -T eslint ./src"
27
30
  },
28
31
  "dependencies": {
29
- "@aztec/accounts": "0.0.1-commit.4d3c002",
30
- "@aztec/archiver": "0.0.1-commit.4d3c002",
31
- "@aztec/aztec": "0.0.1-commit.4d3c002",
32
- "@aztec/aztec-node": "0.0.1-commit.4d3c002",
33
- "@aztec/aztec.js": "0.0.1-commit.4d3c002",
34
- "@aztec/bb-prover": "0.0.1-commit.4d3c002",
35
- "@aztec/bb.js": "0.0.1-commit.4d3c002",
36
- "@aztec/blob-client": "0.0.1-commit.4d3c002",
37
- "@aztec/blob-lib": "0.0.1-commit.4d3c002",
38
- "@aztec/bot": "0.0.1-commit.4d3c002",
39
- "@aztec/cli": "0.0.1-commit.4d3c002",
40
- "@aztec/constants": "0.0.1-commit.4d3c002",
41
- "@aztec/entrypoints": "0.0.1-commit.4d3c002",
42
- "@aztec/epoch-cache": "0.0.1-commit.4d3c002",
43
- "@aztec/ethereum": "0.0.1-commit.4d3c002",
44
- "@aztec/foundation": "0.0.1-commit.4d3c002",
45
- "@aztec/kv-store": "0.0.1-commit.4d3c002",
46
- "@aztec/l1-artifacts": "0.0.1-commit.4d3c002",
47
- "@aztec/node-keystore": "0.0.1-commit.4d3c002",
48
- "@aztec/noir-contracts.js": "0.0.1-commit.4d3c002",
49
- "@aztec/noir-noirc_abi": "0.0.1-commit.4d3c002",
50
- "@aztec/noir-protocol-circuits-types": "0.0.1-commit.4d3c002",
51
- "@aztec/noir-test-contracts.js": "0.0.1-commit.4d3c002",
52
- "@aztec/p2p": "0.0.1-commit.4d3c002",
53
- "@aztec/protocol-contracts": "0.0.1-commit.4d3c002",
54
- "@aztec/prover-client": "0.0.1-commit.4d3c002",
55
- "@aztec/prover-node": "0.0.1-commit.4d3c002",
56
- "@aztec/pxe": "0.0.1-commit.4d3c002",
57
- "@aztec/sequencer-client": "0.0.1-commit.4d3c002",
58
- "@aztec/simulator": "0.0.1-commit.4d3c002",
59
- "@aztec/slasher": "0.0.1-commit.4d3c002",
60
- "@aztec/stdlib": "0.0.1-commit.4d3c002",
61
- "@aztec/telemetry-client": "0.0.1-commit.4d3c002",
62
- "@aztec/validator-client": "0.0.1-commit.4d3c002",
63
- "@aztec/validator-ha-signer": "0.0.1-commit.4d3c002",
64
- "@aztec/wallet-sdk": "0.0.1-commit.4d3c002",
65
- "@aztec/wallets": "0.0.1-commit.4d3c002",
66
- "@aztec/world-state": "0.0.1-commit.4d3c002",
32
+ "@aztec/accounts": "0.0.1-commit.4d9804df",
33
+ "@aztec/archiver": "0.0.1-commit.4d9804df",
34
+ "@aztec/aztec": "0.0.1-commit.4d9804df",
35
+ "@aztec/aztec-node": "0.0.1-commit.4d9804df",
36
+ "@aztec/aztec.js": "0.0.1-commit.4d9804df",
37
+ "@aztec/bb-prover": "0.0.1-commit.4d9804df",
38
+ "@aztec/bb.js": "0.0.1-commit.4d9804df",
39
+ "@aztec/blob-client": "0.0.1-commit.4d9804df",
40
+ "@aztec/blob-lib": "0.0.1-commit.4d9804df",
41
+ "@aztec/bot": "0.0.1-commit.4d9804df",
42
+ "@aztec/cli": "0.0.1-commit.4d9804df",
43
+ "@aztec/constants": "0.0.1-commit.4d9804df",
44
+ "@aztec/entrypoints": "0.0.1-commit.4d9804df",
45
+ "@aztec/epoch-cache": "0.0.1-commit.4d9804df",
46
+ "@aztec/ethereum": "0.0.1-commit.4d9804df",
47
+ "@aztec/foundation": "0.0.1-commit.4d9804df",
48
+ "@aztec/kv-store": "0.0.1-commit.4d9804df",
49
+ "@aztec/l1-artifacts": "0.0.1-commit.4d9804df",
50
+ "@aztec/node-keystore": "0.0.1-commit.4d9804df",
51
+ "@aztec/noir-contracts.js": "0.0.1-commit.4d9804df",
52
+ "@aztec/noir-noirc_abi": "0.0.1-commit.4d9804df",
53
+ "@aztec/noir-protocol-circuits-types": "0.0.1-commit.4d9804df",
54
+ "@aztec/noir-test-contracts.js": "0.0.1-commit.4d9804df",
55
+ "@aztec/p2p": "0.0.1-commit.4d9804df",
56
+ "@aztec/protocol-contracts": "0.0.1-commit.4d9804df",
57
+ "@aztec/prover-client": "0.0.1-commit.4d9804df",
58
+ "@aztec/prover-node": "0.0.1-commit.4d9804df",
59
+ "@aztec/pxe": "0.0.1-commit.4d9804df",
60
+ "@aztec/sequencer-client": "0.0.1-commit.4d9804df",
61
+ "@aztec/simulator": "0.0.1-commit.4d9804df",
62
+ "@aztec/slasher": "0.0.1-commit.4d9804df",
63
+ "@aztec/standard-contracts": "0.0.1-commit.4d9804df",
64
+ "@aztec/stdlib": "0.0.1-commit.4d9804df",
65
+ "@aztec/telemetry-client": "0.0.1-commit.4d9804df",
66
+ "@aztec/validator-client": "0.0.1-commit.4d9804df",
67
+ "@aztec/validator-ha-signer": "0.0.1-commit.4d9804df",
68
+ "@aztec/wallet-sdk": "0.0.1-commit.4d9804df",
69
+ "@aztec/wallets": "0.0.1-commit.4d9804df",
70
+ "@aztec/world-state": "0.0.1-commit.4d9804df",
67
71
  "@iarna/toml": "^2.2.5",
68
72
  "@jest/globals": "^30.0.0",
69
73
  "@noble/curves": "=1.0.0",
@@ -101,7 +105,7 @@
101
105
  "typescript": "^5.3.3",
102
106
  "util": "^0.12.5",
103
107
  "viem": "npm:@aztec/viem@2.38.2",
104
- "zod": "^3.23.8"
108
+ "zod": "^4"
105
109
  },
106
110
  "devDependencies": {
107
111
  "0x": "^5.7.0",
@@ -159,12 +163,13 @@
159
163
  "moduleNameMapper": {
160
164
  "^(\\.{1,2}/.*)\\.[cm]?js$": "$1"
161
165
  },
166
+ "resolver": "<rootDir>/legacy-jest-resolver.cjs",
162
167
  "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$",
163
168
  "rootDir": "./src",
164
169
  "testTimeout": 120000,
165
170
  "setupFiles": [
166
171
  "../../foundation/src/jest/setup.mjs"
167
172
  ],
168
- "testEnvironment": "../../foundation/src/jest/env.mjs"
173
+ "testEnvironment": "./shared/timing_env.mjs"
169
174
  }
170
175
  }
@@ -0,0 +1,60 @@
1
+ # `automine` e2e test category
2
+
3
+ Automine tests run a single Aztec node driving the deterministic `AutomineSequencer`: one block per
4
+ submitted transaction, synchronous L1 publish, no committee, no prover, and no validator client. The
5
+ node opts into this topology through the `AUTOMINE_E2E_OPTS` preset (`fixtures/fixtures.ts`), which the
6
+ base context applies by default. This is the fast, deterministic counterpart to the `single-node`
7
+ category, whose node runs the production sequencer with interval block production. A test belongs here
8
+ when it exercises contract or protocol behavior that does not depend on real block-building or consensus
9
+ (token transfers, nested calls, note discovery, tx semantics); it belongs in `single-node` when it
10
+ asserts on sequencer, proving, or reorg behavior.
11
+
12
+ ## Base class
13
+
14
+ All tests use `AutomineTestContext` (`automine_test_context.ts`), which owns:
15
+
16
+ - The environment: an in-process anvil in automine mode plus the L1 contract deploy, wrapping
17
+ `fixtures/setup.ts:setup()` with `AUTOMINE_E2E_OPTS` and `fundSponsoredFPC` as defaults.
18
+ - The common handles: `context`, `wallet`, `aztecNode`, `aztecNodeAdmin`, `cheatCodes`, `sequencer`,
19
+ `accounts`, `defaultAccountAddress`, `logger`.
20
+ - `markProvenAndWarp(seconds)`: marks pending checkpoints proven before warping the L2 clock, so a long
21
+ warp does not trip the rollup's pruning window (see the method's doc comment).
22
+ - `registerContract(...)`: computes and registers a contract instance without an on-chain deploy.
23
+ - `applyManualParentChild()`: deploys a Parent and Child contract for the nested-call tests.
24
+
25
+ Tests call the static `AutomineTestContext.setup({ numberOfAccounts })` factory (or `new` plus `setup()`
26
+ for the harness subclasses), passing `numberOfAccounts` rather than spreading `AUTOMINE_E2E_OPTS`.
27
+
28
+ ## Harnesses
29
+
30
+ Two domain harnesses extend `AutomineTestContext` and run their domain setup after `super.setup()`:
31
+
32
+ - `token/token_contract_test.ts` — a `TokenSimulator` plus opt-in base/mint snapshots for the Token
33
+ contract tests.
34
+ - `token/blacklist_token_contract_test.ts` — a `TokenSimulator`, the `Role` helper, and the
35
+ role-change-delay warp (via `markProvenAndWarp`) for the TokenBlacklist tests.
36
+
37
+ ## Organizing principle
38
+
39
+ The top level groups tests by node topology (automine); the second level names the primary behavior
40
+ under test rather than the shared setup. Each file has a single top-level `describe` named to match its
41
+ path. A `.parallel` suffix marks files with more than one top-level `it`; CI splits each `it` into its
42
+ own job.
43
+
44
+ ## Subfolders
45
+
46
+ A second-level folder is created only when it earns its keep: a shared harness, an existing sub-hierarchy,
47
+ or a coherent domain of several files. The remaining miscellaneous protocol/execution behaviors live as flat
48
+ files directly under `automine/` — smoke, tx ordering/double-spend/phase checks, mempool limits, the app demos
49
+ (card game, private voting), and the timestamp/PXE tests.
50
+
51
+ | Path | Contents |
52
+ |---|---|
53
+ | `token/` | Token-economics tests on the two token harnesses plus the `TokenSimulator`/`LendingSimulator`-adjacent DeFi tests: token transfers/minting/burning/access-control, the blacklist token suite, AMM, lending, NFT, orderbook, crowdfunding, and escrow. |
54
+ | `contracts/` | Contract lifecycle and cross-contract behavior. `deploy/` (class registration, deploy method, legacy deploy, private initialization), `nested/` (importer and the manual private/public nested-call patterns), plus contract updates, storage proofs, static calls, nested utility calls, and the ABI/storage-surface tests (ABI types, option params, state variables). |
55
+ | `accounts/` | Account and key behavior: account contracts, keys, multiple accounts sharing an encryption key, two-PXE interop, authwit, and scope isolation. |
56
+ | `effects/` | Note discovery, events, and offchain effects: note getters, pending note hashes, partial notes, event logs, event-only notes, offchain effects and payments, large public events, custom messages, the tx-effect oracle, and note rediscovery after pruned blocks. |
57
+ | `simulation/` | Circuit simulation surface: the AVM simulator, kernelless simulation, and the circuit recorder. |
58
+
59
+ The `simulation/avm_simulator` file is a genuine outlier: it dumps AVM circuit inputs for the downstream
60
+ `avm_check_circuit` CI job, so it has a bespoke CI line and is excluded from the generic `simulation/` glob.