@aztec/end-to-end 0.0.1-commit.fce3e4f → 0.0.1-commit.ff7989d6c

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 (253) hide show
  1. package/dest/bench/client_flows/benchmark.d.ts +3 -2
  2. package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
  3. package/dest/bench/client_flows/benchmark.js +21 -1
  4. package/dest/bench/client_flows/client_flows_benchmark.d.ts +15 -16
  5. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  6. package/dest/bench/client_flows/client_flows_benchmark.js +126 -139
  7. package/dest/bench/client_flows/config.d.ts +2 -2
  8. package/dest/bench/client_flows/config.d.ts.map +1 -1
  9. package/dest/bench/client_flows/config.js +18 -0
  10. package/dest/bench/client_flows/data_extractor.js +3 -1
  11. package/dest/bench/utils.d.ts +9 -8
  12. package/dest/bench/utils.d.ts.map +1 -1
  13. package/dest/bench/utils.js +27 -18
  14. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +9 -8
  15. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
  16. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +106 -112
  17. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +20 -14
  18. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  19. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +92 -71
  20. package/dest/e2e_deploy_contract/deploy_test.d.ts +5 -4
  21. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  22. package/dest/e2e_deploy_contract/deploy_test.js +18 -13
  23. package/dest/e2e_epochs/epochs_test.d.ts +25 -15
  24. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  25. package/dest/e2e_epochs/epochs_test.js +100 -51
  26. package/dest/e2e_fees/bridging_race.notest.js +4 -6
  27. package/dest/e2e_fees/fees_test.d.ts +21 -17
  28. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  29. package/dest/e2e_fees/fees_test.js +128 -143
  30. package/dest/e2e_l1_publisher/write_json.d.ts +4 -3
  31. package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -1
  32. package/dest/e2e_l1_publisher/write_json.js +14 -16
  33. package/dest/e2e_multi_validator/utils.js +1 -1
  34. package/dest/e2e_nested_contract/nested_contract_test.d.ts +6 -9
  35. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
  36. package/dest/e2e_nested_contract/nested_contract_test.js +31 -39
  37. package/dest/e2e_p2p/inactivity_slash_test.d.ts +4 -4
  38. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -1
  39. package/dest/e2e_p2p/inactivity_slash_test.js +6 -9
  40. package/dest/e2e_p2p/p2p_network.d.ts +14 -12
  41. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  42. package/dest/e2e_p2p/p2p_network.js +135 -112
  43. package/dest/e2e_p2p/reqresp/utils.d.ts +22 -0
  44. package/dest/e2e_p2p/reqresp/utils.d.ts.map +1 -0
  45. package/dest/e2e_p2p/reqresp/utils.js +177 -0
  46. package/dest/e2e_p2p/shared.d.ts +7 -7
  47. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  48. package/dest/e2e_p2p/shared.js +18 -21
  49. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts +2 -0
  50. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts.map +1 -0
  51. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.js +184 -0
  52. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts +18 -0
  53. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts.map +1 -0
  54. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.js +120 -0
  55. package/dest/e2e_token_contract/token_contract_test.d.ts +19 -10
  56. package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
  57. package/dest/e2e_token_contract/token_contract_test.js +99 -91
  58. package/dest/fixtures/authwit_proxy.d.ts +15 -0
  59. package/dest/fixtures/authwit_proxy.d.ts.map +1 -0
  60. package/dest/fixtures/authwit_proxy.js +30 -0
  61. package/dest/fixtures/e2e_prover_test.d.ts +13 -21
  62. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  63. package/dest/fixtures/e2e_prover_test.js +114 -133
  64. package/dest/fixtures/fixtures.d.ts +6 -3
  65. package/dest/fixtures/fixtures.d.ts.map +1 -1
  66. package/dest/fixtures/fixtures.js +8 -3
  67. package/dest/fixtures/get_acvm_config.js +1 -1
  68. package/dest/fixtures/ha_setup.d.ts +71 -0
  69. package/dest/fixtures/ha_setup.d.ts.map +1 -0
  70. package/dest/fixtures/ha_setup.js +116 -0
  71. package/dest/fixtures/index.d.ts +2 -1
  72. package/dest/fixtures/index.d.ts.map +1 -1
  73. package/dest/fixtures/index.js +1 -0
  74. package/dest/fixtures/l1_to_l2_messaging.d.ts +4 -3
  75. package/dest/fixtures/l1_to_l2_messaging.d.ts.map +1 -1
  76. package/dest/fixtures/l1_to_l2_messaging.js +2 -2
  77. package/dest/fixtures/setup.d.ts +235 -0
  78. package/dest/fixtures/setup.d.ts.map +1 -0
  79. package/dest/fixtures/setup.js +605 -0
  80. package/dest/fixtures/setup_p2p_test.d.ts +16 -9
  81. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  82. package/dest/fixtures/setup_p2p_test.js +43 -32
  83. package/dest/fixtures/token_utils.d.ts +2 -2
  84. package/dest/fixtures/token_utils.d.ts.map +1 -1
  85. package/dest/fixtures/token_utils.js +10 -6
  86. package/dest/fixtures/utils.d.ts +5 -637
  87. package/dest/fixtures/utils.d.ts.map +1 -1
  88. package/dest/fixtures/utils.js +4 -647
  89. package/dest/fixtures/web3signer.js +1 -1
  90. package/dest/fixtures/with_telemetry_utils.d.ts +2 -2
  91. package/dest/fixtures/with_telemetry_utils.d.ts.map +1 -1
  92. package/dest/fixtures/with_telemetry_utils.js +2 -2
  93. package/dest/quality_of_service/grafana_client.d.ts +41 -0
  94. package/dest/quality_of_service/grafana_client.d.ts.map +1 -0
  95. package/dest/quality_of_service/{alert_checker.js → grafana_client.js} +1 -1
  96. package/dest/quality_of_service/prometheus_client.d.ts +38 -0
  97. package/dest/quality_of_service/prometheus_client.d.ts.map +1 -0
  98. package/dest/quality_of_service/prometheus_client.js +67 -0
  99. package/dest/shared/cross_chain_test_harness.d.ts +18 -6
  100. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  101. package/dest/shared/cross_chain_test_harness.js +14 -14
  102. package/dest/shared/gas_portal_test_harness.d.ts +12 -2
  103. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  104. package/dest/shared/gas_portal_test_harness.js +1 -1
  105. package/dest/shared/index.d.ts +3 -2
  106. package/dest/shared/index.d.ts.map +1 -1
  107. package/dest/shared/index.js +1 -0
  108. package/dest/shared/mock_state_view.d.ts +86 -0
  109. package/dest/shared/mock_state_view.d.ts.map +1 -0
  110. package/dest/shared/mock_state_view.js +186 -0
  111. package/dest/shared/submit-transactions.d.ts +4 -4
  112. package/dest/shared/submit-transactions.d.ts.map +1 -1
  113. package/dest/shared/submit-transactions.js +9 -11
  114. package/dest/shared/uniswap_l1_l2.d.ts +3 -27
  115. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  116. package/dest/shared/uniswap_l1_l2.js +57 -35
  117. package/dest/simulators/lending_simulator.d.ts +6 -2
  118. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  119. package/dest/simulators/lending_simulator.js +2 -2
  120. package/dest/simulators/token_simulator.d.ts +1 -1
  121. package/dest/simulators/token_simulator.d.ts.map +1 -1
  122. package/dest/simulators/token_simulator.js +2 -23
  123. package/dest/spartan/setup_test_wallets.d.ts +12 -4
  124. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  125. package/dest/spartan/setup_test_wallets.js +94 -36
  126. package/dest/spartan/tx_metrics.d.ts +88 -0
  127. package/dest/spartan/tx_metrics.d.ts.map +1 -0
  128. package/dest/spartan/tx_metrics.js +422 -0
  129. package/dest/spartan/utils/bot.d.ts +28 -0
  130. package/dest/spartan/utils/bot.d.ts.map +1 -0
  131. package/dest/spartan/utils/bot.js +142 -0
  132. package/dest/spartan/utils/chaos.d.ts +79 -0
  133. package/dest/spartan/utils/chaos.d.ts.map +1 -0
  134. package/dest/spartan/utils/chaos.js +142 -0
  135. package/dest/spartan/utils/clients.d.ts +39 -0
  136. package/dest/spartan/utils/clients.d.ts.map +1 -0
  137. package/dest/spartan/utils/clients.js +90 -0
  138. package/dest/spartan/utils/config.d.ts +39 -0
  139. package/dest/spartan/utils/config.d.ts.map +1 -0
  140. package/dest/spartan/utils/config.js +21 -0
  141. package/dest/spartan/utils/health.d.ts +63 -0
  142. package/dest/spartan/utils/health.d.ts.map +1 -0
  143. package/dest/spartan/utils/health.js +202 -0
  144. package/dest/spartan/utils/helm.d.ts +15 -0
  145. package/dest/spartan/utils/helm.d.ts.map +1 -0
  146. package/dest/spartan/utils/helm.js +47 -0
  147. package/dest/spartan/utils/index.d.ts +9 -0
  148. package/dest/spartan/utils/index.d.ts.map +1 -0
  149. package/dest/spartan/utils/index.js +18 -0
  150. package/dest/spartan/utils/k8s.d.ts +128 -0
  151. package/dest/spartan/utils/k8s.d.ts.map +1 -0
  152. package/dest/spartan/utils/k8s.js +381 -0
  153. package/dest/spartan/utils/nodes.d.ts +40 -0
  154. package/dest/spartan/utils/nodes.d.ts.map +1 -0
  155. package/dest/spartan/utils/nodes.js +460 -0
  156. package/dest/spartan/utils/scripts.d.ts +30 -0
  157. package/dest/spartan/utils/scripts.d.ts.map +1 -0
  158. package/dest/spartan/utils/scripts.js +81 -0
  159. package/dest/spartan/utils.d.ts +2 -218
  160. package/dest/spartan/utils.d.ts.map +1 -1
  161. package/dest/spartan/utils.js +1 -749
  162. package/dest/test-wallet/test_wallet.d.ts +83 -0
  163. package/dest/test-wallet/test_wallet.d.ts.map +1 -0
  164. package/dest/test-wallet/test_wallet.js +214 -0
  165. package/dest/test-wallet/utils.d.ts +41 -0
  166. package/dest/test-wallet/utils.d.ts.map +1 -0
  167. package/dest/test-wallet/utils.js +71 -0
  168. package/dest/test-wallet/wallet_worker_script.d.ts +2 -0
  169. package/dest/test-wallet/wallet_worker_script.d.ts.map +1 -0
  170. package/dest/test-wallet/wallet_worker_script.js +40 -0
  171. package/dest/test-wallet/worker_wallet.d.ts +52 -0
  172. package/dest/test-wallet/worker_wallet.d.ts.map +1 -0
  173. package/dest/test-wallet/worker_wallet.js +103 -0
  174. package/dest/test-wallet/worker_wallet_schema.d.ts +274 -0
  175. package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -0
  176. package/dest/test-wallet/worker_wallet_schema.js +10 -0
  177. package/package.json +46 -41
  178. package/src/bench/client_flows/benchmark.ts +24 -2
  179. package/src/bench/client_flows/client_flows_benchmark.ts +148 -215
  180. package/src/bench/client_flows/config.ts +9 -1
  181. package/src/bench/client_flows/data_extractor.ts +1 -1
  182. package/src/bench/utils.ts +31 -21
  183. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +114 -143
  184. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +140 -126
  185. package/src/e2e_deploy_contract/deploy_test.ts +22 -15
  186. package/src/e2e_epochs/epochs_test.ts +162 -113
  187. package/src/e2e_fees/bridging_race.notest.ts +5 -11
  188. package/src/e2e_fees/fees_test.ts +171 -228
  189. package/src/e2e_l1_publisher/write_json.ts +16 -16
  190. package/src/e2e_multi_validator/utils.ts +1 -1
  191. package/src/e2e_nested_contract/nested_contract_test.ts +33 -56
  192. package/src/e2e_p2p/inactivity_slash_test.ts +7 -10
  193. package/src/e2e_p2p/p2p_network.ts +204 -185
  194. package/src/e2e_p2p/reqresp/utils.ts +235 -0
  195. package/src/e2e_p2p/shared.ts +33 -28
  196. package/src/e2e_storage_proof/fixtures/storage_proof.json +915 -0
  197. package/src/e2e_storage_proof/fixtures/storage_proof_fetcher.ts +190 -0
  198. package/src/e2e_storage_proof/fixtures/storage_proof_fixture.ts +173 -0
  199. package/src/e2e_token_contract/token_contract_test.ts +113 -119
  200. package/src/fixtures/authwit_proxy.ts +50 -0
  201. package/src/fixtures/dumps/epoch_proof_result.json +1 -1
  202. package/src/fixtures/e2e_prover_test.ts +130 -177
  203. package/src/fixtures/fixtures.ts +12 -5
  204. package/src/fixtures/get_acvm_config.ts +1 -1
  205. package/src/fixtures/ha_setup.ts +186 -0
  206. package/src/fixtures/index.ts +1 -0
  207. package/src/fixtures/l1_to_l2_messaging.ts +4 -2
  208. package/src/fixtures/setup.ts +896 -0
  209. package/src/fixtures/setup_p2p_test.ts +43 -47
  210. package/src/fixtures/token_utils.ts +7 -5
  211. package/src/fixtures/utils.ts +27 -966
  212. package/src/fixtures/web3signer.ts +1 -1
  213. package/src/fixtures/with_telemetry_utils.ts +2 -2
  214. package/src/guides/up_quick_start.sh +3 -3
  215. package/src/quality_of_service/{alert_checker.ts → grafana_client.ts} +1 -1
  216. package/src/quality_of_service/prometheus_client.ts +113 -0
  217. package/src/shared/cross_chain_test_harness.ts +19 -36
  218. package/src/shared/gas_portal_test_harness.ts +2 -2
  219. package/src/shared/index.ts +2 -1
  220. package/src/shared/mock_state_view.ts +188 -0
  221. package/src/shared/submit-transactions.ts +14 -16
  222. package/src/shared/uniswap_l1_l2.ts +66 -89
  223. package/src/simulators/lending_simulator.ts +3 -3
  224. package/src/simulators/token_simulator.ts +1 -29
  225. package/src/spartan/DEVELOP.md +7 -0
  226. package/src/spartan/setup_test_wallets.ts +136 -27
  227. package/src/spartan/tx_metrics.ts +376 -0
  228. package/src/spartan/utils/bot.ts +188 -0
  229. package/src/spartan/utils/chaos.ts +253 -0
  230. package/src/spartan/utils/clients.ts +100 -0
  231. package/src/spartan/utils/config.ts +27 -0
  232. package/src/spartan/utils/health.ts +255 -0
  233. package/src/spartan/utils/helm.ts +84 -0
  234. package/src/spartan/utils/index.ts +65 -0
  235. package/src/spartan/utils/k8s.ts +535 -0
  236. package/src/spartan/utils/nodes.ts +535 -0
  237. package/src/spartan/utils/scripts.ts +99 -0
  238. package/src/spartan/utils.ts +1 -942
  239. package/src/test-wallet/test_wallet.ts +306 -0
  240. package/src/test-wallet/utils.ts +112 -0
  241. package/src/test-wallet/wallet_worker_script.ts +43 -0
  242. package/src/test-wallet/worker_wallet.ts +165 -0
  243. package/src/test-wallet/worker_wallet_schema.ts +13 -0
  244. package/dest/fixtures/setup_l1_contracts.d.ts +0 -477
  245. package/dest/fixtures/setup_l1_contracts.d.ts.map +0 -1
  246. package/dest/fixtures/setup_l1_contracts.js +0 -17
  247. package/dest/fixtures/snapshot_manager.d.ts +0 -95
  248. package/dest/fixtures/snapshot_manager.d.ts.map +0 -1
  249. package/dest/fixtures/snapshot_manager.js +0 -505
  250. package/dest/quality_of_service/alert_checker.d.ts +0 -41
  251. package/dest/quality_of_service/alert_checker.d.ts.map +0 -1
  252. package/src/fixtures/setup_l1_contracts.ts +0 -26
  253. package/src/fixtures/snapshot_manager.ts +0 -665
