@aztec/end-to-end 0.0.1-commit.b2a5d0dd1 → 0.0.1-commit.b3d3157a

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 (130) hide show
  1. package/dest/bench/client_flows/benchmark.d.ts +15 -1
  2. package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
  3. package/dest/bench/client_flows/benchmark.js +17 -0
  4. package/dest/bench/client_flows/client_flows_benchmark.d.ts +2 -2
  5. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  6. package/dest/bench/client_flows/client_flows_benchmark.js +13 -9
  7. package/dest/bench/utils.d.ts +1 -1
  8. package/dest/bench/utils.d.ts.map +1 -1
  9. package/dest/bench/utils.js +2 -0
  10. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +3 -3
  11. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
  12. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +13 -4
  13. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +15 -4
  14. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  15. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +39 -7
  16. package/dest/e2e_deploy_contract/deploy_test.d.ts +3 -3
  17. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  18. package/dest/e2e_deploy_contract/deploy_test.js +2 -1
  19. package/dest/e2e_epochs/epochs_test.d.ts +8 -2
  20. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  21. package/dest/e2e_epochs/epochs_test.js +30 -7
  22. package/dest/e2e_fees/fees_test.d.ts +5 -2
  23. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  24. package/dest/e2e_fees/fees_test.js +29 -3
  25. package/dest/e2e_nested_contract/nested_contract_test.d.ts +3 -3
  26. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
  27. package/dest/e2e_nested_contract/nested_contract_test.js +2 -1
  28. package/dest/e2e_p2p/inactivity_slash_test.d.ts +1 -1
  29. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -1
  30. package/dest/e2e_p2p/inactivity_slash_test.js +1 -0
  31. package/dest/e2e_p2p/reqresp/utils.d.ts +1 -1
  32. package/dest/e2e_p2p/reqresp/utils.d.ts.map +1 -1
  33. package/dest/e2e_p2p/reqresp/utils.js +28 -12
  34. package/dest/e2e_p2p/shared.d.ts +19 -8
  35. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  36. package/dest/e2e_p2p/shared.js +33 -13
  37. package/dest/e2e_token_contract/token_contract_test.d.ts +3 -3
  38. package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
  39. package/dest/e2e_token_contract/token_contract_test.js +4 -2
  40. package/dest/fixtures/e2e_prover_test.d.ts +3 -3
  41. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  42. package/dest/fixtures/e2e_prover_test.js +2 -1
  43. package/dest/fixtures/fixtures.d.ts +59 -1
  44. package/dest/fixtures/fixtures.d.ts.map +1 -1
  45. package/dest/fixtures/fixtures.js +55 -0
  46. package/dest/fixtures/schnorr_hardcoded_account_contract.js +2 -4
  47. package/dest/fixtures/setup.d.ts +30 -4
  48. package/dest/fixtures/setup.d.ts.map +1 -1
  49. package/dest/fixtures/setup.js +117 -7
  50. package/dest/fixtures/setup_p2p_test.d.ts +5 -1
  51. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  52. package/dest/fixtures/utils.d.ts +2 -2
  53. package/dest/fixtures/utils.d.ts.map +1 -1
  54. package/dest/fixtures/utils.js +1 -1
  55. package/dest/install_legacy_contracts.d.cts +10 -0
  56. package/dest/install_legacy_contracts.d.cts.map +1 -0
  57. package/dest/legacy-jest-resolver.d.cts +1 -1
  58. package/dest/legacy-jest-resolver.d.cts.map +1 -1
  59. package/dest/shared/cross_chain_test_harness.d.ts +4 -2
  60. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  61. package/dest/shared/cross_chain_test_harness.js +9 -5
  62. package/dest/shared/gas_portal_test_harness.d.ts +8 -5
  63. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  64. package/dest/shared/gas_portal_test_harness.js +16 -7
  65. package/dest/shared/uniswap_l1_l2.d.ts +1 -1
  66. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  67. package/dest/shared/uniswap_l1_l2.js +50 -28
  68. package/dest/shared/wait_for_l1_to_l2_message.d.ts +13 -0
  69. package/dest/shared/wait_for_l1_to_l2_message.d.ts.map +1 -0
  70. package/dest/shared/wait_for_l1_to_l2_message.js +10 -0
  71. package/dest/simulators/lending_simulator.d.ts +10 -3
  72. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  73. package/dest/simulators/lending_simulator.js +23 -11
  74. package/dest/spartan/setup_test_wallets.d.ts +1 -1
  75. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  76. package/dest/spartan/setup_test_wallets.js +9 -3
  77. package/dest/spartan/tx_metrics.d.ts +18 -4
  78. package/dest/spartan/tx_metrics.d.ts.map +1 -1
  79. package/dest/spartan/tx_metrics.js +73 -20
  80. package/dest/spartan/utils/config.d.ts +9 -35
  81. package/dest/spartan/utils/config.d.ts.map +1 -1
  82. package/dest/spartan/utils/nodes.js +2 -2
  83. package/dest/test-wallet/test_wallet.d.ts +3 -2
  84. package/dest/test-wallet/test_wallet.d.ts.map +1 -1
  85. package/dest/test-wallet/test_wallet.js +49 -27
  86. package/dest/test-wallet/utils.d.ts +3 -3
  87. package/dest/test-wallet/utils.d.ts.map +1 -1
  88. package/dest/test-wallet/utils.js +2 -7
  89. package/dest/test-wallet/wallet_worker_script.js +7 -2
  90. package/dest/test-wallet/worker_wallet.d.ts +2 -1
  91. package/dest/test-wallet/worker_wallet.d.ts.map +1 -1
  92. package/dest/test-wallet/worker_wallet.js +6 -2
  93. package/dest/test-wallet/worker_wallet_schema.d.ts +110 -229
  94. package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -1
  95. package/dest/test-wallet/worker_wallet_schema.js +14 -2
  96. package/package.json +45 -41
  97. package/src/bench/client_flows/benchmark.ts +19 -0
  98. package/src/bench/client_flows/client_flows_benchmark.ts +32 -30
  99. package/src/bench/utils.ts +2 -1
  100. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +21 -4
  101. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +49 -11
  102. package/src/e2e_deploy_contract/deploy_test.ts +3 -2
  103. package/src/e2e_epochs/epochs_test.ts +32 -5
  104. package/src/e2e_fees/fees_test.ts +33 -2
  105. package/src/e2e_nested_contract/nested_contract_test.ts +3 -1
  106. package/src/e2e_p2p/inactivity_slash_test.ts +1 -0
  107. package/src/e2e_p2p/reqresp/utils.ts +29 -11
  108. package/src/e2e_p2p/shared.ts +31 -12
  109. package/src/e2e_token_contract/token_contract_test.ts +12 -2
  110. package/src/fixtures/e2e_prover_test.ts +3 -1
  111. package/src/fixtures/fixtures.ts +61 -0
  112. package/src/fixtures/schnorr_hardcoded_account_contract.ts +2 -2
  113. package/src/fixtures/setup.ts +134 -10
  114. package/src/fixtures/setup_p2p_test.ts +4 -0
  115. package/src/fixtures/utils.ts +2 -0
  116. package/src/install_legacy_contracts.cjs +75 -0
  117. package/src/legacy-jest-resolver.cjs +25 -48
  118. package/src/shared/cross_chain_test_harness.ts +14 -4
  119. package/src/shared/gas_portal_test_harness.ts +20 -9
  120. package/src/shared/uniswap_l1_l2.ts +84 -36
  121. package/src/shared/wait_for_l1_to_l2_message.ts +23 -0
  122. package/src/simulators/lending_simulator.ts +27 -13
  123. package/src/spartan/setup_test_wallets.ts +6 -4
  124. package/src/spartan/tx_metrics.ts +81 -23
  125. package/src/spartan/utils/nodes.ts +2 -2
  126. package/src/test-wallet/test_wallet.ts +46 -23
  127. package/src/test-wallet/utils.ts +3 -7
  128. package/src/test-wallet/wallet_worker_script.ts +5 -2
  129. package/src/test-wallet/worker_wallet.ts +7 -3
  130. 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/aztec.js/wallet").TxSimulationResultWithAppOffset, z.ZodTypeDef, any>>;
