@aztec/end-to-end 0.0.1-commit.24de95ac → 0.0.1-commit.2606882

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 (299) hide show
  1. package/README.md +27 -0
  2. package/dest/bench/client_flows/benchmark.d.ts +17 -2
  3. package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
  4. package/dest/bench/client_flows/benchmark.js +38 -1
  5. package/dest/bench/client_flows/client_flows_benchmark.d.ts +23 -17
  6. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  7. package/dest/bench/client_flows/client_flows_benchmark.js +143 -136
  8. package/dest/bench/client_flows/config.d.ts +2 -2
  9. package/dest/bench/client_flows/config.d.ts.map +1 -1
  10. package/dest/bench/client_flows/config.js +18 -0
  11. package/dest/bench/client_flows/data_extractor.d.ts +1 -1
  12. package/dest/bench/client_flows/data_extractor.js +7 -27
  13. package/dest/bench/utils.d.ts +8 -7
  14. package/dest/bench/utils.d.ts.map +1 -1
  15. package/dest/bench/utils.js +33 -19
  16. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +12 -10
  17. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
  18. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +120 -117
  19. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +33 -16
  20. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  21. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +124 -70
  22. package/dest/e2e_deploy_contract/deploy_test.d.ts +7 -6
  23. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  24. package/dest/e2e_deploy_contract/deploy_test.js +20 -14
  25. package/dest/e2e_epochs/epochs_test.d.ts +49 -16
  26. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  27. package/dest/e2e_epochs/epochs_test.js +188 -64
  28. package/dest/e2e_fees/bridging_race.notest.d.ts +1 -1
  29. package/dest/e2e_fees/bridging_race.notest.js +5 -7
  30. package/dest/e2e_fees/fees_test.d.ts +25 -18
  31. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  32. package/dest/e2e_fees/fees_test.js +162 -141
  33. package/dest/e2e_l1_publisher/write_json.d.ts +4 -3
  34. package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -1
  35. package/dest/e2e_l1_publisher/write_json.js +18 -19
  36. package/dest/e2e_multi_validator/utils.d.ts +1 -1
  37. package/dest/e2e_multi_validator/utils.js +1 -1
  38. package/dest/e2e_nested_contract/nested_contract_test.d.ts +7 -10
  39. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
  40. package/dest/e2e_nested_contract/nested_contract_test.js +32 -40
  41. package/dest/e2e_p2p/inactivity_slash_test.d.ts +3 -3
  42. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -1
  43. package/dest/e2e_p2p/inactivity_slash_test.js +11 -9
  44. package/dest/e2e_p2p/p2p_network.d.ts +237 -28
  45. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  46. package/dest/e2e_p2p/p2p_network.js +176 -129
  47. package/dest/e2e_p2p/reqresp/utils.d.ts +22 -0
  48. package/dest/e2e_p2p/reqresp/utils.d.ts.map +1 -0
  49. package/dest/e2e_p2p/reqresp/utils.js +206 -0
  50. package/dest/e2e_p2p/shared.d.ts +44 -15
  51. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  52. package/dest/e2e_p2p/shared.js +102 -68
  53. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts +2 -0
  54. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts.map +1 -0
  55. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.js +184 -0
  56. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts +18 -0
  57. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts.map +1 -0
  58. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.js +120 -0
  59. package/dest/e2e_token_contract/token_contract_test.d.ts +20 -11
  60. package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
  61. package/dest/e2e_token_contract/token_contract_test.js +103 -93
  62. package/dest/fixtures/authwit_proxy.d.ts +15 -0
  63. package/dest/fixtures/authwit_proxy.d.ts.map +1 -0
  64. package/dest/fixtures/authwit_proxy.js +34 -0
  65. package/dest/fixtures/e2e_prover_test.d.ts +19 -24
  66. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  67. package/dest/fixtures/e2e_prover_test.js +126 -145
  68. package/dest/fixtures/elu_monitor.d.ts +21 -0
  69. package/dest/fixtures/elu_monitor.d.ts.map +1 -0
  70. package/dest/fixtures/elu_monitor.js +102 -0
  71. package/dest/fixtures/fixtures.d.ts +75 -3
  72. package/dest/fixtures/fixtures.d.ts.map +1 -1
  73. package/dest/fixtures/fixtures.js +73 -3
  74. package/dest/fixtures/get_acvm_config.d.ts +1 -1
  75. package/dest/fixtures/get_acvm_config.js +1 -1
  76. package/dest/fixtures/get_bb_config.d.ts +1 -1
  77. package/dest/fixtures/get_bb_config.d.ts.map +1 -1
  78. package/dest/fixtures/get_bb_config.js +5 -5
  79. package/dest/fixtures/ha_setup.d.ts +71 -0
  80. package/dest/fixtures/ha_setup.d.ts.map +1 -0
  81. package/dest/fixtures/ha_setup.js +116 -0
  82. package/dest/fixtures/index.d.ts +2 -1
  83. package/dest/fixtures/index.d.ts.map +1 -1
  84. package/dest/fixtures/index.js +1 -0
  85. package/dest/fixtures/l1_to_l2_messaging.d.ts +4 -3
  86. package/dest/fixtures/l1_to_l2_messaging.d.ts.map +1 -1
  87. package/dest/fixtures/l1_to_l2_messaging.js +2 -2
  88. package/dest/fixtures/logging.d.ts +1 -1
  89. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts +25 -0
  90. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts.map +1 -0
  91. package/dest/fixtures/schnorr_hardcoded_account_contract.js +37 -0
  92. package/dest/fixtures/setup.d.ts +272 -0
  93. package/dest/fixtures/setup.d.ts.map +1 -0
  94. package/dest/fixtures/setup.js +735 -0
  95. package/dest/fixtures/setup_p2p_test.d.ts +22 -11
  96. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  97. package/dest/fixtures/setup_p2p_test.js +57 -38
  98. package/dest/fixtures/token_utils.d.ts +6 -3
  99. package/dest/fixtures/token_utils.d.ts.map +1 -1
  100. package/dest/fixtures/token_utils.js +13 -9
  101. package/dest/fixtures/utils.d.ts +5 -192
  102. package/dest/fixtures/utils.d.ts.map +1 -1
  103. package/dest/fixtures/utils.js +4 -648
  104. package/dest/fixtures/web3signer.d.ts +1 -1
  105. package/dest/fixtures/web3signer.js +1 -1
  106. package/dest/fixtures/with_telemetry_utils.d.ts +2 -2
  107. package/dest/fixtures/with_telemetry_utils.d.ts.map +1 -1
  108. package/dest/fixtures/with_telemetry_utils.js +2 -2
  109. package/dest/forward-compatibility/wallet_rpc_client.d.ts +7 -0
  110. package/dest/forward-compatibility/wallet_rpc_client.d.ts.map +1 -0
  111. package/dest/forward-compatibility/wallet_rpc_client.js +15 -0
  112. package/dest/forward-compatibility/wallet_service.d.ts +3 -0
  113. package/dest/forward-compatibility/wallet_service.d.ts.map +1 -0
  114. package/dest/forward-compatibility/wallet_service.js +109 -0
  115. package/dest/index.d.ts +1 -1
  116. package/dest/install_legacy_contracts.d.cts +10 -0
  117. package/dest/install_legacy_contracts.d.cts.map +1 -0
  118. package/dest/legacy-jest-resolver.d.cts +3 -0
  119. package/dest/legacy-jest-resolver.d.cts.map +1 -0
  120. package/dest/quality_of_service/grafana_client.d.ts +41 -0
  121. package/dest/quality_of_service/grafana_client.d.ts.map +1 -0
  122. package/dest/quality_of_service/{alert_checker.js → grafana_client.js} +1 -1
  123. package/dest/quality_of_service/prometheus_client.d.ts +38 -0
  124. package/dest/quality_of_service/prometheus_client.d.ts.map +1 -0
  125. package/dest/quality_of_service/prometheus_client.js +67 -0
  126. package/dest/shared/cross_chain_test_harness.d.ts +9 -6
  127. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  128. package/dest/shared/cross_chain_test_harness.js +34 -30
  129. package/dest/shared/gas_portal_test_harness.d.ts +9 -6
  130. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  131. package/dest/shared/gas_portal_test_harness.js +21 -12
  132. package/dest/shared/index.d.ts +3 -2
  133. package/dest/shared/index.d.ts.map +1 -1
  134. package/dest/shared/index.js +1 -0
  135. package/dest/shared/jest_setup.d.ts +1 -1
  136. package/dest/shared/jest_setup.js +41 -1
  137. package/dest/shared/mock_state_view.d.ts +86 -0
  138. package/dest/shared/mock_state_view.d.ts.map +1 -0
  139. package/dest/shared/mock_state_view.js +186 -0
  140. package/dest/shared/submit-transactions.d.ts +4 -4
  141. package/dest/shared/submit-transactions.d.ts.map +1 -1
  142. package/dest/shared/submit-transactions.js +9 -11
  143. package/dest/shared/uniswap_l1_l2.d.ts +3 -27
  144. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  145. package/dest/shared/uniswap_l1_l2.js +87 -50
  146. package/dest/shared/wait_for_l1_to_l2_message.d.ts +13 -0
  147. package/dest/shared/wait_for_l1_to_l2_message.d.ts.map +1 -0
  148. package/dest/shared/wait_for_l1_to_l2_message.js +10 -0
  149. package/dest/simulators/index.d.ts +1 -1
  150. package/dest/simulators/lending_simulator.d.ts +11 -4
  151. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  152. package/dest/simulators/lending_simulator.js +32 -18
  153. package/dest/simulators/token_simulator.d.ts +1 -1
  154. package/dest/simulators/token_simulator.d.ts.map +1 -1
  155. package/dest/simulators/token_simulator.js +3 -24
  156. package/dest/spartan/setup_test_wallets.d.ts +18 -6
  157. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  158. package/dest/spartan/setup_test_wallets.js +159 -30
  159. package/dest/spartan/tx_metrics.d.ts +102 -0
  160. package/dest/spartan/tx_metrics.d.ts.map +1 -0
  161. package/dest/spartan/tx_metrics.js +475 -0
  162. package/dest/spartan/utils/bot.d.ts +28 -0
  163. package/dest/spartan/utils/bot.d.ts.map +1 -0
  164. package/dest/spartan/utils/bot.js +142 -0
  165. package/dest/spartan/utils/chaos.d.ts +79 -0
  166. package/dest/spartan/utils/chaos.d.ts.map +1 -0
  167. package/dest/spartan/utils/chaos.js +142 -0
  168. package/dest/spartan/utils/clients.d.ts +39 -0
  169. package/dest/spartan/utils/clients.d.ts.map +1 -0
  170. package/dest/spartan/utils/clients.js +90 -0
  171. package/dest/spartan/utils/config.d.ts +19 -0
  172. package/dest/spartan/utils/config.d.ts.map +1 -0
  173. package/dest/spartan/utils/config.js +23 -0
  174. package/dest/spartan/utils/health.d.ts +63 -0
  175. package/dest/spartan/utils/health.d.ts.map +1 -0
  176. package/dest/spartan/utils/health.js +202 -0
  177. package/dest/spartan/utils/helm.d.ts +15 -0
  178. package/dest/spartan/utils/helm.d.ts.map +1 -0
  179. package/dest/spartan/utils/helm.js +47 -0
  180. package/dest/spartan/utils/index.d.ts +11 -0
  181. package/dest/spartan/utils/index.d.ts.map +1 -0
  182. package/dest/spartan/utils/index.js +22 -0
  183. package/dest/spartan/utils/k8s.d.ts +128 -0
  184. package/dest/spartan/utils/k8s.d.ts.map +1 -0
  185. package/dest/spartan/utils/k8s.js +381 -0
  186. package/dest/spartan/utils/nodes.d.ts +40 -0
  187. package/dest/spartan/utils/nodes.d.ts.map +1 -0
  188. package/dest/spartan/utils/nodes.js +461 -0
  189. package/dest/spartan/utils/pod_logs.d.ts +25 -0
  190. package/dest/spartan/utils/pod_logs.d.ts.map +1 -0
  191. package/dest/spartan/utils/pod_logs.js +74 -0
  192. package/dest/spartan/utils/scripts.d.ts +30 -0
  193. package/dest/spartan/utils/scripts.d.ts.map +1 -0
  194. package/dest/spartan/utils/scripts.js +81 -0
  195. package/dest/spartan/utils.d.ts +2 -218
  196. package/dest/spartan/utils.d.ts.map +1 -1
  197. package/dest/spartan/utils.js +1 -749
  198. package/dest/test-wallet/test_wallet.d.ts +85 -0
  199. package/dest/test-wallet/test_wallet.d.ts.map +1 -0
  200. package/dest/test-wallet/test_wallet.js +273 -0
  201. package/dest/test-wallet/utils.d.ts +41 -0
  202. package/dest/test-wallet/utils.d.ts.map +1 -0
  203. package/dest/test-wallet/utils.js +66 -0
  204. package/dest/test-wallet/wallet_worker_script.d.ts +2 -0
  205. package/dest/test-wallet/wallet_worker_script.d.ts.map +1 -0
  206. package/dest/test-wallet/wallet_worker_script.js +53 -0
  207. package/dest/test-wallet/worker_wallet.d.ts +53 -0
  208. package/dest/test-wallet/worker_wallet.d.ts.map +1 -0
  209. package/dest/test-wallet/worker_wallet.js +155 -0
  210. package/dest/test-wallet/worker_wallet_schema.d.ts +160 -0
  211. package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -0
  212. package/dest/test-wallet/worker_wallet_schema.js +22 -0
  213. package/package.json +56 -46
  214. package/src/bench/client_flows/benchmark.ts +43 -2
  215. package/src/bench/client_flows/client_flows_benchmark.ts +203 -206
  216. package/src/bench/client_flows/config.ts +9 -1
  217. package/src/bench/client_flows/data_extractor.ts +6 -28
  218. package/src/bench/utils.ts +38 -22
  219. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +141 -152
  220. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +180 -127
  221. package/src/e2e_deploy_contract/deploy_test.ts +25 -17
  222. package/src/e2e_epochs/epochs_test.ts +254 -116
  223. package/src/e2e_fees/bridging_race.notest.ts +6 -12
  224. package/src/e2e_fees/fees_test.ts +215 -229
  225. package/src/e2e_l1_publisher/write_json.ts +20 -19
  226. package/src/e2e_multi_validator/utils.ts +1 -1
  227. package/src/e2e_nested_contract/nested_contract_test.ts +38 -56
  228. package/src/e2e_p2p/inactivity_slash_test.ts +12 -10
  229. package/src/e2e_p2p/p2p_network.ts +246 -201
  230. package/src/e2e_p2p/reqresp/utils.ts +274 -0
  231. package/src/e2e_p2p/shared.ts +132 -82
  232. package/src/e2e_storage_proof/fixtures/storage_proof.json +915 -0
  233. package/src/e2e_storage_proof/fixtures/storage_proof_fetcher.ts +190 -0
  234. package/src/e2e_storage_proof/fixtures/storage_proof_fixture.ts +173 -0
  235. package/src/e2e_token_contract/token_contract_test.ts +129 -117
  236. package/src/fixtures/authwit_proxy.ts +54 -0
  237. package/src/fixtures/dumps/epoch_proof_result.json +1 -1
  238. package/src/fixtures/e2e_prover_test.ts +154 -199
  239. package/src/fixtures/elu_monitor.ts +126 -0
  240. package/src/fixtures/fixtures.ts +95 -5
  241. package/src/fixtures/get_acvm_config.ts +1 -1
  242. package/src/fixtures/get_bb_config.ts +7 -6
  243. package/src/fixtures/ha_setup.ts +188 -0
  244. package/src/fixtures/index.ts +1 -0
  245. package/src/fixtures/l1_to_l2_messaging.ts +4 -2
  246. package/src/fixtures/schnorr_hardcoded_account_contract.ts +49 -0
  247. package/src/fixtures/setup.ts +1056 -0
  248. package/src/fixtures/setup_p2p_test.ts +70 -56
  249. package/src/fixtures/token_utils.ts +9 -8
  250. package/src/fixtures/utils.ts +29 -947
  251. package/src/fixtures/web3signer.ts +1 -1
  252. package/src/fixtures/with_telemetry_utils.ts +2 -2
  253. package/src/forward-compatibility/wallet_rpc_client.ts +14 -0
  254. package/src/forward-compatibility/wallet_service.ts +104 -0
  255. package/src/guides/up_quick_start.sh +4 -6
  256. package/src/install_legacy_contracts.cjs +75 -0
  257. package/src/legacy-jest-resolver.cjs +112 -0
  258. package/src/quality_of_service/{alert_checker.ts → grafana_client.ts} +1 -1
  259. package/src/quality_of_service/prometheus_client.ts +113 -0
  260. package/src/shared/cross_chain_test_harness.ts +37 -40
  261. package/src/shared/gas_portal_test_harness.ts +24 -14
  262. package/src/shared/index.ts +2 -1
  263. package/src/shared/jest_setup.ts +51 -1
  264. package/src/shared/mock_state_view.ts +188 -0
  265. package/src/shared/submit-transactions.ts +11 -16
  266. package/src/shared/uniswap_l1_l2.ts +142 -114
  267. package/src/shared/wait_for_l1_to_l2_message.ts +23 -0
  268. package/src/simulators/lending_simulator.ts +39 -19
  269. package/src/simulators/token_simulator.ts +6 -30
  270. package/src/spartan/DEVELOP.md +7 -0
  271. package/src/spartan/setup_test_wallets.ts +234 -32
  272. package/src/spartan/tx_metrics.ts +434 -0
  273. package/src/spartan/utils/bot.ts +188 -0
  274. package/src/spartan/utils/chaos.ts +253 -0
  275. package/src/spartan/utils/clients.ts +100 -0
  276. package/src/spartan/utils/config.ts +29 -0
  277. package/src/spartan/utils/health.ts +255 -0
  278. package/src/spartan/utils/helm.ts +84 -0
  279. package/src/spartan/utils/index.ts +71 -0
  280. package/src/spartan/utils/k8s.ts +535 -0
  281. package/src/spartan/utils/nodes.ts +543 -0
  282. package/src/spartan/utils/pod_logs.ts +99 -0
  283. package/src/spartan/utils/scripts.ts +99 -0
  284. package/src/spartan/utils.ts +1 -942
  285. package/src/test-wallet/test_wallet.ts +376 -0
  286. package/src/test-wallet/utils.ts +108 -0
  287. package/src/test-wallet/wallet_worker_script.ts +63 -0
  288. package/src/test-wallet/worker_wallet.ts +218 -0
  289. package/src/test-wallet/worker_wallet_schema.ts +13 -0
  290. package/dest/fixtures/setup_l1_contracts.d.ts +0 -6
  291. package/dest/fixtures/setup_l1_contracts.d.ts.map +0 -1
  292. package/dest/fixtures/setup_l1_contracts.js +0 -17
  293. package/dest/fixtures/snapshot_manager.d.ts +0 -95
  294. package/dest/fixtures/snapshot_manager.d.ts.map +0 -1
  295. package/dest/fixtures/snapshot_manager.js +0 -505
  296. package/dest/quality_of_service/alert_checker.d.ts +0 -41
  297. package/dest/quality_of_service/alert_checker.d.ts.map +0 -1
  298. package/src/fixtures/setup_l1_contracts.ts +0 -26
  299. package/src/fixtures/snapshot_manager.ts +0 -665
