@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.
Files changed (40) hide show
  1. package/dest/bench/client_flows/client_flows_benchmark.d.ts +7 -0
  2. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  3. package/dest/bench/client_flows/client_flows_benchmark.js +53 -30
  4. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +2 -2
  5. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  6. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +4 -3
  7. package/dest/e2e_deploy_contract/deploy_test.d.ts +1 -1
  8. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  9. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  10. package/dest/e2e_fees/fees_test.js +11 -8
  11. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
  12. package/dest/e2e_nested_contract/nested_contract_test.js +4 -3
  13. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  14. package/dest/e2e_p2p/p2p_network.js +3 -2
  15. package/dest/e2e_p2p/shared.js +1 -1
  16. package/dest/e2e_token_contract/token_contract_test.js +2 -2
  17. package/dest/fixtures/e2e_prover_test.d.ts +2 -0
  18. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  19. package/dest/fixtures/e2e_prover_test.js +10 -7
  20. package/dest/fixtures/token_utils.d.ts +4 -1
  21. package/dest/fixtures/token_utils.d.ts.map +1 -1
  22. package/dest/fixtures/token_utils.js +7 -4
  23. package/dest/fixtures/utils.js +2 -8
  24. package/dest/shared/gas_portal_test_harness.js +1 -1
  25. package/dest/spartan/setup_test_wallets.js +6 -6
  26. package/package.json +38 -38
  27. package/src/bench/client_flows/client_flows_benchmark.ts +75 -30
  28. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +2 -2
  29. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +4 -3
  30. package/src/e2e_deploy_contract/deploy_test.ts +1 -1
  31. package/src/e2e_fees/fees_test.ts +11 -8
  32. package/src/e2e_nested_contract/nested_contract_test.ts +4 -3
  33. package/src/e2e_p2p/p2p_network.ts +3 -2
  34. package/src/e2e_p2p/shared.ts +1 -1
  35. package/src/e2e_token_contract/token_contract_test.ts +2 -2
  36. package/src/fixtures/e2e_prover_test.ts +10 -7
  37. package/src/fixtures/token_utils.ts +4 -4
  38. package/src/fixtures/utils.ts +2 -2
  39. package/src/shared/gas_portal_test_harness.ts +1 -1
  40. 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 = await TokenContract.at(tokenAddress, wallet);
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 = await TokenContract.at(tokenAddress, wallet);
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 = await TokenContract.at(tokenAddress, wallet);
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(async acc =>
232
- (await TokenContract.at(tokenAddress, wallet)).methods
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(async acc => {
264
- const token = await TokenContract.at(testAccounts.tokenAddress, testAccounts.wallet);
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: {