@aztec/end-to-end 0.0.1-commit.6230a0c → 0.0.1-commit.64b6bbb

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 (49) hide show
  1. package/dest/bench/client_flows/config.d.ts +2 -2
  2. package/dest/bench/client_flows/config.d.ts.map +1 -1
  3. package/dest/bench/client_flows/config.js +18 -0
  4. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +1 -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 +3 -2
  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 +9 -3
  10. package/dest/e2e_p2p/shared.d.ts +1 -1
  11. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  12. package/dest/e2e_p2p/shared.js +3 -0
  13. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts +2 -0
  14. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts.map +1 -0
  15. package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.js +184 -0
  16. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts +18 -0
  17. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts.map +1 -0
  18. package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.js +120 -0
  19. package/dest/fixtures/setup.d.ts +13 -13
  20. package/dest/fixtures/setup.d.ts.map +1 -1
  21. package/dest/fixtures/setup.js +10 -75
  22. package/dest/fixtures/setup_p2p_test.d.ts +10 -5
  23. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  24. package/dest/fixtures/setup_p2p_test.js +6 -3
  25. package/dest/shared/uniswap_l1_l2.d.ts +1 -1
  26. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  27. package/dest/shared/uniswap_l1_l2.js +8 -6
  28. package/package.json +39 -39
  29. package/src/bench/client_flows/client_flows_benchmark.ts +5 -5
  30. package/src/bench/client_flows/config.ts +9 -1
  31. package/src/bench/utils.ts +1 -1
  32. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +1 -1
  33. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +6 -7
  34. package/src/e2e_deploy_contract/deploy_test.ts +2 -2
  35. package/src/e2e_epochs/epochs_test.ts +13 -3
  36. package/src/e2e_fees/fees_test.ts +6 -6
  37. package/src/e2e_nested_contract/nested_contract_test.ts +1 -1
  38. package/src/e2e_p2p/inactivity_slash_test.ts +4 -4
  39. package/src/e2e_p2p/p2p_network.ts +4 -4
  40. package/src/e2e_p2p/reqresp/utils.ts +4 -4
  41. package/src/e2e_p2p/shared.ts +1 -0
  42. package/src/e2e_storage_proof/fixtures/storage_proof.json +915 -0
  43. package/src/e2e_storage_proof/fixtures/storage_proof_fetcher.ts +190 -0
  44. package/src/e2e_storage_proof/fixtures/storage_proof_fixture.ts +173 -0
  45. package/src/e2e_token_contract/token_contract_test.ts +1 -1
  46. package/src/fixtures/e2e_prover_test.ts +3 -3
  47. package/src/fixtures/setup.ts +20 -105
  48. package/src/fixtures/setup_p2p_test.ts +16 -7
  49. package/src/shared/uniswap_l1_l2.ts +8 -10
@@ -11,7 +11,7 @@ import type { DeployAztecL1ContractsReturnType } from '@aztec/ethereum/deploy-az
11
11
  import { deployL1Contract } from '@aztec/ethereum/deploy-l1-contract';
12
12
  import type { ExtendedViemWalletClient } from '@aztec/ethereum/types';
13
13
  import { extractEvent } from '@aztec/ethereum/utils';
14
- import { CheckpointNumber, EpochNumber } from '@aztec/foundation/branded-types';
14
+ import { EpochNumber } from '@aztec/foundation/branded-types';
15
15
  import { sha256ToField } from '@aztec/foundation/crypto/sha256';
16
16
  import { InboxAbi, UniswapPortalAbi, UniswapPortalBytecode } from '@aztec/l1-artifacts';
17
17
  import { UniswapContract } from '@aztec/noir-contracts.js/Uniswap';
@@ -84,7 +84,7 @@ export const uniswapL1L2TestSuite = (
84
84
 
85
85
  l1Client = deployL1ContractsValues.l1Client;
86
86
 
87
- t.watcher?.setIsMarkingAsProven(false);
87
+ t.watcher.setIsMarkingAsProven(false);
88
88
 
89
89
  if (Number(await l1Client.getBlockNumber()) < expectedForkBlockNumber) {
90
90
  throw new Error('This test must be run on a fork of mainnet with the expected fork block');
@@ -250,8 +250,8 @@ export const uniswapL1L2TestSuite = (
250
250
  await wethCrossChainHarness.expectPublicBalanceOnL2(uniswapL2Contract.address, 0n);
251
251
 
252
252
  // Since the outbox is only consumable when the epoch is proven, we need to advance to the next epoch.
253
- const checkpointNumber = CheckpointNumber.fromBlockNumber(l2UniswapInteractionReceipt.blockNumber!);
254
- const epoch = await rollup.getEpochNumberForCheckpoint(checkpointNumber);
253
+ const block = await aztecNode.getBlock(l2UniswapInteractionReceipt.blockNumber!);
254
+ const epoch = await rollup.getEpochNumberForCheckpoint(block!.checkpointNumber);
255
255
  await cheatCodes.rollup.advanceToEpoch(EpochNumber(epoch + 1));
256
256
  await waitForProven(aztecNode, l2UniswapInteractionReceipt, { provenTimeout: 300 });
257
257
 
@@ -838,9 +838,8 @@ export const uniswapL1L2TestSuite = (
838
838
  chainId: new Fr(l1Client.chain.id),
839
839
  });
840
840
 
841
- const epoch = await rollup.getEpochNumberForCheckpoint(
842
- CheckpointNumber.fromBlockNumber(withdrawReceipt.blockNumber!),
843
- );
841
+ const block = await aztecNode.getBlock(withdrawReceipt.blockNumber!);
842
+ const epoch = await rollup.getEpochNumberForCheckpoint(block!.checkpointNumber);
844
843
  const swapResult = await computeL2ToL1MembershipWitness(aztecNode, epoch, swapPrivateLeaf);
845
844
  const withdrawResult = await computeL2ToL1MembershipWitness(aztecNode, epoch, withdrawLeaf);
846
845
 
@@ -972,9 +971,8 @@ export const uniswapL1L2TestSuite = (
972
971
  chainId: new Fr(l1Client.chain.id),
973
972
  });
974
973
 
975
- const epoch = await rollup.getEpochNumberForCheckpoint(
976
- CheckpointNumber.fromBlockNumber(withdrawReceipt.blockNumber!),
977
- );
974
+ const block = await aztecNode.getBlock(withdrawReceipt.blockNumber!);
975
+ const epoch = await rollup.getEpochNumberForCheckpoint(block!.checkpointNumber);
978
976
  const swapResult = await computeL2ToL1MembershipWitness(aztecNode, epoch, swapPublicLeaf);
979
977
  const withdrawResult = await computeL2ToL1MembershipWitness(aztecNode, epoch, withdrawLeaf);
980
978