@@ -1,18 +1,23 @@
1
1
  import { AztecNodeService } from '@aztec/aztec-node';
2
+ import { getAccountContractAddress } from '@aztec/aztec.js/account';
2
3
  import { getTimestampRangeForEpoch } from '@aztec/aztec.js/block';
3
4
  import { getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
4
5
  import { Fr } from '@aztec/aztec.js/fields';
5
6
  import { MerkleTreeId } from '@aztec/aztec.js/trees';
6
7
  import { EpochCache } from '@aztec/epoch-cache';
7
- import { DefaultL1ContractsConfig, createExtendedL1Client } from '@aztec/ethereum';
8
+ import { createExtendedL1Client } from '@aztec/ethereum/client';
9
+ import { DefaultL1ContractsConfig } from '@aztec/ethereum/config';
8
10
  import { RollupContract } from '@aztec/ethereum/contracts';
9
- import { ChainMonitor, DelayedTxUtils, waitUntilL1Timestamp, withDelayer } from '@aztec/ethereum/test';
11
+ import { createDelayer, waitUntilL1Timestamp, wrapClientWithDelayer } from '@aztec/ethereum/l1-tx-utils';
12
+ import { ChainMonitor } from '@aztec/ethereum/test';
13
+ import { CheckpointNumber, EpochNumber } from '@aztec/foundation/branded-types';
10
14
  import { SecretValue } from '@aztec/foundation/config';
11
- import { randomBytes } from '@aztec/foundation/crypto';
12
- import { withLogNameSuffix } from '@aztec/foundation/log';
15
+ import { randomBytes } from '@aztec/foundation/crypto/random';
16
+ import { withLoggerBindings } from '@aztec/foundation/log/server';
13
17
  import { retryUntil } from '@aztec/foundation/retry';
14
18
  import { sleep } from '@aztec/foundation/sleep';
15
19
  import { SpamContract } from '@aztec/noir-test-contracts.js/Spam';
20
+ import { TestContract } from '@aztec/noir-test-contracts.js/Test';
16
21
  import { getMockPubSubP2PServiceFactory } from '@aztec/p2p/test-helpers';
17
22
  import { SequencerState } from '@aztec/sequencer-client';
18
23
  import { EthAddress } from '@aztec/stdlib/block';
@@ -20,8 +25,9 @@ import { getProofSubmissionDeadlineTimestamp } from '@aztec/stdlib/epoch-helpers
20
25
  import { tryStop } from '@aztec/stdlib/interfaces/server';
21
26
  import { join } from 'path';
22
27
  import { privateKeyToAccount } from 'viem/accounts';
28
+ import { SCHNORR_HARDCODED_PRIVATE_KEY, SchnorrHardcodedKeyAccountContract } from '../fixtures/schnorr_hardcoded_account_contract.js';
23
29
  import { createAndSyncProverNode, getPrivateKeyFromIndex, setup } from '../fixtures/utils.js';
24
- export const WORLD_STATE_BLOCK_HISTORY = 2;
30
+ export const WORLD_STATE_CHECKPOINT_HISTORY = 2;
25
31
  export const WORLD_STATE_BLOCK_CHECK_INTERVAL = 50;
26
32
  export const ARCHIVER_POLL_INTERVAL = 50;
27
33
  export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
@@ -52,10 +58,12 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
52
58
  static getSlotDurations(opts = {}) {
53
59
  const envEthereumSlotDuration = process.env.L1_BLOCK_TIME ? parseInt(process.env.L1_BLOCK_TIME) : DEFAULT_L1_BLOCK_TIME;
54
60
  const ethereumSlotDuration = opts.ethereumSlotDuration ?? envEthereumSlotDuration;
55
- const aztecSlotDuration = opts.aztecSlotDuration ?? ethereumSlotDuration * 2;
61
+ const aztecSlotDuration = opts.aztecSlotDuration ?? (opts.aztecSlotDurationInL1Slots ?? 2) * ethereumSlotDuration;
56
62
  const aztecEpochDuration = opts.aztecEpochDuration ?? 6;
57
63
  const aztecProofSubmissionEpochs = opts.aztecProofSubmissionEpochs ?? 1;
64
+ const l1PublishingTime = opts.l1PublishingTime ?? 1;
58
65
  return {
66
+ l1PublishingTime,
59
67
  ethereumSlotDuration,
60
68
  aztecSlotDuration,
61
69
  aztecEpochDuration,
@@ -63,18 +71,25 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
63
71
  };
64
72
  }
65
73
  async setup(opts = {}) {
66
- const { ethereumSlotDuration, aztecSlotDuration, aztecEpochDuration, aztecProofSubmissionEpochs } = EpochsTestContext.getSlotDurations(opts);
74
+ const { ethereumSlotDuration, aztecSlotDuration, aztecEpochDuration, aztecProofSubmissionEpochs, l1PublishingTime } = EpochsTestContext.getSlotDurations(opts);
67
75
  this.L1_BLOCK_TIME_IN_S = ethereumSlotDuration;
68
76
  this.L2_SLOT_DURATION_IN_S = aztecSlotDuration;
77
+ // Auto-create a hardcoded account funded via genesis when:
78
+ // - skipInitialSequencer is set (no sequencer to deploy on-chain), or
79
+ // - useHardcodedAccount is explicitly requested (e.g. tight per-block gas budgets that
80
+ // can't fit a full account-deploy tx).
81
+ const useHardcodedAccount = (opts.skipInitialSequencer || opts.useHardcodedAccount) && !opts.skipHardcodedAccount;
82
+ let hardcodedAccountData;
83
+ if (useHardcodedAccount) {
84
+ hardcodedAccountData = await EpochsTestContext.getHardcodedAccountData(Fr.random(), Fr.random());
85
+ }
69
86
  // Set up system without any account nor protocol contracts
70
87
  // and with faster block times and shorter epochs.
71
- const context = await setup(opts.numberOfAccounts ?? 0, {
88
+ const context = await setup(useHardcodedAccount ? 0 : opts.numberOfAccounts ?? 0, {
72
89
  automineL1Setup: true,
73
90
  checkIntervalMs: 50,
74
91
  archiverPollingIntervalMS: ARCHIVER_POLL_INTERVAL,
75
92
  worldStateBlockCheckIntervalMS: WORLD_STATE_BLOCK_CHECK_INTERVAL,
76
- skipProtocolContracts: true,
77
- salt: 1,
78
93
  aztecEpochDuration,
79
94
  aztecSlotDuration,
80
95
  ethereumSlotDuration,
@@ -84,16 +99,29 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
84
99
  realProofs: false,
85
100
  startProverNode: true,
86
101
  proverTestDelayMs: opts.proverTestDelayMs ?? 0,
87
- // We use numeric incremental prover ids for simplicity, but we can switch to
88
- // using the prover's eth address if the proverId is used for something in the rollup contract
89
- // Use numeric EthAddress for deterministic prover id
90
102
  proverId: EthAddress.fromNumber(1),
91
- worldStateBlockHistory: WORLD_STATE_BLOCK_HISTORY,
103
+ worldStateCheckpointHistory: WORLD_STATE_CHECKPOINT_HISTORY,
92
104
  exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
93
- slasherFlavor: 'none',
94
- ...opts
105
+ slasherEnabled: false,
106
+ l1PublishingTime,
107
+ ...opts,
108
+ ...hardcodedAccountData ? {
109
+ initialFundedAccounts: [
110
+ hardcodedAccountData
111
+ ],
112
+ numberOfAccounts: 0
113
+ } : {}
114
+ }, // Use checkpointed chain tip for PXE by default to avoid issues with blocks being dropped due to pruned anchor blocks.
115
+ // Can be overridden via opts.pxeOpts.
116
+ {
117
+ syncChainTip: 'checkpointed',
118
+ ...opts.pxeOpts
95
119
  });
96
120
  this.context = context;
121
+ // Register the hardcoded account in PXE (local only, no on-chain deployment needed).
122
+ if (hardcodedAccountData) {
123
+ await this.registerHardcodedAccount(hardcodedAccountData);
124
+ }
97
125
  this.proverNodes = context.proverNode ? [
98
126
  context.proverNode
99
127
  ] : [];
@@ -108,10 +136,8 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
108
136
  });
109
137
  // Loop that tracks L1 and L2 block numbers and logs whenever there's a new one.
110
138
  this.monitor = new ChainMonitor(this.rollup, context.dateProvider, this.logger).start();
111
- // This is hideous.
112
- // We ought to have a definite reference to the l1TxUtils that we're using in both places, provided by the test context.
113
- this.proverDelayer = context.proverNode ? context.proverNode.publisher.l1TxUtils.delayer : undefined;
114
- this.sequencerDelayer = context.sequencer ? context.sequencer.sequencer.publisher.l1TxUtils.delayer : undefined;
139
+ this.proverDelayer = context.proverDelayer;
140
+ this.sequencerDelayer = context.sequencerDelayer;
115
141
  if (context.proverNode && !this.proverDelayer || context.sequencer && !this.sequencerDelayer) {
116
142
  throw new Error(`Could not find prover or sequencer delayer`);
117
143
  }
@@ -123,7 +149,9 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
123
149
  l1StartBlock: await this.rollup.getL1StartBlock(),
124
150
  l1GenesisTime: await this.rollup.getL1GenesisTime(),
125
151
  ethereumSlotDuration,
126
- proofSubmissionEpochs: Number(await this.rollup.getProofSubmissionEpochs())
152
+ proofSubmissionEpochs: Number(await this.rollup.getProofSubmissionEpochs()),
153
+ targetCommitteeSize: await this.rollup.getTargetCommitteeSize(),
154
+ rollupManaLimit: Number(await this.rollup.getManaLimit())
127
155
  };
128
156
  this.logger.info(`L2 genesis at L1 block ${this.constants.l1StartBlock} (timestamp ${this.constants.l1GenesisTime})`);
129
157
  }
