@aztec/end-to-end 0.82.3 → 0.83.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 (39) hide show
  1. package/dest/bench/client_flows/client_flows_benchmark.d.ts +16 -1
  2. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  3. package/dest/bench/client_flows/client_flows_benchmark.js +59 -6
  4. package/dest/bench/client_flows/config.d.ts +14 -0
  5. package/dest/bench/client_flows/config.d.ts.map +1 -0
  6. package/dest/bench/client_flows/config.js +87 -0
  7. package/dest/bench/client_flows/data_extractor.js +1 -2
  8. package/dest/bench/utils.js +2 -2
  9. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  10. package/dest/e2e_fees/fees_test.js +2 -4
  11. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  12. package/dest/e2e_p2p/p2p_network.js +2 -1
  13. package/dest/fixtures/l1_to_l2_messaging.d.ts +2 -2
  14. package/dest/fixtures/l1_to_l2_messaging.d.ts.map +1 -1
  15. package/dest/fixtures/l1_to_l2_messaging.js +2 -1
  16. package/dest/fixtures/setup_l1_contracts.d.ts.map +1 -1
  17. package/dest/fixtures/setup_l1_contracts.js +1 -2
  18. package/dest/fixtures/snapshot_manager.d.ts.map +1 -1
  19. package/dest/fixtures/snapshot_manager.js +7 -2
  20. package/dest/fixtures/utils.d.ts +0 -4
  21. package/dest/fixtures/utils.d.ts.map +1 -1
  22. package/dest/fixtures/utils.js +216 -238
  23. package/dest/shared/cross_chain_test_harness.d.ts +1 -1
  24. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  25. package/dest/shared/cross_chain_test_harness.js +2 -2
  26. package/dest/shared/uniswap_l1_l2.js +8 -6
  27. package/package.json +32 -32
  28. package/src/bench/client_flows/client_flows_benchmark.ts +79 -5
  29. package/src/bench/client_flows/config.ts +53 -0
  30. package/src/bench/client_flows/data_extractor.ts +2 -2
  31. package/src/bench/utils.ts +2 -2
  32. package/src/e2e_fees/fees_test.ts +1 -4
  33. package/src/e2e_p2p/p2p_network.ts +2 -1
  34. package/src/fixtures/l1_to_l2_messaging.ts +12 -3
  35. package/src/fixtures/setup_l1_contracts.ts +1 -2
  36. package/src/fixtures/snapshot_manager.ts +7 -2
  37. package/src/fixtures/utils.ts +235 -261
  38. package/src/shared/cross_chain_test_harness.ts +2 -2
  39. package/src/shared/uniswap_l1_l2.ts +8 -8
@@ -101,7 +101,7 @@ export const uniswapL1L2TestSuite = (
101
101
  const minimumOutputAmount = 0n;
102
102
 
103
103
  let cheatCodes: CheatCodes;
104
-
104
+ let version: number;
105
105
  beforeAll(async () => {
106
106
  ({
107
107
  aztecNode,
@@ -123,7 +123,7 @@ export const uniswapL1L2TestSuite = (
123
123
  deployL1ContractsValues.publicClient,
124
124
  deployL1ContractsValues.l1ContractAddresses.rollupAddress,
125
125
  );
126
-
126
+ version = Number(await rollup.getVersion());
127
127
  ownerAddress = ownerWallet.getAddress();
128
128
  // sponsorAddress = sponsorWallet.getAddress();
129
129
  ownerEthAddress = EthAddress.fromString((await walletClient.getAddresses())[0]);
@@ -261,7 +261,7 @@ export const uniswapL1L2TestSuite = (
261
261
 
262
262
  const swapPrivateLeaf = sha256ToField([
263
263
  uniswapL2Contract.address,
264
- new Fr(1), // aztec version
264
+ new Fr(version), // aztec version
265
265
  EthAddress.fromString(uniswapPortal.address).toBuffer32(),
266
266
  new Fr(publicClient.chain.id), // chain id
267
267
  swapPrivateContent,
@@ -276,7 +276,7 @@ export const uniswapL1L2TestSuite = (
276
276
 
277
277
  const withdrawLeaf = sha256ToField([
278
278
  wethCrossChainHarness.l2Bridge.address,
279
- new Fr(1), // aztec version
279
+ new Fr(version), // aztec version
280
280
  wethCrossChainHarness.tokenPortalAddress.toBuffer32(),
281
281
  new Fr(publicClient.chain.id), // chain id
282
282
  withdrawContent,
@@ -849,7 +849,7 @@ export const uniswapL1L2TestSuite = (
849
849
 
850
850
  const swapPrivateLeaf = sha256ToField([
851
851
  uniswapL2Contract.address,
852
- new Fr(1), // aztec version
852
+ new Fr(version), // aztec version
853
853
  EthAddress.fromString(uniswapPortal.address).toBuffer32(),
854
854
  new Fr(publicClient.chain.id), // chain id
855
855
  swapPrivateContent,
@@ -864,7 +864,7 @@ export const uniswapL1L2TestSuite = (
864
864
 
865
865
  const withdrawLeaf = sha256ToField([
866
866
  wethCrossChainHarness.l2Bridge.address,
867
- new Fr(1), // aztec version
867
+ new Fr(version), // aztec version
868
868
  wethCrossChainHarness.tokenPortalAddress.toBuffer32(),
869
869
  new Fr(publicClient.chain.id), // chain id
870
870
  withdrawContent,
@@ -979,7 +979,7 @@ export const uniswapL1L2TestSuite = (
979
979
 
980
980
  const swapPublicLeaf = sha256ToField([
981
981
  uniswapL2Contract.address,
982
- new Fr(1), // aztec version
982
+ new Fr(version), // aztec version
983
983
  EthAddress.fromString(uniswapPortal.address).toBuffer32(),
984
984
  new Fr(publicClient.chain.id), // chain id
985
985
  swapPublicContent,
@@ -994,7 +994,7 @@ export const uniswapL1L2TestSuite = (
994
994
 
995
995
  const withdrawLeaf = sha256ToField([
996
996
  wethCrossChainHarness.l2Bridge.address,
997
- new Fr(1), // aztec version
997
+ new Fr(version), // aztec version
998
998
  wethCrossChainHarness.tokenPortalAddress.toBuffer32(),
999
999
  new Fr(publicClient.chain.id), // chain id
1000
1000
  withdrawContent,