@aztec/end-to-end 4.0.0-devnet.1-patch.0 → 4.0.0-devnet.2-patch.0

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 (120) hide show
  1. package/dest/bench/client_flows/client_flows_benchmark.d.ts +2 -2
  2. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  3. package/dest/bench/client_flows/client_flows_benchmark.js +3 -3
  4. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +4 -2
  5. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
  6. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +10 -0
  7. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +2 -2
  8. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  9. package/dest/e2e_deploy_contract/deploy_test.d.ts +2 -2
  10. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  11. package/dest/e2e_epochs/epochs_test.d.ts +9 -7
  12. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  13. package/dest/e2e_epochs/epochs_test.js +53 -34
  14. package/dest/e2e_fees/fees_test.d.ts +2 -2
  15. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  16. package/dest/e2e_fees/fees_test.js +5 -5
  17. package/dest/e2e_p2p/p2p_network.d.ts +2 -2
  18. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  19. package/dest/e2e_p2p/p2p_network.js +2 -2
  20. package/dest/e2e_p2p/reqresp/utils.d.ts +3 -3
  21. package/dest/e2e_p2p/reqresp/utils.d.ts.map +1 -1
  22. package/dest/e2e_p2p/reqresp/utils.js +32 -8
  23. package/dest/e2e_p2p/shared.d.ts +2 -2
  24. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  25. package/dest/e2e_p2p/shared.js +2 -1
  26. package/dest/e2e_token_contract/token_contract_test.d.ts +4 -2
  27. package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
  28. package/dest/e2e_token_contract/token_contract_test.js +10 -0
  29. package/dest/fixtures/authwit_proxy.d.ts +15 -0
  30. package/dest/fixtures/authwit_proxy.d.ts.map +1 -0
  31. package/dest/fixtures/authwit_proxy.js +30 -0
  32. package/dest/fixtures/e2e_prover_test.d.ts +4 -4
  33. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  34. package/dest/fixtures/e2e_prover_test.js +27 -34
  35. package/dest/fixtures/fixtures.d.ts +5 -1
  36. package/dest/fixtures/fixtures.d.ts.map +1 -1
  37. package/dest/fixtures/fixtures.js +6 -0
  38. package/dest/fixtures/ha_setup.d.ts +1 -1
  39. package/dest/fixtures/ha_setup.d.ts.map +1 -1
  40. package/dest/fixtures/ha_setup.js +3 -1
  41. package/dest/fixtures/setup.d.ts +27 -10
  42. package/dest/fixtures/setup.d.ts.map +1 -1
  43. package/dest/fixtures/setup.js +56 -81
  44. package/dest/fixtures/setup_p2p_test.d.ts +6 -3
  45. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  46. package/dest/fixtures/setup_p2p_test.js +12 -9
  47. package/dest/shared/index.d.ts +2 -1
  48. package/dest/shared/index.d.ts.map +1 -1
  49. package/dest/shared/index.js +1 -0
  50. package/dest/shared/mock_state_view.d.ts +86 -0
  51. package/dest/shared/mock_state_view.d.ts.map +1 -0
  52. package/dest/shared/mock_state_view.js +186 -0
  53. package/dest/shared/submit-transactions.d.ts +2 -2
  54. package/dest/shared/submit-transactions.d.ts.map +1 -1
  55. package/dest/shared/uniswap_l1_l2.d.ts +1 -1
  56. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  57. package/dest/simulators/token_simulator.d.ts +1 -1
  58. package/dest/simulators/token_simulator.d.ts.map +1 -1
  59. package/dest/simulators/token_simulator.js +2 -23
  60. package/dest/spartan/setup_test_wallets.d.ts +9 -2
  61. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  62. package/dest/spartan/setup_test_wallets.js +31 -1
  63. package/dest/spartan/utils/bot.d.ts +3 -2
  64. package/dest/spartan/utils/bot.d.ts.map +1 -1
  65. package/dest/spartan/utils/bot.js +2 -1
  66. package/dest/spartan/utils/index.d.ts +2 -2
  67. package/dest/spartan/utils/index.d.ts.map +1 -1
  68. package/dest/spartan/utils/index.js +1 -1
  69. package/dest/spartan/utils/k8s.d.ts +3 -1
  70. package/dest/spartan/utils/k8s.d.ts.map +1 -1
  71. package/dest/spartan/utils/k8s.js +6 -0
  72. package/dest/test-wallet/test_wallet.d.ts +83 -0
  73. package/dest/test-wallet/test_wallet.d.ts.map +1 -0
  74. package/dest/test-wallet/test_wallet.js +214 -0
  75. package/dest/test-wallet/utils.d.ts +41 -0
  76. package/dest/test-wallet/utils.d.ts.map +1 -0
  77. package/dest/test-wallet/utils.js +71 -0
  78. package/dest/test-wallet/wallet_worker_script.d.ts +2 -0
  79. package/dest/test-wallet/wallet_worker_script.d.ts.map +1 -0
  80. package/dest/test-wallet/wallet_worker_script.js +40 -0
  81. package/dest/test-wallet/worker_wallet.d.ts +52 -0
  82. package/dest/test-wallet/worker_wallet.d.ts.map +1 -0
  83. package/dest/test-wallet/worker_wallet.js +103 -0
  84. package/dest/test-wallet/worker_wallet_schema.d.ts +271 -0
  85. package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -0
  86. package/dest/test-wallet/worker_wallet_schema.js +10 -0
  87. package/package.json +40 -39
  88. package/src/bench/client_flows/client_flows_benchmark.ts +3 -7
  89. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +10 -1
  90. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +1 -1
  91. package/src/e2e_deploy_contract/deploy_test.ts +1 -1
  92. package/src/e2e_epochs/epochs_test.ts +66 -66
  93. package/src/e2e_fees/bridging_race.notest.ts +1 -1
  94. package/src/e2e_fees/fees_test.ts +5 -20
  95. package/src/e2e_p2p/p2p_network.ts +3 -3
  96. package/src/e2e_p2p/reqresp/utils.ts +36 -8
  97. package/src/e2e_p2p/shared.ts +2 -1
  98. package/src/e2e_token_contract/token_contract_test.ts +10 -1
  99. package/src/fixtures/authwit_proxy.ts +50 -0
  100. package/src/fixtures/dumps/epoch_proof_result.json +1 -1
  101. package/src/fixtures/e2e_prover_test.ts +26 -36
  102. package/src/fixtures/fixtures.ts +10 -0
  103. package/src/fixtures/ha_setup.ts +3 -1
  104. package/src/fixtures/setup.ts +73 -109
  105. package/src/fixtures/setup_p2p_test.ts +9 -17
  106. package/src/guides/up_quick_start.sh +3 -3
  107. package/src/shared/index.ts +1 -0
  108. package/src/shared/mock_state_view.ts +188 -0
  109. package/src/shared/submit-transactions.ts +2 -1
  110. package/src/shared/uniswap_l1_l2.ts +1 -1
  111. package/src/simulators/token_simulator.ts +1 -29
  112. package/src/spartan/setup_test_wallets.ts +43 -1
  113. package/src/spartan/utils/bot.ts +4 -1
  114. package/src/spartan/utils/index.ts +1 -0
  115. package/src/spartan/utils/k8s.ts +8 -0
  116. package/src/test-wallet/test_wallet.ts +306 -0
  117. package/src/test-wallet/utils.ts +112 -0
  118. package/src/test-wallet/wallet_worker_script.ts +43 -0
  119. package/src/test-wallet/worker_wallet.ts +165 -0
  120. package/src/test-wallet/worker_wallet_schema.ts +13 -0
