@aztec/end-to-end 0.0.1-commit.7b97ef96e → 0.0.1-commit.7cbc774

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 (189) hide show
  1. package/README.md +27 -0
  2. package/dest/bench/client_flows/benchmark.d.ts +15 -1
  3. package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
  4. package/dest/bench/client_flows/benchmark.js +17 -0
  5. package/dest/bench/client_flows/client_flows_benchmark.d.ts +2 -2
  6. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  7. package/dest/bench/client_flows/client_flows_benchmark.js +33 -36
  8. package/dest/bench/utils.d.ts +1 -1
  9. package/dest/bench/utils.d.ts.map +1 -1
  10. package/dest/bench/utils.js +8 -3
  11. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +5 -4
  12. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
  13. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +28 -19
  14. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +15 -4
  15. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  16. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +39 -7
  17. package/dest/e2e_deploy_contract/deploy_test.d.ts +3 -3
  18. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  19. package/dest/e2e_deploy_contract/deploy_test.js +2 -1
  20. package/dest/e2e_epochs/epochs_test.d.ts +25 -2
  21. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  22. package/dest/e2e_epochs/epochs_test.js +88 -14
  23. package/dest/e2e_fees/fees_test.d.ts +5 -2
  24. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  25. package/dest/e2e_fees/fees_test.js +45 -12
  26. package/dest/e2e_nested_contract/nested_contract_test.d.ts +3 -3
  27. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
  28. package/dest/e2e_nested_contract/nested_contract_test.js +6 -7
  29. package/dest/e2e_p2p/inactivity_slash_test.d.ts +1 -1
  30. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -1
  31. package/dest/e2e_p2p/inactivity_slash_test.js +5 -3
  32. package/dest/e2e_p2p/p2p_network.d.ts +13 -11
  33. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  34. package/dest/e2e_p2p/p2p_network.js +65 -43
  35. package/dest/e2e_p2p/reqresp/utils.d.ts +1 -1
  36. package/dest/e2e_p2p/reqresp/utils.d.ts.map +1 -1
  37. package/dest/e2e_p2p/reqresp/utils.js +42 -13
  38. package/dest/e2e_p2p/shared.d.ts +25 -7
  39. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  40. package/dest/e2e_p2p/shared.js +73 -50
  41. package/dest/e2e_token_contract/token_contract_test.d.ts +3 -3
  42. package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
  43. package/dest/e2e_token_contract/token_contract_test.js +15 -13
  44. package/dest/fixtures/authwit_proxy.d.ts +3 -3
  45. package/dest/fixtures/authwit_proxy.d.ts.map +1 -1
  46. package/dest/fixtures/authwit_proxy.js +4 -0
  47. package/dest/fixtures/e2e_prover_test.d.ts +6 -5
  48. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  49. package/dest/fixtures/e2e_prover_test.js +13 -17
  50. package/dest/fixtures/elu_monitor.d.ts +21 -0
  51. package/dest/fixtures/elu_monitor.d.ts.map +1 -0
  52. package/dest/fixtures/elu_monitor.js +102 -0
  53. package/dest/fixtures/fixtures.d.ts +73 -1
  54. package/dest/fixtures/fixtures.d.ts.map +1 -1
  55. package/dest/fixtures/fixtures.js +68 -0
  56. package/dest/fixtures/get_bb_config.d.ts +1 -1
  57. package/dest/fixtures/get_bb_config.d.ts.map +1 -1
  58. package/dest/fixtures/get_bb_config.js +5 -5
  59. package/dest/fixtures/ha_setup.d.ts +2 -2
  60. package/dest/fixtures/ha_setup.d.ts.map +1 -1
  61. package/dest/fixtures/ha_setup.js +1 -1
  62. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts +25 -0
  63. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts.map +1 -0
  64. package/dest/fixtures/schnorr_hardcoded_account_contract.js +37 -0
  65. package/dest/fixtures/setup.d.ts +45 -14
  66. package/dest/fixtures/setup.d.ts.map +1 -1
  67. package/dest/fixtures/setup.js +138 -29
  68. package/dest/fixtures/setup_p2p_test.d.ts +10 -6
  69. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  70. package/dest/fixtures/setup_p2p_test.js +8 -8
  71. package/dest/fixtures/token_utils.d.ts +1 -1
  72. package/dest/fixtures/token_utils.d.ts.map +1 -1
  73. package/dest/fixtures/token_utils.js +2 -5
  74. package/dest/fixtures/utils.d.ts +2 -2
  75. package/dest/fixtures/utils.d.ts.map +1 -1
  76. package/dest/fixtures/utils.js +1 -1
  77. package/dest/forward-compatibility/wallet_rpc_client.d.ts +7 -0
  78. package/dest/forward-compatibility/wallet_rpc_client.d.ts.map +1 -0
  79. package/dest/forward-compatibility/wallet_rpc_client.js +15 -0
  80. package/dest/forward-compatibility/wallet_service.d.ts +3 -0
  81. package/dest/forward-compatibility/wallet_service.d.ts.map +1 -0
  82. package/dest/forward-compatibility/wallet_service.js +109 -0
  83. package/dest/install_legacy_contracts.d.cts +10 -0
  84. package/dest/install_legacy_contracts.d.cts.map +1 -0
  85. package/dest/legacy-jest-resolver.d.cts +3 -0
  86. package/dest/legacy-jest-resolver.d.cts.map +1 -0
  87. package/dest/shared/cross_chain_test_harness.d.ts +4 -2
  88. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  89. package/dest/shared/cross_chain_test_harness.js +22 -18
  90. package/dest/shared/gas_portal_test_harness.d.ts +8 -5
  91. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  92. package/dest/shared/gas_portal_test_harness.js +19 -10
  93. package/dest/shared/jest_setup.js +41 -1
  94. package/dest/shared/submit-transactions.d.ts +1 -1
  95. package/dest/shared/submit-transactions.d.ts.map +1 -1
  96. package/dest/shared/submit-transactions.js +1 -1
  97. package/dest/shared/uniswap_l1_l2.d.ts +1 -1
  98. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  99. package/dest/shared/uniswap_l1_l2.js +60 -39
  100. package/dest/shared/wait_for_l1_to_l2_message.d.ts +13 -0
  101. package/dest/shared/wait_for_l1_to_l2_message.d.ts.map +1 -0
  102. package/dest/shared/wait_for_l1_to_l2_message.js +10 -0
  103. package/dest/simulators/lending_simulator.d.ts +10 -3
  104. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  105. package/dest/simulators/lending_simulator.js +26 -14
  106. package/dest/simulators/token_simulator.d.ts +1 -1
  107. package/dest/simulators/token_simulator.d.ts.map +1 -1
  108. package/dest/simulators/token_simulator.js +2 -2
  109. package/dest/spartan/setup_test_wallets.d.ts +4 -2
  110. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  111. package/dest/spartan/setup_test_wallets.js +72 -39
  112. package/dest/spartan/tx_metrics.d.ts +18 -4
  113. package/dest/spartan/tx_metrics.d.ts.map +1 -1
  114. package/dest/spartan/tx_metrics.js +74 -21
  115. package/dest/spartan/utils/config.d.ts +10 -30
  116. package/dest/spartan/utils/config.d.ts.map +1 -1
  117. package/dest/spartan/utils/config.js +3 -1
  118. package/dest/spartan/utils/index.d.ts +3 -1
  119. package/dest/spartan/utils/index.d.ts.map +1 -1
  120. package/dest/spartan/utils/index.js +4 -0
  121. package/dest/spartan/utils/nodes.d.ts +4 -5
  122. package/dest/spartan/utils/nodes.d.ts.map +1 -1
  123. package/dest/spartan/utils/nodes.js +11 -11
  124. package/dest/spartan/utils/pod_logs.d.ts +25 -0
  125. package/dest/spartan/utils/pod_logs.d.ts.map +1 -0
  126. package/dest/spartan/utils/pod_logs.js +74 -0
  127. package/dest/test-wallet/test_wallet.d.ts +25 -23
  128. package/dest/test-wallet/test_wallet.d.ts.map +1 -1
  129. package/dest/test-wallet/test_wallet.js +146 -87
  130. package/dest/test-wallet/utils.d.ts +3 -3
  131. package/dest/test-wallet/utils.d.ts.map +1 -1
  132. package/dest/test-wallet/utils.js +2 -7
  133. package/dest/test-wallet/wallet_worker_script.js +42 -34
  134. package/dest/test-wallet/worker_wallet.d.ts +5 -4
  135. package/dest/test-wallet/worker_wallet.d.ts.map +1 -1
  136. package/dest/test-wallet/worker_wallet.js +56 -4
  137. package/dest/test-wallet/worker_wallet_schema.d.ts +110 -224
  138. package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -1
  139. package/dest/test-wallet/worker_wallet_schema.js +14 -2
  140. package/package.json +49 -46
  141. package/src/bench/client_flows/benchmark.ts +19 -0
  142. package/src/bench/client_flows/client_flows_benchmark.ts +60 -41
  143. package/src/bench/utils.ts +9 -3
  144. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +42 -24
  145. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +49 -11
  146. package/src/e2e_deploy_contract/deploy_test.ts +3 -2
  147. package/src/e2e_epochs/epochs_test.ts +99 -11
  148. package/src/e2e_fees/fees_test.ts +50 -10
  149. package/src/e2e_nested_contract/nested_contract_test.ts +9 -5
  150. package/src/e2e_p2p/inactivity_slash_test.ts +5 -3
  151. package/src/e2e_p2p/p2p_network.ts +82 -60
  152. package/src/e2e_p2p/reqresp/utils.ts +51 -12
  153. package/src/e2e_p2p/shared.ts +92 -64
  154. package/src/e2e_token_contract/token_contract_test.ts +28 -10
  155. package/src/fixtures/authwit_proxy.ts +4 -0
  156. package/src/fixtures/e2e_prover_test.ts +22 -19
  157. package/src/fixtures/elu_monitor.ts +126 -0
  158. package/src/fixtures/fixtures.ts +86 -0
  159. package/src/fixtures/get_bb_config.ts +7 -6
  160. package/src/fixtures/ha_setup.ts +4 -2
  161. package/src/fixtures/schnorr_hardcoded_account_contract.ts +49 -0
  162. package/src/fixtures/setup.ts +179 -38
  163. package/src/fixtures/setup_p2p_test.ts +13 -9
  164. package/src/fixtures/token_utils.ts +1 -2
  165. package/src/fixtures/utils.ts +2 -0
  166. package/src/forward-compatibility/wallet_rpc_client.ts +14 -0
  167. package/src/forward-compatibility/wallet_service.ts +104 -0
  168. package/src/guides/up_quick_start.sh +0 -2
  169. package/src/install_legacy_contracts.cjs +75 -0
  170. package/src/legacy-jest-resolver.cjs +112 -0
  171. package/src/shared/cross_chain_test_harness.ts +27 -13
  172. package/src/shared/gas_portal_test_harness.ts +21 -11
  173. package/src/shared/jest_setup.ts +51 -1
  174. package/src/shared/submit-transactions.ts +1 -4
  175. package/src/shared/uniswap_l1_l2.ts +77 -50
  176. package/src/shared/wait_for_l1_to_l2_message.ts +23 -0
  177. package/src/simulators/lending_simulator.ts +32 -14
  178. package/src/simulators/token_simulator.ts +6 -2
  179. package/src/spartan/setup_test_wallets.ts +91 -37
  180. package/src/spartan/tx_metrics.ts +82 -24
  181. package/src/spartan/utils/config.ts +2 -0
  182. package/src/spartan/utils/index.ts +6 -0
  183. package/src/spartan/utils/nodes.ts +17 -12
  184. package/src/spartan/utils/pod_logs.ts +99 -0
  185. package/src/test-wallet/test_wallet.ts +174 -104
  186. package/src/test-wallet/utils.ts +3 -7
  187. package/src/test-wallet/wallet_worker_script.ts +48 -31
  188. package/src/test-wallet/worker_wallet.ts +60 -7
  189. package/src/test-wallet/worker_wallet_schema.ts +2 -2
