@aztec/end-to-end 0.0.1-commit.2ed92850 → 0.0.1-commit.3100065

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 (350) hide show
  1. package/README.md +229 -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/automine/contracts/fixtures/storage_proof_fetcher.js +184 -0
  8. package/dest/automine/contracts/fixtures/storage_proof_fixture.d.ts +18 -0
  9. package/dest/automine/contracts/fixtures/storage_proof_fixture.d.ts.map +1 -0
  10. package/dest/automine/contracts/fixtures/storage_proof_fixture.js +120 -0
  11. package/dest/automine/delivery/interactive_handshake_responder.d.ts +48 -0
  12. package/dest/automine/delivery/interactive_handshake_responder.d.ts.map +1 -0
  13. package/dest/automine/delivery/interactive_handshake_responder.js +76 -0
  14. package/dest/automine/delivery/onchain_delivery_harness.d.ts +19 -0
  15. package/dest/automine/delivery/onchain_delivery_harness.d.ts.map +1 -0
  16. package/dest/automine/delivery/onchain_delivery_harness.js +141 -0
  17. package/dest/automine/token/blacklist_token_contract_test.d.ts +49 -0
  18. package/dest/automine/token/blacklist_token_contract_test.d.ts.map +1 -0
  19. package/dest/{e2e_blacklist_token_contract → automine/token}/blacklist_token_contract_test.js +45 -48
  20. package/dest/automine/token/token_contract_test.d.ts +40 -0
  21. package/dest/automine/token/token_contract_test.d.ts.map +1 -0
  22. package/dest/{e2e_token_contract → automine/token}/token_contract_test.js +43 -48
  23. package/dest/automine/token/token_test_helpers.d.ts +73 -0
  24. package/dest/automine/token/token_test_helpers.d.ts.map +1 -0
  25. package/dest/automine/token/token_test_helpers.js +97 -0
  26. package/dest/bench/client_flows/benchmark.d.ts +15 -1
  27. package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
  28. package/dest/bench/client_flows/benchmark.js +19 -0
  29. package/dest/bench/client_flows/client_flows_benchmark.d.ts +6 -6
  30. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  31. package/dest/bench/client_flows/client_flows_benchmark.js +65 -56
  32. package/dest/bench/client_flows/config.d.ts +2 -2
  33. package/dest/bench/client_flows/config.d.ts.map +1 -1
  34. package/dest/bench/client_flows/config.js +18 -0
  35. package/dest/bench/utils.d.ts +3 -3
  36. package/dest/bench/utils.d.ts.map +1 -1
  37. package/dest/bench/utils.js +102 -8
  38. package/dest/composed/ha/ha_full_setup.d.ts +77 -0
  39. package/dest/composed/ha/ha_full_setup.d.ts.map +1 -0
  40. package/dest/composed/ha/ha_full_setup.js +383 -0
  41. package/dest/composed/web3signer/multi_validator_keystore_utils.d.ts +12 -0
  42. package/dest/composed/web3signer/multi_validator_keystore_utils.d.ts.map +1 -0
  43. package/dest/fixtures/authwit_proxy.d.ts +15 -0
  44. package/dest/fixtures/authwit_proxy.d.ts.map +1 -0
  45. package/dest/fixtures/authwit_proxy.js +34 -0
  46. package/dest/fixtures/e2e_prover_test.d.ts +18 -14
  47. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  48. package/dest/fixtures/e2e_prover_test.js +84 -75
  49. package/dest/fixtures/elu_monitor.d.ts +21 -0
  50. package/dest/fixtures/elu_monitor.d.ts.map +1 -0
  51. package/dest/fixtures/elu_monitor.js +102 -0
  52. package/dest/fixtures/fixtures.d.ts +82 -1
  53. package/dest/fixtures/fixtures.d.ts.map +1 -1
  54. package/dest/fixtures/fixtures.js +84 -0
  55. package/dest/fixtures/get_bb_config.d.ts +1 -1
  56. package/dest/fixtures/get_bb_config.d.ts.map +1 -1
  57. package/dest/fixtures/get_bb_config.js +5 -5
  58. package/dest/fixtures/ha_setup.d.ts +71 -0
  59. package/dest/fixtures/ha_setup.d.ts.map +1 -0
  60. package/dest/fixtures/ha_setup.js +119 -0
  61. package/dest/fixtures/index.d.ts +3 -1
  62. package/dest/fixtures/index.d.ts.map +1 -1
  63. package/dest/fixtures/index.js +2 -0
  64. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts +25 -0
  65. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts.map +1 -0
  66. package/dest/fixtures/schnorr_hardcoded_account_contract.js +37 -0
  67. package/dest/fixtures/setup.d.ts +120 -61
  68. package/dest/fixtures/setup.d.ts.map +1 -1
  69. package/dest/fixtures/setup.js +337 -327
  70. package/dest/fixtures/setup_p2p_test.d.ts +22 -11
  71. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  72. package/dest/fixtures/setup_p2p_test.js +46 -35
  73. package/dest/fixtures/standard_contracts_genesis.d.ts +16 -0
  74. package/dest/fixtures/standard_contracts_genesis.d.ts.map +1 -0
  75. package/dest/fixtures/standard_contracts_genesis.js +25 -0
  76. package/dest/fixtures/timing.d.ts +42 -0
  77. package/dest/fixtures/timing.d.ts.map +1 -0
  78. package/dest/fixtures/timing.js +72 -0
  79. package/dest/fixtures/token_utils.d.ts +22 -4
  80. package/dest/fixtures/token_utils.d.ts.map +1 -1
  81. package/dest/fixtures/token_utils.js +26 -8
  82. package/dest/fixtures/utils.d.ts +2 -2
  83. package/dest/fixtures/utils.d.ts.map +1 -1
  84. package/dest/fixtures/utils.js +1 -1
  85. package/dest/fixtures/wait_helpers.d.ts +135 -0
  86. package/dest/fixtures/wait_helpers.d.ts.map +1 -0
  87. package/dest/fixtures/wait_helpers.js +154 -0
  88. package/dest/forward-compatibility/wallet_rpc_client.d.ts +7 -0
  89. package/dest/forward-compatibility/wallet_rpc_client.d.ts.map +1 -0
  90. package/dest/forward-compatibility/wallet_rpc_client.js +15 -0
  91. package/dest/forward-compatibility/wallet_service.d.ts +3 -0
  92. package/dest/forward-compatibility/wallet_service.d.ts.map +1 -0
  93. package/dest/forward-compatibility/wallet_service.js +109 -0
  94. package/dest/install_legacy_contracts.d.cts +10 -0
  95. package/dest/install_legacy_contracts.d.cts.map +1 -0
  96. package/dest/legacy-jest-resolver.d.cts +3 -0
  97. package/dest/legacy-jest-resolver.d.cts.map +1 -0
  98. package/dest/multi-node/block-production/setup.d.ts +97 -0
  99. package/dest/multi-node/block-production/setup.d.ts.map +1 -0
  100. package/dest/multi-node/block-production/setup.js +158 -0
  101. package/dest/multi-node/governance/setup.d.ts +67 -0
  102. package/dest/multi-node/governance/setup.d.ts.map +1 -0
  103. package/dest/multi-node/governance/setup.js +126 -0
  104. package/dest/multi-node/multi_node_test_context.d.ts +212 -0
  105. package/dest/multi-node/multi_node_test_context.d.ts.map +1 -0
  106. package/dest/multi-node/multi_node_test_context.js +347 -0
  107. package/dest/multi-node/slashing/inactivity_setup.d.ts +27 -0
  108. package/dest/multi-node/slashing/inactivity_setup.d.ts.map +1 -0
  109. package/dest/multi-node/slashing/inactivity_setup.js +111 -0
  110. package/dest/multi-node/slashing/setup.d.ts +167 -0
  111. package/dest/multi-node/slashing/setup.d.ts.map +1 -0
  112. package/dest/multi-node/slashing/setup.js +275 -0
  113. package/dest/{e2e_p2p → p2p}/p2p_network.d.ts +22 -12
  114. package/dest/p2p/p2p_network.d.ts.map +1 -0
  115. package/dest/{e2e_p2p → p2p}/p2p_network.js +98 -37
  116. package/dest/p2p/reqresp/utils.d.ts +19 -0
  117. package/dest/p2p/reqresp/utils.d.ts.map +1 -0
  118. package/dest/p2p/reqresp/utils.js +193 -0
  119. package/dest/p2p/shared.d.ts +72 -0
  120. package/dest/p2p/shared.d.ts.map +1 -0
  121. package/dest/p2p/shared.js +212 -0
  122. package/dest/shared/cross_chain_test_harness.d.ts +6 -4
  123. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  124. package/dest/shared/cross_chain_test_harness.js +44 -32
  125. package/dest/shared/gas_portal_test_harness.d.ts +8 -5
  126. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  127. package/dest/shared/gas_portal_test_harness.js +26 -14
  128. package/dest/shared/index.d.ts +2 -1
  129. package/dest/shared/index.d.ts.map +1 -1
  130. package/dest/shared/index.js +1 -0
  131. package/dest/shared/jest_setup.js +41 -1
  132. package/dest/shared/mock_state_view.d.ts +86 -0
  133. package/dest/shared/mock_state_view.d.ts.map +1 -0
  134. package/dest/shared/mock_state_view.js +186 -0
  135. package/dest/shared/submit-transactions.d.ts +2 -2
  136. package/dest/shared/submit-transactions.d.ts.map +1 -1
  137. package/dest/shared/submit-transactions.js +12 -5
  138. package/dest/shared/timing_env.d.js +5 -0
  139. package/dest/shared/timing_env.js +365 -0
  140. package/dest/shared/uniswap_l1_l2.d.ts +1 -1
  141. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  142. package/dest/shared/uniswap_l1_l2.js +56 -44
  143. package/dest/shared/wait_for_l1_to_l2_message.d.ts +13 -0
  144. package/dest/shared/wait_for_l1_to_l2_message.d.ts.map +1 -0
  145. package/dest/shared/wait_for_l1_to_l2_message.js +10 -0
  146. package/dest/simulators/lending_simulator.d.ts +10 -3
  147. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  148. package/dest/simulators/lending_simulator.js +27 -15
  149. package/dest/simulators/token_simulator.d.ts +1 -1
  150. package/dest/simulators/token_simulator.d.ts.map +1 -1
  151. package/dest/simulators/token_simulator.js +3 -24
  152. package/dest/single-node/cross-chain/cross_chain_messaging_test.d.ts +75 -0
  153. package/dest/single-node/cross-chain/cross_chain_messaging_test.d.ts.map +1 -0
  154. package/dest/single-node/cross-chain/cross_chain_messaging_test.js +209 -0
  155. package/dest/single-node/cross-chain/message_test_helpers.d.ts +38 -0
  156. package/dest/single-node/cross-chain/message_test_helpers.d.ts.map +1 -0
  157. package/dest/single-node/cross-chain/message_test_helpers.js +70 -0
  158. package/dest/{e2e_fees → single-node/fees}/bridging_race.notest.d.ts +1 -1
  159. package/dest/single-node/fees/bridging_race.notest.d.ts.map +1 -0
  160. package/dest/{e2e_fees → single-node/fees}/bridging_race.notest.js +17 -4
  161. package/dest/single-node/fees/fees_test.d.ts +95 -0
  162. package/dest/single-node/fees/fees_test.d.ts.map +1 -0
  163. package/dest/single-node/fees/fees_test.js +347 -0
  164. package/dest/single-node/l1-reorgs/setup.d.ts +42 -0
  165. package/dest/single-node/l1-reorgs/setup.d.ts.map +1 -0
  166. package/dest/single-node/l1-reorgs/setup.js +57 -0
  167. package/dest/single-node/partial-proofs/setup.d.ts +5 -0
  168. package/dest/single-node/partial-proofs/setup.d.ts.map +1 -0
  169. package/dest/single-node/partial-proofs/setup.js +5 -0
  170. package/dest/single-node/proving/setup.d.ts +5 -0
  171. package/dest/single-node/proving/setup.d.ts.map +1 -0
  172. package/dest/single-node/proving/setup.js +5 -0
  173. package/dest/single-node/recovery/setup.d.ts +5 -0
  174. package/dest/single-node/recovery/setup.d.ts.map +1 -0
  175. package/dest/single-node/recovery/setup.js +5 -0
  176. package/dest/single-node/setup.d.ts +49 -0
  177. package/dest/single-node/setup.d.ts.map +1 -0
  178. package/dest/single-node/setup.js +56 -0
  179. package/dest/single-node/single_node_test_context.d.ts +373 -0
  180. package/dest/single-node/single_node_test_context.d.ts.map +1 -0
  181. package/dest/single-node/single_node_test_context.js +845 -0
  182. package/dest/spartan/setup_test_wallets.d.ts +12 -3
  183. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  184. package/dest/spartan/setup_test_wallets.js +124 -47
  185. package/dest/spartan/tx_metrics.d.ts +61 -4
  186. package/dest/spartan/tx_metrics.d.ts.map +1 -1
  187. package/dest/spartan/tx_metrics.js +256 -21
  188. package/dest/spartan/utils/bot.d.ts +3 -2
  189. package/dest/spartan/utils/bot.d.ts.map +1 -1
  190. package/dest/spartan/utils/bot.js +2 -1
  191. package/dest/spartan/utils/config.d.ts +11 -28
  192. package/dest/spartan/utils/config.d.ts.map +1 -1
  193. package/dest/spartan/utils/config.js +4 -1
  194. package/dest/spartan/utils/index.d.ts +6 -4
  195. package/dest/spartan/utils/index.d.ts.map +1 -1
  196. package/dest/spartan/utils/index.js +6 -2
  197. package/dest/spartan/utils/k8s.d.ts +31 -1
  198. package/dest/spartan/utils/k8s.d.ts.map +1 -1
  199. package/dest/spartan/utils/k8s.js +124 -0
  200. package/dest/spartan/utils/nodes.d.ts +14 -5
  201. package/dest/spartan/utils/nodes.d.ts.map +1 -1
  202. package/dest/spartan/utils/nodes.js +204 -33
  203. package/dest/spartan/utils/pod_logs.d.ts +25 -0
  204. package/dest/spartan/utils/pod_logs.d.ts.map +1 -0
  205. package/dest/spartan/utils/pod_logs.js +74 -0
  206. package/dest/spartan/utils/scripts.d.ts +18 -4
  207. package/dest/spartan/utils/scripts.d.ts.map +1 -1
  208. package/dest/spartan/utils/scripts.js +19 -4
  209. package/dest/test-wallet/test_wallet.d.ts +105 -0
  210. package/dest/test-wallet/test_wallet.d.ts.map +1 -0
  211. package/dest/test-wallet/test_wallet.js +320 -0
  212. package/dest/test-wallet/utils.d.ts +76 -0
  213. package/dest/test-wallet/utils.d.ts.map +1 -0
  214. package/dest/test-wallet/utils.js +126 -0
  215. package/dest/test-wallet/wallet_worker_script.d.ts +2 -0
  216. package/dest/test-wallet/wallet_worker_script.d.ts.map +1 -0
  217. package/dest/test-wallet/wallet_worker_script.js +56 -0
  218. package/dest/test-wallet/worker_wallet.d.ts +53 -0
  219. package/dest/test-wallet/worker_wallet.d.ts.map +1 -0
  220. package/dest/test-wallet/worker_wallet.js +155 -0
  221. package/dest/test-wallet/worker_wallet_schema.d.ts +4 -0
  222. package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -0
  223. package/dest/test-wallet/worker_wallet_schema.js +23 -0
  224. package/package.json +53 -46
  225. package/src/automine/README.md +60 -0
  226. package/src/automine/automine_test_context.ts +153 -0
  227. package/src/automine/contracts/fixtures/storage_proof.json +915 -0
  228. package/src/automine/contracts/fixtures/storage_proof_fetcher.ts +190 -0
  229. package/src/automine/contracts/fixtures/storage_proof_fixture.ts +173 -0
  230. package/src/automine/delivery/interactive_handshake_responder.ts +125 -0
  231. package/src/automine/delivery/onchain_delivery_harness.ts +213 -0
  232. package/src/{e2e_blacklist_token_contract → automine/token}/blacklist_token_contract_test.ts +51 -61
  233. package/src/{e2e_token_contract → automine/token}/token_contract_test.ts +50 -56
  234. package/src/automine/token/token_test_helpers.ts +138 -0
  235. package/src/bench/client_flows/benchmark.ts +21 -0
  236. package/src/bench/client_flows/client_flows_benchmark.ts +106 -72
  237. package/src/bench/client_flows/config.ts +9 -1
  238. package/src/bench/utils.ts +117 -8
  239. package/src/composed/ha/ha_full_setup.ts +466 -0
  240. package/src/fixtures/authwit_proxy.ts +54 -0
  241. package/src/fixtures/dumps/epoch_proof_result.json +1 -1
  242. package/src/fixtures/e2e_prover_test.ts +102 -96
  243. package/src/fixtures/elu_monitor.ts +126 -0
  244. package/src/fixtures/fixtures.ts +108 -0
  245. package/src/fixtures/get_bb_config.ts +7 -6
  246. package/src/fixtures/ha_setup.ts +192 -0
  247. package/src/fixtures/index.ts +2 -0
  248. package/src/fixtures/schnorr_hardcoded_account_contract.ts +49 -0
  249. package/src/fixtures/setup.ts +438 -445
  250. package/src/fixtures/setup_p2p_test.ts +54 -54
  251. package/src/fixtures/standard_contracts_genesis.ts +28 -0
  252. package/src/fixtures/timing.ts +97 -0
  253. package/src/fixtures/token_utils.ts +42 -7
  254. package/src/fixtures/utils.ts +2 -3
  255. package/src/fixtures/wait_helpers.ts +333 -0
  256. package/src/forward-compatibility/wallet_rpc_client.ts +14 -0
  257. package/src/forward-compatibility/wallet_service.ts +106 -0
  258. package/src/guides/up_quick_start.sh +7 -4
  259. package/src/infra/README.md +12 -0
  260. package/src/install_legacy_contracts.cjs +75 -0
  261. package/src/legacy-jest-resolver.cjs +112 -0
  262. package/src/multi-node/README.md +96 -0
  263. package/src/multi-node/block-production/setup.ts +272 -0
  264. package/src/multi-node/governance/setup.ts +172 -0
  265. package/src/multi-node/multi_node_test_context.ts +447 -0
  266. package/src/multi-node/slashing/inactivity_setup.ts +139 -0
  267. package/src/multi-node/slashing/setup.ts +433 -0
  268. package/src/p2p/README.md +78 -0
  269. package/src/{e2e_p2p → p2p}/p2p_network.ts +124 -53
  270. package/src/p2p/reqresp/utils.ts +263 -0
  271. package/src/p2p/shared.ts +329 -0
  272. package/src/shared/cross_chain_test_harness.ts +44 -21
  273. package/src/shared/gas_portal_test_harness.ts +33 -15
  274. package/src/shared/index.ts +1 -0
  275. package/src/shared/jest_setup.ts +51 -1
  276. package/src/shared/mock_state_view.ts +188 -0
  277. package/src/shared/submit-transactions.ts +15 -6
  278. package/src/shared/timing_env.d.mts +39 -0
  279. package/src/shared/timing_env.mjs +363 -0
  280. package/src/shared/uniswap_l1_l2.ts +98 -56
  281. package/src/shared/wait_for_l1_to_l2_message.ts +23 -0
  282. package/src/simulators/lending_simulator.ts +33 -15
  283. package/src/simulators/token_simulator.ts +6 -30
  284. package/src/single-node/README.md +66 -0
  285. package/src/single-node/cross-chain/cross_chain_messaging_test.ts +302 -0
  286. package/src/single-node/cross-chain/message_test_helpers.ts +125 -0
  287. package/src/{e2e_fees → single-node/fees}/bridging_race.notest.ts +19 -5
  288. package/src/single-node/fees/fees_test.ts +437 -0
  289. package/src/single-node/l1-reorgs/setup.ts +93 -0
  290. package/src/single-node/partial-proofs/setup.ts +8 -0
  291. package/src/single-node/proving/setup.ts +15 -0
  292. package/src/single-node/recovery/setup.ts +8 -0
  293. package/src/single-node/setup.ts +63 -0
  294. package/src/single-node/single_node_test_context.ts +1054 -0
  295. package/src/spartan/setup_test_wallets.ts +168 -42
  296. package/src/spartan/tx_metrics.ts +234 -24
  297. package/src/spartan/utils/bot.ts +4 -1
  298. package/src/spartan/utils/config.ts +3 -0
  299. package/src/spartan/utils/index.ts +10 -1
  300. package/src/spartan/utils/k8s.ts +160 -0
  301. package/src/spartan/utils/nodes.ts +251 -31
  302. package/src/spartan/utils/pod_logs.ts +99 -0
  303. package/src/spartan/utils/scripts.ts +43 -7
  304. package/src/test-wallet/test_wallet.ts +426 -0
  305. package/src/test-wallet/utils.ts +205 -0
  306. package/src/test-wallet/wallet_worker_script.ts +66 -0
  307. package/src/test-wallet/worker_wallet.ts +214 -0
  308. package/src/test-wallet/worker_wallet_schema.ts +14 -0
  309. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +0 -53
  310. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +0 -1
  311. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +0 -47
  312. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +0 -1
  313. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +0 -128
  314. package/dest/e2e_deploy_contract/deploy_test.d.ts +0 -37
  315. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +0 -1
  316. package/dest/e2e_deploy_contract/deploy_test.js +0 -50
  317. package/dest/e2e_epochs/epochs_test.d.ts +0 -94
  318. package/dest/e2e_epochs/epochs_test.d.ts.map +0 -1
  319. package/dest/e2e_epochs/epochs_test.js +0 -342
  320. package/dest/e2e_fees/bridging_race.notest.d.ts.map +0 -1
  321. package/dest/e2e_fees/fees_test.d.ts +0 -88
  322. package/dest/e2e_fees/fees_test.d.ts.map +0 -1
  323. package/dest/e2e_fees/fees_test.js +0 -248
  324. package/dest/e2e_l1_publisher/write_json.d.ts +0 -10
  325. package/dest/e2e_l1_publisher/write_json.d.ts.map +0 -1
  326. package/dest/e2e_l1_publisher/write_json.js +0 -62
  327. package/dest/e2e_multi_validator/utils.d.ts +0 -12
  328. package/dest/e2e_multi_validator/utils.d.ts.map +0 -1
  329. package/dest/e2e_nested_contract/nested_contract_test.d.ts +0 -26
  330. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +0 -1
  331. package/dest/e2e_nested_contract/nested_contract_test.js +0 -56
  332. package/dest/e2e_p2p/inactivity_slash_test.d.ts +0 -31
  333. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +0 -1
  334. package/dest/e2e_p2p/inactivity_slash_test.js +0 -136
  335. package/dest/e2e_p2p/p2p_network.d.ts.map +0 -1
  336. package/dest/e2e_p2p/shared.d.ts +0 -46
  337. package/dest/e2e_p2p/shared.d.ts.map +0 -1
  338. package/dest/e2e_p2p/shared.js +0 -177
  339. package/dest/e2e_token_contract/token_contract_test.d.ts +0 -42
  340. package/dest/e2e_token_contract/token_contract_test.d.ts.map +0 -1
  341. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +0 -194
  342. package/src/e2e_deploy_contract/deploy_test.ts +0 -85
  343. package/src/e2e_epochs/epochs_test.ts +0 -456
  344. package/src/e2e_fees/fees_test.ts +0 -339
  345. package/src/e2e_l1_publisher/write_json.ts +0 -82
  346. package/src/e2e_nested_contract/nested_contract_test.ts +0 -73
  347. package/src/e2e_p2p/inactivity_slash_test.ts +0 -179
  348. package/src/e2e_p2p/shared.ts +0 -280
  349. /package/dest/{e2e_multi_validator/utils.js → composed/web3signer/multi_validator_keystore_utils.js} +0 -0
  350. /package/src/{e2e_multi_validator/utils.ts → composed/web3signer/multi_validator_keystore_utils.ts} +0 -0