@@ -0,0 +1,271 @@
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
+ simulateUtility: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/abi").FunctionCall, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SimulateUtilityOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").UtilitySimulationResult, z.ZodTypeDef, any>>;
16
+ profileTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").ProfileOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxProfileResult, z.ZodTypeDef, any>>;
17
+ sendTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SendOptions<import("@aztec/aztec.js/contracts").InteractionWaitOptions>, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/tx").TxHash | import("@aztec/stdlib/tx").TxReceipt, z.ZodTypeDef, any>>;
18
+ createAuthWit: z.ZodFunction<z.ZodTuple<[z.ZodType<AztecAddress, z.ZodTypeDef, any>, messageHashOrIntent: z.ZodType<import("@aztec/aztec.js/authorization").CallIntent | import("@aztec/aztec.js/authorization").IntentInnerHash, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/stdlib/auth-witness").AuthWitness, z.ZodTypeDef, any>>;
19
+ requestCapabilities: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/aztec.js/wallet").AppCapabilities, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").WalletCapabilities, z.ZodTypeDef, any>>;
20
+ batch: z.ZodFunction<z.ZodTuple<[z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethod[], z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<readonly import("@aztec/aztec.js/wallet").BatchedMethodResultWrapper<import("@aztec/aztec.js/wallet").BatchedMethod>[], z.ZodTypeDef, any>>;
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
+ }, "strip", z.ZodTypeAny, {
215
+ from: AztecAddress;
216
+ authWitnesses?: import("@aztec/stdlib/auth-witness").AuthWitness[] | undefined;
217
+ capsules?: import("@aztec/stdlib/tx").Capsule[] | undefined;
218
+ fee?: {
219
+ gasSettings?: {
220
+ gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
221
+ teardownGasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
222
+ maxFeePerGas?: {
223
+ feePerDaGas: bigint;
224
+ feePerL2Gas: bigint;
225
+ } | undefined;
226
+ maxPriorityFeePerGas?: {
227
+ feePerDaGas: bigint;
228
+ feePerL2Gas: bigint;
229
+ } | undefined;
230
+ } | undefined;
231
+ } | undefined;
232
+ wait?: "NO_WAIT" | {
233
+ ignoreDroppedReceiptsFor?: number | undefined;
234
+ timeout?: number | undefined;
235
+ interval?: number | undefined;
236
+ dontThrowOnRevert?: boolean | undefined;
237
+ } | undefined;
238
+ }, {
239
+ from?: any;
240
+ authWitnesses?: string[] | undefined;
241
+ capsules?: string[] | undefined;
242
+ fee?: {
243
+ gasSettings?: {
244
+ gasLimits?: {
245
+ daGas: string | number | bigint;
246
+ l2Gas: string | number | bigint;
247
+ } | undefined;
248
+ teardownGasLimits?: {
249
+ daGas: string | number | bigint;
250
+ l2Gas: string | number | bigint;
251
+ } | undefined;
252
+ maxFeePerGas?: {
253
+ feePerDaGas: string | number | bigint;
254
+ feePerL2Gas: string | number | bigint;
255
+ } | undefined;
256
+ maxPriorityFeePerGas?: {
257
+ feePerDaGas: string | number | bigint;
258
+ feePerL2Gas: string | number | bigint;
259
+ } | undefined;
260
+ } | undefined;
261
+ } | undefined;
262
+ wait?: "NO_WAIT" | {
263
+ ignoreDroppedReceiptsFor?: number | undefined;
264
+ timeout?: number | undefined;
265
+ interval?: number | undefined;
266
+ dontThrowOnRevert?: boolean | undefined;
267
+ } | undefined;
268
+ }>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<Tx>>;
269
+ 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>>;
270
+ };
271
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyX3dhbGxldF9zY2hlbWEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0LXdhbGxldC93b3JrZXJfd2FsbGV0X3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXRDLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFFeEIsaUdBQStGO0FBQy9GLGVBQU8sTUFBTSxrQkFBa0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Q0FJOUIsQ0FBQyJ9
@@ -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": "4.0.0-devnet.1-patch.0",
3
+ "version": "4.0.0-devnet.2-patch.0",
4
4
  "type": "module",
