@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.
- package/README.md +27 -0
- package/dest/bench/client_flows/benchmark.d.ts +15 -1
- package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
- package/dest/bench/client_flows/benchmark.js +17 -0
- package/dest/bench/client_flows/client_flows_benchmark.d.ts +2 -2
- package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
- package/dest/bench/client_flows/client_flows_benchmark.js +27 -38
- package/dest/bench/utils.d.ts +1 -1
- package/dest/bench/utils.d.ts.map +1 -1
- package/dest/bench/utils.js +2 -0
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +5 -4
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +14 -5
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +15 -4
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +39 -7
- package/dest/e2e_deploy_contract/deploy_test.d.ts +3 -3
- package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
- package/dest/e2e_deploy_contract/deploy_test.js +2 -1
- package/dest/e2e_epochs/epochs_test.d.ts +25 -2
- package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
- package/dest/e2e_epochs/epochs_test.js +86 -13
- package/dest/e2e_fees/fees_test.d.ts +5 -2
- package/dest/e2e_fees/fees_test.d.ts.map +1 -1
- package/dest/e2e_fees/fees_test.js +32 -6
- package/dest/e2e_nested_contract/nested_contract_test.d.ts +3 -3
- package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
- package/dest/e2e_nested_contract/nested_contract_test.js +2 -1
- package/dest/e2e_p2p/inactivity_slash_test.d.ts +1 -1
- package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -1
- package/dest/e2e_p2p/inactivity_slash_test.js +4 -3
- package/dest/e2e_p2p/p2p_network.d.ts +10 -9
- package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
- package/dest/e2e_p2p/p2p_network.js +46 -27
- package/dest/e2e_p2p/reqresp/utils.d.ts +1 -1
- package/dest/e2e_p2p/reqresp/utils.d.ts.map +1 -1
- package/dest/e2e_p2p/reqresp/utils.js +29 -13
- package/dest/e2e_p2p/shared.d.ts +23 -14
- package/dest/e2e_p2p/shared.d.ts.map +1 -1
- package/dest/e2e_p2p/shared.js +62 -57
- package/dest/e2e_token_contract/token_contract_test.d.ts +3 -3
- package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
- package/dest/e2e_token_contract/token_contract_test.js +4 -2
- package/dest/fixtures/authwit_proxy.d.ts +1 -1
- package/dest/fixtures/authwit_proxy.d.ts.map +1 -1
- package/dest/fixtures/authwit_proxy.js +4 -0
- package/dest/fixtures/e2e_prover_test.d.ts +6 -5
- package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
- package/dest/fixtures/e2e_prover_test.js +9 -13
- package/dest/fixtures/fixtures.d.ts +70 -1
- package/dest/fixtures/fixtures.d.ts.map +1 -1
- package/dest/fixtures/fixtures.js +65 -0
- package/dest/fixtures/get_bb_config.d.ts +1 -1
- package/dest/fixtures/get_bb_config.d.ts.map +1 -1
- package/dest/fixtures/get_bb_config.js +5 -5
- package/dest/fixtures/ha_setup.d.ts +2 -2
- package/dest/fixtures/ha_setup.d.ts.map +1 -1
- package/dest/fixtures/ha_setup.js +1 -1
- package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts +25 -0
- package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts.map +1 -0
- package/dest/fixtures/schnorr_hardcoded_account_contract.js +37 -0
- package/dest/fixtures/setup.d.ts +44 -11
- package/dest/fixtures/setup.d.ts.map +1 -1
- package/dest/fixtures/setup.js +157 -28
- package/dest/fixtures/setup_p2p_test.d.ts +10 -6
- package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
- package/dest/fixtures/setup_p2p_test.js +8 -8
- package/dest/fixtures/token_utils.d.ts +1 -1
- package/dest/fixtures/token_utils.d.ts.map +1 -1
- package/dest/fixtures/token_utils.js +2 -5
- package/dest/fixtures/utils.d.ts +2 -2
- package/dest/fixtures/utils.d.ts.map +1 -1
- package/dest/fixtures/utils.js +1 -1
- package/dest/forward-compatibility/wallet_rpc_client.d.ts +7 -0
- package/dest/forward-compatibility/wallet_rpc_client.d.ts.map +1 -0
- package/dest/forward-compatibility/wallet_rpc_client.js +15 -0
- package/dest/forward-compatibility/wallet_service.d.ts +3 -0
- package/dest/forward-compatibility/wallet_service.d.ts.map +1 -0
- package/dest/forward-compatibility/wallet_service.js +109 -0
- package/dest/install_legacy_contracts.d.cts +10 -0
- package/dest/install_legacy_contracts.d.cts.map +1 -0
- package/dest/legacy-jest-resolver.d.cts +3 -0
- package/dest/legacy-jest-resolver.d.cts.map +1 -0
- package/dest/shared/cross_chain_test_harness.d.ts +4 -2
- package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
- package/dest/shared/cross_chain_test_harness.js +9 -5
- package/dest/shared/gas_portal_test_harness.d.ts +8 -5
- package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
- package/dest/shared/gas_portal_test_harness.js +17 -8
- package/dest/shared/uniswap_l1_l2.d.ts +1 -1
- package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
- package/dest/shared/uniswap_l1_l2.js +50 -32
- package/dest/shared/wait_for_l1_to_l2_message.d.ts +13 -0
- package/dest/shared/wait_for_l1_to_l2_message.d.ts.map +1 -0
- package/dest/shared/wait_for_l1_to_l2_message.js +10 -0
- package/dest/simulators/lending_simulator.d.ts +10 -3
- package/dest/simulators/lending_simulator.d.ts.map +1 -1
- package/dest/simulators/lending_simulator.js +24 -12
- package/dest/simulators/token_simulator.js +1 -1
- package/dest/spartan/setup_test_wallets.d.ts +1 -1
- package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
- package/dest/spartan/setup_test_wallets.js +72 -48
- package/dest/spartan/tx_metrics.d.ts +18 -4
- package/dest/spartan/tx_metrics.d.ts.map +1 -1
- package/dest/spartan/tx_metrics.js +73 -20
- package/dest/spartan/utils/config.d.ts +9 -35
- package/dest/spartan/utils/config.d.ts.map +1 -1
- package/dest/spartan/utils/nodes.js +2 -2
- package/dest/test-wallet/test_wallet.d.ts +25 -23
- package/dest/test-wallet/test_wallet.d.ts.map +1 -1
- package/dest/test-wallet/test_wallet.js +146 -87
- package/dest/test-wallet/utils.d.ts +3 -3
- package/dest/test-wallet/utils.d.ts.map +1 -1
- package/dest/test-wallet/utils.js +2 -7
- package/dest/test-wallet/wallet_worker_script.js +7 -2
- package/dest/test-wallet/worker_wallet.d.ts +5 -4
- package/dest/test-wallet/worker_wallet.d.ts.map +1 -1
- package/dest/test-wallet/worker_wallet.js +6 -2
- package/dest/test-wallet/worker_wallet_schema.d.ts +110 -224
- package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -1
- package/dest/test-wallet/worker_wallet_schema.js +14 -2
- package/package.json +46 -42
- package/src/bench/client_flows/benchmark.ts +19 -0
- package/src/bench/client_flows/client_flows_benchmark.ts +64 -53
- package/src/bench/utils.ts +2 -1
- package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +24 -10
- package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +49 -11
- package/src/e2e_deploy_contract/deploy_test.ts +3 -2
- package/src/e2e_epochs/epochs_test.ts +98 -11
- package/src/e2e_fees/fees_test.ts +37 -4
- package/src/e2e_nested_contract/nested_contract_test.ts +3 -1
- package/src/e2e_p2p/inactivity_slash_test.ts +4 -3
- package/src/e2e_p2p/p2p_network.ts +57 -39
- package/src/e2e_p2p/reqresp/utils.ts +30 -12
- package/src/e2e_p2p/shared.ts +60 -71
- package/src/e2e_token_contract/token_contract_test.ts +12 -2
- package/src/fixtures/authwit_proxy.ts +4 -0
- package/src/fixtures/e2e_prover_test.ts +15 -18
- package/src/fixtures/fixtures.ts +83 -0
- package/src/fixtures/get_bb_config.ts +7 -6
- package/src/fixtures/ha_setup.ts +4 -2
- package/src/fixtures/schnorr_hardcoded_account_contract.ts +49 -0
- package/src/fixtures/setup.ts +186 -33
- package/src/fixtures/setup_p2p_test.ts +13 -9
- package/src/fixtures/token_utils.ts +1 -4
- package/src/fixtures/utils.ts +2 -0
- package/src/forward-compatibility/wallet_rpc_client.ts +14 -0
- package/src/forward-compatibility/wallet_service.ts +104 -0
- package/src/guides/up_quick_start.sh +0 -2
- package/src/install_legacy_contracts.cjs +75 -0
- package/src/legacy-jest-resolver.cjs +112 -0
- package/src/shared/cross_chain_test_harness.ts +14 -4
- package/src/shared/gas_portal_test_harness.ts +20 -10
- package/src/shared/uniswap_l1_l2.ts +84 -40
- package/src/shared/wait_for_l1_to_l2_message.ts +23 -0
- package/src/simulators/lending_simulator.ts +28 -12
- package/src/simulators/token_simulator.ts +1 -1
- package/src/spartan/setup_test_wallets.ts +69 -43
- package/src/spartan/tx_metrics.ts +81 -23
- package/src/spartan/utils/nodes.ts +2 -2
- package/src/test-wallet/test_wallet.ts +174 -104
- package/src/test-wallet/utils.ts +3 -7
- package/src/test-wallet/wallet_worker_script.ts +5 -2
- package/src/test-wallet/worker_wallet.ts +10 -5
- 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,E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AAE,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 ?? '
|
|
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
|
|
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.
|
|
7
|
-
getChainInfo: z.ZodFunction<z.ZodTuple<[],
|
|
8
|
-
getContractMetadata: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.
|
|
9
|
-
getContractClassMetadata: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/foundation/schemas").Fr, z.
|
|
10
|
-
registerSender: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.
|
|
11
|
-
getAddressBook: z.ZodFunction<z.ZodTuple<[],
|
|
12
|
-
getAccounts: z.ZodFunction<z.ZodTuple<[],
|
|
13
|
-
registerContract: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/contract").ContractInstanceWithAddress, z.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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.
|
|
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.
|
|
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
|
|
30
|
-
returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.
|
|
31
|
-
},
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
150
|
-
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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:
|
|
194
|
-
feePerL2Gas:
|
|
104
|
+
maxPriorityFeePerGas: {
|
|
105
|
+
feePerDaGas: bigint;
|
|
106
|
+
feePerL2Gas: bigint;
|
|
195
107
|
} | undefined;
|
|
196
|
-
} | undefined
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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:
|
|
260
|
-
feePerL2Gas:
|
|
132
|
+
maxPriorityFeePerGas: {
|
|
133
|
+
feePerDaGas: bigint;
|
|
134
|
+
feePerL2Gas: bigint;
|
|
261
135
|
} | undefined;
|
|
262
136
|
} | undefined;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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,
|
|
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
|
|
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(
|
|
9
|
-
|
|
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.
|
|
3
|
+
"version": "0.0.1-commit.b3d3157a",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"exports":
|
|
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.
|
|
30
|
-
"@aztec/archiver": "0.0.1-commit.
|
|
31
|
-
"@aztec/aztec": "0.0.1-commit.
|
|
32
|
-
"@aztec/aztec-node": "0.0.1-commit.
|
|
33
|
-
"@aztec/aztec.js": "0.0.1-commit.
|
|
34
|
-
"@aztec/bb-prover": "0.0.1-commit.
|
|
35
|
-
"@aztec/bb.js": "0.0.1-commit.
|
|
36
|
-
"@aztec/blob-client": "0.0.1-commit.
|
|
37
|
-
"@aztec/blob-lib": "0.0.1-commit.
|
|
38
|
-
"@aztec/bot": "0.0.1-commit.
|
|
39
|
-
"@aztec/cli": "0.0.1-commit.
|
|
40
|
-
"@aztec/constants": "0.0.1-commit.
|
|
41
|
-
"@aztec/entrypoints": "0.0.1-commit.
|
|
42
|
-
"@aztec/epoch-cache": "0.0.1-commit.
|
|
43
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
44
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
45
|
-
"@aztec/kv-store": "0.0.1-commit.
|
|
46
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
47
|
-
"@aztec/
|
|
48
|
-
"@aztec/
|
|
49
|
-
"@aztec/noir-
|
|
50
|
-
"@aztec/noir-
|
|
51
|
-
"@aztec/noir-
|
|
52
|
-
"@aztec/
|
|
53
|
-
"@aztec/
|
|
54
|
-
"@aztec/
|
|
55
|
-
"@aztec/prover-
|
|
56
|
-
"@aztec/
|
|
57
|
-
"@aztec/
|
|
58
|
-
"@aztec/
|
|
59
|
-
"@aztec/
|
|
60
|
-
"@aztec/
|
|
61
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
62
|
-
"@aztec/telemetry-client": "0.0.1-commit.
|
|
63
|
-
"@aztec/validator-client": "0.0.1-commit.
|
|
64
|
-
"@aztec/validator-ha-signer": "0.0.1-commit.
|
|
65
|
-
"@aztec/wallet-sdk": "0.0.1-commit.
|
|
66
|
-
"@aztec/wallets": "0.0.1-commit.
|
|
67
|
-
"@aztec/world-state": "0.0.1-commit.
|
|
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": "^
|
|
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,
|