@@ -1,342 +0,0 @@
1
- import { AztecNodeService } from '@aztec/aztec-node';
2
- import { getTimestampRangeForEpoch } from '@aztec/aztec.js/block';
3
- import { getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
4
- import { Fr } from '@aztec/aztec.js/fields';
5
- import { MerkleTreeId } from '@aztec/aztec.js/trees';
6
- import { EpochCache } from '@aztec/epoch-cache';
7
- import { createExtendedL1Client } from '@aztec/ethereum/client';
8
- import { DefaultL1ContractsConfig } from '@aztec/ethereum/config';
9
- import { RollupContract } from '@aztec/ethereum/contracts';
10
- import { ChainMonitor, DelayedTxUtils, waitUntilL1Timestamp, withDelayer } from '@aztec/ethereum/test';
11
- import { EpochNumber } from '@aztec/foundation/branded-types';
12
- import { SecretValue } from '@aztec/foundation/config';
13
- import { randomBytes } from '@aztec/foundation/crypto/random';
14
- import { withLogNameSuffix } from '@aztec/foundation/log';
15
- import { retryUntil } from '@aztec/foundation/retry';
16
- import { sleep } from '@aztec/foundation/sleep';
17
- import { SpamContract } from '@aztec/noir-test-contracts.js/Spam';
18
- import { getMockPubSubP2PServiceFactory } from '@aztec/p2p/test-helpers';
19
- import { SequencerState } from '@aztec/sequencer-client';
20
- import { EthAddress } from '@aztec/stdlib/block';
21
- import { getProofSubmissionDeadlineTimestamp } from '@aztec/stdlib/epoch-helpers';
22
- import { tryStop } from '@aztec/stdlib/interfaces/server';
23
- import { join } from 'path';
24
- import { privateKeyToAccount } from 'viem/accounts';
25
- import { createAndSyncProverNode, getPrivateKeyFromIndex, setup } from '../fixtures/utils.js';
26
- export const WORLD_STATE_BLOCK_HISTORY = 2;
27
- export const WORLD_STATE_BLOCK_CHECK_INTERVAL = 50;
28
- export const ARCHIVER_POLL_INTERVAL = 50;
29
- export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
30
- /**
31
- * Tests building of epochs using fast block times and short epochs.
32
- * Spawns an aztec node and a prover node with fake proofs.
33
- * Sequencer is allowed to build empty blocks.
34
- */ export class EpochsTestContext {
35
- context;
36
- l1Client;
37
- rollup;
38
- constants;
39
- logger;
40
- monitor;
41
- epochCache;
42
- proverDelayer;
43
- sequencerDelayer;
44
- proverNodes = [];
45
- nodes = [];
46
- epochDuration;
47
- L1_BLOCK_TIME_IN_S;
48
- L2_SLOT_DURATION_IN_S;
49
- static async setup(opts = {}) {
50
- const test = new EpochsTestContext();
51
- await test.setup(opts);
52
- return test;
53
- }
54
- static getSlotDurations(opts = {}) {
55
- const envEthereumSlotDuration = process.env.L1_BLOCK_TIME ? parseInt(process.env.L1_BLOCK_TIME) : DEFAULT_L1_BLOCK_TIME;
56
- const ethereumSlotDuration = opts.ethereumSlotDuration ?? envEthereumSlotDuration;
57
- const aztecSlotDuration = opts.aztecSlotDuration ?? ethereumSlotDuration * 2;
58
- const aztecEpochDuration = opts.aztecEpochDuration ?? 6;
59
- const aztecProofSubmissionEpochs = opts.aztecProofSubmissionEpochs ?? 1;
60
- const l1PublishingTime = opts.l1PublishingTime ?? 1;
61
- return {
62
- l1PublishingTime,
63
- ethereumSlotDuration,
64
- aztecSlotDuration,
65
- aztecEpochDuration,
66
- aztecProofSubmissionEpochs
67
- };
68
- }
69
- async setup(opts = {}) {
70
- const { ethereumSlotDuration, aztecSlotDuration, aztecEpochDuration, aztecProofSubmissionEpochs, l1PublishingTime } = EpochsTestContext.getSlotDurations(opts);
71
- this.L1_BLOCK_TIME_IN_S = ethereumSlotDuration;
72
- this.L2_SLOT_DURATION_IN_S = aztecSlotDuration;
73
- // Set up system without any account nor protocol contracts
74
- // and with faster block times and shorter epochs.
75
- const context = await setup(opts.numberOfAccounts ?? 0, {
76
- automineL1Setup: true,
77
- checkIntervalMs: 50,
78
- archiverPollingIntervalMS: ARCHIVER_POLL_INTERVAL,
79
- worldStateBlockCheckIntervalMS: WORLD_STATE_BLOCK_CHECK_INTERVAL,
80
- aztecEpochDuration,
81
- aztecSlotDuration,
82
- ethereumSlotDuration,
83
- aztecProofSubmissionEpochs,
84
- aztecTargetCommitteeSize: opts.initialValidators?.length ?? 0,
85
- minTxsPerBlock: 0,
86
- realProofs: false,
87
- startProverNode: true,
88
- proverTestDelayMs: opts.proverTestDelayMs ?? 0,
89
- // We use numeric incremental prover ids for simplicity, but we can switch to
90
- // using the prover's eth address if the proverId is used for something in the rollup contract
91
- // Use numeric EthAddress for deterministic prover id
92
- proverId: EthAddress.fromNumber(1),
93
- worldStateBlockHistory: WORLD_STATE_BLOCK_HISTORY,
94
- exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
95
- slasherFlavor: 'none',
96
- l1PublishingTime,
97
- ...opts
98
- }, // Use checkpointed chain tip for PXE to avoid issues with blocks being dropped due to pruned anchor blocks.
99
- {
100
- syncChainTip: 'checkpointed'
101
- });
102
- this.context = context;
103
- this.proverNodes = context.proverNode ? [
104
- context.proverNode
105
- ] : [];
106
- this.nodes = context.aztecNode ? [
107
- context.aztecNode
108
- ] : [];
109
- this.logger = context.logger;
110
- this.l1Client = context.deployL1ContractsValues.l1Client;
111
- this.rollup = RollupContract.getFromConfig(context.config);
112
- this.epochCache = await EpochCache.create(this.rollup, context.config, {
113
- dateProvider: context.dateProvider
114
- });
115
- // Loop that tracks L1 and L2 block numbers and logs whenever there's a new one.
116
- this.monitor = new ChainMonitor(this.rollup, context.dateProvider, this.logger).start();
117
- // This is hideous.
118
- // We ought to have a definite reference to the l1TxUtils that we're using in both places, provided by the test context.
119
- this.proverDelayer = context.proverNode ? context.proverNode.publisher.l1TxUtils.delayer : undefined;
120
- this.sequencerDelayer = context.sequencer ? context.sequencer.sequencer.publisher.l1TxUtils.delayer : undefined;
121
- if (context.proverNode && !this.proverDelayer || context.sequencer && !this.sequencerDelayer) {
122
- throw new Error(`Could not find prover or sequencer delayer`);
123
- }
124
- // Constants used for time calculation
125
- this.epochDuration = aztecEpochDuration;
126
- this.constants = {
127
- epochDuration: aztecEpochDuration,
128
- slotDuration: aztecSlotDuration,
129
- l1StartBlock: await this.rollup.getL1StartBlock(),
130
- l1GenesisTime: await this.rollup.getL1GenesisTime(),
131
- ethereumSlotDuration,
132
- proofSubmissionEpochs: Number(await this.rollup.getProofSubmissionEpochs())
133
- };
134
- this.logger.info(`L2 genesis at L1 block ${this.constants.l1StartBlock} (timestamp ${this.constants.l1GenesisTime})`);
135
- }
136
- async teardown() {
137
- await this.monitor.stop();
138
- await Promise.all(this.proverNodes.map((node)=>tryStop(node, this.logger)));
139
- await Promise.all(this.nodes.map((node)=>tryStop(node, this.logger)));
140
- await this.context.teardown();
141
- }
142
- async createProverNode(opts = {}) {
143
- this.logger.warn('Creating and syncing a simulated prover node...');
144
- const proverNodePrivateKey = this.getNextPrivateKey();
145
- const suffix = (this.proverNodes.length + 1).toString();
146
- const proverNode = await withLogNameSuffix(suffix, ()=>createAndSyncProverNode(proverNodePrivateKey, {
147
- ...this.context.config
148
- }, {
149
- dataDirectory: join(this.context.config.dataDirectory, randomBytes(8).toString('hex')),
150
- proverId: EthAddress.fromNumber(parseInt(suffix, 10)),
151
- dontStart: opts.dontStart,
152
- ...opts
153
- }, this.context.aztecNode, this.context.prefilledPublicData ?? [], {
154
- dateProvider: this.context.dateProvider
155
- }));
156
- this.proverNodes.push(proverNode);
157
- return proverNode;
158
- }
159
- createNonValidatorNode(opts = {}) {
160
- this.logger.warn('Creating and syncing a node without a validator...');
161
- return this.createNode({
162
- ...opts,
163
- disableValidator: true
164
- });
165
- }
166
- createValidatorNode(privateKeys, opts = {}) {
167
- this.logger.warn('Creating and syncing a validator node...');
168
- return this.createNode({
169
- ...opts,
170
- disableValidator: false,
171
- validatorPrivateKeys: new SecretValue(privateKeys)
172
- });
173
- }
174
- async createNode(opts = {}) {
175
- const suffix = (this.nodes.length + 1).toString();
176
- const { mockGossipSubNetwork } = this.context;
177
- const resolvedConfig = {
178
- ...this.context.config,
179
- ...opts
180
- };
181
- const p2pEnabled = resolvedConfig.p2pEnabled || mockGossipSubNetwork !== undefined;
182
- const p2pIp = resolvedConfig.p2pIp ?? (p2pEnabled ? '127.0.0.1' : undefined);
183
- const node = await withLogNameSuffix(suffix, ()=>AztecNodeService.createAndSync({
184
- ...resolvedConfig,
185
- dataDirectory: join(this.context.config.dataDirectory, randomBytes(8).toString('hex')),
186
- validatorPrivateKeys: opts.validatorPrivateKeys ?? new SecretValue([]),
187
- p2pEnabled,
188
- p2pIp
189
- }, {
190
- dateProvider: this.context.dateProvider,
191
- p2pClientDeps: {
192
- p2pServiceFactory: mockGossipSubNetwork ? getMockPubSubP2PServiceFactory(mockGossipSubNetwork) : undefined
193
- }
194
- }, {
195
- prefilledPublicData: this.context.prefilledPublicData,
196
- ...opts
197
- }));
198
- // REFACTOR: We're getting too much into the internals of the sequencer here.
199
- // We should have a single method for constructing an aztec node that returns a TestAztecNodeService
200
- // which directly exposes the delayer and sets any test config.
201
- if (opts.txDelayerMaxInclusionTimeIntoSlot !== undefined) {
202
- this.logger.info(`Setting tx delayer max inclusion time into slot to ${opts.txDelayerMaxInclusionTimeIntoSlot} seconds`);
203
- // Here we reach into the sequencer and hook in a tx delayer. The problem is that the sequencer's l1 utils only uses a public client, not a wallet.
204
- // The delayer needs a wallet (a client that can sign), so we have to create one here.
205
- const l1Client = createExtendedL1Client(resolvedConfig.l1RpcUrls, resolvedConfig.publisherPrivateKeys[0].getValue());
206
- const sequencer = node.getSequencer();
207
- const publisher = sequencer.sequencer.publisher;
208
- const delayed = DelayedTxUtils.fromL1TxUtils(publisher.l1TxUtils, this.L1_BLOCK_TIME_IN_S, l1Client);
209
- delayed.delayer.setMaxInclusionTimeIntoSlot(opts.txDelayerMaxInclusionTimeIntoSlot);
210
- publisher.l1TxUtils = delayed;
211
- }
212
- this.nodes.push(node);
213
- return node;
214
- }
215
- getNextPrivateKey() {
216
- const key = getPrivateKeyFromIndex(this.nodes.length + this.proverNodes.length + 1);
217
- return `0x${key.toString('hex')}`;
218
- }
219
- /** Waits until the epoch begins (ie until the immediately previous L1 block is mined). */ async waitUntilEpochStarts(epoch) {
220
- const [start] = getTimestampRangeForEpoch(EpochNumber(epoch), this.constants);
221
- this.logger.info(`Waiting until L1 timestamp ${start} is reached as the start of epoch ${epoch}`);
222
- await waitUntilL1Timestamp(this.l1Client, start - BigInt(this.L1_BLOCK_TIME_IN_S), undefined, 30 * this.epochDuration);
223
- return start;
224
- }
225
- /** Waits until the given checkpoint number is mined. */ async waitUntilCheckpointNumber(target, timeout = 120) {
226
- await retryUntil(()=>Promise.resolve(target <= this.monitor.checkpointNumber), `Wait until checkpoint ${target}`, timeout, 0.1);
227
- }
228
- /** Waits until the given checkpoint number is marked as proven. */ async waitUntilProvenCheckpointNumber(target, timeout = 120) {
229
- await retryUntil(()=>Promise.resolve(target <= this.monitor.provenCheckpointNumber), `Wait proven checkpoint ${target}`, timeout, 0.1);
230
- return this.monitor.provenCheckpointNumber;
231
- }
232
- /** Waits until the last slot of the proof submission window for a given epoch. */ async waitUntilLastSlotOfProofSubmissionWindow(epochNumber) {
233
- const deadline = getProofSubmissionDeadlineTimestamp(EpochNumber.fromBigInt(BigInt(epochNumber)), this.constants);
234
- const oneSlotBefore = deadline - BigInt(this.constants.slotDuration);
235
- const date = new Date(Number(oneSlotBefore) * 1000);
236
- this.logger.info(`Waiting until last slot of submission window for epoch ${epochNumber} at ${date}`, {
237
- oneSlotBefore
238
- });
239
- await waitUntilL1Timestamp(this.l1Client, oneSlotBefore);
240
- }
241
- /** Waits for the aztec node to sync to the target block number. */ async waitForNodeToSync(blockNumber, type) {
242
- const waitTime = ARCHIVER_POLL_INTERVAL + WORLD_STATE_BLOCK_CHECK_INTERVAL;
243
- let synched = false;
244
- while(!synched){
245
- await sleep(waitTime);
246
- const [syncState, tips] = await Promise.all([
247
- this.context.aztecNode.getWorldStateSyncStatus(),
248
- await this.context.aztecNode.getL2Tips()
249
- ]);
250
- this.logger.info(`Wait for node synch ${blockNumber} ${type}`, {
251
- blockNumber,
252
- type,
253
- syncState,
254
- tips
255
- });
256
- if (type === 'proven') {
257
- synched = tips.proven.block.number >= blockNumber && syncState.latestBlockNumber >= blockNumber;
258
- } else if (type === 'finalized') {
259
- synched = syncState.finalizedBlockNumber >= blockNumber;
260
- } else {
261
- synched = syncState.oldestHistoricBlockNumber >= blockNumber;
262
- }
263
- }
264
- }
265
- /** Registers the SpamContract on the given wallet. */ async registerSpamContract(wallet, salt = Fr.ZERO) {
266
- const instance = await getContractInstanceFromInstantiationParams(SpamContract.artifact, {
267
- constructorArgs: [],
268
- constructorArtifact: undefined,
269
- salt,
270
- publicKeys: undefined,
271
- deployer: undefined
272
- });
273
- await wallet.registerContract(instance, SpamContract.artifact);
274
- return SpamContract.at(instance.address, wallet);
275
- }
276
- /** Creates an L1 client using a fresh account with funds from anvil, with a tx delayer already set up. */ async createL1Client() {
277
- const { client, delayer } = withDelayer(createExtendedL1Client([
278
- ...this.l1Client.chain.rpcUrls.default.http
279
- ], privateKeyToAccount(this.getNextPrivateKey()), this.l1Client.chain), this.context.dateProvider, {
280
- ethereumSlotDuration: this.L1_BLOCK_TIME_IN_S
281
- });
282
- expect(await client.getBalance({
283
- address: client.account.address
284
- })).toBeGreaterThan(0n);
285
- return {
286
- client,
287
- delayer
288
- };
289
- }
290
- /** Verifies whether the given block number is found on the aztec node. */ async verifyHistoricBlock(blockNumber, expectedSuccess) {
291
- // We use `findLeavesIndexes` here, but could use any function that queries the world-state
292
- // at a particular block, so we know whether that historic block is available or has been
293
- // pruned. Note that `getBlock` would not work here, since it only hits the archiver.
294
- const result = await this.context.aztecNode.findLeavesIndexes(blockNumber, MerkleTreeId.NULLIFIER_TREE, [
295
- Fr.ZERO
296
- ]).then((_)=>true).catch((_)=>false);
297
- expect(result).toBe(expectedSuccess);
298
- }
299
- watchSequencerEvents(sequencers, getMetadata = ()=>({})) {
300
- const stateChanges = [];
301
- const failEvents = [];
302
- // Note we do not include the 'block-tx-count-check-failed' event here, since it is fine if we dont build
303
- // due to lack of txs available.
304
- const failEventsKeys = [
305
- 'block-build-failed',
306
- 'checkpoint-publish-failed',
307
- 'proposer-rollup-check-failed'
308
- ];
309
- const makeEvent = (i, eventName, args)=>({
310
- ...args,
311
- type: eventName,
312
- sequencerIndex: i + 2,
313
- ...getMetadata(i)
314
- });
315
- sequencers.forEach((sequencer, i)=>{
316
- const sequencerIndex = i + 2;
317
- sequencer.getSequencer().on('state-changed', (args)=>{
318
- const noisyStates = [
319
- SequencerState.IDLE,
320
- SequencerState.PROPOSER_CHECK,
321
- SequencerState.SYNCHRONIZING
322
- ];
323
- if (!noisyStates.includes(args.newState)) {
324
- const evt = makeEvent(i, 'state-changed', args);
325
- stateChanges.push(evt);
326
- this.logger.verbose(`Sequencer ${sequencerIndex} transitioned from state ${args.oldState} to state ${args.newState}`, evt);
327
- }
328
- });
329
- failEventsKeys.forEach((eventName)=>{
330
- sequencer.getSequencer().on(eventName, (args)=>{
331
- const evt = makeEvent(i, eventName, args);
332
- failEvents.push(evt);
333
- this.logger.error(`Failed event ${eventName} from sequencer ${sequencerIndex}`, undefined, evt);
334
- });
335
- });
336
- });
337
- return {
338
- failEvents,
339
- stateChanges
340
- };
341
- }
342
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"bridging_race.notest.d.ts","sourceRoot":"","sources":["../../src/e2e_fees/bridging_race.notest.ts"],"names":[],"mappings":""}
@@ -1,88 +0,0 @@
1
- import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
- import { type Logger } from '@aztec/aztec.js/log';
3
- import type { AztecNode } from '@aztec/aztec.js/node';
4
- import { CheatCodes } from '@aztec/aztec/testing';
5
- import { RollupContract } from '@aztec/ethereum/contracts';
6
- import type { DeployAztecL1ContractsArgs } from '@aztec/ethereum/deploy-aztec-l1-contracts';
7
- import { ChainMonitor } from '@aztec/ethereum/test';
8
- import { BlockNumber } from '@aztec/foundation/branded-types';
9
- import { EthAddress } from '@aztec/foundation/eth-address';
10
- import { AppSubscriptionContract } from '@aztec/noir-contracts.js/AppSubscription';
11
- import { FPCContract } from '@aztec/noir-contracts.js/FPC';
12
- import { FeeJuiceContract } from '@aztec/noir-contracts.js/FeeJuice';
13
- import { SponsoredFPCContract } from '@aztec/noir-contracts.js/SponsoredFPC';
14
- import { TokenContract as BananaCoin } from '@aztec/noir-contracts.js/Token';
15
- import { CounterContract } from '@aztec/noir-test-contracts.js/Counter';
16
- import { GasSettings } from '@aztec/stdlib/gas';
17
- import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
18
- import { TestWallet } from '@aztec/test-wallet/server';
19
- import { type EndToEndContext, type SetupOptions } from '../fixtures/setup.js';
20
- import { type BalancesFn } from '../fixtures/utils.js';
21
- import { type GasBridgingTestHarness } from '../shared/gas_portal_test_harness.js';
22
- /**
23
- * Test fixture for testing fees. Provides the following setup steps:
24
- * InitialAccounts: Initializes 3 Schnorr account contracts.
25
- * PublicDeployAccounts: Deploys the accounts publicly.
26
- * DeployFeeJuice: Deploys the Fee Juice contract.
27
- * FPCSetup: Deploys BananaCoin and FPC contracts, and bridges gas from L1.
28
- * SponsoredFPCSetup: Deploys Sponsored FPC contract, and bridges gas from L1.
29
- * FundAlice: Mints private and public bananas to Alice.
30
- * SetupSubscription: Deploys a counter contract and a subscription contract, and mints Fee Juice to the subscription contract.
31
- */
32
- export declare class FeesTest {
33
- private numberOfAccounts;
34
- private setupOptions;
35
- private accounts;
36
- context: EndToEndContext;
37
- logger: Logger;
38
- aztecNode: AztecNode;
39
- aztecNodeAdmin: AztecNodeAdmin;
40
- cheatCodes: CheatCodes;
41
- wallet: TestWallet;
42
- aliceAddress: AztecAddress;
43
- bobAddress: AztecAddress;
44
- sequencerAddress: AztecAddress;
45
- coinbase: EthAddress;
46
- fpcAdmin: AztecAddress;
47
- gasSettings: GasSettings;
48
- rollupContract: RollupContract;
49
- feeJuiceContract: FeeJuiceContract;
50
- bananaCoin: BananaCoin;
51
- bananaFPC: FPCContract;
52
- sponsoredFPC: SponsoredFPCContract;
53
- counterContract: CounterContract;
54
- subscriptionContract: AppSubscriptionContract;
55
- feeJuiceBridgeTestHarness: GasBridgingTestHarness;
56
- chainMonitor: ChainMonitor;
57
- getCoinbaseBalance: () => Promise<bigint>;
58
- getCoinbaseSequencerRewards: () => Promise<bigint>;
59
- getGasBalanceFn: BalancesFn;
60
- getBananaPublicBalanceFn: BalancesFn;
61
- getBananaPrivateBalanceFn: BalancesFn;
62
- getProverFee: (blockNumber: BlockNumber) => Promise<bigint>;
63
- readonly ALICE_INITIAL_BANANAS: bigint;
64
- readonly SUBSCRIPTION_AMOUNT: bigint;
65
- readonly APP_SPONSORED_TX_GAS_LIMIT: bigint;
66
- constructor(testName: string, numberOfAccounts?: number, setupOptions?: Partial<SetupOptions & DeployAztecL1ContractsArgs>);
67
- setup(): Promise<this>;
68
- teardown(): Promise<void>;
69
- setIsMarkingAsProven(b: boolean): void;
70
- catchUpProvenChain(): Promise<void>;
71
- getBlockRewards(): Promise<{
72
- sequencerBlockRewards: bigint;
73
- proverBlockRewards: bigint;
74
- }>;
75
- mintAndBridgeFeeJuice(minter: AztecAddress, recipient: AztecAddress): Promise<void>;
76
- /** Alice mints bananaCoin tokens privately to the target address and redeems them. */
77
- mintPrivateBananas(amount: bigint, address: AztecAddress): Promise<void>;
78
- applyBaseSetup(): Promise<void>;
79
- applyInitialAccounts(): Promise<void>;
80
- applyPublicDeployAccounts(): Promise<void>;
81
- applySetupFeeJuice(): Promise<void>;
82
- applyDeployBananaToken(): Promise<void>;
83
- applyFPCSetup(): Promise<void>;
84
- applySponsoredFPCSetup(): Promise<void>;
85
- applyFundAliceWithBananas(): Promise<void>;
86
- applyFundAliceWithPrivateBananas(): Promise<void>;
87
- }
88
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVlc190ZXN0LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZTJlX2ZlZXMvZmVlc190ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzlELE9BQU8sRUFBRSxLQUFLLE1BQU0sRUFBZ0IsTUFBTSxxQkFBcUIsQ0FBQztBQUNoRSxPQUFPLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN0RCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFbEQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzNELE9BQU8sS0FBSyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFDNUYsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3BELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM5RCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFHM0QsT0FBTyxFQUFFLHVCQU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