@aztec/end-to-end 0.0.1-commit.d6f2b3f94 → 0.0.1-commit.db765a8
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/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 +11 -10
- package/dest/bench/utils.d.ts +1 -1
- package/dest/bench/utils.d.ts.map +1 -1
- package/dest/bench/utils.js +6 -3
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +4 -2
- 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 +22 -12
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +2 -2
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
- package/dest/e2e_deploy_contract/deploy_test.d.ts +2 -2
- package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
- package/dest/e2e_epochs/epochs_test.d.ts +9 -7
- package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
- package/dest/e2e_epochs/epochs_test.js +53 -34
- package/dest/e2e_fees/fees_test.d.ts +2 -2
- package/dest/e2e_fees/fees_test.d.ts.map +1 -1
- package/dest/e2e_fees/fees_test.js +10 -10
- package/dest/e2e_nested_contract/nested_contract_test.d.ts +1 -1
- package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
- package/dest/e2e_nested_contract/nested_contract_test.js +4 -6
- package/dest/e2e_p2p/p2p_network.d.ts +4 -3
- package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
- package/dest/e2e_p2p/p2p_network.js +23 -6
- package/dest/e2e_p2p/reqresp/utils.d.ts +3 -3
- package/dest/e2e_p2p/reqresp/utils.d.ts.map +1 -1
- package/dest/e2e_p2p/reqresp/utils.js +32 -8
- package/dest/e2e_p2p/shared.d.ts +16 -2
- package/dest/e2e_p2p/shared.d.ts.map +1 -1
- package/dest/e2e_p2p/shared.js +27 -3
- package/dest/e2e_token_contract/token_contract_test.d.ts +4 -2
- package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
- package/dest/e2e_token_contract/token_contract_test.js +19 -9
- package/dest/fixtures/authwit_proxy.d.ts +15 -0
- package/dest/fixtures/authwit_proxy.d.ts.map +1 -0
- package/dest/fixtures/authwit_proxy.js +30 -0
- package/dest/fixtures/e2e_prover_test.d.ts +4 -4
- package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
- package/dest/fixtures/e2e_prover_test.js +33 -40
- package/dest/fixtures/elu_monitor.d.ts +21 -0
- package/dest/fixtures/elu_monitor.d.ts.map +1 -0
- package/dest/fixtures/elu_monitor.js +102 -0
- package/dest/fixtures/fixtures.d.ts +5 -1
- package/dest/fixtures/fixtures.d.ts.map +1 -1
- package/dest/fixtures/fixtures.js +6 -0
- package/dest/fixtures/ha_setup.d.ts +1 -1
- package/dest/fixtures/ha_setup.d.ts.map +1 -1
- package/dest/fixtures/ha_setup.js +3 -1
- package/dest/fixtures/setup.d.ts +27 -11
- package/dest/fixtures/setup.d.ts.map +1 -1
- package/dest/fixtures/setup.js +59 -84
- package/dest/fixtures/setup_p2p_test.d.ts +6 -3
- package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
- package/dest/fixtures/setup_p2p_test.js +12 -9
- package/dest/fixtures/token_utils.d.ts +2 -2
- package/dest/fixtures/token_utils.d.ts.map +1 -1
- package/dest/fixtures/token_utils.js +5 -4
- package/dest/shared/cross_chain_test_harness.d.ts +1 -1
- package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
- package/dest/shared/cross_chain_test_harness.js +13 -13
- package/dest/shared/gas_portal_test_harness.js +2 -2
- package/dest/shared/index.d.ts +2 -1
- package/dest/shared/index.d.ts.map +1 -1
- package/dest/shared/index.js +1 -0
- package/dest/shared/jest_setup.js +41 -1
- package/dest/shared/mock_state_view.d.ts +86 -0
- package/dest/shared/mock_state_view.d.ts.map +1 -0
- package/dest/shared/mock_state_view.js +186 -0
- package/dest/shared/submit-transactions.d.ts +2 -2
- package/dest/shared/submit-transactions.d.ts.map +1 -1
- package/dest/shared/submit-transactions.js +1 -1
- 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 +5 -5
- package/dest/simulators/lending_simulator.d.ts +1 -1
- package/dest/simulators/lending_simulator.d.ts.map +1 -1
- package/dest/simulators/lending_simulator.js +2 -2
- package/dest/simulators/token_simulator.d.ts +1 -1
- package/dest/simulators/token_simulator.d.ts.map +1 -1
- package/dest/simulators/token_simulator.js +3 -24
- package/dest/spartan/setup_test_wallets.d.ts +9 -2
- package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
- package/dest/spartan/setup_test_wallets.js +34 -3
- package/dest/spartan/tx_metrics.js +1 -1
- package/dest/spartan/utils/bot.d.ts +3 -2
- package/dest/spartan/utils/bot.d.ts.map +1 -1
- package/dest/spartan/utils/bot.js +2 -1
- package/dest/spartan/utils/config.d.ts +4 -1
- package/dest/spartan/utils/config.d.ts.map +1 -1
- package/dest/spartan/utils/config.js +2 -1
- package/dest/spartan/utils/index.d.ts +3 -2
- package/dest/spartan/utils/index.d.ts.map +1 -1
- package/dest/spartan/utils/index.js +3 -1
- package/dest/spartan/utils/k8s.d.ts +3 -1
- package/dest/spartan/utils/k8s.d.ts.map +1 -1
- package/dest/spartan/utils/k8s.js +6 -0
- package/dest/spartan/utils/nodes.d.ts +4 -5
- package/dest/spartan/utils/nodes.d.ts.map +1 -1
- package/dest/spartan/utils/nodes.js +9 -9
- package/dest/test-wallet/test_wallet.d.ts +83 -0
- package/dest/test-wallet/test_wallet.d.ts.map +1 -0
- package/dest/test-wallet/test_wallet.js +214 -0
- package/dest/test-wallet/utils.d.ts +41 -0
- package/dest/test-wallet/utils.d.ts.map +1 -0
- package/dest/test-wallet/utils.js +71 -0
- package/dest/test-wallet/wallet_worker_script.d.ts +2 -0
- package/dest/test-wallet/wallet_worker_script.d.ts.map +1 -0
- package/dest/test-wallet/wallet_worker_script.js +48 -0
- package/dest/test-wallet/worker_wallet.d.ts +52 -0
- package/dest/test-wallet/worker_wallet.d.ts.map +1 -0
- package/dest/test-wallet/worker_wallet.js +151 -0
- package/dest/test-wallet/worker_wallet_schema.d.ts +274 -0
- package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -0
- package/dest/test-wallet/worker_wallet_schema.js +10 -0
- package/package.json +43 -43
- package/src/bench/client_flows/client_flows_benchmark.ts +33 -32
- package/src/bench/utils.ts +7 -2
- package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +27 -14
- package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +1 -1
- package/src/e2e_deploy_contract/deploy_test.ts +1 -1
- package/src/e2e_epochs/epochs_test.ts +66 -66
- package/src/e2e_fees/bridging_race.notest.ts +1 -1
- package/src/e2e_fees/fees_test.ts +10 -21
- package/src/e2e_nested_contract/nested_contract_test.ts +6 -4
- package/src/e2e_p2p/p2p_network.ts +31 -5
- package/src/e2e_p2p/reqresp/utils.ts +36 -8
- package/src/e2e_p2p/shared.ts +47 -3
- package/src/e2e_token_contract/token_contract_test.ts +25 -8
- package/src/fixtures/authwit_proxy.ts +50 -0
- package/src/fixtures/dumps/epoch_proof_result.json +1 -1
- package/src/fixtures/e2e_prover_test.ts +37 -41
- package/src/fixtures/elu_monitor.ts +126 -0
- package/src/fixtures/fixtures.ts +10 -0
- package/src/fixtures/ha_setup.ts +3 -1
- package/src/fixtures/setup.ts +78 -113
- package/src/fixtures/setup_p2p_test.ts +9 -17
- package/src/fixtures/token_utils.ts +6 -3
- package/src/guides/up_quick_start.sh +3 -3
- package/src/shared/cross_chain_test_harness.ts +13 -9
- package/src/shared/gas_portal_test_harness.ts +1 -1
- package/src/shared/index.ts +1 -0
- package/src/shared/jest_setup.ts +51 -1
- package/src/shared/mock_state_view.ts +188 -0
- package/src/shared/submit-transactions.ts +3 -2
- package/src/shared/uniswap_l1_l2.ts +7 -5
- package/src/simulators/lending_simulator.ts +4 -2
- package/src/simulators/token_simulator.ts +6 -30
- package/src/spartan/setup_test_wallets.ts +58 -11
- package/src/spartan/tx_metrics.ts +1 -1
- package/src/spartan/utils/bot.ts +4 -1
- package/src/spartan/utils/config.ts +1 -0
- package/src/spartan/utils/index.ts +4 -0
- package/src/spartan/utils/k8s.ts +8 -0
- package/src/spartan/utils/nodes.ts +15 -10
- package/src/test-wallet/test_wallet.ts +306 -0
- package/src/test-wallet/utils.ts +112 -0
- package/src/test-wallet/wallet_worker_script.ts +60 -0
- package/src/test-wallet/worker_wallet.ts +213 -0
- package/src/test-wallet/worker_wallet_schema.ts +13 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
2
|
+
import { Tx } from '@aztec/stdlib/tx';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/** Schema for the WorkerWallet API — extends WalletSchema with proveTx and registerAccount. */
|
|
5
|
+
export declare const WorkerWalletSchema: {
|
|
6
|
+
getPrivateEvents: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/abi").EventMetadataDefinition, z.ZodTypeDef, any>, eventFilter: z.ZodType<import("@aztec/aztec.js/wallet").PrivateEventFilter, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").PrivateEvent<unknown>[], z.ZodTypeDef, any>>;
|
|
7
|
+
getChainInfo: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/entrypoints/interfaces").ChainInfo, z.ZodTypeDef, any>>;
|
|
8
|
+
getContractMetadata: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").ContractMetadata, z.ZodTypeDef, any>>;
|
|
9
|
+
getContractClassMetadata: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/foundation/schemas").Fr, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").ContractClassMetadata, z.ZodTypeDef, any>>;
|
|
10
|
+
registerSender: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>, alias?: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<string | undefined, z.ZodTypeDef, any>> | undefined], z.ZodUnknown>, z.ZodType<AztecAddress, z.ZodTypeDef, any>>;
|
|
11
|
+
getAddressBook: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], z.ZodTypeDef, any>>;
|
|
12
|
+
getAccounts: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], z.ZodTypeDef, any>>;
|
|
13
|
+
registerContract: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/contract").ContractInstanceWithAddress, z.ZodTypeDef, any>, artifact?: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<import("@aztec/stdlib/abi").ContractArtifact | undefined, z.ZodTypeDef, any>> | undefined, secretKey?: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodType<import("@aztec/foundation/schemas").Fr | undefined, z.ZodTypeDef, any>> | undefined], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/contract").ContractInstanceWithAddress, z.ZodTypeDef, any>>;
|
|
14
|
+
simulateTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SimulateOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxSimulationResult, z.ZodTypeDef, any>>;
|
|
15
|
+
executeUtility: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/abi").FunctionCall, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ExecuteUtilityOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").UtilityExecutionResult, z.ZodTypeDef, any>>;
|
|
16
|
+
profileTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ProfileOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxProfileResult, z.ZodTypeDef, any>>;
|
|
17
|
+
sendTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SendOptions<import("@aztec/aztec.js/contracts").InteractionWaitOptions>, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/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>>;
|
|
21
|
+
proveTx: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
22
|
+
calls: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
to: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
25
|
+
selector: import("@aztec/foundation/schemas").ZodFor<import("@aztec/stdlib/abi").FunctionSelector>;
|
|
26
|
+
type: z.ZodNativeEnum<typeof import("@aztec/stdlib/abi").FunctionType>;
|
|
27
|
+
isStatic: z.ZodBoolean;
|
|
28
|
+
hideMsgSender: z.ZodBoolean;
|
|
29
|
+
args: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("@aztec/foundation/schemas").Fr>, "many">;
|
|
30
|
+
returnTypes: z.ZodArray<z.ZodType<import("@aztec/stdlib/abi").AbiType, z.ZodTypeDef, import("@aztec/stdlib/abi").AbiType>, "many">;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
name: string;
|
|
33
|
+
to: AztecAddress;
|
|
34
|
+
selector: import("@aztec/stdlib/abi").FunctionSelector;
|
|
35
|
+
type: import("@aztec/stdlib/abi").FunctionType;
|
|
36
|
+
isStatic: boolean;
|
|
37
|
+
hideMsgSender: boolean;
|
|
38
|
+
args: import("@aztec/foundation/schemas").Fr[];
|
|
39
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
40
|
+
}, {
|
|
41
|
+
name: string;
|
|
42
|
+
to?: any;
|
|
43
|
+
selector?: any;
|
|
44
|
+
type: import("@aztec/stdlib/abi").FunctionType;
|
|
45
|
+
isStatic: boolean;
|
|
46
|
+
hideMsgSender: boolean;
|
|
47
|
+
args: any[];
|
|
48
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
49
|
+
}>, import("@aztec/stdlib/abi").FunctionCall, {
|
|
50
|
+
name: string;
|
|
51
|
+
to?: any;
|
|
52
|
+
selector?: any;
|
|
53
|
+
type: import("@aztec/stdlib/abi").FunctionType;
|
|
54
|
+
isStatic: boolean;
|
|
55
|
+
hideMsgSender: boolean;
|
|
56
|
+
args: any[];
|
|
57
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
58
|
+
}>, "many">;
|
|
59
|
+
authWitnesses: z.ZodArray<z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, any, string>, "many">;
|
|
60
|
+
capsules: z.ZodArray<z.ZodType<import("@aztec/stdlib/tx").Capsule, any, string>, "many">;
|
|
61
|
+
extraHashedArgs: z.ZodArray<import("@aztec/foundation/schemas").ZodFor<import("@aztec/stdlib/tx").HashedValues>, "many">;
|
|
62
|
+
feePayer: import("@aztec/foundation/schemas").ZodNullableOptional<import("@aztec/foundation/schemas").ZodFor<AztecAddress>>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
calls: import("@aztec/stdlib/abi").FunctionCall[];
|
|
65
|
+
authWitnesses: import("@aztec/stdlib/auth-witness").AuthWitness[];
|
|
66
|
+
capsules: import("@aztec/stdlib/tx").Capsule[];
|
|
67
|
+
extraHashedArgs: import("@aztec/stdlib/tx").HashedValues[];
|
|
68
|
+
feePayer?: AztecAddress | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
calls: {
|
|
71
|
+
name: string;
|
|
72
|
+
to?: any;
|
|
73
|
+
selector?: any;
|
|
74
|
+
type: import("@aztec/stdlib/abi").FunctionType;
|
|
75
|
+
isStatic: boolean;
|
|
76
|
+
hideMsgSender: boolean;
|
|
77
|
+
args: any[];
|
|
78
|
+
returnTypes: import("@aztec/stdlib/abi").AbiType[];
|
|
79
|
+
}[];
|
|
80
|
+
authWitnesses: string[];
|
|
81
|
+
capsules: string[];
|
|
82
|
+
extraHashedArgs: any[];
|
|
83
|
+
feePayer?: any;
|
|
84
|
+
}>, z.ZodObject<{
|
|
85
|
+
from: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
86
|
+
authWitnesses: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, any, string>, "many">>;
|
|
87
|
+
capsules: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<z.ZodType<import("@aztec/stdlib/tx").Capsule, any, string>, "many">>;
|
|
88
|
+
fee: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
|
|
89
|
+
gasSettings: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
|
|
90
|
+
gasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
|
|
91
|
+
daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
92
|
+
l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
daGas: number;
|
|
95
|
+
l2Gas: number;
|
|
96
|
+
}, {
|
|
97
|
+
daGas: string | number | bigint;
|
|
98
|
+
l2Gas: string | number | bigint;
|
|
99
|
+
}>, import("@aztec/stdlib/gas").Gas, {
|
|
100
|
+
daGas: string | number | bigint;
|
|
101
|
+
l2Gas: string | number | bigint;
|
|
102
|
+
}>>;
|
|
103
|
+
teardownGasLimits: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodEffects<z.ZodObject<{
|
|
104
|
+
daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
105
|
+
l2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
daGas: number;
|
|
108
|
+
l2Gas: number;
|
|
109
|
+
}, {
|
|
110
|
+
daGas: string | number | bigint;
|
|
111
|
+
l2Gas: string | number | bigint;
|
|
112
|
+
}>, import("@aztec/stdlib/gas").Gas, {
|
|
113
|
+
daGas: string | number | bigint;
|
|
114
|
+
l2Gas: string | number | bigint;
|
|
115
|
+
}>>;
|
|
116
|
+
maxFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
|
|
117
|
+
feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
118
|
+
feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
feePerDaGas: bigint;
|
|
121
|
+
feePerL2Gas: bigint;
|
|
122
|
+
}, {
|
|
123
|
+
feePerDaGas: string | number | bigint;
|
|
124
|
+
feePerL2Gas: string | number | bigint;
|
|
125
|
+
}>>;
|
|
126
|
+
maxPriorityFeePerGas: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodObject<{
|
|
127
|
+
feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
128
|
+
feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
feePerDaGas: bigint;
|
|
131
|
+
feePerL2Gas: bigint;
|
|
132
|
+
}, {
|
|
133
|
+
feePerDaGas: string | number | bigint;
|
|
134
|
+
feePerL2Gas: string | number | bigint;
|
|
135
|
+
}>>;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
|
|
138
|
+
teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
|
|
139
|
+
maxFeePerGas?: {
|
|
140
|
+
feePerDaGas: bigint;
|
|
141
|
+
feePerL2Gas: bigint;
|
|
142
|
+
} | undefined;
|
|
143
|
+
maxPriorityFeePerGas?: {
|
|
144
|
+
feePerDaGas: bigint;
|
|
145
|
+
feePerL2Gas: bigint;
|
|
146
|
+
} | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
gasLimits?: {
|
|
149
|
+
daGas: string | number | bigint;
|
|
150
|
+
l2Gas: string | number | bigint;
|
|
151
|
+
} | undefined;
|
|
152
|
+
teardownGasLimits?: {
|
|
153
|
+
daGas: string | number | bigint;
|
|
154
|
+
l2Gas: string | number | bigint;
|
|
155
|
+
} | undefined;
|
|
156
|
+
maxFeePerGas?: {
|
|
157
|
+
feePerDaGas: string | number | bigint;
|
|
158
|
+
feePerL2Gas: string | number | bigint;
|
|
159
|
+
} | undefined;
|
|
160
|
+
maxPriorityFeePerGas?: {
|
|
161
|
+
feePerDaGas: string | number | bigint;
|
|
162
|
+
feePerL2Gas: string | number | bigint;
|
|
163
|
+
} | undefined;
|
|
164
|
+
}>>;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
gasSettings?: {
|
|
167
|
+
gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
|
|
168
|
+
teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
|
|
169
|
+
maxFeePerGas?: {
|
|
170
|
+
feePerDaGas: bigint;
|
|
171
|
+
feePerL2Gas: bigint;
|
|
172
|
+
} | undefined;
|
|
173
|
+
maxPriorityFeePerGas?: {
|
|
174
|
+
feePerDaGas: bigint;
|
|
175
|
+
feePerL2Gas: bigint;
|
|
176
|
+
} | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
gasSettings?: {
|
|
180
|
+
gasLimits?: {
|
|
181
|
+
daGas: string | number | bigint;
|
|
182
|
+
l2Gas: string | number | bigint;
|
|
183
|
+
} | undefined;
|
|
184
|
+
teardownGasLimits?: {
|
|
185
|
+
daGas: string | number | bigint;
|
|
186
|
+
l2Gas: string | number | bigint;
|
|
187
|
+
} | undefined;
|
|
188
|
+
maxFeePerGas?: {
|
|
189
|
+
feePerDaGas: string | number | bigint;
|
|
190
|
+
feePerL2Gas: string | number | bigint;
|
|
191
|
+
} | undefined;
|
|
192
|
+
maxPriorityFeePerGas?: {
|
|
193
|
+
feePerDaGas: string | number | bigint;
|
|
194
|
+
feePerL2Gas: string | number | bigint;
|
|
195
|
+
} | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
}>>;
|
|
198
|
+
wait: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodLiteral<"NO_WAIT">, z.ZodObject<{
|
|
199
|
+
ignoreDroppedReceiptsFor: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
|
|
200
|
+
timeout: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
|
|
201
|
+
interval: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
|
|
202
|
+
dontThrowOnRevert: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodBoolean>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
ignoreDroppedReceiptsFor?: number | undefined;
|
|
205
|
+
timeout?: number | undefined;
|
|
206
|
+
interval?: number | undefined;
|
|
207
|
+
dontThrowOnRevert?: boolean | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
ignoreDroppedReceiptsFor?: number | undefined;
|
|
210
|
+
timeout?: number | undefined;
|
|
211
|
+
interval?: number | undefined;
|
|
212
|
+
dontThrowOnRevert?: boolean | undefined;
|
|
213
|
+
}>]>>;
|
|
214
|
+
additionalScopes: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodArray<import("@aztec/foundation/schemas").ZodFor<AztecAddress>, "many">>;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
from: AztecAddress;
|
|
217
|
+
authWitnesses?: import("@aztec/stdlib/auth-witness").AuthWitness[] | undefined;
|
|
218
|
+
capsules?: import("@aztec/stdlib/tx").Capsule[] | undefined;
|
|
219
|
+
fee?: {
|
|
220
|
+
gasSettings?: {
|
|
221
|
+
gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
|
|
222
|
+
teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
|
|
223
|
+
maxFeePerGas?: {
|
|
224
|
+
feePerDaGas: bigint;
|
|
225
|
+
feePerL2Gas: bigint;
|
|
226
|
+
} | undefined;
|
|
227
|
+
maxPriorityFeePerGas?: {
|
|
228
|
+
feePerDaGas: bigint;
|
|
229
|
+
feePerL2Gas: bigint;
|
|
230
|
+
} | undefined;
|
|
231
|
+
} | undefined;
|
|
232
|
+
} | undefined;
|
|
233
|
+
wait?: "NO_WAIT" | {
|
|
234
|
+
ignoreDroppedReceiptsFor?: number | undefined;
|
|
235
|
+
timeout?: number | undefined;
|
|
236
|
+
interval?: number | undefined;
|
|
237
|
+
dontThrowOnRevert?: boolean | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
additionalScopes?: AztecAddress[] | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
from?: any;
|
|
242
|
+
authWitnesses?: string[] | undefined;
|
|
243
|
+
capsules?: string[] | undefined;
|
|
244
|
+
fee?: {
|
|
245
|
+
gasSettings?: {
|
|
246
|
+
gasLimits?: {
|
|
247
|
+
daGas: string | number | bigint;
|
|
248
|
+
l2Gas: string | number | bigint;
|
|
249
|
+
} | undefined;
|
|
250
|
+
teardownGasLimits?: {
|
|
251
|
+
daGas: string | number | bigint;
|
|
252
|
+
l2Gas: string | number | bigint;
|
|
253
|
+
} | undefined;
|
|
254
|
+
maxFeePerGas?: {
|
|
255
|
+
feePerDaGas: string | number | bigint;
|
|
256
|
+
feePerL2Gas: string | number | bigint;
|
|
257
|
+
} | undefined;
|
|
258
|
+
maxPriorityFeePerGas?: {
|
|
259
|
+
feePerDaGas: string | number | bigint;
|
|
260
|
+
feePerL2Gas: string | number | bigint;
|
|
261
|
+
} | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
} | undefined;
|
|
264
|
+
wait?: "NO_WAIT" | {
|
|
265
|
+
ignoreDroppedReceiptsFor?: number | undefined;
|
|
266
|
+
timeout?: number | undefined;
|
|
267
|
+
interval?: number | undefined;
|
|
268
|
+
dontThrowOnRevert?: boolean | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
additionalScopes?: any[] | undefined;
|
|
271
|
+
}>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<Tx>>;
|
|
272
|
+
registerAccount: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<AztecAddress>>;
|
|
273
|
+
};
|
|
274
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyX3dhbGxldF9zY2hlbWEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0LXdhbGxldC93b3JrZXJfd2FsbGV0X3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXRDLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFFeEIsaUdBQStGO0FBQy9GLGVBQU8sTUFBTSxrQkFBa0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Q0FJOUIsQ0FBQyJ9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker_wallet_schema.d.ts","sourceRoot":"","sources":["../../src/test-wallet/worker_wallet_schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iGAA+F;AAC/F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExecutionPayloadSchema, SendOptionsSchema, WalletSchema } from '@aztec/aztec.js/wallet';
|
|
2
|
+
import { schemas } from '@aztec/foundation/schemas';
|
|
3
|
+
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
|
+
import { Tx } from '@aztec/stdlib/tx';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
/** Schema for the WorkerWallet API — extends WalletSchema with proveTx and registerAccount. */ export const WorkerWalletSchema = {
|
|
7
|
+
...WalletSchema,
|
|
8
|
+
proveTx: z.function().args(ExecutionPayloadSchema, SendOptionsSchema).returns(Tx.schema),
|
|
9
|
+
registerAccount: z.function().args(schemas.Fr, schemas.Fr).returns(AztecAddress.schema)
|
|
10
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/end-to-end",
|
|
3
|
-
"version": "0.0.1-commit.
|
|
3
|
+
"version": "0.0.1-commit.db765a8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"inherits": [
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"build:dev": "../scripts/tsc.sh --watch",
|
|
13
13
|
"clean": "rm -rf ./dest .tsbuildinfo",
|
|
14
14
|
"test:with-alerts": "./scripts/test-with-alerts.sh",
|
|
15
|
-
"test:e2e": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000
|
|
15
|
+
"test:e2e": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000",
|
|
16
16
|
"test:e2e-docker": "./scripts/run_test.sh simple",
|
|
17
17
|
"test:e2e-no-docker": "echo 'The command test:e2e-no-docker is now the same as test:e2e. You can now run this dropping the no-docker suffix.'; yarn test:e2e",
|
|
18
|
-
"test:profile": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 0x --output-dir \"flame_graph/{pid}.0x\" -- node --experimental-vm-modules ../node_modules/jest/bin/jest.js --runInBand --testTimeout=300000
|
|
18
|
+
"test:profile": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 0x --output-dir \"flame_graph/{pid}.0x\" -- node --experimental-vm-modules ../node_modules/jest/bin/jest.js --runInBand --testTimeout=300000",
|
|
19
19
|
"serve:flames": "python3 -m http.server --directory \"flame_graph\" 8000",
|
|
20
|
-
"test:debug": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 node --inspect --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000
|
|
20
|
+
"test:debug": "LOG_LEVEL=${LOG_LEVEL:-verbose} NODE_NO_WARNINGS=1 node --inspect --experimental-vm-modules ../node_modules/.bin/jest --testTimeout=300000",
|
|
21
21
|
"test:integration": "concurrently -k -s first -c reset,dim -n test,anvil \"yarn test:integration:run\" \"anvil\"",
|
|
22
22
|
"test:integration:run": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --no-cache --runInBand --config jest.integration.config.json",
|
|
23
23
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests src/fixtures",
|
|
@@ -26,44 +26,45 @@
|
|
|
26
26
|
"formatting": "run -T prettier --check ./src && run -T eslint ./src"
|
|
27
27
|
},
|
|
28
28
|
"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/merkle-tree": "0.0.1-commit.
|
|
48
|
-
"@aztec/node-keystore": "0.0.1-commit.
|
|
49
|
-
"@aztec/noir-contracts.js": "0.0.1-commit.
|
|
50
|
-
"@aztec/noir-noirc_abi": "0.0.1-commit.
|
|
51
|
-
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.
|
|
52
|
-
"@aztec/noir-test-contracts.js": "0.0.1-commit.
|
|
53
|
-
"@aztec/p2p": "0.0.1-commit.
|
|
54
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
55
|
-
"@aztec/prover-client": "0.0.1-commit.
|
|
56
|
-
"@aztec/prover-node": "0.0.1-commit.
|
|
57
|
-
"@aztec/pxe": "0.0.1-commit.
|
|
58
|
-
"@aztec/sequencer-client": "0.0.1-commit.
|
|
59
|
-
"@aztec/simulator": "0.0.1-commit.
|
|
60
|
-
"@aztec/slasher": "0.0.1-commit.
|
|
61
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
62
|
-
"@aztec/telemetry-client": "0.0.1-commit.
|
|
63
|
-
"@aztec/
|
|
64
|
-
"@aztec/validator-
|
|
65
|
-
"@aztec/
|
|
66
|
-
"@aztec/
|
|
29
|
+
"@aztec/accounts": "0.0.1-commit.db765a8",
|
|
30
|
+
"@aztec/archiver": "0.0.1-commit.db765a8",
|
|
31
|
+
"@aztec/aztec": "0.0.1-commit.db765a8",
|
|
32
|
+
"@aztec/aztec-node": "0.0.1-commit.db765a8",
|
|
33
|
+
"@aztec/aztec.js": "0.0.1-commit.db765a8",
|
|
34
|
+
"@aztec/bb-prover": "0.0.1-commit.db765a8",
|
|
35
|
+
"@aztec/bb.js": "0.0.1-commit.db765a8",
|
|
36
|
+
"@aztec/blob-client": "0.0.1-commit.db765a8",
|
|
37
|
+
"@aztec/blob-lib": "0.0.1-commit.db765a8",
|
|
38
|
+
"@aztec/bot": "0.0.1-commit.db765a8",
|
|
39
|
+
"@aztec/cli": "0.0.1-commit.db765a8",
|
|
40
|
+
"@aztec/constants": "0.0.1-commit.db765a8",
|
|
41
|
+
"@aztec/entrypoints": "0.0.1-commit.db765a8",
|
|
42
|
+
"@aztec/epoch-cache": "0.0.1-commit.db765a8",
|
|
43
|
+
"@aztec/ethereum": "0.0.1-commit.db765a8",
|
|
44
|
+
"@aztec/foundation": "0.0.1-commit.db765a8",
|
|
45
|
+
"@aztec/kv-store": "0.0.1-commit.db765a8",
|
|
46
|
+
"@aztec/l1-artifacts": "0.0.1-commit.db765a8",
|
|
47
|
+
"@aztec/merkle-tree": "0.0.1-commit.db765a8",
|
|
48
|
+
"@aztec/node-keystore": "0.0.1-commit.db765a8",
|
|
49
|
+
"@aztec/noir-contracts.js": "0.0.1-commit.db765a8",
|
|
50
|
+
"@aztec/noir-noirc_abi": "0.0.1-commit.db765a8",
|
|
51
|
+
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.db765a8",
|
|
52
|
+
"@aztec/noir-test-contracts.js": "0.0.1-commit.db765a8",
|
|
53
|
+
"@aztec/p2p": "0.0.1-commit.db765a8",
|
|
54
|
+
"@aztec/protocol-contracts": "0.0.1-commit.db765a8",
|
|
55
|
+
"@aztec/prover-client": "0.0.1-commit.db765a8",
|
|
56
|
+
"@aztec/prover-node": "0.0.1-commit.db765a8",
|
|
57
|
+
"@aztec/pxe": "0.0.1-commit.db765a8",
|
|
58
|
+
"@aztec/sequencer-client": "0.0.1-commit.db765a8",
|
|
59
|
+
"@aztec/simulator": "0.0.1-commit.db765a8",
|
|
60
|
+
"@aztec/slasher": "0.0.1-commit.db765a8",
|
|
61
|
+
"@aztec/stdlib": "0.0.1-commit.db765a8",
|
|
62
|
+
"@aztec/telemetry-client": "0.0.1-commit.db765a8",
|
|
63
|
+
"@aztec/validator-client": "0.0.1-commit.db765a8",
|
|
64
|
+
"@aztec/validator-ha-signer": "0.0.1-commit.db765a8",
|
|
65
|
+
"@aztec/wallet-sdk": "0.0.1-commit.db765a8",
|
|
66
|
+
"@aztec/wallets": "0.0.1-commit.db765a8",
|
|
67
|
+
"@aztec/world-state": "0.0.1-commit.db765a8",
|
|
67
68
|
"@iarna/toml": "^2.2.5",
|
|
68
69
|
"@jest/globals": "^30.0.0",
|
|
69
70
|
"@noble/curves": "=1.0.0",
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
"@types/koa-static": "^4.0.2",
|
|
76
77
|
"@types/lodash.every": "^4.6.7",
|
|
77
78
|
"@types/node": "^22.15.17",
|
|
78
|
-
"@viem/anvil": "^0.0.9",
|
|
79
79
|
"buffer": "^6.0.3",
|
|
80
80
|
"crypto-browserify": "^3.12.1",
|
|
81
81
|
"fs-extra": "^11.2.0",
|
|
@@ -26,7 +26,6 @@ import { type PXEConfig, getPXEConfig } from '@aztec/pxe/server';
|
|
|
26
26
|
import type { ContractInstanceWithAddress } from '@aztec/stdlib/contract';
|
|
27
27
|
import { GasSettings } from '@aztec/stdlib/gas';
|
|
28
28
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
29
|
-
import { TestWallet } from '@aztec/test-wallet/server';
|
|
30
29
|
|
|
31
30
|
import { MNEMONIC } from '../../fixtures/fixtures.js';
|
|
32
31
|
import { type EndToEndContext, type SetupOptions, deployAccounts, setup, teardown } from '../../fixtures/setup.js';
|
|
@@ -37,6 +36,7 @@ import {
|
|
|
37
36
|
FeeJuicePortalTestingHarnessFactory,
|
|
38
37
|
type GasBridgingTestHarness,
|
|
39
38
|
} from '../../shared/gas_portal_test_harness.js';
|
|
39
|
+
import { TestWallet } from '../../test-wallet/test_wallet.js';
|
|
40
40
|
import { ProxyLogger } from './benchmark.js';
|
|
41
41
|
import { type ClientFlowsConfig, FULL_FLOWS_CONFIG, KEY_FLOWS_CONFIG } from './config.js';
|
|
42
42
|
|
|
@@ -148,6 +148,7 @@ export class ClientFlowsBenchmark {
|
|
|
148
148
|
|
|
149
149
|
async teardown() {
|
|
150
150
|
await this.chainMonitor.stop();
|
|
151
|
+
await this.userWallet?.stop();
|
|
151
152
|
await teardown(this.context);
|
|
152
153
|
}
|
|
153
154
|
|
|
@@ -161,15 +162,15 @@ export class ClientFlowsBenchmark {
|
|
|
161
162
|
|
|
162
163
|
/** Admin mints bananaCoin tokens privately to the target address and redeems them. */
|
|
163
164
|
async mintPrivateBananas(amount: bigint, address: AztecAddress) {
|
|
164
|
-
const balanceBefore = await this.bananaCoin.methods
|
|
165
|
+
const { result: balanceBefore } = await this.bananaCoin.methods
|
|
165
166
|
.balance_of_private(address)
|
|
166
|
-
.simulate({ from:
|
|
167
|
+
.simulate({ from: address });
|
|
167
168
|
|
|
168
169
|
await mintTokensToPrivate(this.bananaCoin, this.adminAddress, address, amount);
|
|
169
170
|
|
|
170
|
-
const balanceAfter = await this.bananaCoin.methods
|
|
171
|
+
const { result: balanceAfter } = await this.bananaCoin.methods
|
|
171
172
|
.balance_of_private(address)
|
|
172
|
-
.simulate({ from:
|
|
173
|
+
.simulate({ from: address });
|
|
173
174
|
expect(balanceAfter).toEqual(balanceBefore + amount);
|
|
174
175
|
}
|
|
175
176
|
|
|
@@ -245,13 +246,12 @@ export class ClientFlowsBenchmark {
|
|
|
245
246
|
|
|
246
247
|
async applyDeployBananaToken() {
|
|
247
248
|
this.logger.info('Applying banana token deployment');
|
|
248
|
-
const {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
).send({ from: this.adminAddress, wait: { returnReceipt: true } });
|
|
249
|
+
const {
|
|
250
|
+
receipt: { contract: bananaCoin, instance: bananaCoinInstance },
|
|
251
|
+
} = await BananaCoin.deploy(this.adminWallet, this.adminAddress, 'BC', 'BC', 18n).send({
|
|
252
|
+
from: this.adminAddress,
|
|
253
|
+
wait: { returnReceipt: true },
|
|
254
|
+
});
|
|
255
255
|
this.logger.info(`BananaCoin deployed at ${bananaCoin.address}`);
|
|
256
256
|
this.bananaCoin = bananaCoin;
|
|
257
257
|
this.bananaCoinInstance = bananaCoinInstance;
|
|
@@ -259,13 +259,12 @@ export class ClientFlowsBenchmark {
|
|
|
259
259
|
|
|
260
260
|
async applyDeployCandyBarToken() {
|
|
261
261
|
this.logger.info('Applying candy bar token deployment');
|
|
262
|
-
const {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
).send({ from: this.adminAddress, wait: { returnReceipt: true } });
|
|
262
|
+
const {
|
|
263
|
+
receipt: { contract: candyBarCoin, instance: candyBarCoinInstance },
|
|
264
|
+
} = await TokenContract.deploy(this.adminWallet, this.adminAddress, 'CBC', 'CBC', 18n).send({
|
|
265
|
+
from: this.adminAddress,
|
|
266
|
+
wait: { returnReceipt: true },
|
|
267
|
+
});
|
|
269
268
|
this.logger.info(`CandyBarCoin deployed at ${candyBarCoin.address}`);
|
|
270
269
|
this.candyBarCoin = candyBarCoin;
|
|
271
270
|
this.candyBarCoinInstance = candyBarCoinInstance;
|
|
@@ -277,11 +276,12 @@ export class ClientFlowsBenchmark {
|
|
|
277
276
|
expect((await this.context.wallet.getContractMetadata(feeJuiceContract.address)).isContractPublished).toBe(true);
|
|
278
277
|
|
|
279
278
|
const bananaCoin = this.bananaCoin;
|
|
280
|
-
const {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
this.adminAddress,
|
|
284
|
-
|
|
279
|
+
const {
|
|
280
|
+
receipt: { contract: bananaFPC, instance: bananaFPCInstance },
|
|
281
|
+
} = await FPCContract.deploy(this.adminWallet, bananaCoin.address, this.adminAddress).send({
|
|
282
|
+
from: this.adminAddress,
|
|
283
|
+
wait: { returnReceipt: true },
|
|
284
|
+
});
|
|
285
285
|
|
|
286
286
|
this.logger.info(`BananaPay deployed at ${bananaFPC.address}`);
|
|
287
287
|
|
|
@@ -344,14 +344,15 @@ export class ClientFlowsBenchmark {
|
|
|
344
344
|
|
|
345
345
|
public async applyDeployAmm() {
|
|
346
346
|
this.logger.info('Applying AMM deployment');
|
|
347
|
-
const {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
347
|
+
const {
|
|
348
|
+
receipt: { contract: liquidityToken, instance: liquidityTokenInstance },
|
|
349
|
+
} = await TokenContract.deploy(this.adminWallet, this.adminAddress, 'LPT', 'LPT', 18n).send({
|
|
350
|
+
from: this.adminAddress,
|
|
351
|
+
wait: { returnReceipt: true },
|
|
352
|
+
});
|
|
353
|
+
const {
|
|
354
|
+
receipt: { contract: amm, instance: ammInstance },
|
|
355
|
+
} = await AMMContract.deploy(
|
|
355
356
|
this.adminWallet,
|
|
356
357
|
this.bananaCoin.address,
|
|
357
358
|
this.candyBarCoin.address,
|
package/src/bench/utils.ts
CHANGED
|
@@ -25,7 +25,7 @@ export async function benchmarkSetup(
|
|
|
25
25
|
) {
|
|
26
26
|
const context = await setup(1, { ...opts, telemetryConfig: { benchmark: true } });
|
|
27
27
|
const defaultAccountAddress = context.accounts[0];
|
|
28
|
-
const contract = await BenchmarkingContract.deploy(context.wallet).send({ from: defaultAccountAddress });
|
|
28
|
+
const { contract } = await BenchmarkingContract.deploy(context.wallet).send({ from: defaultAccountAddress });
|
|
29
29
|
context.logger.info(`Deployed benchmarking contract at ${contract.address}`);
|
|
30
30
|
const sequencer = (context.aztecNode as AztecNodeService).getSequencer()!;
|
|
31
31
|
const telemetry = context.telemetryClient as BenchmarkTelemetryClient;
|
|
@@ -149,7 +149,12 @@ export async function sendTxs(
|
|
|
149
149
|
context.logger.info(`Creating ${txCount} txs`);
|
|
150
150
|
const [from] = context.accounts;
|
|
151
151
|
context.logger.info(`Sending ${txCount} txs`);
|
|
152
|
-
return Promise.all(
|
|
152
|
+
return Promise.all(
|
|
153
|
+
calls.map(async call => {
|
|
154
|
+
const { txHash } = await call.send({ from, wait: NO_WAIT });
|
|
155
|
+
return txHash;
|
|
156
|
+
}),
|
|
157
|
+
);
|
|
153
158
|
}
|
|
154
159
|
|
|
155
160
|
export async function waitTxs(txs: TxHash[], context: EndToEndContext, txWaitOpts?: WaitOpts) {
|