@aztec/end-to-end 0.0.1-commit.b33fc05d0 → 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 (165) 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 +27 -38
  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 +2 -0
  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 +14 -5
  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 +86 -13
  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 +32 -6
  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 +2 -1
  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 +4 -3
  32. package/dest/e2e_p2p/p2p_network.d.ts +10 -9
  33. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  34. package/dest/e2e_p2p/p2p_network.js +46 -27
  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 +29 -13
  38. package/dest/e2e_p2p/shared.d.ts +23 -14
  39. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  40. package/dest/e2e_p2p/shared.js +62 -57
  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 +4 -2
  44. package/dest/fixtures/authwit_proxy.d.ts +1 -1
  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 +9 -13
  50. package/dest/fixtures/fixtures.d.ts +70 -1
  51. package/dest/fixtures/fixtures.d.ts.map +1 -1
  52. package/dest/fixtures/fixtures.js +65 -0
  53. package/dest/fixtures/get_bb_config.d.ts +1 -1
  54. package/dest/fixtures/get_bb_config.d.ts.map +1 -1
  55. package/dest/fixtures/get_bb_config.js +5 -5
  56. package/dest/fixtures/ha_setup.d.ts +2 -2
  57. package/dest/fixtures/ha_setup.d.ts.map +1 -1
  58. package/dest/fixtures/ha_setup.js +1 -1
  59. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts +25 -0
  60. package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts.map +1 -0
  61. package/dest/fixtures/schnorr_hardcoded_account_contract.js +37 -0
  62. package/dest/fixtures/setup.d.ts +44 -11
  63. package/dest/fixtures/setup.d.ts.map +1 -1
  64. package/dest/fixtures/setup.js +157 -28
  65. package/dest/fixtures/setup_p2p_test.d.ts +10 -6
  66. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  67. package/dest/fixtures/setup_p2p_test.js +8 -8
  68. package/dest/fixtures/token_utils.d.ts +1 -1
  69. package/dest/fixtures/token_utils.d.ts.map +1 -1
  70. package/dest/fixtures/token_utils.js +2 -5
  71. package/dest/fixtures/utils.d.ts +2 -2
  72. package/dest/fixtures/utils.d.ts.map +1 -1
  73. package/dest/fixtures/utils.js +1 -1
  74. package/dest/forward-compatibility/wallet_rpc_client.d.ts +7 -0
  75. package/dest/forward-compatibility/wallet_rpc_client.d.ts.map +1 -0
  76. package/dest/forward-compatibility/wallet_rpc_client.js +15 -0
  77. package/dest/forward-compatibility/wallet_service.d.ts +3 -0
  78. package/dest/forward-compatibility/wallet_service.d.ts.map +1 -0
  79. package/dest/forward-compatibility/wallet_service.js +109 -0
  80. package/dest/install_legacy_contracts.d.cts +10 -0
  81. package/dest/install_legacy_contracts.d.cts.map +1 -0
  82. package/dest/legacy-jest-resolver.d.cts +3 -0
  83. package/dest/legacy-jest-resolver.d.cts.map +1 -0
  84. package/dest/shared/cross_chain_test_harness.d.ts +4 -2
  85. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  86. package/dest/shared/cross_chain_test_harness.js +9 -5
  87. package/dest/shared/gas_portal_test_harness.d.ts +8 -5
  88. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  89. package/dest/shared/gas_portal_test_harness.js +17 -8
  90. package/dest/shared/uniswap_l1_l2.d.ts +1 -1
  91. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  92. package/dest/shared/uniswap_l1_l2.js +50 -32
  93. package/dest/shared/wait_for_l1_to_l2_message.d.ts +13 -0
  94. package/dest/shared/wait_for_l1_to_l2_message.d.ts.map +1 -0
  95. package/dest/shared/wait_for_l1_to_l2_message.js +10 -0
  96. package/dest/simulators/lending_simulator.d.ts +10 -3
  97. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  98. package/dest/simulators/lending_simulator.js +24 -12
  99. package/dest/simulators/token_simulator.js +1 -1
  100. package/dest/spartan/setup_test_wallets.d.ts +1 -1
  101. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  102. package/dest/spartan/setup_test_wallets.js +72 -48
  103. package/dest/spartan/tx_metrics.d.ts +18 -4
  104. package/dest/spartan/tx_metrics.d.ts.map +1 -1
  105. package/dest/spartan/tx_metrics.js +73 -20
  106. package/dest/spartan/utils/config.d.ts +9 -35
  107. package/dest/spartan/utils/config.d.ts.map +1 -1
  108. package/dest/spartan/utils/nodes.js +2 -2
  109. package/dest/test-wallet/test_wallet.d.ts +25 -23
  110. package/dest/test-wallet/test_wallet.d.ts.map +1 -1
  111. package/dest/test-wallet/test_wallet.js +146 -87
  112. package/dest/test-wallet/utils.d.ts +3 -3
  113. package/dest/test-wallet/utils.d.ts.map +1 -1
  114. package/dest/test-wallet/utils.js +2 -7
  115. package/dest/test-wallet/wallet_worker_script.js +7 -2
  116. package/dest/test-wallet/worker_wallet.d.ts +5 -4
  117. package/dest/test-wallet/worker_wallet.d.ts.map +1 -1
  118. package/dest/test-wallet/worker_wallet.js +6 -2
  119. package/dest/test-wallet/worker_wallet_schema.d.ts +110 -224
  120. package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -1
  121. package/dest/test-wallet/worker_wallet_schema.js +14 -2
  122. package/package.json +46 -42
  123. package/src/bench/client_flows/benchmark.ts +19 -0
  124. package/src/bench/client_flows/client_flows_benchmark.ts +64 -53
  125. package/src/bench/utils.ts +2 -1
  126. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +24 -10
  127. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +49 -11
  128. package/src/e2e_deploy_contract/deploy_test.ts +3 -2
  129. package/src/e2e_epochs/epochs_test.ts +98 -11
  130. package/src/e2e_fees/fees_test.ts +37 -4
  131. package/src/e2e_nested_contract/nested_contract_test.ts +3 -1
  132. package/src/e2e_p2p/inactivity_slash_test.ts +4 -3
  133. package/src/e2e_p2p/p2p_network.ts +57 -39
  134. package/src/e2e_p2p/reqresp/utils.ts +30 -12
  135. package/src/e2e_p2p/shared.ts +60 -71
  136. package/src/e2e_token_contract/token_contract_test.ts +12 -2
  137. package/src/fixtures/authwit_proxy.ts +4 -0
  138. package/src/fixtures/e2e_prover_test.ts +15 -18
  139. package/src/fixtures/fixtures.ts +83 -0
  140. package/src/fixtures/get_bb_config.ts +7 -6
  141. package/src/fixtures/ha_setup.ts +4 -2
  142. package/src/fixtures/schnorr_hardcoded_account_contract.ts +49 -0
  143. package/src/fixtures/setup.ts +186 -33
  144. package/src/fixtures/setup_p2p_test.ts +13 -9
  145. package/src/fixtures/token_utils.ts +1 -4
  146. package/src/fixtures/utils.ts +2 -0
  147. package/src/forward-compatibility/wallet_rpc_client.ts +14 -0
  148. package/src/forward-compatibility/wallet_service.ts +104 -0
  149. package/src/guides/up_quick_start.sh +0 -2
  150. package/src/install_legacy_contracts.cjs +75 -0
  151. package/src/legacy-jest-resolver.cjs +112 -0
  152. package/src/shared/cross_chain_test_harness.ts +14 -4
  153. package/src/shared/gas_portal_test_harness.ts +20 -10
  154. package/src/shared/uniswap_l1_l2.ts +84 -40
  155. package/src/shared/wait_for_l1_to_l2_message.ts +23 -0
  156. package/src/simulators/lending_simulator.ts +28 -12
  157. package/src/simulators/token_simulator.ts +1 -1
  158. package/src/spartan/setup_test_wallets.ts +69 -43
  159. package/src/spartan/tx_metrics.ts +81 -23
  160. package/src/spartan/utils/nodes.ts +2 -2
  161. package/src/test-wallet/test_wallet.ts +174 -104
  162. package/src/test-wallet/utils.ts +3 -7
  163. package/src/test-wallet/wallet_worker_script.ts +5 -2
  164. package/src/test-wallet/worker_wallet.ts +10 -5
  165. package/src/test-wallet/worker_wallet_schema.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"worker_wallet.d.ts","sourceRoot":"","sources":["../../src/test-wallet/worker_wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EACf,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,eAAe,EACf,MAAM,EACN,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAOzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AACtH,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAYtC;;;;GAIG;AACH,qBAAa,YAAa,YAAW,MAAM;IAEvC,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,MAAM;IAFhB,OAAO,eAGH;IAEJ;;;;;OA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CAAC,CAEzG;IAED,mBAAmB,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAE1E;IAED,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,aAAa,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAEpF;IAED,6DAA6D;IACvD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAG1B;CACF"}