5
5
  "exports": "./dest/index.js",
6
6
  "inherits": [
@@ -26,44 +26,45 @@
26
26
  "formatting": "run -T prettier --check ./src && run -T eslint ./src"
27
27
  },
28
28
  "dependencies": {
29
- "@aztec/accounts": "4.0.0-devnet.1-patch.0",
30
- "@aztec/archiver": "4.0.0-devnet.1-patch.0",
31
- "@aztec/aztec": "4.0.0-devnet.1-patch.0",
32
- "@aztec/aztec-node": "4.0.0-devnet.1-patch.0",
33
- "@aztec/aztec.js": "4.0.0-devnet.1-patch.0",
34
- "@aztec/bb-prover": "4.0.0-devnet.1-patch.0",
35
- "@aztec/bb.js": "4.0.0-devnet.1-patch.0",
36
- "@aztec/blob-client": "4.0.0-devnet.1-patch.0",
37
- "@aztec/blob-lib": "4.0.0-devnet.1-patch.0",
38
- "@aztec/bot": "4.0.0-devnet.1-patch.0",
39
- "@aztec/cli": "4.0.0-devnet.1-patch.0",
40
- "@aztec/constants": "4.0.0-devnet.1-patch.0",
41
- "@aztec/entrypoints": "4.0.0-devnet.1-patch.0",
42
- "@aztec/epoch-cache": "4.0.0-devnet.1-patch.0",
43
- "@aztec/ethereum": "4.0.0-devnet.1-patch.0",
44
- "@aztec/foundation": "4.0.0-devnet.1-patch.0",
45
- "@aztec/kv-store": "4.0.0-devnet.1-patch.0",
46
- "@aztec/l1-artifacts": "4.0.0-devnet.1-patch.0",
47
- "@aztec/merkle-tree": "4.0.0-devnet.1-patch.0",
48
- "@aztec/node-keystore": "4.0.0-devnet.1-patch.0",
49
- "@aztec/noir-contracts.js": "4.0.0-devnet.1-patch.0",
50
- "@aztec/noir-noirc_abi": "4.0.0-devnet.1-patch.0",
51
- "@aztec/noir-protocol-circuits-types": "4.0.0-devnet.1-patch.0",
52
- "@aztec/noir-test-contracts.js": "4.0.0-devnet.1-patch.0",
53
- "@aztec/p2p": "4.0.0-devnet.1-patch.0",
54
- "@aztec/protocol-contracts": "4.0.0-devnet.1-patch.0",
55
- "@aztec/prover-client": "4.0.0-devnet.1-patch.0",
56
- "@aztec/prover-node": "4.0.0-devnet.1-patch.0",
57
- "@aztec/pxe": "4.0.0-devnet.1-patch.0",
58
- "@aztec/sequencer-client": "4.0.0-devnet.1-patch.0",
59
- "@aztec/simulator": "4.0.0-devnet.1-patch.0",
60
- "@aztec/slasher": "4.0.0-devnet.1-patch.0",
61
- "@aztec/stdlib": "4.0.0-devnet.1-patch.0",
62
- "@aztec/telemetry-client": "4.0.0-devnet.1-patch.0",
63
- "@aztec/test-wallet": "4.0.0-devnet.1-patch.0",
64
- "@aztec/validator-client": "4.0.0-devnet.1-patch.0",
65
- "@aztec/validator-ha-signer": "4.0.0-devnet.1-patch.0",
66
- "@aztec/world-state": "4.0.0-devnet.1-patch.0",
29
+ "@aztec/accounts": "4.0.0-devnet.2-patch.0",
30
+ "@aztec/archiver": "4.0.0-devnet.2-patch.0",
31
+ "@aztec/aztec": "4.0.0-devnet.2-patch.0",
32
+ "@aztec/aztec-node": "4.0.0-devnet.2-patch.0",
33
+ "@aztec/aztec.js": "4.0.0-devnet.2-patch.0",
34
+ "@aztec/bb-prover": "4.0.0-devnet.2-patch.0",
35
+ "@aztec/bb.js": "4.0.0-devnet.2-patch.0",
36
+ "@aztec/blob-client": "4.0.0-devnet.2-patch.0",
37
+ "@aztec/blob-lib": "4.0.0-devnet.2-patch.0",
38
+ "@aztec/bot": "4.0.0-devnet.2-patch.0",
39
+ "@aztec/cli": "4.0.0-devnet.2-patch.0",
40
+ "@aztec/constants": "4.0.0-devnet.2-patch.0",
41
+ "@aztec/entrypoints": "4.0.0-devnet.2-patch.0",
42
+ "@aztec/epoch-cache": "4.0.0-devnet.2-patch.0",
43
+ "@aztec/ethereum": "4.0.0-devnet.2-patch.0",
44
+ "@aztec/foundation": "4.0.0-devnet.2-patch.0",
45
+ "@aztec/kv-store": "4.0.0-devnet.2-patch.0",
46
+ "@aztec/l1-artifacts": "4.0.0-devnet.2-patch.0",
47
+ "@aztec/merkle-tree": "4.0.0-devnet.2-patch.0",
48
+ "@aztec/node-keystore": "4.0.0-devnet.2-patch.0",
49
+ "@aztec/noir-contracts.js": "4.0.0-devnet.2-patch.0",
50
+ "@aztec/noir-noirc_abi": "4.0.0-devnet.2-patch.0",
51
+ "@aztec/noir-protocol-circuits-types": "4.0.0-devnet.2-patch.0",
52
+ "@aztec/noir-test-contracts.js": "4.0.0-devnet.2-patch.0",
53
+ "@aztec/p2p": "4.0.0-devnet.2-patch.0",
54
+ "@aztec/protocol-contracts": "4.0.0-devnet.2-patch.0",
55
+ "@aztec/prover-client": "4.0.0-devnet.2-patch.0",
56
+ "@aztec/prover-node": "4.0.0-devnet.2-patch.0",
57
+ "@aztec/pxe": "4.0.0-devnet.2-patch.0",
58
+ "@aztec/sequencer-client": "4.0.0-devnet.2-patch.0",
59
+ "@aztec/simulator": "4.0.0-devnet.2-patch.0",
60
+ "@aztec/slasher": "4.0.0-devnet.2-patch.0",
61
+ "@aztec/stdlib": "4.0.0-devnet.2-patch.0",
62
+ "@aztec/telemetry-client": "4.0.0-devnet.2-patch.0",
63
+ "@aztec/validator-client": "4.0.0-devnet.2-patch.0",
64
+ "@aztec/validator-ha-signer": "4.0.0-devnet.2-patch.0",
65
+ "@aztec/wallet-sdk": "4.0.0-devnet.2-patch.0",
66
+ "@aztec/wallets": "4.0.0-devnet.2-patch.0",
67
+ "@aztec/world-state": "4.0.0-devnet.2-patch.0",
67
68
  "@iarna/toml": "^2.2.5",
68
69
  "@jest/globals": "^30.0.0",
69
70
  "@noble/curves": "=1.0.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
 
@@ -161,15 +161,11 @@ export class ClientFlowsBenchmark {
161
161
 
162
162
  /** Admin mints bananaCoin tokens privately to the target address and redeems them. */
163
163
  async mintPrivateBananas(amount: bigint, address: AztecAddress) {
164
- const balanceBefore = await this.bananaCoin.methods
165
- .balance_of_private(address)
166
- .simulate({ from: this.adminAddress });
164
+ const balanceBefore = await this.bananaCoin.methods.balance_of_private(address).simulate({ from: address });
167
165
 
168
166
  await mintTokensToPrivate(this.bananaCoin, this.adminAddress, address, amount);
169
167
 
170
- const balanceAfter = await this.bananaCoin.methods
171
- .balance_of_private(address)
172
- .simulate({ from: this.adminAddress });
168
+ const balanceAfter = await this.bananaCoin.methods.balance_of_private(address).simulate({ from: address });
173
169
  expect(balanceAfter).toEqual(balanceBefore + amount);
174
170
  }
175
171
 
@@ -7,14 +7,15 @@ import type { TxHash } from '@aztec/aztec.js/tx';
7
7
  import type { CheatCodes } from '@aztec/aztec/testing';
8
8
  import type { TokenContract } from '@aztec/noir-contracts.js/Token';
9
9
  import { TokenBlacklistContract } from '@aztec/noir-contracts.js/TokenBlacklist';
10
+ import { GenericProxyContract } from '@aztec/noir-test-contracts.js/GenericProxy';
10
11
  import { InvalidAccountContract } from '@aztec/noir-test-contracts.js/InvalidAccount';
11
12
  import type { SequencerClient } from '@aztec/sequencer-client';
12
- import type { TestWallet } from '@aztec/test-wallet/server';
13
13
 
14
14
  import { jest } from '@jest/globals';
15
15
 
16
16
  import { type EndToEndContext, deployAccounts, publicDeployAccounts, setup, teardown } from '../fixtures/setup.js';
17
17
  import { TokenSimulator } from '../simulators/token_simulator.js';
18
+ import type { TestWallet } from '../test-wallet/test_wallet.js';
18
19
 
19
20
  export class Role {
20
21
  private isAdmin = false;
@@ -53,6 +54,7 @@ export class BlacklistTokenContractTest {
53
54
  asset!: TokenBlacklistContract;
54
55
  tokenSim!: TokenSimulator;
55
56
  badAccount!: InvalidAccountContract;
57
+ authwitProxy!: GenericProxyContract;
56
58
  cheatCodes!: CheatCodes;
57
59
  sequencer!: SequencerClient;
58
60
  aztecNode!: AztecNode;
@@ -114,6 +116,13 @@ export class BlacklistTokenContractTest {
114
116
  this.badAccount = await InvalidAccountContract.deploy(this.wallet).send({ from: this.adminAddress });
115
117
  this.logger.verbose(`Deployed to ${this.badAccount.address}.`);
116
118
 
119
+ // Deploy a proxy contract for "on behalf of other" tests. The note owner must be the tx sender
120
+ // (so their notes are in scope), but msg_sender in the target must differ from the note owner
121
+ // to trigger authwit validation. The proxy forwards calls so that msg_sender != tx sender.
122
+ this.logger.verbose(`Deploying generic proxy...`);
123
+ this.authwitProxy = await GenericProxyContract.deploy(this.wallet).send({ from: this.adminAddress });
124
+ this.logger.verbose(`Deployed to ${this.authwitProxy.address}.`);
125
+
117
126
  await this.crossTimestampOfChange();
118
127
 
119
128
  this.tokenSim = new TokenSimulator(
@@ -19,7 +19,6 @@ import { TestERC20Abi, TestERC20Bytecode } from '@aztec/l1-artifacts';
19
19
  import { TokenContract } from '@aztec/noir-contracts.js/Token';
20
20
  import { TokenBridgeContract } from '@aztec/noir-contracts.js/TokenBridge';
21
21
  import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
22
- import type { TestWallet } from '@aztec/test-wallet/server';
23
22
 
24
23
  import { MNEMONIC } from '../fixtures/fixtures.js';
25
24
  import {
@@ -31,6 +30,7 @@ import {
31
30
  teardown,
32
31
  } from '../fixtures/setup.js';
33
32
  import { CrossChainTestHarness } from '../shared/cross_chain_test_harness.js';
33
+ import type { TestWallet } from '../test-wallet/test_wallet.js';
34
34
 
35
35
  export class CrossChainMessagingTest {
36
36
  private requireEpochProven: boolean;
@@ -8,9 +8,9 @@ import type { AztecNode } from '@aztec/aztec.js/node';
8
8
  import type { Wallet } from '@aztec/aztec.js/wallet';
9
9
  import type { StatefulTestContract } from '@aztec/noir-test-contracts.js/StatefulTest';
10
10
  import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
11
- import type { TestWallet } from '@aztec/test-wallet/server';
12
11
 
13
12
  import { type EndToEndContext, deployAccounts, setup, teardown } from '../fixtures/setup.js';
13
+ import type { TestWallet } from '../test-wallet/test_wallet.js';
14
14
 
15
15
  export class DeployTest {
16
16
  public context!: EndToEndContext;