15
- executeUtility: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/abi").FunctionCall, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ExecuteUtilityOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").UtilityExecutionResult, z.ZodTypeDef, any>>;
16
- profileTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ProfileOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxProfileResult, z.ZodTypeDef, any>>;
17
- sendTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SendOptions<import("@aztec/aztec.js/contracts").InteractionWaitOptions>, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/contracts").TxSendResultImmediate | import("@aztec/aztec.js/contracts").TxSendResultMined<import("@aztec/stdlib/tx").TxReceipt>, z.ZodTypeDef, any>>;
18
- createAuthWit: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>, messageHashOrIntent: z.ZodType<import("@aztec/aztec.js/authorization").CallIntent | import("@aztec/aztec.js/authorization").IntentInnerHash, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, z.ZodTypeDef, any>>;
19
- requestCapabilities: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/aztec.js/wallet").AppCapabilities, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").WalletCapabilities, z.ZodTypeDef, any>>;
20
- batch: z.ZodFunction<z.ZodTuple<[z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethod[], z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethodResultWrapper<import("@aztec/aztec.js/wallet").BatchedMethod>[], z.ZodTypeDef, any>>;
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,243 +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: z.ZodUnion<[import("@aztec/foundation/schemas").ZodFor<AztecAddress>, z.ZodLiteral<"NO_FROM">]>;
86
- authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, any, string>, "many">>;
87
- capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<import("@aztec/stdlib/tx").Capsule, any, string>, "many">>;
88
- fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
89
- gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
90
- gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
91
- daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
92
- l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
93
- }, "strip", z.ZodTypeAny, {
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
- congestionEstimate: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNativeEnum<typeof import("@aztec/stdlib/gas").ManaUsageEstimate>>;
166
- }, "strip", z.ZodTypeAny, {
167
- gasSettings?: {
168
- gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
169
- teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
170
- 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: {
171
90
  feePerDaGas: bigint;
172
91
  feePerL2Gas: bigint;
173
92
  } | undefined;
174
- maxPriorityFeePerGas?: {
93
+ maxPriorityFeePerGas: {
175
94
  feePerDaGas: bigint;
176
95
  feePerL2Gas: bigint;
177
96
  } | undefined;
178
- } | undefined;
179
- congestionEstimate?: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
180
- }, {
181
- gasSettings?: {
182
- gasLimits?: {
183
- daGas: string | number | bigint;
184
- l2Gas: string | number | bigint;
185
- } | undefined;
186
- teardownGasLimits?: {
187
- daGas: string | number | bigint;
188
- l2Gas: string | number | bigint;
189
- } | undefined;
190
- maxFeePerGas?: {
191
- feePerDaGas: string | number | bigint;
192
- 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;
193
103
  } | undefined;
194
- maxPriorityFeePerGas?: {
195
- feePerDaGas: string | number | bigint;
196
- feePerL2Gas: string | number | bigint;
104
+ maxPriorityFeePerGas: {
105
+ feePerDaGas: bigint;
106
+ feePerL2Gas: bigint;
197
107
  } | undefined;
198
- } | undefined;
199
- congestionEstimate?: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
200
- }>>;
201
- wait: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodLiteral<"NO_WAIT">, z.ZodObject<{
202
- ignoreDroppedReceiptsFor: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
203
- timeout: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
204
- interval: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
205
- dontThrowOnRevert: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
206
- }, "strip", z.ZodTypeAny, {
207
- ignoreDroppedReceiptsFor?: number | undefined;
208
- timeout?: number | undefined;
209
- interval?: number | undefined;
210
- dontThrowOnRevert?: boolean | undefined;
211
- }, {
212
- ignoreDroppedReceiptsFor?: number | undefined;
213
- timeout?: number | undefined;
214
- interval?: number | undefined;
215
- dontThrowOnRevert?: boolean | undefined;
216
- }>]>>;
217
- additionalScopes: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<import("@aztec/foundation/schemas").ZodFor<AztecAddress>, "many">>;
218
- }, "strip", z.ZodTypeAny, {
219
- from: "NO_FROM" | AztecAddress;
220
- authWitnesses?: import("@aztec/stdlib/auth-witness").AuthWitness[] | undefined;
221
- capsules?: import("@aztec/stdlib/tx").Capsule[] | undefined;
222
- fee?: {
223
- gasSettings?: {
224
- gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
225
- teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
226
- 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: {
227
115
  feePerDaGas: bigint;
228
116
  feePerL2Gas: bigint;
229
117
  } | undefined;
230
- maxPriorityFeePerGas?: {
118
+ maxPriorityFeePerGas: {
231
119
  feePerDaGas: bigint;
232
120
  feePerL2Gas: bigint;
233
121
  } | undefined;
234
122
  } | undefined;
235
- congestionEstimate?: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
236
- } | undefined;
237
- wait?: "NO_WAIT" | {
238
- ignoreDroppedReceiptsFor?: number | undefined;
239
- timeout?: number | undefined;
240
- interval?: number | undefined;
241
- dontThrowOnRevert?: boolean | undefined;
242
- } | undefined;
243
- additionalScopes?: AztecAddress[] | undefined;
244
- }, {
245
- from?: any;
246
- authWitnesses?: string[] | undefined;
247
- capsules?: string[] | undefined;
248
- fee?: {
249
- gasSettings?: {
250
- gasLimits?: {
251
- daGas: string | number | bigint;
252
- l2Gas: string | number | bigint;
253
- } | undefined;
254
- teardownGasLimits?: {
255
- daGas: string | number | bigint;
256
- l2Gas: string | number | bigint;
257
- } | undefined;
258
- maxFeePerGas?: {
259
- feePerDaGas: string | number | bigint;
260
- 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;
261
131
  } | undefined;
262
- maxPriorityFeePerGas?: {
263
- feePerDaGas: string | number | bigint;
264
- feePerL2Gas: string | number | bigint;
132
+ maxPriorityFeePerGas: {
133
+ feePerDaGas: bigint;
134
+ feePerL2Gas: bigint;
265
135
  } | undefined;
266
136
  } | undefined;
267
- congestionEstimate?: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
268
- } | undefined;
269
- wait?: "NO_WAIT" | {
270
- ignoreDroppedReceiptsFor?: number | undefined;
271
- timeout?: number | undefined;
272
- interval?: number | undefined;
273
- dontThrowOnRevert?: boolean | undefined;
274
- } | undefined;
275
- additionalScopes?: any[] | undefined;
276
- }>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<Tx>>;
277
- 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>>;
278
159
  };
279
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyX3dhbGxldF9zY2hlbWEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0LXdhbGxldC93b3JrZXJfd2FsbGV0X3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXRDLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFFeEIsaUdBQStGO0FBQy9GLGVBQU8sTUFBTSxrQkFBa0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztDQUk5QixDQUFDIn0=
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.b2a5d0dd1",
3
+ "version": "0.0.1-commit.b3d3157a",
4
4
  "type": "module",
5
- "exports": "./dest/index.js",
5
+ "exports": {
6
+ ".": "./dest/index.js",
7
+ "./*": "./dest/*"
8
+ },
6
9
  "inherits": [
7
10
  "../package.common.json",
8
11
  "./package.local.json"
@@ -26,44 +29,45 @@
26
29
  "formatting": "run -T prettier --check ./src && run -T eslint ./src"
27
30
  },
28
31
  "dependencies": {
29
- "@aztec/accounts": "0.0.1-commit.b2a5d0dd1",
30
- "@aztec/archiver": "0.0.1-commit.b2a5d0dd1",
31
- "@aztec/aztec": "0.0.1-commit.b2a5d0dd1",
32
- "@aztec/aztec-node": "0.0.1-commit.b2a5d0dd1",
33
- "@aztec/aztec.js": "0.0.1-commit.b2a5d0dd1",
34
- "@aztec/bb-prover": "0.0.1-commit.b2a5d0dd1",
35
- "@aztec/bb.js": "0.0.1-commit.b2a5d0dd1",
36
- "@aztec/blob-client": "0.0.1-commit.b2a5d0dd1",
37
- "@aztec/blob-lib": "0.0.1-commit.b2a5d0dd1",
38
- "@aztec/bot": "0.0.1-commit.b2a5d0dd1",
39
- "@aztec/cli": "0.0.1-commit.b2a5d0dd1",
40
- "@aztec/constants": "0.0.1-commit.b2a5d0dd1",
41
- "@aztec/entrypoints": "0.0.1-commit.b2a5d0dd1",
42
- "@aztec/epoch-cache": "0.0.1-commit.b2a5d0dd1",
43
- "@aztec/ethereum": "0.0.1-commit.b2a5d0dd1",
44
- "@aztec/foundation": "0.0.1-commit.b2a5d0dd1",
45
- "@aztec/kv-store": "0.0.1-commit.b2a5d0dd1",
46
- "@aztec/l1-artifacts": "0.0.1-commit.b2a5d0dd1",
47
- "@aztec/node-keystore": "0.0.1-commit.b2a5d0dd1",
48
- "@aztec/noir-contracts.js": "0.0.1-commit.b2a5d0dd1",
49
- "@aztec/noir-noirc_abi": "0.0.1-commit.b2a5d0dd1",
50
- "@aztec/noir-protocol-circuits-types": "0.0.1-commit.b2a5d0dd1",
51
- "@aztec/noir-test-contracts.js": "0.0.1-commit.b2a5d0dd1",
52
- "@aztec/p2p": "0.0.1-commit.b2a5d0dd1",
53
- "@aztec/protocol-contracts": "0.0.1-commit.b2a5d0dd1",
54
- "@aztec/prover-client": "0.0.1-commit.b2a5d0dd1",
55
- "@aztec/prover-node": "0.0.1-commit.b2a5d0dd1",
56
- "@aztec/pxe": "0.0.1-commit.b2a5d0dd1",
57
- "@aztec/sequencer-client": "0.0.1-commit.b2a5d0dd1",
58
- "@aztec/simulator": "0.0.1-commit.b2a5d0dd1",
59
- "@aztec/slasher": "0.0.1-commit.b2a5d0dd1",
60
- "@aztec/stdlib": "0.0.1-commit.b2a5d0dd1",
61
- "@aztec/telemetry-client": "0.0.1-commit.b2a5d0dd1",
62
- "@aztec/validator-client": "0.0.1-commit.b2a5d0dd1",
63
- "@aztec/validator-ha-signer": "0.0.1-commit.b2a5d0dd1",
64
- "@aztec/wallet-sdk": "0.0.1-commit.b2a5d0dd1",
65
- "@aztec/wallets": "0.0.1-commit.b2a5d0dd1",
66
- "@aztec/world-state": "0.0.1-commit.b2a5d0dd1",
32
+ "@aztec/accounts": "0.0.1-commit.b3d3157a",
33
+ "@aztec/archiver": "0.0.1-commit.b3d3157a",
34
+ "@aztec/aztec": "0.0.1-commit.b3d3157a",
35
+ "@aztec/aztec-node": "0.0.1-commit.b3d3157a",
36
+ "@aztec/aztec.js": "0.0.1-commit.b3d3157a",
37
+ "@aztec/bb-prover": "0.0.1-commit.b3d3157a",
38
+ "@aztec/bb.js": "0.0.1-commit.b3d3157a",
39
+ "@aztec/blob-client": "0.0.1-commit.b3d3157a",
40
+ "@aztec/blob-lib": "0.0.1-commit.b3d3157a",
41
+ "@aztec/bot": "0.0.1-commit.b3d3157a",
42
+ "@aztec/cli": "0.0.1-commit.b3d3157a",
43
+ "@aztec/constants": "0.0.1-commit.b3d3157a",
44
+ "@aztec/entrypoints": "0.0.1-commit.b3d3157a",
45
+ "@aztec/epoch-cache": "0.0.1-commit.b3d3157a",
46
+ "@aztec/ethereum": "0.0.1-commit.b3d3157a",
47
+ "@aztec/foundation": "0.0.1-commit.b3d3157a",
48
+ "@aztec/kv-store": "0.0.1-commit.b3d3157a",
49
+ "@aztec/l1-artifacts": "0.0.1-commit.b3d3157a",
50
+ "@aztec/node-keystore": "0.0.1-commit.b3d3157a",
51
+ "@aztec/noir-contracts.js": "0.0.1-commit.b3d3157a",
52
+ "@aztec/noir-noirc_abi": "0.0.1-commit.b3d3157a",
53
+ "@aztec/noir-protocol-circuits-types": "0.0.1-commit.b3d3157a",
54
+ "@aztec/noir-test-contracts.js": "0.0.1-commit.b3d3157a",
55
+ "@aztec/p2p": "0.0.1-commit.b3d3157a",
56
+ "@aztec/protocol-contracts": "0.0.1-commit.b3d3157a",
57
+ "@aztec/prover-client": "0.0.1-commit.b3d3157a",
58
+ "@aztec/prover-node": "0.0.1-commit.b3d3157a",
59
+ "@aztec/pxe": "0.0.1-commit.b3d3157a",
60
+ "@aztec/sequencer-client": "0.0.1-commit.b3d3157a",
61
+ "@aztec/simulator": "0.0.1-commit.b3d3157a",
62
+ "@aztec/slasher": "0.0.1-commit.b3d3157a",
63
+ "@aztec/standard-contracts": "0.0.1-commit.b3d3157a",
64
+ "@aztec/stdlib": "0.0.1-commit.b3d3157a",
65
+ "@aztec/telemetry-client": "0.0.1-commit.b3d3157a",
66
+ "@aztec/validator-client": "0.0.1-commit.b3d3157a",
67
+ "@aztec/validator-ha-signer": "0.0.1-commit.b3d3157a",
68
+ "@aztec/wallet-sdk": "0.0.1-commit.b3d3157a",
69
+ "@aztec/wallets": "0.0.1-commit.b3d3157a",
70
+ "@aztec/world-state": "0.0.1-commit.b3d3157a",
67
71
  "@iarna/toml": "^2.2.5",
68
72
  "@jest/globals": "^30.0.0",
69
73
  "@noble/curves": "=1.0.0",
@@ -101,7 +105,7 @@
101
105
  "typescript": "^5.3.3",
102
106
  "util": "^0.12.5",
103
107
  "viem": "npm:@aztec/viem@2.38.2",
104
- "zod": "^3.23.8"
108
+ "zod": "^4"
105
109
  },
106
110
  "devDependencies": {
107
111
  "0x": "^5.7.0",
@@ -5,6 +5,7 @@ import {
5
5
  type ProfileInteractionOptions,
6
6
  } from '@aztec/aztec.js/contracts';
7
7
  import type { Logger } from '@aztec/aztec.js/log';
8
+ import { MAX_APPS_PER_KERNEL } from '@aztec/constants';
8
9
  import { createLogger } from '@aztec/foundation/log';
9
10
  import { type PrivateExecutionStep, serializePrivateExecutionSteps } from '@aztec/stdlib/kernel';
10
11
  import type {
@@ -320,6 +321,24 @@ export function convertProfileToGHBenchmark(benchmark: ClientFlowBenchmark): Git
320
321
  return benches;
321
322
  }
322
323
 
324
+ /**
325
+ * Computes the expected number of `PrivateExecutionStep` entries the orchestrator will produce
326
+ * for a tx with `apps` private function calls.
327
+ *
328
+ * Step layout: `apps` app circuits + kernel iterations + 1 final reset + 1 tail + 1 hiding kernel.
329
+ * Each kernel iteration absorbs up to `MAX_APPS_PER_KERNEL` apps via the `init_K` / `inner_K`
330
+ * variants, so the kernel count is `ceil(apps / MAX_APPS_PER_KERNEL)`.
331
+ *
332
+ * Caveat: this assumes no mid-flow reset is triggered, which would split a batch into two kernels
333
+ * separated by a reset. For the flows currently exercised in this benchmark suite that holds, but
334
+ * a future flow that grows large enough to overflow per-tx limits before consuming all apps will
335
+ * not match this formula.
336
+ */
337
+ export function expectedExecutionSteps(apps: number): number {
338
+ const kernels = Math.ceil(apps / MAX_APPS_PER_KERNEL);
339
+ return apps + kernels + 1 /* final reset */ + 1 /* tail */ + 1 /* hiding */;
340
+ }
341
+
323
342
  export async function captureProfile(
324
343
  label: string,
325
344
  interaction: ContractFunctionInteraction | DeployMethod,