@@ -1,6 +1,7 @@
1
1
  import { jsonStringify } from '@aztec/foundation/json-rpc';
2
2
  import { createLogger } from '@aztec/foundation/log';
3
3
  import { promiseWithResolvers } from '@aztec/foundation/promise';
4
+ import { getSchemaReturnType } from '@aztec/foundation/schemas';
4
5
  import { sleep } from '@aztec/foundation/sleep';
5
6
  import { NodeConnector, TransportClient } from '@aztec/foundation/transport';
6
7
  import { Worker } from 'worker_threads';
@@ -39,7 +40,7 @@ const WORKER_READY_TIMEOUT_MS = 120_000;
39
40
  ...process.stderr.isTTY || process.env.FORCE_COLOR ? {
40
41
  FORCE_COLOR: '1'
41
42
  } : {},
42
- LOG_LEVEL: process.env.WORKER_LOG_LEVEL ?? 'warn'
43
+ LOG_LEVEL: process.env.WORKER_LOG_LEVEL ?? 'info'
43
44
  }
44
45
  });
45
46
  const connector = new NodeConnector(worker);
@@ -91,7 +92,7 @@ const WORKER_READY_TIMEOUT_MS = 120_000;
91
92
  async call(fn, ...args) {
92
93
  const resultJson = await this.callRaw(fn, ...args);
93
94
  const methodSchema = WorkerWalletSchema[fn];
94
- return methodSchema.returnType().parseAsync(JSON.parse(resultJson));
95
+ return getSchemaReturnType(methodSchema).parseAsync(JSON.parse(resultJson));
95
96
  }