@@ -133,19 +161,64 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
133
161
  await Promise.all(this.nodes.map((node)=>tryStop(node, this.logger)));
134
162
  await this.context.teardown();
135
163
  }
164
+ /**
165
+ * Computes InitialAccountData for a SchnorrHardcodedKeyAccountContract.
166
+ * This contract has a hardcoded signing key and no initializer, so it can be used without
167
+ * on-chain deployment. Pass the returned data in `initialFundedAccounts` so the address
168
+ * gets funded with fee juice in genesis.
169
+ */ static async getHardcodedAccountData(secret, salt) {
170
+ const contract = new SchnorrHardcodedKeyAccountContract();
171
+ const address = await getAccountContractAddress(contract, secret, salt);
172
+ const signingKey = SCHNORR_HARDCODED_PRIVATE_KEY;
173
+ return {
174
+ secret,
175
+ salt,
176
+ signingKey,
177
+ address
178
+ };
179
+ }
180
+ /**
181
+ * Registers a SchnorrHardcodedKeyAccountContract in PXE. The account must have been funded
182
+ * at genesis (via getHardcodedAccountData). No on-chain deployment or block mining needed.
183
+ */ async registerHardcodedAccount(accountData) {
184
+ const contract = new SchnorrHardcodedKeyAccountContract();
185
+ const wallet = this.context.wallet;
186
+ const accountManager = await wallet.createAccount({
187
+ secret: accountData.secret,
188
+ salt: accountData.salt,
189
+ contract
190
+ });
191
+ this.context.accounts = [
192
+ accountManager.address
193
+ ];
194
+ return accountManager.address;
195
+ }
136
196
  async createProverNode(opts = {}) {
137
197
  this.logger.warn('Creating and syncing a simulated prover node...');
138
198
  const proverNodePrivateKey = this.getNextPrivateKey();
139
- const suffix = (this.proverNodes.length + 1).toString();
140
- const proverNode = await withLogNameSuffix(suffix, ()=>createAndSyncProverNode(proverNodePrivateKey, {
141
- ...this.context.config
142
- }, {
143
- dataDirectory: join(this.context.config.dataDirectory, randomBytes(8).toString('hex')),
144
- proverId: EthAddress.fromNumber(parseInt(suffix, 10)),
199
+ const proverIndex = this.proverNodes.length + 1;
200
+ const { mockGossipSubNetwork } = this.context;
201
+ const { proverNode } = await withLoggerBindings({
202
+ actor: `prover-${proverIndex}`
203
+ }, ()=>createAndSyncProverNode(proverNodePrivateKey, {
204
+ ...this.context.config,
205
+ p2pEnabled: this.context.config.p2pEnabled || mockGossipSubNetwork !== undefined,
206
+ proverId: EthAddress.fromNumber(proverIndex),
145
207
  dontStart: opts.dontStart,
146
208
  ...opts
147
- }, this.context.aztecNode, undefined, {
148
- dateProvider: this.context.dateProvider
209
+ }, {
210
+ dataDirectory: join(this.context.config.dataDirectory, randomBytes(8).toString('hex'))
211
+ }, {
212
+ dateProvider: this.context.dateProvider,
213
+ p2pClientDeps: {
214
+ p2pServiceFactory: mockGossipSubNetwork ? getMockPubSubP2PServiceFactory(mockGossipSubNetwork) : undefined,
215
+ rpcTxProviders: [
216
+ this.context.aztecNode
217
+ ]
218
+ }
219
+ }, {
220
+ genesis: this.context.genesis,
221
+ dontStart: opts.dontStart
149
222
  }));
150
223
  this.proverNodes.push(proverNode);
151
224
  return proverNode;
@@ -166,7 +239,8 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
166
239
  });
167
240
  }
168
241
  async createNode(opts = {}) {
169
- const suffix = (this.nodes.length + 1).toString();
242
+ const nodeIndex = this.nodes.length + 1;
243
+ const actorPrefix = opts.disableValidator ? 'node' : 'validator';
170
244
  const { mockGossipSubNetwork } = this.context;
171
245
  const resolvedConfig = {
172
246
  ...this.context.config,
@@ -174,35 +248,25 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
174
248
  };
175
249
  const p2pEnabled = resolvedConfig.p2pEnabled || mockGossipSubNetwork !== undefined;
176
250
  const p2pIp = resolvedConfig.p2pIp ?? (p2pEnabled ? '127.0.0.1' : undefined);
177
- const node = await withLogNameSuffix(suffix, ()=>AztecNodeService.createAndSync({
251
+ const node = await withLoggerBindings({
252
+ actor: `${actorPrefix}-${nodeIndex}`
253
+ }, ()=>AztecNodeService.createAndSync({
178
254
  ...resolvedConfig,
179
255
  dataDirectory: join(this.context.config.dataDirectory, randomBytes(8).toString('hex')),
180
256
  validatorPrivateKeys: opts.validatorPrivateKeys ?? new SecretValue([]),
257
+ nodeId: resolvedConfig.nodeId || `${actorPrefix}-${nodeIndex}`,
181
258
  p2pEnabled,
182
259
  p2pIp
183
260
  }, {
184
261
  dateProvider: this.context.dateProvider,
185
262
  p2pClientDeps: {
186
263
  p2pServiceFactory: mockGossipSubNetwork ? getMockPubSubP2PServiceFactory(mockGossipSubNetwork) : undefined
187
- }
264
+ },
265
+ slashingProtectionDb: opts.slashingProtectionDb
188
266
  }, {
189
- prefilledPublicData: this.context.prefilledPublicData,
267
+ genesis: this.context.genesis,
190
268
  ...opts
191
269
  }));
192
- // REFACTOR: We're getting too much into the internals of the sequencer here.
193
- // We should have a single method for constructing an aztec node that returns a TestAztecNodeService
194
- // which directly exposes the delayer and sets any test config.
195
- if (opts.txDelayerMaxInclusionTimeIntoSlot !== undefined) {
196
- this.logger.info(`Setting tx delayer max inclusion time into slot to ${opts.txDelayerMaxInclusionTimeIntoSlot} seconds`);
197
- // 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.
198
- // The delayer needs a wallet (a client that can sign), so we have to create one here.
199
- const l1Client = createExtendedL1Client(resolvedConfig.l1RpcUrls, resolvedConfig.publisherPrivateKeys[0].getValue());
200
- const sequencer = node.getSequencer();
201
- const publisher = sequencer.sequencer.publisher;
202
- const delayed = DelayedTxUtils.fromL1TxUtils(publisher.l1TxUtils, this.L1_BLOCK_TIME_IN_S, l1Client);
203
- delayed.delayer.setMaxInclusionTimeIntoSlot(opts.txDelayerMaxInclusionTimeIntoSlot);
204
- publisher.l1TxUtils = delayed;
205
- }
206
270
  this.nodes.push(node);
207
271
  return node;
208
272
  }
@@ -211,26 +275,28 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
211
275
  return `0x${key.toString('hex')}`;
212
276
  }
213
277
  /** Waits until the epoch begins (ie until the immediately previous L1 block is mined). */ async waitUntilEpochStarts(epoch) {
214
- const [start] = getTimestampRangeForEpoch(BigInt(epoch), this.constants);
278
+ const [start] = getTimestampRangeForEpoch(EpochNumber(epoch), this.constants);
215
279
  this.logger.info(`Waiting until L1 timestamp ${start} is reached as the start of epoch ${epoch}`);
216
280
  await waitUntilL1Timestamp(this.l1Client, start - BigInt(this.L1_BLOCK_TIME_IN_S), undefined, 30 * this.epochDuration);
217
281
  return start;
218
282
  }
219
- /** Waits until the given L2 block number is mined. */ async waitUntilL2BlockNumber(target, timeout = 60) {
220
- await retryUntil(()=>Promise.resolve(target <= this.monitor.l2BlockNumber), `Wait until L2 block ${target}`, timeout, 0.1);
283
+ /** Waits until the given checkpoint number is mined. */ async waitUntilCheckpointNumber(target, timeout = 120) {
284
+ await retryUntil(()=>Promise.resolve(target <= this.monitor.checkpointNumber), `Wait until checkpoint ${target}`, timeout, 0.1);
221
285
  }
222
- /** Waits until the given L2 block number is marked as proven. */ async waitUntilProvenL2BlockNumber(t, timeout = 60) {
223
- await retryUntil(()=>Promise.resolve(t <= this.monitor.l2ProvenBlockNumber), `Wait proven L2 block ${t}`, timeout, 0.1);
224
- return this.monitor.l2ProvenBlockNumber;
286
+ /** Waits until the given checkpoint number is marked as proven. */ async waitUntilProvenCheckpointNumber(target, timeout = 120) {
287
+ await retryUntil(()=>Promise.resolve(target <= this.monitor.provenCheckpointNumber), `Wait proven checkpoint ${target}`, timeout, 0.1);
288
+ return this.monitor.provenCheckpointNumber;
225
289
  }
226
290
  /** Waits until the last slot of the proof submission window for a given epoch. */ async waitUntilLastSlotOfProofSubmissionWindow(epochNumber) {
227
- const deadline = getProofSubmissionDeadlineTimestamp(BigInt(epochNumber), this.constants);
291
+ const deadline = getProofSubmissionDeadlineTimestamp(EpochNumber.fromBigInt(BigInt(epochNumber)), this.constants);
228
292
  const oneSlotBefore = deadline - BigInt(this.constants.slotDuration);
229
293
  const date = new Date(Number(oneSlotBefore) * 1000);
230
294
  this.logger.info(`Waiting until last slot of submission window for epoch ${epochNumber} at ${date}`, {
231
295
  oneSlotBefore
232
296
  });
233
- await waitUntilL1Timestamp(this.l1Client, oneSlotBefore);
297
+ // Use a timeout that accounts for the full proof submission window
298
+ const proofSubmissionWindowDuration = this.constants.proofSubmissionEpochs * this.epochDuration * this.L2_SLOT_DURATION_IN_S;
299
+ await waitUntilL1Timestamp(this.l1Client, oneSlotBefore, undefined, proofSubmissionWindowDuration * 2);
234
300
  }
235
301
  /** Waits for the aztec node to sync to the target block number. */ async waitForNodeToSync(blockNumber, type) {
236
302
  const waitTime = ARCHIVER_POLL_INTERVAL + WORLD_STATE_BLOCK_CHECK_INTERVAL;
@@ -239,7 +305,7 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
239
305
  await sleep(waitTime);
240
306
  const [syncState, tips] = await Promise.all([
241
307
  this.context.aztecNode.getWorldStateSyncStatus(),
242
- await this.context.aztecNode.getL2Tips()
308
+ await this.context.aztecNode.getChainTips()
243
309
  ]);
244
310
  this.logger.info(`Wait for node synch ${blockNumber} ${type}`, {
245
311
  blockNumber,
@@ -248,7 +314,7 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
248
314
  tips
249
315
  });
250
316
  if (type === 'proven') {
251
- synched = tips.proven.number >= blockNumber && syncState.latestBlockNumber >= blockNumber;
317
+ synched = tips.proven.block.number >= blockNumber && syncState.latestBlockNumber >= blockNumber;
252
318
  } else if (type === 'finalized') {
253
319
  synched = syncState.finalizedBlockNumber >= blockNumber;
254
320
  } else {
@@ -267,12 +333,25 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
267
333
  await wallet.registerContract(instance, SpamContract.artifact);
268
334
  return SpamContract.at(instance.address, wallet);
269
335
  }
336
+ /** Registers the TestContract on the given wallet. */ async registerTestContract(wallet, salt = Fr.ZERO) {
337
+ const instance = await getContractInstanceFromInstantiationParams(TestContract.artifact, {
338
+ constructorArgs: [],
339
+ constructorArtifact: undefined,
340
+ salt,
341
+ publicKeys: undefined,
342
+ deployer: undefined
343
+ });
344
+ await wallet.registerContract(instance, TestContract.artifact);
345
+ return TestContract.at(instance.address, wallet);
346
+ }
270
347
  /** Creates an L1 client using a fresh account with funds from anvil, with a tx delayer already set up. */ async createL1Client() {
271
- const { client, delayer } = withDelayer(createExtendedL1Client([
348
+ const rawClient = createExtendedL1Client([
272
349
  ...this.l1Client.chain.rpcUrls.default.http
273
- ], privateKeyToAccount(this.getNextPrivateKey()), this.l1Client.chain), this.context.dateProvider, {
350
+ ], privateKeyToAccount(this.getNextPrivateKey()), this.l1Client.chain);
351
+ const delayer = createDelayer(this.context.dateProvider, {
274
352
  ethereumSlotDuration: this.L1_BLOCK_TIME_IN_S
275
- });
353
+ }, {});
354
+ const client = wrapClientWithDelayer(rawClient, delayer);
276
355
  expect(await client.getBalance({
277
356
  address: client.account.address
278
357
  })).toBeGreaterThan(0n);
@@ -290,15 +369,47 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
290
369
  ]).then((_)=>true).catch((_)=>false);
291
370
  expect(result).toBe(expectedSuccess);
292
371
  }
293
- watchSequencerEvents(sequencers, getMetadata = ()=>({})) {
372
+ /** Verifies at least one checkpoint has the target number of blocks (for MBPS validation). */ async assertMultipleBlocksPerSlot(targetBlockCount) {
373
+ const archiver = this.context.aztecNode.getBlockSource();
374
+ const checkpoints = await archiver.getCheckpoints({
375
+ from: CheckpointNumber(1),
376
+ limit: 50
377
+ });
378
+ this.logger.warn(`Retrieved ${checkpoints.length} checkpoints from archiver`, {
379
+ checkpoints: checkpoints.map((pc)=>pc.checkpoint.getStats())
380
+ });
381
+ let expectedBlockNumber = checkpoints[0].checkpoint.blocks[0].number;
382
+ let targetFound = false;
383
+ for (const checkpoint of checkpoints){
384
+ const blockCount = checkpoint.checkpoint.blocks.length;
385
+ targetFound = targetFound || blockCount >= targetBlockCount;
386
+ this.logger.verbose(`Checkpoint ${checkpoint.checkpoint.number} has ${blockCount} blocks`, {
387
+ checkpoint: checkpoint.checkpoint.getStats()
388
+ });
389
+ for(let i = 0; i < blockCount; i++){
390
+ const block = checkpoint.checkpoint.blocks[i];
391
+ expect(block.indexWithinCheckpoint).toBe(i);
392
+ expect(block.checkpointNumber).toBe(checkpoint.checkpoint.number);
393
+ expect(block.number).toBe(expectedBlockNumber);
394
+ expectedBlockNumber++;
395
+ }
396
+ }
397
+ expect(targetFound).toBe(true);
398
+ }
399
+ watchSequencerEvents(sequencers, getMetadata = ()=>({}), additionalFailEventKeys = []) {
294
400
  const stateChanges = [];
295
401
  const failEvents = [];
296
- // Note we do not include the 'tx-count-check-failed' event here, since it is fine if we dont build
402
+ // Note we do not include the 'block-tx-count-check-failed' event here, since it is fine if we dont build
297
403
  // due to lack of txs available.
298
404
  const failEventsKeys = [
299
405
  'block-build-failed',
300
- 'block-publish-failed',
301
- 'proposer-rollup-check-failed'
406
+ 'checkpoint-publish-failed',
407
+ 'proposer-rollup-check-failed',
408
+ 'checkpoint-error',
409
+ 'checkpoint-publish-failed',
410
+ 'header-validation-failed',
411
+ 'pipelined-checkpoint-discarded',
412
+ ...additionalFailEventKeys
302
413
  ];
303
414
  const makeEvent = (i, eventName, args)=>({
304
415
  ...args,
@@ -322,6 +433,13 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
322
433
  });
323
434
  failEventsKeys.forEach((eventName)=>{
324
435
  sequencer.getSequencer().on(eventName, (args)=>{
436
+ // Skip benign block-build-failed events where the builder rejected the block because it
437
+ // could not collect enough valid txs. This is the same "not enough txs" case as
438
+ // block-tx-count-check-failed (which is already excluded above), just detected after we
439
+ // started processing txs rather than before.
440
+ if (eventName === 'block-build-failed' && args.reason === 'Insufficient valid txs') {
441
+ return;
442
+ }
325
443
  const evt = makeEvent(i, eventName, args);
326
444
  failEvents.push(evt);
327
445
  this.logger.error(`Failed event ${eventName} from sequencer ${sequencerIndex}`, undefined, evt);
@@ -333,4 +451,10 @@ export const DEFAULT_L1_BLOCK_TIME = process.env.CI ? 12 : 8;
333
451
  stateChanges
334
452
  };
335
453
  }
454
+ assertNoFailuresFromSequencers(failEvents) {
455
+ if (failEvents.length > 0) {
456
+ this.logger.error(`Failed events from sequencers`, failEvents);
457
+ }
458
+ expect(failEvents).toEqual([]);
459
+ }
336
460
  }
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=bridging_race.notest.d.ts.map
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJpZGdpbmdfcmFjZS5ub3Rlc3QuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lMmVfZmVlcy9icmlkZ2luZ19yYWNlLm5vdGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -1,6 +1,6 @@
1
1
  import { SchnorrAccountContract } from '@aztec/accounts/schnorr';
2
2
  import { Fr } from '@aztec/aztec.js/fields';
3
- import { Fq } from '@aztec/foundation/fields';
3
+ import { Fq } from '@aztec/foundation/curves/bn254';
4
4
  import { sleep } from '@aztec/foundation/sleep';
5
5
  import { jest } from '@jest/globals';
6
6
  import { FeesTest } from './fees_test.js';
@@ -16,10 +16,8 @@ describe('e2e_fees bridging_race', ()=>{
16
16
  minTxsPerBlock: 0
17
17
  });
18
18
  beforeAll(async ()=>{
19
- await t.applyInitialAccountsSnapshot();
20
- await t.applyPublicDeployAccountsSnapshot();
21
- await t.applySetupFeeJuiceSnapshot();
22
- ({ wallet, logger } = await t.setup());
19
+ await t.setup();
20
+ ({ wallet, logger } = t);
23
21
  });
24
22
  afterAll(async ()=>{
25
23
  await t.teardown();
@@ -45,7 +43,7 @@ describe('e2e_fees bridging_race', ()=>{
45
43
  const origApprove = l1TokenManager.approve.bind(l1TokenManager);
46
44
  l1TokenManager.approve = async (amount, address, addressName = '')=>{
47
45
  await origApprove(amount, address, addressName);
48
- const sleepTime = (Number(t.chainMonitor.l2BlockTimestamp) + AZTEC_SLOT_DURATION) * 1000 - Date.now() - 500;
46
+ const sleepTime = (Number(t.chainMonitor.checkpointTimestamp) + AZTEC_SLOT_DURATION) * 1000 - Date.now() - 500;
49
47
  logger.info(`Sleeping for ${sleepTime}ms until near end of L2 slot before sending L1 fee juice to L2 inbox`);
50
48
  await sleep(sleepTime);
51
49
  };
@@ -56,7 +54,7 @@ describe('e2e_fees bridging_race', ()=>{
56
54
  const { claimSecret: secret, messageLeafIndex: index } = claim;
57
55
  await t.feeJuiceContract.methods.claim(bobsAddress, claim.claimAmount, secret, index).send({
58
56
  from: bobsAddress
59
- }).wait();
57
+ });
60
58
  const [balance] = await t.getGasBalanceFn(bobsAddress);
61
59
  expect(balance).toEqual(claim.claimAmount);
62
60
  });
@@ -2,8 +2,10 @@ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
2
  import { type Logger } from '@aztec/aztec.js/log';
3
3
  import type { AztecNode } from '@aztec/aztec.js/node';
4
4
  import { CheatCodes } from '@aztec/aztec/testing';
5
- import { type DeployL1ContractsArgs, RollupContract } from '@aztec/ethereum';
5
+ import { RollupContract } from '@aztec/ethereum/contracts';
6
+ import type { DeployAztecL1ContractsArgs } from '@aztec/ethereum/deploy-aztec-l1-contracts';
6
7
  import { ChainMonitor } from '@aztec/ethereum/test';
8
+ import { BlockNumber } from '@aztec/foundation/branded-types';
7
9
  import { EthAddress } from '@aztec/foundation/eth-address';
8
10
  import { AppSubscriptionContract } from '@aztec/noir-contracts.js/AppSubscription';
9
11
  import { FPCContract } from '@aztec/noir-contracts.js/FPC';
@@ -12,12 +14,13 @@ import { SponsoredFPCContract } from '@aztec/noir-contracts.js/SponsoredFPC';
12
14
  import { TokenContract as BananaCoin } from '@aztec/noir-contracts.js/Token';
13
15
  import { CounterContract } from '@aztec/noir-test-contracts.js/Counter';
14
16
  import { GasSettings } from '@aztec/stdlib/gas';
15
- import { TestWallet } from '@aztec/test-wallet/server';
16
- import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
17
- import { type BalancesFn, type SetupOptions } from '../fixtures/utils.js';
17
+ import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
18
+ import { type EndToEndContext, type SetupOptions } from '../fixtures/setup.js';
19
+ import { type BalancesFn } from '../fixtures/utils.js';
18
20
  import { type GasBridgingTestHarness } from '../shared/gas_portal_test_harness.js';
21
+ import { TestWallet } from '../test-wallet/test_wallet.js';
19
22
  /**
20
- * Test fixture for testing fees. Provides the following snapshots:
23
+ * Test fixture for testing fees. Provides the following setup steps:
21
24
  * InitialAccounts: Initializes 3 Schnorr account contracts.
22
25
  * PublicDeployAccounts: Deploys the accounts publicly.
23
26
  * DeployFeeJuice: Deploys the Fee Juice contract.
@@ -28,10 +31,12 @@ import { type GasBridgingTestHarness } from '../shared/gas_portal_test_harness.j
28
31
  */
29
32
  export declare class FeesTest {
30
33
  private numberOfAccounts;
31
- private snapshotManager;
34
+ private setupOptions;
32
35
  private accounts;
36
+ context: EndToEndContext;
33
37
  logger: Logger;
34
38
  aztecNode: AztecNode;
39
+ aztecNodeAdmin: AztecNodeAdmin;
35
40
  cheatCodes: CheatCodes;
36
41
  wallet: TestWallet;
37
42
  aliceAddress: AztecAddress;
@@ -48,19 +53,20 @@ export declare class FeesTest {
48
53
  counterContract: CounterContract;
49
54
  subscriptionContract: AppSubscriptionContract;
50
55
  feeJuiceBridgeTestHarness: GasBridgingTestHarness;
51
- context: SubsystemsContext;
52
56
  chainMonitor: ChainMonitor;
53
57
  getCoinbaseBalance: () => Promise<bigint>;
54
58
  getCoinbaseSequencerRewards: () => Promise<bigint>;
55
59
  getGasBalanceFn: BalancesFn;
56
60
  getBananaPublicBalanceFn: BalancesFn;
57
61
  getBananaPrivateBalanceFn: BalancesFn;
58
- getProverFee: (blockNumber: number) => Promise<bigint>;
62
+ getProverFee: (blockNumber: BlockNumber) => Promise<bigint>;
63
+ getCommittedProverFee: (blockNumber: BlockNumber) => Promise<bigint>;
64
+ getCommittedBurn: (blockNumber: BlockNumber) => Promise<bigint>;
59
65
  readonly ALICE_INITIAL_BANANAS: bigint;
60
66
  readonly SUBSCRIPTION_AMOUNT: bigint;
61
67
  readonly APP_SPONSORED_TX_GAS_LIMIT: bigint;
62
- constructor(testName: string, numberOfAccounts?: number, setupOptions?: Partial<SetupOptions & DeployL1ContractsArgs>);
63
- setup(): Promise<this>;
68
+ constructor(testName: string, numberOfAccounts?: number, setupOptions?: Partial<SetupOptions & DeployAztecL1ContractsArgs>);
69
+ setup(opts?: Partial<SetupOptions>): Promise<this>;
64
70
  teardown(): Promise<void>;
65
71
  setIsMarkingAsProven(b: boolean): void;
66
72
  catchUpProvenChain(): Promise<void>;
@@ -71,14 +77,15 @@ export declare class FeesTest {
71
77
  mintAndBridgeFeeJuice(minter: AztecAddress, recipient: AztecAddress): Promise<void>;
72
78
  /** Alice mints bananaCoin tokens privately to the target address and redeems them. */
73
79
  mintPrivateBananas(amount: bigint, address: AztecAddress): Promise<void>;
74
- applyBaseSnapshots(): Promise<void>;
75
- applyInitialAccountsSnapshot(): Promise<void>;
76
- applyPublicDeployAccountsSnapshot(): Promise<void>;
77
- applySetupFeeJuiceSnapshot(): Promise<void>;
78
- applyDeployBananaTokenSnapshot(): Promise<void>;
79
- applyFPCSetupSnapshot(): Promise<void>;
80
- applySponsoredFPCSetupSnapshot(): Promise<void>;
80
+ applyBaseSetup(): Promise<void>;
81
+ applyEnsureAuthRegistryPublished(): Promise<void>;
82
+ applyInitialAccounts(): Promise<void>;
83
+ applyPublicDeployAccounts(): Promise<void>;
84
+ applySetupFeeJuice(): Promise<void>;
85
+ applyDeployBananaToken(): Promise<void>;
86
+ applyFPCSetup(): Promise<void>;
87
+ applySponsoredFPCSetup(): Promise<void>;
81
88
  applyFundAliceWithBananas(): Promise<void>;
82
89
  applyFundAliceWithPrivateBananas(): Promise<void>;
83
90
  }
84
- //# sourceMappingURL=fees_test.d.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