@@ -0,0 +1,274 @@
1
+ import { AztecAddress } from '@aztec/stdlib/aztec-address';
2
+ import { Tx } from '@aztec/stdlib/tx';
3
+ import { z } from 'zod';
4
+ /** Schema for the WorkerWallet API — extends WalletSchema with proveTx and registerAccount. */
5
+ export declare const WorkerWalletSchema: {
6
+ getPrivateEvents: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/abi").EventMetadataDefinition, z.ZodTypeDef, any>, eventFilter: z.ZodType<import("@aztec/aztec.js/wallet").PrivateEventFilter, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").PrivateEvent<unknown>[], z.ZodTypeDef, any>>;
7
+ getChainInfo: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/entrypoints/interfaces").ChainInfo, z.ZodTypeDef, any>>;
8
+ getContractMetadata: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").ContractMetadata, z.ZodTypeDef, any>>;
9
+ getContractClassMetadata: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/foundation/schemas").Fr, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").ContractClassMetadata, z.ZodTypeDef, any>>;
10
+ registerSender: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>, alias?: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<string | undefined, z.ZodTypeDef, any>> | undefined], z.ZodUnknown>, z.ZodType<AztecAddress, z.ZodTypeDef, any>>;
11
+ getAddressBook: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], z.ZodTypeDef, any>>;
12
+ getAccounts: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], z.ZodTypeDef, any>>;
13
+ registerContract: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/contract").ContractInstanceWithAddress, z.ZodTypeDef, any>, artifact?: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<import("@aztec/stdlib/abi").ContractArtifact | undefined, z.ZodTypeDef, any>> | undefined, secretKey?: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<import("@aztec/foundation/schemas").Fr | undefined, z.ZodTypeDef, any>> | undefined], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/contract").ContractInstanceWithAddress, z.ZodTypeDef, any>>;
14
+ simulateTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SimulateOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxSimulationResult, z.ZodTypeDef, any>>;
15
+ executeUtility: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/abi").FunctionCall, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ExecuteUtilityOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").UtilityExecutionResult, z.ZodTypeDef, any>>;
16
+ profileTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ProfileOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxProfileResult, z.ZodTypeDef, any>>;
17
+ sendTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SendOptions<import("@aztec/aztec.js/contracts").InteractionWaitOptions>, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxHash | import("@aztec/stdlib/tx").TxReceipt, z.ZodTypeDef, any>>;
18
+ createAuthWit: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>, messageHashOrIntent: z.ZodType<import("@aztec/aztec.js/authorization").CallIntent | import("@aztec/aztec.js/authorization").IntentInnerHash, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, z.ZodTypeDef, any>>;
19
+ requestCapabilities: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/aztec.js/wallet").AppCapabilities, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").WalletCapabilities, z.ZodTypeDef, any>>;
20
+ batch: z.ZodFunction<z.ZodTuple<[z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethod[], z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethodResultWrapper<import("@aztec/aztec.js/wallet").BatchedMethod>[], z.ZodTypeDef, any>>;
21
+ proveTx: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
22
+ calls: z.ZodArray<z.ZodEffects<z.ZodObject<{
23
+ name: z.ZodString;
24
+ to: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
25
+ selector: import("@aztec/foundation/schemas").ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
26
+ type: z.ZodNativeEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
27
+ isStatic: z.ZodBoolean;
28
+ hideMsgSender: z.ZodBoolean;
29
+ args: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("@aztec/foundation/schemas").Fr>, "many">;
30
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ name: string;
33
+ to: AztecAddress;
34
+ selector: import("@aztec/stdlib/abi").FunctionSelector;
35
+ type: import("@aztec/stdlib/abi").FunctionType;
36
+ isStatic: boolean;
37
+ hideMsgSender: boolean;
38
+ args: import("@aztec/foundation/schemas").Fr[];
39
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
40
+ }, {
41
+ name: string;
42
+ to?: any;
43
+ selector?: any;
44
+ type: import("@aztec/stdlib/abi").FunctionType;
45
+ isStatic: boolean;
46
+ hideMsgSender: boolean;
47
+ args: any[];
48
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
49
+ }>, import("@aztec/stdlib/abi").FunctionCall, {
50
+ name: string;
51
+ to?: any;
52
+ selector?: any;
53
+ type: import("@aztec/stdlib/abi").FunctionType;
54
+ isStatic: boolean;
55
+ hideMsgSender: boolean;
56
+ args: any[];
57
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
58
+ }>, "many">;
59
+ authWitnesses: z.ZodArray<z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, any, string>, "many">;
60
+ capsules: z.ZodArray<z.ZodType<import("@aztec/stdlib/tx").Capsule, any, string>, "many">;
61
+ extraHashedArgs: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("@aztec/stdlib/tx").HashedValues>, "many">;
62
+ feePayer: import("@aztec/foundation/schemas").ZodNullableOptional<import("@aztec/foundation/schemas").ZodFor<AztecAddress>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ calls: import("@aztec/stdlib/abi").FunctionCall[];
65
+ authWitnesses: import("@aztec/stdlib/auth-witness").AuthWitness[];
66
+ capsules: import("@aztec/stdlib/tx").Capsule[];
67
+ extraHashedArgs: import("@aztec/stdlib/tx").HashedValues[];
68
+ feePayer?: AztecAddress | undefined;
69
+ }, {
70
+ calls: {
71
+ name: string;
72
+ to?: any;
73
+ selector?: any;
74
+ type: import("@aztec/stdlib/abi").FunctionType;
75
+ isStatic: boolean;
76
+ hideMsgSender: boolean;
77
+ args: any[];
78
+ returnTypes: import("@aztec/stdlib/abi").AbiType[];
79
+ }[];
80
+ authWitnesses: string[];
81
+ capsules: string[];
82
+ extraHashedArgs: any[];
83
+ feePayer?: any;
84
+ }>, z.ZodObject<{
85
+ from: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
86
+ authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, any, string>, "many">>;
87
+ capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<import("@aztec/stdlib/tx").Capsule, any, string>, "many">>;
88
+ fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
89
+ gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
90
+ gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
91
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
92
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ daGas: number;
95
+ l2Gas: number;
96
+ }, {
97
+ daGas: string | number | bigint;
98
+ l2Gas: string | number | bigint;
99
+ }>, import("@aztec/stdlib/gas").Gas, {
100
+ daGas: string | number | bigint;
101
+ l2Gas: string | number | bigint;
102
+ }>>;
103
+ teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
104
+ daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
105
+ l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ daGas: number;
108
+ l2Gas: number;
109
+ }, {
110
+ daGas: string | number | bigint;
111
+ l2Gas: string | number | bigint;
112
+ }>, import("@aztec/stdlib/gas").Gas, {
113
+ daGas: string | number | bigint;
114
+ l2Gas: string | number | bigint;
115
+ }>>;
116
+ maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
117
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
118
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ feePerDaGas: bigint;
121
+ feePerL2Gas: bigint;
122
+ }, {
123
+ feePerDaGas: string | number | bigint;
124
+ feePerL2Gas: string | number | bigint;
125
+ }>>;
126
+ maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
127
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
128
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ feePerDaGas: bigint;
131
+ feePerL2Gas: bigint;
132
+ }, {
133
+ feePerDaGas: string | number | bigint;
134
+ feePerL2Gas: string | number | bigint;
135
+ }>>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
138
+ teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
139
+ maxFeePerGas?: {
140
+ feePerDaGas: bigint;
141
+ feePerL2Gas: bigint;
142
+ } | undefined;
143
+ maxPriorityFeePerGas?: {
144
+ feePerDaGas: bigint;
145
+ feePerL2Gas: bigint;
146
+ } | undefined;
147
+ }, {
148
+ gasLimits?: {
149
+ daGas: string | number | bigint;
150
+ l2Gas: string | number | bigint;
151
+ } | undefined;
152
+ teardownGasLimits?: {
153
+ daGas: string | number | bigint;
154
+ l2Gas: string | number | bigint;
155
+ } | undefined;
156
+ maxFeePerGas?: {
157
+ feePerDaGas: string | number | bigint;
158
+ feePerL2Gas: string | number | bigint;
159
+ } | undefined;
160
+ maxPriorityFeePerGas?: {
161
+ feePerDaGas: string | number | bigint;
162
+ feePerL2Gas: string | number | bigint;
163
+ } | undefined;
164
+ }>>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ gasSettings?: {
167
+ gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
168
+ teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
169
+ maxFeePerGas?: {
170
+ feePerDaGas: bigint;
171
+ feePerL2Gas: bigint;
172
+ } | undefined;
173
+ maxPriorityFeePerGas?: {
174
+ feePerDaGas: bigint;
175
+ feePerL2Gas: bigint;
176
+ } | undefined;
177
+ } | undefined;
178
+ }, {
179
+ gasSettings?: {
180
+ gasLimits?: {
181
+ daGas: string | number | bigint;
182
+ l2Gas: string | number | bigint;
183
+ } | undefined;
184
+ teardownGasLimits?: {
185
+ daGas: string | number | bigint;
186
+ l2Gas: string | number | bigint;
187
+ } | undefined;
188
+ maxFeePerGas?: {
189
+ feePerDaGas: string | number | bigint;
190
+ feePerL2Gas: string | number | bigint;
191
+ } | undefined;
192
+ maxPriorityFeePerGas?: {
193
+ feePerDaGas: string | number | bigint;
194
+ feePerL2Gas: string | number | bigint;
195
+ } | undefined;
196
+ } | undefined;
197
+ }>>;
198
+ wait: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodLiteral<"NO_WAIT">, z.ZodObject<{
199
+ ignoreDroppedReceiptsFor: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
200
+ timeout: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
201
+ interval: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
202
+ dontThrowOnRevert: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ ignoreDroppedReceiptsFor?: number | undefined;
205
+ timeout?: number | undefined;
206
+ interval?: number | undefined;
207
+ dontThrowOnRevert?: boolean | undefined;
208
+ }, {
209
+ ignoreDroppedReceiptsFor?: number | undefined;
210
+ timeout?: number | undefined;
211
+ interval?: number | undefined;
212
+ dontThrowOnRevert?: boolean | undefined;
213
+ }>]>>;
214
+ additionalScopes: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<import("@aztec/foundation/schemas").ZodFor<AztecAddress>, "many">>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ from: AztecAddress;
217
+ authWitnesses?: import("@aztec/stdlib/auth-witness").AuthWitness[] | undefined;
218
+ capsules?: import("@aztec/stdlib/tx").Capsule[] | undefined;
219
+ fee?: {
220
+ gasSettings?: {
221
+ gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
222
+ teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
223
+ maxFeePerGas?: {
224
+ feePerDaGas: bigint;
225
+ feePerL2Gas: bigint;
226
+ } | undefined;
227
+ maxPriorityFeePerGas?: {
228
+ feePerDaGas: bigint;
229
+ feePerL2Gas: bigint;
230
+ } | undefined;
231
+ } | undefined;
232
+ } | undefined;
233
+ wait?: "NO_WAIT" | {
234
+ ignoreDroppedReceiptsFor?: number | undefined;
235
+ timeout?: number | undefined;
236
+ interval?: number | undefined;
237
+ dontThrowOnRevert?: boolean | undefined;
238
+ } | undefined;
239
+ additionalScopes?: AztecAddress[] | undefined;
240
+ }, {
241
+ from?: any;
242
+ authWitnesses?: string[] | undefined;
243
+ capsules?: string[] | undefined;
244
+ fee?: {
245
+ gasSettings?: {
246
+ gasLimits?: {
247
+ daGas: string | number | bigint;
248
+ l2Gas: string | number | bigint;
249
+ } | undefined;
250
+ teardownGasLimits?: {
251
+ daGas: string | number | bigint;
252
+ l2Gas: string | number | bigint;
253
+ } | undefined;
254
+ maxFeePerGas?: {
255
+ feePerDaGas: string | number | bigint;
256
+ feePerL2Gas: string | number | bigint;
257
+ } | undefined;
258
+ maxPriorityFeePerGas?: {
259
+ feePerDaGas: string | number | bigint;
260
+ feePerL2Gas: string | number | bigint;
261
+ } | undefined;
262
+ } | undefined;
263
+ } | undefined;
264
+ wait?: "NO_WAIT" | {
265
+ ignoreDroppedReceiptsFor?: number | undefined;
266
+ timeout?: number | undefined;
267
+ interval?: number | undefined;
268
+ dontThrowOnRevert?: boolean | undefined;
269
+ } | undefined;
270
+ additionalScopes?: any[] | undefined;
271
+ }>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<Tx>>;
272
+ registerAccount: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<AztecAddress>>;
273
+ };
274
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyX3dhbGxldF9zY2hlbWEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0LXdhbGxldC93b3JrZXJfd2FsbGV0X3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXRDLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFFeEIsaUdBQStGO0FBQy9GLGVBQU8sTUFBTSxrQkFBa0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Q0FJOUIsQ0FBQyJ9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker_wallet_schema.d.ts","sourceRoot":"","sources":["../../src/test-wallet/worker_wallet_schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iGAA+F;AAC/F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI9B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ExecutionPayloadSchema, SendOptionsSchema, WalletSchema } from '@aztec/aztec.js/wallet';
2
+ import { schemas } from '@aztec/foundation/schemas';
3
+ import { AztecAddress } from '@aztec/stdlib/aztec-address';
4
+ import { Tx } from '@aztec/stdlib/tx';
5
+ import { z } from 'zod';
6
+ /** Schema for the WorkerWallet API — extends WalletSchema with proveTx and registerAccount. */ export const WorkerWalletSchema = {
7
+ ...WalletSchema,
8
+ proveTx: z.function().args(ExecutionPayloadSchema, SendOptionsSchema).returns(Tx.schema),
9
+ registerAccount: z.function().args(schemas.Fr, schemas.Fr).returns(AztecAddress.schema)
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/end-to-end",
3
- "version": "0.0.1-commit.fce3e4f",
3
+ "version": "0.0.1-commit.ff7989d6c",
4
4
  "type": "module",
5
5
  "exports": "./dest/index.js",
6
6
  "inherits": [
@@ -8,8 +8,8 @@
8
8
  "./package.local.json"
9
9
  ],
10
10
  "scripts": {
11
- "build": "yarn clean && tsgo -b",
12
- "build:dev": "tsgo -b --watch",
11
+ "build": "yarn clean && ../scripts/tsc.sh",
12
+ "build:dev": "../scripts/tsc.sh --watch",
13
13
  "clean": "rm -rf ./dest .tsbuildinfo",
14
14
  "test:with-alerts": "./scripts/test-with-alerts.sh",
15
15
  "test:e2e": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000 --forceExit",
@@ -22,46 +22,49 @@
22
22
  "test:integration:run": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --no-cache --runInBand --config jest.integration.config.json",
23
23
  "test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests src/fixtures",
24
24
  "test:compose": "./scripts/run_test.sh compose",
25
+ "test:ha": "./scripts/run_test.sh ha",
25
26
  "formatting": "run -T prettier --check ./src && run -T eslint ./src"
26
27
  },
27
28
  "dependencies": {
28
- "@aztec/accounts": "0.0.1-commit.fce3e4f",
29
- "@aztec/archiver": "0.0.1-commit.fce3e4f",
30
- "@aztec/aztec": "0.0.1-commit.fce3e4f",
31
- "@aztec/aztec-node": "0.0.1-commit.fce3e4f",
32
- "@aztec/aztec.js": "0.0.1-commit.fce3e4f",
33
- "@aztec/bb-prover": "0.0.1-commit.fce3e4f",
34
- "@aztec/bb.js": "0.0.1-commit.fce3e4f",
35
- "@aztec/blob-lib": "0.0.1-commit.fce3e4f",
36
- "@aztec/blob-sink": "0.0.1-commit.fce3e4f",
37
- "@aztec/bot": "0.0.1-commit.fce3e4f",
38
- "@aztec/cli": "0.0.1-commit.fce3e4f",
39
- "@aztec/constants": "0.0.1-commit.fce3e4f",
40
- "@aztec/entrypoints": "0.0.1-commit.fce3e4f",
41
- "@aztec/epoch-cache": "0.0.1-commit.fce3e4f",
42
- "@aztec/ethereum": "0.0.1-commit.fce3e4f",
43
- "@aztec/foundation": "0.0.1-commit.fce3e4f",
44
- "@aztec/kv-store": "0.0.1-commit.fce3e4f",
45
- "@aztec/l1-artifacts": "0.0.1-commit.fce3e4f",
46
- "@aztec/merkle-tree": "0.0.1-commit.fce3e4f",
47
- "@aztec/node-keystore": "0.0.1-commit.fce3e4f",
48
- "@aztec/noir-contracts.js": "0.0.1-commit.fce3e4f",
49
- "@aztec/noir-noirc_abi": "0.0.1-commit.fce3e4f",
50
- "@aztec/noir-protocol-circuits-types": "0.0.1-commit.fce3e4f",
51
- "@aztec/noir-test-contracts.js": "0.0.1-commit.fce3e4f",
52
- "@aztec/p2p": "0.0.1-commit.fce3e4f",
53
- "@aztec/protocol-contracts": "0.0.1-commit.fce3e4f",
54
- "@aztec/prover-client": "0.0.1-commit.fce3e4f",
55
- "@aztec/prover-node": "0.0.1-commit.fce3e4f",
56
- "@aztec/pxe": "0.0.1-commit.fce3e4f",
57
- "@aztec/sequencer-client": "0.0.1-commit.fce3e4f",
58
- "@aztec/simulator": "0.0.1-commit.fce3e4f",
59
- "@aztec/slasher": "0.0.1-commit.fce3e4f",
60
- "@aztec/stdlib": "0.0.1-commit.fce3e4f",
61
- "@aztec/telemetry-client": "0.0.1-commit.fce3e4f",
62
- "@aztec/test-wallet": "0.0.1-commit.fce3e4f",
63
- "@aztec/validator-client": "0.0.1-commit.fce3e4f",
64
- "@aztec/world-state": "0.0.1-commit.fce3e4f",
29
+ "@aztec/accounts": "0.0.1-commit.ff7989d6c",
30
+ "@aztec/archiver": "0.0.1-commit.ff7989d6c",
31
+ "@aztec/aztec": "0.0.1-commit.ff7989d6c",
32
+ "@aztec/aztec-node": "0.0.1-commit.ff7989d6c",
33
+ "@aztec/aztec.js": "0.0.1-commit.ff7989d6c",
34
+ "@aztec/bb-prover": "0.0.1-commit.ff7989d6c",
35
+ "@aztec/bb.js": "0.0.1-commit.ff7989d6c",
36
+ "@aztec/blob-client": "0.0.1-commit.ff7989d6c",
37
+ "@aztec/blob-lib": "0.0.1-commit.ff7989d6c",
38
+ "@aztec/bot": "0.0.1-commit.ff7989d6c",
39
+ "@aztec/cli": "0.0.1-commit.ff7989d6c",
40
+ "@aztec/constants": "0.0.1-commit.ff7989d6c",
41
+ "@aztec/entrypoints": "0.0.1-commit.ff7989d6c",
42
+ "@aztec/epoch-cache": "0.0.1-commit.ff7989d6c",
43
+ "@aztec/ethereum": "0.0.1-commit.ff7989d6c",
44
+ "@aztec/foundation": "0.0.1-commit.ff7989d6c",
45
+ "@aztec/kv-store": "0.0.1-commit.ff7989d6c",
46
+ "@aztec/l1-artifacts": "0.0.1-commit.ff7989d6c",
47
+ "@aztec/merkle-tree": "0.0.1-commit.ff7989d6c",
48
+ "@aztec/node-keystore": "0.0.1-commit.ff7989d6c",
49
+ "@aztec/noir-contracts.js": "0.0.1-commit.ff7989d6c",
50
+ "@aztec/noir-noirc_abi": "0.0.1-commit.ff7989d6c",
51
+ "@aztec/noir-protocol-circuits-types": "0.0.1-commit.ff7989d6c",
52
+ "@aztec/noir-test-contracts.js": "0.0.1-commit.ff7989d6c",
53
+ "@aztec/p2p": "0.0.1-commit.ff7989d6c",
54
+ "@aztec/protocol-contracts": "0.0.1-commit.ff7989d6c",
55
+ "@aztec/prover-client": "0.0.1-commit.ff7989d6c",
56
+ "@aztec/prover-node": "0.0.1-commit.ff7989d6c",
57
+ "@aztec/pxe": "0.0.1-commit.ff7989d6c",
58
+ "@aztec/sequencer-client": "0.0.1-commit.ff7989d6c",
59
+ "@aztec/simulator": "0.0.1-commit.ff7989d6c",
60
+ "@aztec/slasher": "0.0.1-commit.ff7989d6c",
61
+ "@aztec/stdlib": "0.0.1-commit.ff7989d6c",
62
+ "@aztec/telemetry-client": "0.0.1-commit.ff7989d6c",
63
+ "@aztec/validator-client": "0.0.1-commit.ff7989d6c",
64
+ "@aztec/validator-ha-signer": "0.0.1-commit.ff7989d6c",
65
+ "@aztec/wallet-sdk": "0.0.1-commit.ff7989d6c",
66
+ "@aztec/wallets": "0.0.1-commit.ff7989d6c",
67
+ "@aztec/world-state": "0.0.1-commit.ff7989d6c",
65
68
  "@iarna/toml": "^2.2.5",
66
69
  "@jest/globals": "^30.0.0",
67
70
  "@noble/curves": "=1.0.0",
@@ -89,6 +92,7 @@
89
92
  "lodash.every": "^4.6.0",
90
93
  "lodash.omit": "^4.5.0",
91
94
  "msgpackr": "^1.11.2",
95
+ "pg": "^8.17.1",
92
96
  "process": "^0.11.10",
93
97
  "snappy": "^7.2.2",
94
98
  "stream-browserify": "^3.0.0",
@@ -107,7 +111,8 @@
107
111
  "@types/jest": "^30.0.0",
108
112
  "@types/js-yaml": "^4.0.9",
109
113
  "@types/lodash.chunk": "^4.2.9",
110
- "@typescript/native-preview": "7.0.0-dev.20251126.1",
114
+ "@types/pg": "^8",
115
+ "@typescript/native-preview": "7.0.0-dev.20260113.1",
111
116
  "concurrently": "^7.6.0",
112
117
  "jest": "^30.0.0",
113
118
  "jest-extended": "^6.0.0",
@@ -7,7 +7,13 @@ import {
7
7
  import type { Logger } from '@aztec/aztec.js/log';
8
8
  import { createLogger } from '@aztec/foundation/log';
9
9
  import { type PrivateExecutionStep, serializePrivateExecutionSteps } from '@aztec/stdlib/kernel';
10
- import type { ProvingStats, ProvingTimings, SimulationStats, SimulationTimings } from '@aztec/stdlib/tx';
10
+ import type {
11
+ ProvingStats,
12
+ ProvingTimings,
13
+ RoundTripStats,
14
+ SimulationStats,
15
+ SimulationTimings,
16
+ } from '@aztec/stdlib/tx';
11
17
 
12
18
  import assert from 'node:assert';
13
19
  import { mkdir, writeFile } from 'node:fs/promises';
@@ -119,6 +125,7 @@ type ClientFlowBenchmark = {
119
125
  timings: Omit<ProvingTimings & SimulationTimings, 'perFunction'> & { witgen: number };
120
126
  maxMemory: number;
121
127
  rpc: Record<string, CallRecording>;
128
+ roundTrips: RoundTripStats;
122
129
  proverType: ProverType;
123
130
  minimumTrace: StructuredTrace;
124
131
  totalGateCount: number;
@@ -212,6 +219,10 @@ export function generateBenchmark(
212
219
  }, []);
213
220
  const timings = stats.timings;
214
221
  const totalGateCount = steps[steps.length - 1].accGateCount;
222
+ const nodeRPCCalls = stats.nodeRPCCalls ?? {
223
+ perMethod: {},
224
+ roundTrips: { roundTrips: 0, totalBlockingTime: 0, roundTripDurations: [], roundTripMethods: [] },
225
+ };
215
226
  return {
216
227
  name: flow,
217
228
  timings: {
@@ -221,7 +232,7 @@ export function generateBenchmark(
221
232
  unaccounted: timings.unaccounted,
222
233
  witgen: timings.perFunction.reduce((acc, fn) => acc + fn.time, 0),
223
234
  },
224
- rpc: Object.entries(stats.nodeRPCCalls ?? {}).reduce(
235
+ rpc: Object.entries(nodeRPCCalls.perMethod).reduce(
225
236
  (acc, [RPCName, RPCCalls]) => {
226
237
  const total = RPCCalls.times.reduce((sum, time) => sum + time, 0);
227
238
  const calls = RPCCalls.times.length;
@@ -236,6 +247,7 @@ export function generateBenchmark(
236
247
  },
237
248
  {} as Record<string, CallRecording>,
238
249
  ),
250
+ roundTrips: nodeRPCCalls.roundTrips,
239
251
  maxMemory,
240
252
  proverType,
241
253
  minimumTrace: minimumTrace!,
@@ -280,6 +292,16 @@ export function convertProfileToGHBenchmark(benchmark: ClientFlowBenchmark): Git
280
292
  value: totalRPCCalls,
281
293
  unit: 'calls',
282
294
  },
295
+ {
296
+ name: `${benchmark.name}/round_trips`,
297
+ value: benchmark.roundTrips.roundTrips,
298
+ unit: 'round_trips',
299
+ },
300
+ {
301
+ name: `${benchmark.name}/round_trips_blocking_time`,
302
+ value: benchmark.roundTrips.totalBlockingTime,
303
+ unit: 'ms',
304
+ },
283
305
  ];
284
306
  if (benchmark.timings.proving) {
285
307
  benches.push({