96
97
  getChainInfo() {
97
98
  return this.call('getChainInfo');
@@ -117,6 +118,9 @@ const WORKER_READY_TIMEOUT_MS = 120_000;
117
118
  registerContract(instance, artifact, secretKey) {
118
119
  return this.call('registerContract', instance, artifact, secretKey);
119
120
  }
121
+ registerContractClass(artifact) {
122
+ return this.call('registerContractClass', artifact);
123
+ }
120
124
  simulateTx(exec, opts) {
121
125
  return this.call('simulateTx', exec, opts);
122
126
  }
@@ -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/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,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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyX3dhbGxldF9zY2hlbWEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0LXdhbGxldC93b3JrZXJfd2FsbGV0X3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXRDLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFFeEIsaUdBQStGO0FBQy9GLGVBQU8sTUFBTSxrQkFBa0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Oz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","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.b33fc05d0",
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,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.b33fc05d0",
30
- "@aztec/archiver": "0.0.1-commit.b33fc05d0",
31
- "@aztec/aztec": "0.0.1-commit.b33fc05d0",
32
- "@aztec/aztec-node": "0.0.1-commit.b33fc05d0",
33
- "@aztec/aztec.js": "0.0.1-commit.b33fc05d0",
34
- "@aztec/bb-prover": "0.0.1-commit.b33fc05d0",
35
- "@aztec/bb.js": "0.0.1-commit.b33fc05d0",
36
- "@aztec/blob-client": "0.0.1-commit.b33fc05d0",
37
- "@aztec/blob-lib": "0.0.1-commit.b33fc05d0",
38
- "@aztec/bot": "0.0.1-commit.b33fc05d0",
39
- "@aztec/cli": "0.0.1-commit.b33fc05d0",
40
- "@aztec/constants": "0.0.1-commit.b33fc05d0",
41
- "@aztec/entrypoints": "0.0.1-commit.b33fc05d0",
42
- "@aztec/epoch-cache": "0.0.1-commit.b33fc05d0",
43
- "@aztec/ethereum": "0.0.1-commit.b33fc05d0",
44
- "@aztec/foundation": "0.0.1-commit.b33fc05d0",
45
- "@aztec/kv-store": "0.0.1-commit.b33fc05d0",
46
- "@aztec/l1-artifacts": "0.0.1-commit.b33fc05d0",
47
- "@aztec/merkle-tree": "0.0.1-commit.b33fc05d0",
48
- "@aztec/node-keystore": "0.0.1-commit.b33fc05d0",
49
- "@aztec/noir-contracts.js": "0.0.1-commit.b33fc05d0",
50
- "@aztec/noir-noirc_abi": "0.0.1-commit.b33fc05d0",
51
- "@aztec/noir-protocol-circuits-types": "0.0.1-commit.b33fc05d0",
52
- "@aztec/noir-test-contracts.js": "0.0.1-commit.b33fc05d0",
53
- "@aztec/p2p": "0.0.1-commit.b33fc05d0",
54
- "@aztec/protocol-contracts": "0.0.1-commit.b33fc05d0",
55
- "@aztec/prover-client": "0.0.1-commit.b33fc05d0",
56
- "@aztec/prover-node": "0.0.1-commit.b33fc05d0",
57
- "@aztec/pxe": "0.0.1-commit.b33fc05d0",
58
- "@aztec/sequencer-client": "0.0.1-commit.b33fc05d0",
59
- "@aztec/simulator": "0.0.1-commit.b33fc05d0",
60
- "@aztec/slasher": "0.0.1-commit.b33fc05d0",
61
- "@aztec/stdlib": "0.0.1-commit.b33fc05d0",
62
- "@aztec/telemetry-client": "0.0.1-commit.b33fc05d0",
63
- "@aztec/validator-client": "0.0.1-commit.b33fc05d0",
64
- "@aztec/validator-ha-signer": "0.0.1-commit.b33fc05d0",
65
- "@aztec/wallet-sdk": "0.0.1-commit.b33fc05d0",
66
- "@aztec/wallets": "0.0.1-commit.b33fc05d0",
67
- "@aztec/world-state": "0.0.1-commit.b33fc05d0",
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",
68
71
  "@iarna/toml": "^2.2.5",
69
72
  "@jest/globals": "^30.0.0",
70
73
  "@noble/curves": "=1.0.0",
@@ -102,7 +105,7 @@
102
105
  "typescript": "^5.3.3",
103
106
  "util": "^0.12.5",
104
107
  "viem": "npm:@aztec/viem@2.38.2",
105
- "zod": "^3.23.8"
108
+ "zod": "^4"
106
109
  },
107
110
  "devDependencies": {
108
111
  "0x": "^5.7.0",
@@ -160,6 +163,7 @@
160
163
  "moduleNameMapper": {
161
164
  "^(\\.{1,2}/.*)\\.[cm]?js$": "$1"
162
165
  },
166
+ "resolver": "<rootDir>/legacy-jest-resolver.cjs",
163
167
  "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$",
164
168
  "rootDir": "./src",
165
169
  "testTimeout": 120000,