@@ -3,32 +3,33 @@ import { Tx } from '@aztec/stdlib/tx';
3
3
  import { z } from 'zod';
4
4
  /** Schema for the WorkerWallet API — extends WalletSchema with proveTx and registerAccount. */
5
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>>;
6
+ getPrivateEvents: z.ZodFunction<z.ZodTuple<[eventMetadata: z.ZodType<import("@aztec/stdlib/abi").EventMetadataDefinition, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/abi").EventMetadataDefinition, any>>, eventFilter: z.ZodType<import("@aztec/aztec.js/wallet").PrivateEventFilter, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").PrivateEventFilter, any>>], null>, z.ZodType<import("@aztec/aztec.js/wallet").PrivateEvent<unknown>[], any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").PrivateEvent<unknown>[], any>>>;
7
+ getChainInfo: z.ZodFunction<z.ZodTuple<[], null>, z.ZodType<import("@aztec/entrypoints/interfaces").ChainInfo, any, z.core.$ZodTypeInternals<import("@aztec/entrypoints/interfaces").ChainInfo, any>>>;
8
+ getContractMetadata: z.ZodFunction<z.ZodTuple<[address: z.ZodType<AztecAddress, any, z.core.$ZodTypeInternals<AztecAddress, any>>], null>, z.ZodType<import("@aztec/aztec.js/wallet").ContractMetadata, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").ContractMetadata, any>>>;
9
+ getContractClassMetadata: z.ZodFunction<z.ZodTuple<[id: z.ZodType<import("@aztec/foundation/schemas").Fr, any, z.core.$ZodTypeInternals<import("@aztec/foundation/schemas").Fr, any>>], null>, z.ZodType<import("@aztec/aztec.js/wallet").ContractClassMetadata, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").ContractClassMetadata, any>>>;
10
+ registerSender: z.ZodFunction<z.ZodTuple<[address: z.ZodType<AztecAddress, any, z.core.$ZodTypeInternals<AztecAddress, any>>, alias: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<string | undefined, any, z.core.$ZodTypeInternals<string | undefined, any>>>], null>, z.ZodType<AztecAddress, any, z.core.$ZodTypeInternals<AztecAddress, any>>>;
11
+ getAddressBook: z.ZodFunction<z.ZodTuple<[], null>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], any>>>;
12
+ getAccounts: z.ZodFunction<z.ZodTuple<[], null>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], any>>>;
13
+ registerContract: z.ZodFunction<z.ZodTuple<[instance: z.ZodType<import("@aztec/stdlib/contract").ContractInstanceWithAddress, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/contract").ContractInstanceWithAddress, any>>, artifact: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<import("@aztec/stdlib/abi").ContractArtifact | undefined, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/abi").ContractArtifact | undefined, any>>>, secretKey: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<import("@aztec/foundation/schemas").Fr | undefined, any, z.core.$ZodTypeInternals<import("@aztec/foundation/schemas").Fr | undefined, any>>>], null>, z.ZodType<import("@aztec/stdlib/contract").ContractInstanceWithAddress, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/contract").ContractInstanceWithAddress, any>>>;
14
+ registerContractClass: z.ZodFunction<z.ZodTuple<[artifact: z.ZodType<import("@aztec/stdlib/abi").ContractArtifact, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/abi").ContractArtifact, any>>], null>, z.ZodType<void, any, z.core.$ZodTypeInternals<void, any>>>;
15
+ simulateTx: z.ZodFunction<z.ZodTuple<[exec: z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/tx").ExecutionPayload, any>>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SimulateOptions, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").SimulateOptions, any>>], null>, z.ZodType<import("@aztec/aztec.js/wallet").TxSimulationResultWithAppOffset, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").TxSimulationResultWithAppOffset, any>>>;
16
+ executeUtility: z.ZodFunction<z.ZodTuple<[call: z.ZodType<import("@aztec/stdlib/abi").FunctionCall, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/abi").FunctionCall, any>>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ExecuteUtilityOptions, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").ExecuteUtilityOptions, any>>], null>, z.ZodType<import("@aztec/stdlib/tx").UtilityExecutionResult, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/tx").UtilityExecutionResult, any>>>;
17
+ profileTx: z.ZodFunction<z.ZodTuple<[exec: z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/tx").ExecutionPayload, any>>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ProfileOptions, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").ProfileOptions, any>>], null>, z.ZodType<import("@aztec/stdlib/tx").TxProfileResult, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/tx").TxProfileResult, any>>>;
18
+ sendTx: z.ZodFunction<z.ZodTuple<[exec: z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/tx").ExecutionPayload, any>>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SendOptions<import("@aztec/aztec.js/contracts").InteractionWaitOptions>, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").SendOptions<import("@aztec/aztec.js/contracts").InteractionWaitOptions>, any>>], null>, z.ZodType<import("@aztec/aztec.js/contracts").TxSendResultImmediate | import("@aztec/aztec.js/contracts").TxSendResultMined<import("@aztec/stdlib/tx").TxReceipt>, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/contracts").TxSendResultImmediate | import("@aztec/aztec.js/contracts").TxSendResultMined<import("@aztec/stdlib/tx").TxReceipt>, any>>>;
19
+ createAuthWit: z.ZodFunction<z.ZodTuple<[from: z.ZodType<AztecAddress, any, z.core.$ZodTypeInternals<AztecAddress, any>>, messageHashOrIntent: z.ZodType<import("@aztec/aztec.js/authorization").CallIntent | import("@aztec/aztec.js/authorization").IntentInnerHash, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/authorization").CallIntent | import("@aztec/aztec.js/authorization").IntentInnerHash, any>>], null>, z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, any, z.core.$ZodTypeInternals<import("@aztec/stdlib/auth-witness").AuthWitness, any>>>;
20
+ requestCapabilities: z.ZodFunction<z.ZodTuple<[manifest: z.ZodType<import("@aztec/aztec.js/wallet").AppCapabilities, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").AppCapabilities, any>>], null>, z.ZodType<import("@aztec/aztec.js/wallet").WalletCapabilities, any, z.core.$ZodTypeInternals<import("@aztec/aztec.js/wallet").WalletCapabilities, any>>>;
21
+ batch: z.ZodFunction<z.ZodTuple<[methods: z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethod[], any, z.core.$ZodTypeInternals<readonly import("@aztec/aztec.js/wallet").BatchedMethod[], any>>], null>, z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethodResultWrapper<import("@aztec/aztec.js/wallet").BatchedMethod>[], any, z.core.$ZodTypeInternals<readonly import("@aztec/aztec.js/wallet").BatchedMethodResultWrapper<import("@aztec/aztec.js/wallet").BatchedMethod>[], any>>>;
21
22
  proveTx: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
22
- calls: z.ZodArray<z.ZodEffects<z.ZodObject<{
23
+ calls: z.ZodArray<z.ZodPipe<z.ZodObject<{
23
24
  name: z.ZodString;
24
25
  to: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
25
26
  selector: import("@aztec/foundation/schemas").ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
26
- type: z.ZodNativeEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
27
+ type: z.ZodEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
27
28
  isStatic: z.ZodBoolean;
28
29
  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, {
30
+ args: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("@aztec/foundation/schemas").Fr>>;
31
+ returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, unknown, z.core.$ZodTypeInternals<import("@aztec/stdlib/abi").AbiType, unknown>>>;
32
+ }, z.core.$strip>, z.ZodTransform<import("@aztec/stdlib/abi").FunctionCall, {
32
33
  name: string;
33
34
  to: AztecAddress;
34
35
  selector: import("@aztec/stdlib/abi").FunctionSelector;
@@ -37,238 +38,123 @@ export declare const WorkerWalletSchema: {
37
38
  hideMsgSender: boolean;
38
39
  args: import("@aztec/foundation/schemas").Fr[];
39
40
  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, {
41
+ }>>>;
42
+ authWitnesses: z.ZodArray<z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, string, z.core.$ZodTypeInternals<import("@aztec/stdlib/auth-witness").AuthWitness, string>>>;
43
+ capsules: z.ZodArray<z.ZodType<import("@aztec/stdlib/tx").Capsule, string, z.core.$ZodTypeInternals<import("@aztec/stdlib/tx").Capsule, string>>>;
44
+ extraHashedArgs: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("@aztec/stdlib/tx").HashedValues>>;
45
+ feePayer: z.ZodPipe<z.ZodOptional<z.ZodNullable<import("@aztec/foundation/schemas").ZodFor<AztecAddress>>>, z.ZodTransform<AztecAddress | undefined, AztecAddress | null | undefined>>;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ from: z.ZodUnion<readonly [import("@aztec/foundation/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"NO_FROM">]>;
48
+ authWitnesses: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, string, z.core.$ZodTypeInternals<import("@aztec/stdlib/auth-witness").AuthWitness, string>>>>>, z.ZodTransform<import("@aztec/stdlib/auth-witness").AuthWitness[] | undefined, import("@aztec/stdlib/auth-witness").AuthWitness[] | null | undefined>>;
49
+ capsules: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<import("@aztec/stdlib/tx").Capsule, string, z.core.$ZodTypeInternals<import("@aztec/stdlib/tx").Capsule, string>>>>>, z.ZodTransform<import("@aztec/stdlib/tx").Capsule[] | undefined, import("@aztec/stdlib/tx").Capsule[] | null | undefined>>;
50
+ fee: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
+ gasSettings: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ gasLimits: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
53
+ daGas: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodCoercedNumber<string | number | bigint>>;
54
+ l2Gas: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodCoercedNumber<string | number | bigint>>;
55
+ }, z.core.$strip>, z.ZodTransform<import("@aztec/stdlib/gas").Gas, {
94
56
  daGas: number;
95
57
  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, {
58
+ }>>>>, z.ZodTransform<import("@aztec/stdlib/gas").Gas | undefined, import("@aztec/stdlib/gas").Gas | null | undefined>>;
59
+ teardownGasLimits: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
60
+ daGas: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodCoercedNumber<string | number | bigint>>;
61
+ l2Gas: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodCoercedNumber<string | number | bigint>>;
62
+ }, z.core.$strip>, z.ZodTransform<import("@aztec/stdlib/gas").Gas, {
107
63
  daGas: number;
108
64
  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, {
65
+ }>>>>, z.ZodTransform<import("@aztec/stdlib/gas").Gas | undefined, import("@aztec/stdlib/gas").Gas | null | undefined>>;
66
+ maxFeePerGas: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
67
+ feePerDaGas: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodCoercedBigInt<string | number | bigint>>;
68
+ feePerL2Gas: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodCoercedBigInt<string | number | bigint>>;
69
+ }, z.core.$strip>>>, z.ZodTransform<{
120
70
  feePerDaGas: bigint;
121
71
  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, {
72
+ } | undefined, {
130
73
  feePerDaGas: bigint;
131
74
  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?: {
75
+ } | null | undefined>>;
76
+ maxPriorityFeePerGas: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
+ feePerDaGas: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodCoercedBigInt<string | number | bigint>>;
78
+ feePerL2Gas: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodCoercedBigInt<string | number | bigint>>;
79
+ }, z.core.$strip>>>, z.ZodTransform<{
140
80
  feePerDaGas: bigint;
141
81
  feePerL2Gas: bigint;
142
- } | undefined;
143
- maxPriorityFeePerGas?: {
82
+ } | undefined, {
144
83
  feePerDaGas: bigint;
145
84
  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?: {
85
+ } | null | undefined>>;
86
+ }, z.core.$strip>>>, z.ZodTransform<{
87
+ gasLimits: import("@aztec/stdlib/gas").Gas | undefined;
88
+ teardownGasLimits: import("@aztec/stdlib/gas").Gas | undefined;
89
+ maxFeePerGas: {
170
90
  feePerDaGas: bigint;
171
91
  feePerL2Gas: bigint;
172
92
  } | undefined;
173
- maxPriorityFeePerGas?: {
93
+ maxPriorityFeePerGas: {
174
94
  feePerDaGas: bigint;
175
95
  feePerL2Gas: bigint;
176
96
  } | 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;
97
+ } | undefined, {
98
+ gasLimits: import("@aztec/stdlib/gas").Gas | undefined;
99
+ teardownGasLimits: import("@aztec/stdlib/gas").Gas | undefined;
100
+ maxFeePerGas: {
101
+ feePerDaGas: bigint;
102
+ feePerL2Gas: bigint;
191
103
  } | undefined;
192
- maxPriorityFeePerGas?: {
193
- feePerDaGas: string | number | bigint;
194
- feePerL2Gas: string | number | bigint;
104
+ maxPriorityFeePerGas: {
105
+ feePerDaGas: bigint;
106
+ feePerL2Gas: bigint;
195
107
  } | 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?: {
108
+ } | null | undefined>>;
109
+ congestionEstimate: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@aztec/stdlib/gas").ManaUsageEstimate>>>, z.ZodTransform<import("@aztec/stdlib/gas").ManaUsageEstimate | undefined, import("@aztec/stdlib/gas").ManaUsageEstimate | null | undefined>>;
110
+ }, z.core.$strip>>>, z.ZodTransform<{
111
+ gasSettings: {
112
+ gasLimits: import("@aztec/stdlib/gas").Gas | undefined;
113
+ teardownGasLimits: import("@aztec/stdlib/gas").Gas | undefined;
114
+ maxFeePerGas: {
224
115
  feePerDaGas: bigint;
225
116
  feePerL2Gas: bigint;
226
117
  } | undefined;
227
- maxPriorityFeePerGas?: {
118
+ maxPriorityFeePerGas: {
228
119
  feePerDaGas: bigint;
229
120
  feePerL2Gas: bigint;
230
121
  } | undefined;
231
122
  } | 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;
123
+ congestionEstimate: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
124
+ } | undefined, {
125
+ gasSettings: {
126
+ gasLimits: import("@aztec/stdlib/gas").Gas | undefined;
127
+ teardownGasLimits: import("@aztec/stdlib/gas").Gas | undefined;
128
+ maxFeePerGas: {
129
+ feePerDaGas: bigint;
130
+ feePerL2Gas: bigint;
257
131
  } | undefined;
258
- maxPriorityFeePerGas?: {
259
- feePerDaGas: string | number | bigint;
260
- feePerL2Gas: string | number | bigint;
132
+ maxPriorityFeePerGas: {
133
+ feePerDaGas: bigint;
134
+ feePerL2Gas: bigint;
261
135
  } | undefined;
262
136
  } | 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>>;
137
+ congestionEstimate: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
138
+ } | null | undefined>>;
139
+ wait: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"NO_WAIT">, z.ZodObject<{
140
+ ignoreDroppedReceiptsFor: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
141
+ timeout: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
142
+ interval: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, z.ZodTransform<number | undefined, number | null | undefined>>;
143
+ dontThrowOnRevert: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>;
144
+ }, z.core.$strip>]>>>, z.ZodTransform<NonNullable<"NO_WAIT" | {
145
+ ignoreDroppedReceiptsFor: number | undefined;
146
+ timeout: number | undefined;
147
+ interval: number | undefined;
148
+ dontThrowOnRevert: boolean | undefined;
149
+ }> | undefined, "NO_WAIT" | {
150
+ ignoreDroppedReceiptsFor: number | undefined;
151
+ timeout: number | undefined;
152
+ interval: number | undefined;
153
+ dontThrowOnRevert: boolean | undefined;
154
+ } | null | undefined>>;
155
+ additionalScopes: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<import("@aztec/foundation/schemas").ZodFor<AztecAddress>>>>, z.ZodTransform<AztecAddress[] | undefined, AztecAddress[] | null | undefined>>;
156
+ sendMessagesAs: z.ZodPipe<z.ZodOptional<z.ZodNullable<import("@aztec/foundation/schemas").ZodFor<AztecAddress>>>, z.ZodTransform<AztecAddress | undefined, AztecAddress | null | undefined>>;
157
+ }, z.core.$strip>], null>, import("@aztec/foundation/schemas").ZodFor<Tx>>;
158
+ registerAccount: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/foundation/schemas").Fr, string, z.core.$ZodTypeInternals<import("@aztec/foundation/schemas").Fr, string>>, z.ZodType<import("@aztec/foundation/schemas").Fr, string, z.core.$ZodTypeInternals<import("@aztec/foundation/schemas").Fr, string>>], null>, import("@aztec/foundation/schemas").ZodFor<AztecAddress>>;
273
159
  };
274
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyX3dhbGxldF9zY2hlbWEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0LXdhbGxldC93b3JrZXJfd2FsbGV0X3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXRDLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFFeEIsaUdBQStGO0FBQy9GLGVBQU8sTUFBTSxrQkFBa0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Q0FJOUIsQ0FBQyJ9
160
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyX3dhbGxldF9zY2hlbWEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0LXdhbGxldC93b3JrZXJfd2FsbGV0X3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXRDLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFFeEIsaUdBQStGO0FBQy9GLGVBQU8sTUFBTSxrQkFBa0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Q0FJOUIsQ0FBQyJ9
@@ -1 +1 @@
1
- {"version":3,"file":"worker_wallet_schema.d.ts","sourceRoot":"","sources":["../../src/test-wallet/worker_wallet_schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iGAA+F;AAC/F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI9B,CAAC"}
1
+ {"version":3,"file":"worker_wallet_schema.d.ts","sourceRoot":"","sources":["../../src/test-wallet/worker_wallet_schema.ts"],"names":[],"mappings":"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"}
@@ -5,6 +5,18 @@ import { Tx } from '@aztec/stdlib/tx';
5
5
  import { z } from 'zod';
6
6
  /** Schema for the WorkerWallet API — extends WalletSchema with proveTx and registerAccount. */ export const WorkerWalletSchema = {
7
7
  ...WalletSchema,
8
- proveTx: z.function().args(ExecutionPayloadSchema, SendOptionsSchema).returns(Tx.schema),
9
- registerAccount: z.function().args(schemas.Fr, schemas.Fr).returns(AztecAddress.schema)
8
+ proveTx: z.function({
9
+ input: z.tuple([
10
+ ExecutionPayloadSchema,
11
+ SendOptionsSchema
12
+ ]),
13
+ output: Tx.schema
14
+ }),
15
+ registerAccount: z.function({
16
+ input: z.tuple([
17
+ schemas.Fr,
18
+ schemas.Fr
19
+ ]),
20
+ output: AztecAddress.schema
21
+ })
10
22
  };
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@aztec/end-to-end",
3
- "version": "0.0.1-commit.7b97ef96e",
3
+ "version": "0.0.1-commit.7cbc774",
4
4
  "type": "module",
5
- "exports": "./dest/index.js",
5
+ "exports": {
6
+ ".": "./dest/index.js",
7
+ "./*": "./dest/*"
8
+ },
6
9
  "inherits": [
7
10
  "../package.common.json",
8
11
  "./package.local.json"
@@ -12,12 +15,12 @@
12
15
  "build:dev": "../scripts/tsc.sh --watch",
13
16
  "clean": "rm -rf ./dest .tsbuildinfo",
14
17
  "test:with-alerts": "./scripts/test-with-alerts.sh",
15
- "test:e2e": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000 --forceExit",
18
+ "test:e2e": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000",
16
19
  "test:e2e-docker": "./scripts/run_test.sh simple",
17
20
  "test:e2e-no-docker": "echo 'The command test:e2e-no-docker is now the same as test:e2e. You can now run this dropping the no-docker suffix.'; yarn test:e2e",
18
- "test:profile": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 0x --output-dir \"flame_graph/{pid}.0x\" -- node --experimental-vm-modules ../node_modules/jest/bin/jest.js --runInBand --testTimeout=300000 --forceExit",
21
+ "test:profile": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 0x --output-dir \"flame_graph/{pid}.0x\" -- node --experimental-vm-modules ../node_modules/jest/bin/jest.js --runInBand --testTimeout=300000",
19
22
  "serve:flames": "python3 -m http.server --directory \"flame_graph\" 8000",
20
- "test:debug": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 node --inspect --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000 --forceExit",
23
+ "test:debug": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 node --inspect --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000",
21
24
  "test:integration": "concurrently -k -s first -c reset,dim -n test,anvil \"yarn test:integration:run\" \"anvil\"",
22
25
  "test:integration:run": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --no-cache --runInBand --config jest.integration.config.json",
23
26
  "test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests src/fixtures",
@@ -26,45 +29,45 @@
26
29
  "formatting": "run -T prettier --check ./src && run -T eslint ./src"
27
30
  },
28
31
  "dependencies": {
29
- "@aztec/accounts": "0.0.1-commit.7b97ef96e",
30
- "@aztec/archiver": "0.0.1-commit.7b97ef96e",
31
- "@aztec/aztec": "0.0.1-commit.7b97ef96e",
32
- "@aztec/aztec-node": "0.0.1-commit.7b97ef96e",
33
- "@aztec/aztec.js": "0.0.1-commit.7b97ef96e",
34
- "@aztec/bb-prover": "0.0.1-commit.7b97ef96e",
35
- "@aztec/bb.js": "0.0.1-commit.7b97ef96e",
36
- "@aztec/blob-client": "0.0.1-commit.7b97ef96e",
37
- "@aztec/blob-lib": "0.0.1-commit.7b97ef96e",
38
- "@aztec/bot": "0.0.1-commit.7b97ef96e",
39
- "@aztec/cli": "0.0.1-commit.7b97ef96e",
40
- "@aztec/constants": "0.0.1-commit.7b97ef96e",
41
- "@aztec/entrypoints": "0.0.1-commit.7b97ef96e",
42
- "@aztec/epoch-cache": "0.0.1-commit.7b97ef96e",
43
- "@aztec/ethereum": "0.0.1-commit.7b97ef96e",
44
- "@aztec/foundation": "0.0.1-commit.7b97ef96e",
45
- "@aztec/kv-store": "0.0.1-commit.7b97ef96e",
46
- "@aztec/l1-artifacts": "0.0.1-commit.7b97ef96e",
47
- "@aztec/merkle-tree": "0.0.1-commit.7b97ef96e",
48
- "@aztec/node-keystore": "0.0.1-commit.7b97ef96e",
49
- "@aztec/noir-contracts.js": "0.0.1-commit.7b97ef96e",
50
- "@aztec/noir-noirc_abi": "0.0.1-commit.7b97ef96e",
51
- "@aztec/noir-protocol-circuits-types": "0.0.1-commit.7b97ef96e",
52
- "@aztec/noir-test-contracts.js": "0.0.1-commit.7b97ef96e",
53
- "@aztec/p2p": "0.0.1-commit.7b97ef96e",
54
- "@aztec/protocol-contracts": "0.0.1-commit.7b97ef96e",
55
- "@aztec/prover-client": "0.0.1-commit.7b97ef96e",
56
- "@aztec/prover-node": "0.0.1-commit.7b97ef96e",
57
- "@aztec/pxe": "0.0.1-commit.7b97ef96e",
58
- "@aztec/sequencer-client": "0.0.1-commit.7b97ef96e",
59
- "@aztec/simulator": "0.0.1-commit.7b97ef96e",
60
- "@aztec/slasher": "0.0.1-commit.7b97ef96e",
61
- "@aztec/stdlib": "0.0.1-commit.7b97ef96e",
62
- "@aztec/telemetry-client": "0.0.1-commit.7b97ef96e",
63
- "@aztec/validator-client": "0.0.1-commit.7b97ef96e",
64
- "@aztec/validator-ha-signer": "0.0.1-commit.7b97ef96e",
65
- "@aztec/wallet-sdk": "0.0.1-commit.7b97ef96e",
66
- "@aztec/wallets": "0.0.1-commit.7b97ef96e",
67
- "@aztec/world-state": "0.0.1-commit.7b97ef96e",
32
+ "@aztec/accounts": "0.0.1-commit.7cbc774",
33
+ "@aztec/archiver": "0.0.1-commit.7cbc774",
34
+ "@aztec/aztec": "0.0.1-commit.7cbc774",
35
+ "@aztec/aztec-node": "0.0.1-commit.7cbc774",
36
+ "@aztec/aztec.js": "0.0.1-commit.7cbc774",
37
+ "@aztec/bb-prover": "0.0.1-commit.7cbc774",
38
+ "@aztec/bb.js": "0.0.1-commit.7cbc774",
39
+ "@aztec/blob-client": "0.0.1-commit.7cbc774",
40
+ "@aztec/blob-lib": "0.0.1-commit.7cbc774",
41
+ "@aztec/bot": "0.0.1-commit.7cbc774",
42
+ "@aztec/cli": "0.0.1-commit.7cbc774",
43
+ "@aztec/constants": "0.0.1-commit.7cbc774",
44
+ "@aztec/entrypoints": "0.0.1-commit.7cbc774",
45
+ "@aztec/epoch-cache": "0.0.1-commit.7cbc774",
46
+ "@aztec/ethereum": "0.0.1-commit.7cbc774",
47
+ "@aztec/foundation": "0.0.1-commit.7cbc774",
48
+ "@aztec/kv-store": "0.0.1-commit.7cbc774",
49
+ "@aztec/l1-artifacts": "0.0.1-commit.7cbc774",
50
+ "@aztec/node-keystore": "0.0.1-commit.7cbc774",
51
+ "@aztec/noir-contracts.js": "0.0.1-commit.7cbc774",
52
+ "@aztec/noir-noirc_abi": "0.0.1-commit.7cbc774",
53
+ "@aztec/noir-protocol-circuits-types": "0.0.1-commit.7cbc774",
54
+ "@aztec/noir-test-contracts.js": "0.0.1-commit.7cbc774",
55
+ "@aztec/p2p": "0.0.1-commit.7cbc774",
56
+ "@aztec/protocol-contracts": "0.0.1-commit.7cbc774",
57
+ "@aztec/prover-client": "0.0.1-commit.7cbc774",
58
+ "@aztec/prover-node": "0.0.1-commit.7cbc774",
59
+ "@aztec/pxe": "0.0.1-commit.7cbc774",
60
+ "@aztec/sequencer-client": "0.0.1-commit.7cbc774",
61
+ "@aztec/simulator": "0.0.1-commit.7cbc774",
62
+ "@aztec/slasher": "0.0.1-commit.7cbc774",
63
+ "@aztec/standard-contracts": "0.0.1-commit.7cbc774",
64
+ "@aztec/stdlib": "0.0.1-commit.7cbc774",
65
+ "@aztec/telemetry-client": "0.0.1-commit.7cbc774",
66
+ "@aztec/validator-client": "0.0.1-commit.7cbc774",
67
+ "@aztec/validator-ha-signer": "0.0.1-commit.7cbc774",
68
+ "@aztec/wallet-sdk": "0.0.1-commit.7cbc774",
69
+ "@aztec/wallets": "0.0.1-commit.7cbc774",
70
+ "@aztec/world-state": "0.0.1-commit.7cbc774",
68
71
  "@iarna/toml": "^2.2.5",
69
72
  "@jest/globals": "^30.0.0",
70
73
  "@noble/curves": "=1.0.0",
@@ -76,7 +79,6 @@
76
79
  "@types/koa-static": "^4.0.2",
77
80
  "@types/lodash.every": "^4.6.7",
78
81
  "@types/node": "^22.15.17",
79
- "@viem/anvil": "^0.0.9",
80
82
  "buffer": "^6.0.3",
81
83
  "crypto-browserify": "^3.12.1",
82
84
  "fs-extra": "^11.2.0",
@@ -103,7 +105,7 @@
103
105
  "typescript": "^5.3.3",
104
106
  "util": "^0.12.5",
105
107
  "viem": "npm:@aztec/viem@2.38.2",
106
- "zod": "^3.23.8"
108
+ "zod": "^4"
107
109
  },
108
110
  "devDependencies": {
109
111
  "0x": "^5.7.0",
@@ -161,6 +163,7 @@
161
163
  "moduleNameMapper": {
162
164
  "^(\\.{1,2}/.*)\\.[cm]?js$": "$1"
163
165
  },
166
+ "resolver": "<rootDir>/legacy-jest-resolver.cjs",
164
167
  "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$",
165
168
  "rootDir": "./src",
166
169
  "testTimeout": 120000,