@aztec/end-to-end 3.0.0-nightly.20251118 → 3.0.0-nightly.20251119
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 +7 -0
- package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
- package/dest/bench/client_flows/client_flows_benchmark.js +53 -30
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +2 -2
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +4 -3
- package/dest/e2e_deploy_contract/deploy_test.d.ts +1 -1
- package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
- package/dest/e2e_fees/fees_test.d.ts.map +1 -1
- package/dest/e2e_fees/fees_test.js +11 -8
- package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
- package/dest/e2e_nested_contract/nested_contract_test.js +4 -3
- package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
- package/dest/e2e_p2p/p2p_network.js +3 -2
- package/dest/e2e_p2p/shared.js +1 -1
- package/dest/e2e_token_contract/token_contract_test.js +2 -2
- package/dest/fixtures/e2e_prover_test.d.ts +2 -0
- package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
- package/dest/fixtures/e2e_prover_test.js +10 -7
- package/dest/fixtures/token_utils.d.ts +4 -1
- package/dest/fixtures/token_utils.d.ts.map +1 -1
- package/dest/fixtures/token_utils.js +7 -4
- package/dest/fixtures/utils.js +2 -8
- package/dest/shared/gas_portal_test_harness.js +1 -1
- package/dest/spartan/setup_test_wallets.js +6 -6
- package/package.json +38 -38
- package/src/bench/client_flows/client_flows_benchmark.ts +75 -30
- package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +2 -2
- package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +4 -3
- package/src/e2e_deploy_contract/deploy_test.ts +1 -1
- package/src/e2e_fees/fees_test.ts +11 -8
- package/src/e2e_nested_contract/nested_contract_test.ts +4 -3
- package/src/e2e_p2p/p2p_network.ts +3 -2
- package/src/e2e_p2p/shared.ts +1 -1
- package/src/e2e_token_contract/token_contract_test.ts +2 -2
- package/src/fixtures/e2e_prover_test.ts +10 -7
- package/src/fixtures/token_utils.ts +4 -4
- package/src/fixtures/utils.ts +2 -2
- package/src/shared/gas_portal_test_harness.ts +1 -1
- package/src/spartan/setup_test_wallets.ts +8 -8
|
@@ -49,7 +49,7 @@ export async function setupTestAccountsWithTokens(
|
|
|
49
49
|
|
|
50
50
|
const tokenAdmin = accounts[0];
|
|
51
51
|
const tokenAddress = await deployTokenAndMint(wallet, accounts, tokenAdmin, mintAmount, undefined, logger);
|
|
52
|
-
const tokenContract =
|
|
52
|
+
const tokenContract = TokenContract.at(tokenAddress, wallet);
|
|
53
53
|
|
|
54
54
|
return {
|
|
55
55
|
aztecNode,
|
|
@@ -96,7 +96,7 @@ export async function deploySponsoredTestAccounts(
|
|
|
96
96
|
new SponsoredFeePaymentMethod(await getSponsoredFPCAddress()),
|
|
97
97
|
logger,
|
|
98
98
|
);
|
|
99
|
-
const tokenContract =
|
|
99
|
+
const tokenContract = TokenContract.at(tokenAddress, wallet);
|
|
100
100
|
|
|
101
101
|
return {
|
|
102
102
|
aztecNode,
|
|
@@ -152,7 +152,7 @@ export async function deployTestAccountsWithTokens(
|
|
|
152
152
|
undefined,
|
|
153
153
|
logger,
|
|
154
154
|
);
|
|
155
|
-
const tokenContract =
|
|
155
|
+
const tokenContract = TokenContract.at(tokenAddress, wallet);
|
|
156
156
|
|
|
157
157
|
return {
|
|
158
158
|
aztecNode,
|
|
@@ -228,9 +228,9 @@ async function deployTokenAndMint(
|
|
|
228
228
|
logger.verbose(`Minting ${mintAmount} public assets to the ${accounts.length} accounts...`);
|
|
229
229
|
|
|
230
230
|
await Promise.all(
|
|
231
|
-
accounts.map(
|
|
232
|
-
|
|
233
|
-
.mint_to_public(acc, mintAmount)
|
|
231
|
+
accounts.map(acc =>
|
|
232
|
+
TokenContract.at(tokenAddress, wallet)
|
|
233
|
+
.methods.mint_to_public(acc, mintAmount)
|
|
234
234
|
.send({ from: admin, fee: { paymentMethod } })
|
|
235
235
|
.wait({ timeout: 600 }),
|
|
236
236
|
),
|
|
@@ -260,8 +260,8 @@ export async function performTransfers({
|
|
|
260
260
|
// Default to sponsored fee payment if no fee method is provided
|
|
261
261
|
const defaultFeePaymentMethod = feePaymentMethod || new SponsoredFeePaymentMethod(await getSponsoredFPCAddress());
|
|
262
262
|
for (let i = 0; i < rounds; i++) {
|
|
263
|
-
const txs = testAccounts.accounts.map(
|
|
264
|
-
const token =
|
|
263
|
+
const txs = testAccounts.accounts.map(acc => {
|
|
264
|
+
const token = TokenContract.at(testAccounts.tokenAddress, testAccounts.wallet);
|
|
265
265
|
return proveInteraction(wallet, token.methods.transfer_in_public(acc, recipient, transferAmount, 0), {
|
|
266
266
|
from: acc,
|
|
267
267
|
fee: {
|