@aztec/end-to-end 0.78.0 → 0.79.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 (57) hide show
  1. package/dest/bench/utils.d.ts +1 -13
  2. package/dest/bench/utils.d.ts.map +1 -1
  3. package/dest/bench/utils.js +6 -6
  4. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +2 -1
  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 +2 -1
  7. package/dest/e2e_epochs/epochs_test.d.ts +1 -1
  8. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  9. package/dest/e2e_epochs/epochs_test.js +1 -1
  10. package/dest/e2e_fees/fees_test.d.ts +3 -1
  11. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  12. package/dest/e2e_fees/fees_test.js +3 -1
  13. package/dest/e2e_p2p/p2p_network.d.ts +1 -1
  14. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  15. package/dest/e2e_p2p/p2p_network.js +1 -2
  16. package/dest/e2e_prover/e2e_prover_test.d.ts +3 -1
  17. package/dest/e2e_prover/e2e_prover_test.d.ts.map +1 -1
  18. package/dest/e2e_prover/e2e_prover_test.js +2 -1
  19. package/dest/fixtures/setup_l1_contracts.d.ts +3 -3
  20. package/dest/fixtures/setup_l1_contracts.d.ts.map +1 -1
  21. package/dest/fixtures/setup_l1_contracts.js +1 -1
  22. package/dest/fixtures/snapshot_manager.d.ts +3 -2
  23. package/dest/fixtures/snapshot_manager.d.ts.map +1 -1
  24. package/dest/fixtures/snapshot_manager.js +27 -23
  25. package/dest/fixtures/utils.d.ts +3 -2
  26. package/dest/fixtures/utils.d.ts.map +1 -1
  27. package/dest/fixtures/utils.js +16 -14
  28. package/dest/shared/cross_chain_test_harness.d.ts +1 -1
  29. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  30. package/dest/shared/cross_chain_test_harness.js +2 -1
  31. package/dest/shared/uniswap_l1_l2.d.ts +2 -1
  32. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  33. package/dest/simulators/lending_simulator.d.ts +2 -1
  34. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  35. package/dest/simulators/token_simulator.d.ts.map +1 -1
  36. package/dest/simulators/token_simulator.js +3 -8
  37. package/dest/spartan/setup_test_wallets.d.ts +1 -1
  38. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  39. package/dest/spartan/setup_test_wallets.js +4 -6
  40. package/dest/spartan/utils.d.ts +1 -1
  41. package/dest/spartan/utils.d.ts.map +1 -1
  42. package/package.json +32 -32
  43. package/src/bench/utils.ts +6 -8
  44. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +1 -1
  45. package/src/e2e_epochs/epochs_test.ts +1 -1
  46. package/src/e2e_fees/fees_test.ts +2 -2
  47. package/src/e2e_p2p/p2p_network.ts +1 -2
  48. package/src/e2e_prover/e2e_prover_test.ts +2 -3
  49. package/src/fixtures/setup_l1_contracts.ts +2 -2
  50. package/src/fixtures/snapshot_manager.ts +42 -30
  51. package/src/fixtures/utils.ts +21 -16
  52. package/src/shared/cross_chain_test_harness.ts +6 -2
  53. package/src/shared/uniswap_l1_l2.ts +1 -1
  54. package/src/simulators/lending_simulator.ts +2 -1
  55. package/src/simulators/token_simulator.ts +5 -8
  56. package/src/spartan/setup_test_wallets.ts +4 -4
  57. package/src/spartan/utils.ts +1 -1
@@ -50,7 +50,7 @@ export async function setupTestWalletsWithTokens(
50
50
  export async function deployTestWalletWithTokens(
51
51
  pxeUrl: string,
52
52
  nodeUrl: string,
53
- l1RpcUrl: string,
53
+ l1RpcUrls: string[],
54
54
  mnemonicOrPrivateKey: string,
55
55
  mintAmount: bigint,
56
56
  logger: Logger,
@@ -71,7 +71,7 @@ export async function deployTestWalletWithTokens(
71
71
 
72
72
  const claims = await Promise.all(
73
73
  fundedAccounts.map(a =>
74
- bridgeL1FeeJuice(l1RpcUrl, mnemonicOrPrivateKey, pxe, a.getAddress(), initialFeeJuice, logger),
74
+ bridgeL1FeeJuice(l1RpcUrls, mnemonicOrPrivateKey, pxe, a.getAddress(), initialFeeJuice, logger),
75
75
  ),
76
76
  );
77
77
 
@@ -97,7 +97,7 @@ export async function deployTestWalletWithTokens(
97
97
  }
98
98
 
99
99
  async function bridgeL1FeeJuice(
100
- l1RpcUrl: string,
100
+ l1RpcUrls: string[],
101
101
  mnemonicOrPrivateKey: string,
102
102
  pxe: PXE,
103
103
  recipient: AztecAddress,
@@ -105,7 +105,7 @@ async function bridgeL1FeeJuice(
105
105
  log: Logger,
106
106
  ) {
107
107
  const { l1ChainId } = await pxe.getNodeInfo();
108
- const chain = createEthereumChain([l1RpcUrl], l1ChainId);
108
+ const chain = createEthereumChain(l1RpcUrls, l1ChainId);
109
109
  const { publicClient, walletClient } = createL1Clients(chain.rpcUrls, mnemonicOrPrivateKey, chain.chainInfo);
110
110
 
111
111
  const portal = await L1FeeJuicePortalManager.new(pxe, publicClient, walletClient, log);
@@ -1,5 +1,5 @@
1
1
  import { createAztecNodeClient, createLogger, sleep } from '@aztec/aztec.js';
2
- import type { RollupCheatCodes } from '@aztec/aztec.js/ethereum';
2
+ import type { RollupCheatCodes } from '@aztec/aztec.js/testing';
3
3
  import type { Logger } from '@aztec/foundation/log';
4
4
  import type { SequencerConfig } from '@aztec/sequencer-client';
5
5