@aztec/end-to-end 0.0.1-commit.2d9cb6034 → 0.0.1-commit.2e20a94
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/client_flows_benchmark.js +1 -1
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +3 -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 +1 -1
- package/dest/e2e_epochs/epochs_test.js +3 -3
- package/dest/e2e_fees/fees_test.js +1 -1
- package/dest/e2e_p2p/inactivity_slash_test.js +2 -2
- package/dest/e2e_p2p/p2p_network.d.ts +5 -7
- package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
- package/dest/e2e_p2p/p2p_network.js +14 -13
- package/dest/e2e_p2p/reqresp/utils.js +1 -1
- package/dest/e2e_p2p/shared.d.ts +5 -7
- package/dest/e2e_p2p/shared.d.ts.map +1 -1
- package/dest/e2e_p2p/shared.js +16 -42
- 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 +1 -1
- package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
- package/dest/fixtures/e2e_prover_test.js +2 -2
- package/dest/fixtures/setup.d.ts +11 -8
- package/dest/fixtures/setup.d.ts.map +1 -1
- package/dest/fixtures/setup.js +11 -9
- package/dest/fixtures/setup_p2p_test.d.ts +6 -6
- package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
- package/dest/fixtures/setup_p2p_test.js +8 -8
- package/dest/legacy-jest-resolver.d.cts +3 -0
- package/dest/legacy-jest-resolver.d.cts.map +1 -0
- 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 +7 -39
- package/dest/test-wallet/test_wallet.d.ts +16 -8
- package/dest/test-wallet/test_wallet.d.ts.map +1 -1
- package/dest/test-wallet/test_wallet.js +82 -46
- package/dest/test-wallet/worker_wallet.d.ts +4 -4
- package/dest/test-wallet/worker_wallet.d.ts.map +1 -1
- package/dest/test-wallet/worker_wallet_schema.d.ts +7 -2
- package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -1
- package/package.json +40 -39
- package/src/bench/client_flows/client_flows_benchmark.ts +1 -1
- package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +3 -6
- package/src/e2e_epochs/epochs_test.ts +3 -3
- package/src/e2e_fees/fees_test.ts +1 -1
- package/src/e2e_p2p/inactivity_slash_test.ts +2 -2
- package/src/e2e_p2p/p2p_network.ts +22 -27
- package/src/e2e_p2p/reqresp/utils.ts +1 -1
- package/src/e2e_p2p/shared.ts +16 -57
- package/src/fixtures/authwit_proxy.ts +4 -0
- package/src/fixtures/e2e_prover_test.ts +5 -2
- package/src/fixtures/setup.ts +21 -17
- package/src/fixtures/setup_p2p_test.ts +9 -9
- package/src/legacy-jest-resolver.cjs +135 -0
- package/src/spartan/setup_test_wallets.ts +5 -31
- package/src/test-wallet/test_wallet.ts +100 -50
- package/src/test-wallet/worker_wallet.ts +3 -2
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EcdsaKAccountContract, EcdsaRAccountContract } from '@aztec/accounts/ecdsa';
|
|
2
2
|
import { SchnorrAccountContract } from '@aztec/accounts/schnorr';
|
|
3
|
-
import {
|
|
3
|
+
import { StubEcdsaAccountContractArtifact, createStubEcdsaAccount } from '@aztec/accounts/stub/ecdsa';
|
|
4
|
+
import { StubSchnorrAccountContractArtifact, createStubSchnorrAccount } from '@aztec/accounts/stub/schnorr';
|
|
4
5
|
import { NO_FROM } from '@aztec/aztec.js/account';
|
|
5
6
|
import { SetPublicAuthwitContractInteraction, computeInnerAuthWitHashFromAction, isContractFunctionInteractionCallIntent, lookupValidity } from '@aztec/aztec.js/authorization';
|
|
6
7
|
import { AccountManager } from '@aztec/aztec.js/wallet';
|
|
8
|
+
import { TxSimulationResultWithAppOffset } from '@aztec/aztec.js/wallet';
|
|
7
9
|
import { DefaultEntrypoint } from '@aztec/entrypoints/default';
|
|
8
10
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
9
11
|
import { GrumpkinScalar } from '@aztec/foundation/curves/grumpkin';
|
|
@@ -11,6 +13,7 @@ import { getPXEConfig } from '@aztec/pxe/config';
|
|
|
11
13
|
import { createPXE } from '@aztec/pxe/server';
|
|
12
14
|
import { getContractInstanceFromInstantiationParams } from '@aztec/stdlib/contract';
|
|
13
15
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
16
|
+
import { SimulationOverrides } from '@aztec/stdlib/tx';
|
|
14
17
|
import { mergeExecutionPayloads } from '@aztec/stdlib/tx';
|
|
15
18
|
import { BaseWallet } from '@aztec/wallet-sdk/base-wallet';
|
|
16
19
|
import { AztecNodeProxy, ProvenTx } from './utils.js';
|
|
@@ -42,47 +45,72 @@ import { AztecNodeProxy, ProvenTx } from './utils.js';
|
|
|
42
45
|
}
|
|
43
46
|
createSchnorrAccount(secret, salt, signingKey) {
|
|
44
47
|
signingKey = signingKey ?? deriveSigningKey(secret);
|
|
45
|
-
|
|
48
|
+
return this.createAccount({
|
|
46
49
|
secret,
|
|
47
50
|
salt,
|
|
51
|
+
type: 'schnorr',
|
|
48
52
|
contract: new SchnorrAccountContract(signingKey)
|
|
49
|
-
};
|
|
50
|
-
return this.createAccount(accountData);
|
|
53
|
+
});
|
|
51
54
|
}
|
|
52
55
|
createECDSARAccount(secret, salt, signingKey) {
|
|
53
|
-
|
|
56
|
+
return this.createAccount({
|
|
54
57
|
secret,
|
|
55
58
|
salt,
|
|
59
|
+
type: 'ecdsasecp256r1',
|
|
56
60
|
contract: new EcdsaRAccountContract(signingKey)
|
|
57
|
-
};
|
|
58
|
-
return this.createAccount(accountData);
|
|
61
|
+
});
|
|
59
62
|
}
|
|
60
63
|
createECDSAKAccount(secret, salt, signingKey) {
|
|
61
|
-
|
|
64
|
+
return this.createAccount({
|
|
62
65
|
secret,
|
|
63
66
|
salt,
|
|
67
|
+
type: 'ecdsasecp256k1',
|
|
64
68
|
contract: new EcdsaKAccountContract(signingKey)
|
|
65
|
-
};
|
|
66
|
-
return this.createAccount(accountData);
|
|
67
|
-
}
|
|
68
|
-
async getFakeAccountDataFor(address) {
|
|
69
|
-
const originalAccount = await this.getAccountFromAddress(address);
|
|
70
|
-
const originalAddress = originalAccount.getCompleteAddress();
|
|
71
|
-
const contractInstance = await this.pxe.getContractInstance(originalAddress.address);
|
|
72
|
-
if (!contractInstance) {
|
|
73
|
-
throw new Error(`No contract instance found for address: ${originalAddress.address}`);
|
|
74
|
-
}
|
|
75
|
-
const stubAccount = createStubAccount(originalAddress);
|
|
76
|
-
const instance = await getContractInstanceFromInstantiationParams(StubAccountContractArtifact, {
|
|
77
|
-
salt: Fr.random()
|
|
78
69
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Builds contract overrides for all provided addresses by replacing their account contracts with stub implementations.
|
|
73
|
+
*/ async buildAccountOverrides(addresses) {
|
|
74
|
+
const accounts = await this.getAccounts();
|
|
75
|
+
const contracts = {};
|
|
76
|
+
const filtered = accounts.filter((acc)=>addresses.some((addr)=>addr.equals(acc.item)));
|
|
77
|
+
for (const account of filtered){
|
|
78
|
+
const address = account.item;
|
|
79
|
+
const originalAccount = await this.getAccountFromAddress(address);
|
|
80
|
+
const completeAddress = originalAccount.getCompleteAddress();
|
|
81
|
+
const contractInstance = await this.pxe.getContractInstance(completeAddress.address);
|
|
82
|
+
if (!contractInstance) {
|
|
83
|
+
throw new Error(`No contract instance found for address: ${completeAddress.address} during account override building. This is a bug!`);
|
|
84
|
+
}
|
|
85
|
+
const stubArtifact = this.getStubArtifactFor(address);
|
|
86
|
+
const stubConstructorArgs = this.getTypeFor(address) === 'schnorr' ? [
|
|
87
|
+
Fr.ZERO,
|
|
88
|
+
Fr.ZERO
|
|
89
|
+
] : [
|
|
90
|
+
Buffer.alloc(32),
|
|
91
|
+
Buffer.alloc(32)
|
|
92
|
+
];
|
|
93
|
+
const stubInstance = await getContractInstanceFromInstantiationParams(stubArtifact, {
|
|
94
|
+
salt: Fr.random(),
|
|
95
|
+
constructorArgs: stubConstructorArgs
|
|
96
|
+
});
|
|
97
|
+
contracts[address.toString()] = {
|
|
98
|
+
instance: stubInstance,
|
|
99
|
+
artifact: stubArtifact
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
return contracts;
|
|
84
103
|
}
|
|
85
104
|
accounts;
|
|
105
|
+
getTypeFor(address) {
|
|
106
|
+
return this.accounts.get(address.toString())?.type ?? 'schnorr';
|
|
107
|
+
}
|
|
108
|
+
getStubArtifactFor(address) {
|
|
109
|
+
return this.getTypeFor(address) === 'schnorr' ? StubSchnorrAccountContractArtifact : StubEcdsaAccountContractArtifact;
|
|
110
|
+
}
|
|
111
|
+
getStubAccountFor(address, completeAddress) {
|
|
112
|
+
return this.getTypeFor(address) === 'schnorr' ? createStubSchnorrAccount(completeAddress) : createStubEcdsaAccount(completeAddress);
|
|
113
|
+
}
|
|
86
114
|
/**
|
|
87
115
|
* Controls how the test wallet simulates transactions:
|
|
88
116
|
* - `kernelless`: Skips kernel circuits but uses the real account contract. Default.
|
|
@@ -96,27 +124,32 @@ import { AztecNodeProxy, ProvenTx } from './utils.js';
|
|
|
96
124
|
this.minFeePadding = value ?? 0.5;
|
|
97
125
|
}
|
|
98
126
|
getAccountFromAddress(address) {
|
|
99
|
-
const
|
|
100
|
-
if (!
|
|
127
|
+
const entry = this.accounts.get(address?.toString() ?? '');
|
|
128
|
+
if (!entry) {
|
|
101
129
|
throw new Error(`Account not found in wallet for address: ${address}`);
|
|
102
130
|
}
|
|
103
|
-
return Promise.resolve(account);
|
|
131
|
+
return Promise.resolve(entry.account);
|
|
104
132
|
}
|
|
105
133
|
getAccounts() {
|
|
106
|
-
return Promise.resolve(Array.from(this.accounts.values()).map((
|
|
134
|
+
return Promise.resolve(Array.from(this.accounts.values()).map((entry)=>({
|
|
107
135
|
alias: '',
|
|
108
|
-
item:
|
|
136
|
+
item: entry.account.getAddress()
|
|
109
137
|
})));
|
|
110
138
|
}
|
|
111
139
|
async createAccount(accountData) {
|
|
112
140
|
const secret = accountData?.secret ?? Fr.random();
|
|
113
141
|
const salt = accountData?.salt ?? Fr.random();
|
|
142
|
+
const type = accountData?.type ?? 'schnorr';
|
|
114
143
|
const contract = accountData?.contract ?? new SchnorrAccountContract(GrumpkinScalar.random());
|
|
115
144
|
const accountManager = await AccountManager.create(this, secret, contract, salt);
|
|
116
145
|
const instance = accountManager.getInstance();
|
|
117
146
|
const artifact = await contract.getContractArtifact();
|
|
118
147
|
await this.registerContract(instance, artifact, secret);
|
|
119
|
-
|
|
148
|
+
const address = accountManager.address.toString();
|
|
149
|
+
this.accounts.set(address, {
|
|
150
|
+
account: await accountManager.getAccount(),
|
|
151
|
+
type
|
|
152
|
+
});
|
|
120
153
|
return accountManager;
|
|
121
154
|
}
|
|
122
155
|
lookupValidity(onBehalfOf, intent, witness) {
|
|
@@ -142,8 +175,10 @@ import { AztecNodeProxy, ProvenTx } from './utils.js';
|
|
|
142
175
|
return account.createAuthWit(intentInnerHash, chainInfo);
|
|
143
176
|
}
|
|
144
177
|
async simulateViaEntrypoint(executionPayload, opts) {
|
|
145
|
-
const { from, feeOptions,
|
|
178
|
+
const { from, feeOptions, additionalScopes, skipTxValidation, skipFeeEnforcement } = opts;
|
|
179
|
+
const scopes = this.scopesFrom(from, additionalScopes);
|
|
146
180
|
const skipKernels = this.simulationMode !== 'full';
|
|
181
|
+
const useOverride = this.simulationMode === 'kernelless-override';
|
|
147
182
|
const feeExecutionPayload = await feeOptions.walletFeePaymentMethod?.getExecutionPayload();
|
|
148
183
|
const finalExecutionPayload = feeExecutionPayload ? mergeExecutionPayloads([
|
|
149
184
|
feeExecutionPayload,
|
|
@@ -152,23 +187,18 @@ import { AztecNodeProxy, ProvenTx } from './utils.js';
|
|
|
152
187
|
const chainInfo = await this.getChainInfo();
|
|
153
188
|
let overrides;
|
|
154
189
|
let txRequest;
|
|
190
|
+
if (useOverride) {
|
|
191
|
+
const accountOverrides = await this.buildAccountOverrides(scopes);
|
|
192
|
+
overrides = new SimulationOverrides(accountOverrides);
|
|
193
|
+
}
|
|
155
194
|
if (from === NO_FROM) {
|
|
156
195
|
const entrypoint = new DefaultEntrypoint();
|
|
157
196
|
txRequest = await entrypoint.createTxExecutionRequest(finalExecutionPayload, feeOptions.gasSettings, chainInfo);
|
|
158
197
|
} else {
|
|
159
|
-
const useOverride = this.simulationMode === 'kernelless-override';
|
|
160
198
|
let fromAccount;
|
|
161
199
|
if (useOverride) {
|
|
162
|
-
const
|
|
163
|
-
fromAccount =
|
|
164
|
-
overrides = {
|
|
165
|
-
contracts: {
|
|
166
|
-
[from.toString()]: {
|
|
167
|
-
instance,
|
|
168
|
-
artifact
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
};
|
|
200
|
+
const originalAccount = await this.getAccountFromAddress(from);
|
|
201
|
+
fromAccount = this.getStubAccountFor(from, originalAccount.getCompleteAddress());
|
|
172
202
|
} else {
|
|
173
203
|
fromAccount = await this.getAccountFromAddress(from);
|
|
174
204
|
}
|
|
@@ -180,7 +210,7 @@ import { AztecNodeProxy, ProvenTx } from './utils.js';
|
|
|
180
210
|
};
|
|
181
211
|
txRequest = await fromAccount.createTxExecutionRequest(finalExecutionPayload, feeOptions.gasSettings, chainInfo, executionOptions);
|
|
182
212
|
}
|
|
183
|
-
|
|
213
|
+
const result = await this.pxe.simulateTx(txRequest, {
|
|
184
214
|
simulatePublic: true,
|
|
185
215
|
skipKernels,
|
|
186
216
|
skipFeeEnforcement,
|
|
@@ -188,9 +218,15 @@ import { AztecNodeProxy, ProvenTx } from './utils.js';
|
|
|
188
218
|
overrides,
|
|
189
219
|
scopes
|
|
190
220
|
});
|
|
221
|
+
const appCallOffset = await this.computeAppCallOffset(from, feeOptions);
|
|
222
|
+
return TxSimulationResultWithAppOffset.fromResultAndOffset(result, appCallOffset);
|
|
191
223
|
}
|
|
192
224
|
async proveTx(exec, opts) {
|
|
193
|
-
const fee = await this.completeFeeOptions(
|
|
225
|
+
const fee = await this.completeFeeOptions({
|
|
226
|
+
from: opts.from,
|
|
227
|
+
feePayer: exec.feePayer,
|
|
228
|
+
gasSettings: opts.fee?.gasSettings
|
|
229
|
+
});
|
|
194
230
|
const txRequest = await this.createTxExecutionRequestFromPayloadAndFee(exec, opts.from, fee);
|
|
195
231
|
const txProvingResult = await this.pxe.proveTx(txRequest, this.scopesFrom(opts.from, opts.additionalScopes));
|
|
196
232
|
return new ProvenTx(this.aztecNode, await txProvingResult.toTx(), txProvingResult.getOffchainEffects(), txProvingResult.stats);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CallIntent, IntentInnerHash } from '@aztec/aztec.js/authorization';
|
|
2
2
|
import type { InteractionWaitOptions, SendReturn } from '@aztec/aztec.js/contracts';
|
|
3
|
-
import type { Aliased, AppCapabilities, BatchResults, BatchedMethod, ContractClassMetadata, ContractMetadata, ExecuteUtilityOptions, PrivateEvent, PrivateEventFilter, ProfileOptions, SendOptions, SimulateOptions, Wallet, WalletCapabilities } from '@aztec/aztec.js/wallet';
|
|
3
|
+
import type { Aliased, AppCapabilities, BatchResults, BatchedMethod, ContractClassMetadata, ContractMetadata, ExecuteUtilityOptions, PrivateEvent, PrivateEventFilter, ProfileOptions, SendOptions, SimulateOptions, TxSimulationResultWithAppOffset, Wallet, WalletCapabilities } from '@aztec/aztec.js/wallet';
|
|
4
4
|
import type { ChainInfo } from '@aztec/entrypoints/interfaces';
|
|
5
5
|
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
6
6
|
import type { PXEConfig } from '@aztec/pxe/config';
|
|
@@ -8,7 +8,7 @@ import type { ContractArtifact, EventMetadataDefinition, FunctionCall } from '@a
|
|
|
8
8
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
9
9
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
10
10
|
import type { ContractInstanceWithAddress } from '@aztec/stdlib/contract';
|
|
11
|
-
import type { ExecutionPayload, TxProfileResult,
|
|
11
|
+
import type { ExecutionPayload, TxProfileResult, UtilityExecutionResult } from '@aztec/stdlib/tx';
|
|
12
12
|
import { Tx } from '@aztec/stdlib/tx';
|
|
13
13
|
/**
|
|
14
14
|
* Wallet implementation that offloads all work to a worker thread.
|
|
@@ -36,7 +36,7 @@ export declare class WorkerWallet implements Wallet {
|
|
|
36
36
|
getAddressBook(): Promise<Aliased<AztecAddress>[]>;
|
|
37
37
|
getAccounts(): Promise<Aliased<AztecAddress>[]>;
|
|
38
38
|
registerContract(instance: ContractInstanceWithAddress, artifact?: ContractArtifact, secretKey?: Fr): Promise<ContractInstanceWithAddress>;
|
|
39
|
-
simulateTx(exec: ExecutionPayload, opts: SimulateOptions): Promise<
|
|
39
|
+
simulateTx(exec: ExecutionPayload, opts: SimulateOptions): Promise<TxSimulationResultWithAppOffset>;
|
|
40
40
|
executeUtility(call: FunctionCall, opts: ExecuteUtilityOptions): Promise<UtilityExecutionResult>;
|
|
41
41
|
profileTx(exec: ExecutionPayload, opts: ProfileOptions): Promise<TxProfileResult>;
|
|
42
42
|
sendTx<W extends InteractionWaitOptions = undefined>(exec: ExecutionPayload, opts: SendOptions<W>): Promise<SendReturn<W>>;
|
|
@@ -49,4 +49,4 @@ export declare class WorkerWallet implements Wallet {
|
|
|
49
49
|
/** Shuts down the worker thread and closes the transport. */
|
|
50
50
|
stop(): Promise<void>;
|
|
51
51
|
}
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyX3dhbGxldC5kLnRz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YAAY,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAE/F;IAED,SAAS,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAEhF;IAED,MAAM,CAAC,CAAC,SAAS,sBAAsB,GAAG,SAAS,EACjD,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAExB;IAED,OAAO,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC,CAE5E;IAED,wFAAwF;IACxF,eAAe,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAE3D;IAED,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,mBAAmB,EAAE,eAAe,GAAG,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAEzG;IAED,mBAAmB,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAE1E;IAED,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,aAAa,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAEpF;IAED,6DAA6D;IACvD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAG1B;CACF"}
|
|
@@ -11,7 +11,7 @@ export declare const WorkerWalletSchema: {
|
|
|
11
11
|
getAddressBook: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], z.ZodTypeDef, any>>;
|
|
12
12
|
getAccounts: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").Aliased<AztecAddress>[], z.ZodTypeDef, any>>;
|
|
13
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/
|
|
14
|
+
simulateTx: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/stdlib/tx").ExecutionPayload, z.ZodTypeDef, any>, opts: z.ZodType<import("@aztec/aztec.js/wallet").SimulateOptions, z.ZodTypeDef, any>], z.ZodUnknown>, z.ZodType<import("@aztec/aztec.js/wallet").TxSimulationResultWithAppOffset, z.ZodTypeDef, any>>;
|
|
15
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
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
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>>;
|
|
@@ -162,6 +162,7 @@ export declare const WorkerWalletSchema: {
|
|
|
162
162
|
feePerL2Gas: string | number | bigint;
|
|
163
163
|
} | undefined;
|
|
164
164
|
}>>;
|
|
165
|
+
congestionEstimate: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNativeEnum<typeof import("@aztec/stdlib/gas").ManaUsageEstimate>>;
|
|
165
166
|
}, "strip", z.ZodTypeAny, {
|
|
166
167
|
gasSettings?: {
|
|
167
168
|
gasLimits?: import("@aztec/stdlib/gas").Gas | undefined;
|
|
@@ -175,6 +176,7 @@ export declare const WorkerWalletSchema: {
|
|
|
175
176
|
feePerL2Gas: bigint;
|
|
176
177
|
} | undefined;
|
|
177
178
|
} | undefined;
|
|
179
|
+
congestionEstimate?: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
|
|
178
180
|
}, {
|
|
179
181
|
gasSettings?: {
|
|
180
182
|
gasLimits?: {
|
|
@@ -194,6 +196,7 @@ export declare const WorkerWalletSchema: {
|
|
|
194
196
|
feePerL2Gas: string | number | bigint;
|
|
195
197
|
} | undefined;
|
|
196
198
|
} | undefined;
|
|
199
|
+
congestionEstimate?: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
|
|
197
200
|
}>>;
|
|
198
201
|
wait: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodUnion<[z.ZodLiteral<"NO_WAIT">, z.ZodObject<{
|
|
199
202
|
ignoreDroppedReceiptsFor: import("@aztec/foundation/schemas").ZodNullableOptional<z.ZodNumber>;
|
|
@@ -229,6 +232,7 @@ export declare const WorkerWalletSchema: {
|
|
|
229
232
|
feePerL2Gas: bigint;
|
|
230
233
|
} | undefined;
|
|
231
234
|
} | undefined;
|
|
235
|
+
congestionEstimate?: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
|
|
232
236
|
} | undefined;
|
|
233
237
|
wait?: "NO_WAIT" | {
|
|
234
238
|
ignoreDroppedReceiptsFor?: number | undefined;
|
|
@@ -260,6 +264,7 @@ export declare const WorkerWalletSchema: {
|
|
|
260
264
|
feePerL2Gas: string | number | bigint;
|
|
261
265
|
} | undefined;
|
|
262
266
|
} | undefined;
|
|
267
|
+
congestionEstimate?: import("@aztec/stdlib/gas").ManaUsageEstimate | undefined;
|
|
263
268
|
} | undefined;
|
|
264
269
|
wait?: "NO_WAIT" | {
|
|
265
270
|
ignoreDroppedReceiptsFor?: number | undefined;
|
|
@@ -271,4 +276,4 @@ export declare const WorkerWalletSchema: {
|
|
|
271
276
|
}>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<Tx>>;
|
|
272
277
|
registerAccount: z.ZodFunction<z.ZodTuple<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>], z.ZodUnknown>, import("@aztec/foundation/schemas").ZodFor<AztecAddress>>;
|
|
273
278
|
};
|
|
274
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
279
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyX3dhbGxldF9zY2hlbWEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0LXdhbGxldC93b3JrZXJfd2FsbGV0X3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEV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E,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"}
|
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.2e20a94",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"inherits": [
|
|
@@ -26,44 +26,44 @@
|
|
|
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/node-keystore": "0.0.1-commit.
|
|
48
|
-
"@aztec/noir-contracts.js": "0.0.1-commit.
|
|
49
|
-
"@aztec/noir-noirc_abi": "0.0.1-commit.
|
|
50
|
-
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.
|
|
51
|
-
"@aztec/noir-test-contracts.js": "0.0.1-commit.
|
|
52
|
-
"@aztec/p2p": "0.0.1-commit.
|
|
53
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
54
|
-
"@aztec/prover-client": "0.0.1-commit.
|
|
55
|
-
"@aztec/prover-node": "0.0.1-commit.
|
|
56
|
-
"@aztec/pxe": "0.0.1-commit.
|
|
57
|
-
"@aztec/sequencer-client": "0.0.1-commit.
|
|
58
|
-
"@aztec/simulator": "0.0.1-commit.
|
|
59
|
-
"@aztec/slasher": "0.0.1-commit.
|
|
60
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
61
|
-
"@aztec/telemetry-client": "0.0.1-commit.
|
|
62
|
-
"@aztec/validator-client": "0.0.1-commit.
|
|
63
|
-
"@aztec/validator-ha-signer": "0.0.1-commit.
|
|
64
|
-
"@aztec/wallet-sdk": "0.0.1-commit.
|
|
65
|
-
"@aztec/wallets": "0.0.1-commit.
|
|
66
|
-
"@aztec/world-state": "0.0.1-commit.
|
|
29
|
+
"@aztec/accounts": "0.0.1-commit.2e20a94",
|
|
30
|
+
"@aztec/archiver": "0.0.1-commit.2e20a94",
|
|
31
|
+
"@aztec/aztec": "0.0.1-commit.2e20a94",
|
|
32
|
+
"@aztec/aztec-node": "0.0.1-commit.2e20a94",
|
|
33
|
+
"@aztec/aztec.js": "0.0.1-commit.2e20a94",
|
|
34
|
+
"@aztec/bb-prover": "0.0.1-commit.2e20a94",
|
|
35
|
+
"@aztec/bb.js": "0.0.1-commit.2e20a94",
|
|
36
|
+
"@aztec/blob-client": "0.0.1-commit.2e20a94",
|
|
37
|
+
"@aztec/blob-lib": "0.0.1-commit.2e20a94",
|
|
38
|
+
"@aztec/bot": "0.0.1-commit.2e20a94",
|
|
39
|
+
"@aztec/cli": "0.0.1-commit.2e20a94",
|
|
40
|
+
"@aztec/constants": "0.0.1-commit.2e20a94",
|
|
41
|
+
"@aztec/entrypoints": "0.0.1-commit.2e20a94",
|
|
42
|
+
"@aztec/epoch-cache": "0.0.1-commit.2e20a94",
|
|
43
|
+
"@aztec/ethereum": "0.0.1-commit.2e20a94",
|
|
44
|
+
"@aztec/foundation": "0.0.1-commit.2e20a94",
|
|
45
|
+
"@aztec/kv-store": "0.0.1-commit.2e20a94",
|
|
46
|
+
"@aztec/l1-artifacts": "0.0.1-commit.2e20a94",
|
|
47
|
+
"@aztec/node-keystore": "0.0.1-commit.2e20a94",
|
|
48
|
+
"@aztec/noir-contracts.js": "0.0.1-commit.2e20a94",
|
|
49
|
+
"@aztec/noir-noirc_abi": "0.0.1-commit.2e20a94",
|
|
50
|
+
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.2e20a94",
|
|
51
|
+
"@aztec/noir-test-contracts.js": "0.0.1-commit.2e20a94",
|
|
52
|
+
"@aztec/p2p": "0.0.1-commit.2e20a94",
|
|
53
|
+
"@aztec/protocol-contracts": "0.0.1-commit.2e20a94",
|
|
54
|
+
"@aztec/prover-client": "0.0.1-commit.2e20a94",
|
|
55
|
+
"@aztec/prover-node": "0.0.1-commit.2e20a94",
|
|
56
|
+
"@aztec/pxe": "0.0.1-commit.2e20a94",
|
|
57
|
+
"@aztec/sequencer-client": "0.0.1-commit.2e20a94",
|
|
58
|
+
"@aztec/simulator": "0.0.1-commit.2e20a94",
|
|
59
|
+
"@aztec/slasher": "0.0.1-commit.2e20a94",
|
|
60
|
+
"@aztec/stdlib": "0.0.1-commit.2e20a94",
|
|
61
|
+
"@aztec/telemetry-client": "0.0.1-commit.2e20a94",
|
|
62
|
+
"@aztec/validator-client": "0.0.1-commit.2e20a94",
|
|
63
|
+
"@aztec/validator-ha-signer": "0.0.1-commit.2e20a94",
|
|
64
|
+
"@aztec/wallet-sdk": "0.0.1-commit.2e20a94",
|
|
65
|
+
"@aztec/wallets": "0.0.1-commit.2e20a94",
|
|
66
|
+
"@aztec/world-state": "0.0.1-commit.2e20a94",
|
|
67
67
|
"@iarna/toml": "^2.2.5",
|
|
68
68
|
"@jest/globals": "^30.0.0",
|
|
69
69
|
"@noble/curves": "=1.0.0",
|
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
"moduleNameMapper": {
|
|
160
160
|
"^(\\.{1,2}/.*)\\.[cm]?js$": "$1"
|
|
161
161
|
},
|
|
162
|
+
"resolver": "<rootDir>/legacy-jest-resolver.cjs",
|
|
162
163
|
"testRegex": "./src/.*\\.test\\.(js|mjs|ts)$",
|
|
163
164
|
"rootDir": "./src",
|
|
164
165
|
"testTimeout": 120000,
|
|
@@ -387,7 +387,7 @@ export class ClientFlowsBenchmark {
|
|
|
387
387
|
// The private fee paying method assembled on the app side requires knowledge of the maximum
|
|
388
388
|
// fee the user is willing to pay
|
|
389
389
|
const maxFeesPerGas = (await this.aztecNode.getCurrentMinFees()).mul(1.5);
|
|
390
|
-
const gasSettings = GasSettings.
|
|
390
|
+
const gasSettings = GasSettings.fallback({ maxFeesPerGas });
|
|
391
391
|
return new PrivateFeePaymentMethod(this.bananaFPC.address, sender, wallet, gasSettings);
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -10,6 +10,7 @@ import { TokenBlacklistContract } from '@aztec/noir-contracts.js/TokenBlacklist'
|
|
|
10
10
|
import { GenericProxyContract } from '@aztec/noir-test-contracts.js/GenericProxy';
|
|
11
11
|
import { InvalidAccountContract } from '@aztec/noir-test-contracts.js/InvalidAccount';
|
|
12
12
|
import type { SequencerClient } from '@aztec/sequencer-client';
|
|
13
|
+
import type { AztecNodeDebug } from '@aztec/stdlib/interfaces/client';
|
|
13
14
|
|
|
14
15
|
import { jest } from '@jest/globals';
|
|
15
16
|
|
|
@@ -57,7 +58,7 @@ export class BlacklistTokenContractTest {
|
|
|
57
58
|
authwitProxy!: GenericProxyContract;
|
|
58
59
|
cheatCodes!: CheatCodes;
|
|
59
60
|
sequencer!: SequencerClient;
|
|
60
|
-
aztecNode!: AztecNode;
|
|
61
|
+
aztecNode!: AztecNode & AztecNodeDebug;
|
|
61
62
|
|
|
62
63
|
adminAddress!: AztecAddress;
|
|
63
64
|
otherAddress!: AztecAddress;
|
|
@@ -68,11 +69,7 @@ export class BlacklistTokenContractTest {
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
async crossTimestampOfChange() {
|
|
71
|
-
await this.cheatCodes.warpL2TimeAtLeastBy(
|
|
72
|
-
this.sequencer,
|
|
73
|
-
this.aztecNode,
|
|
74
|
-
BlacklistTokenContractTest.CHANGE_ROLES_DELAY,
|
|
75
|
-
);
|
|
72
|
+
await this.cheatCodes.warpL2TimeAtLeastBy(this.aztecNode, BlacklistTokenContractTest.CHANGE_ROLES_DELAY);
|
|
76
73
|
}
|
|
77
74
|
|
|
78
75
|
/**
|
|
@@ -145,7 +145,7 @@ export class EpochsTestContext {
|
|
|
145
145
|
proverId: EthAddress.fromNumber(1),
|
|
146
146
|
worldStateCheckpointHistory: WORLD_STATE_CHECKPOINT_HISTORY,
|
|
147
147
|
exitDelaySeconds: DefaultL1ContractsConfig.exitDelaySeconds,
|
|
148
|
-
|
|
148
|
+
slasherEnabled: false,
|
|
149
149
|
l1PublishingTime,
|
|
150
150
|
...opts,
|
|
151
151
|
},
|
|
@@ -223,7 +223,7 @@ export class EpochsTestContext {
|
|
|
223
223
|
},
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
|
|
226
|
+
genesis: this.context.genesis,
|
|
227
227
|
dontStart: opts.dontStart,
|
|
228
228
|
},
|
|
229
229
|
),
|
|
@@ -278,7 +278,7 @@ export class EpochsTestContext {
|
|
|
278
278
|
slashingProtectionDb: opts.slashingProtectionDb,
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
|
-
|
|
281
|
+
genesis: this.context.genesis,
|
|
282
282
|
...opts,
|
|
283
283
|
},
|
|
284
284
|
),
|
|
@@ -193,7 +193,7 @@ export class FeesTest {
|
|
|
193
193
|
this.wallet = this.context.wallet;
|
|
194
194
|
this.aztecNode = this.context.aztecNodeService;
|
|
195
195
|
this.aztecNodeAdmin = this.context.aztecNodeService;
|
|
196
|
-
this.gasSettings = GasSettings.
|
|
196
|
+
this.gasSettings = GasSettings.fallback({ maxFeesPerGas: (await this.aztecNode.getCurrentMinFees()).mul(2) });
|
|
197
197
|
this.cheatCodes = this.context.cheatCodes;
|
|
198
198
|
this.accounts = deployedAccounts.map(a => a.address);
|
|
199
199
|
this.accounts.forEach((a, i) => this.logger.verbose(`Account ${i} address: ${a}`));
|
|
@@ -108,7 +108,7 @@ export class P2PInactivityTest {
|
|
|
108
108
|
this.test.bootstrapNodeEnr,
|
|
109
109
|
NUM_NODES - this.inactiveNodeCount - Number(this.keepInitialNode),
|
|
110
110
|
BOOT_NODE_UDP_PORT,
|
|
111
|
-
this.test.
|
|
111
|
+
this.test.genesis,
|
|
112
112
|
this.dataDir,
|
|
113
113
|
undefined,
|
|
114
114
|
Number(this.keepInitialNode),
|
|
@@ -122,7 +122,7 @@ export class P2PInactivityTest {
|
|
|
122
122
|
this.test.bootstrapNodeEnr,
|
|
123
123
|
this.inactiveNodeCount,
|
|
124
124
|
BOOT_NODE_UDP_PORT,
|
|
125
|
-
this.test.
|
|
125
|
+
this.test.genesis,
|
|
126
126
|
this.dataDir,
|
|
127
127
|
undefined,
|
|
128
128
|
NUM_NODES - this.inactiveNodeCount,
|