@aztec/end-to-end 0.0.0-test.1 → 0.0.1-commit.24de95ac

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 (166) hide show
  1. package/dest/bench/client_flows/benchmark.d.ts +61 -0
  2. package/dest/bench/client_flows/benchmark.d.ts.map +1 -0
  3. package/dest/bench/client_flows/benchmark.js +261 -0
  4. package/dest/bench/client_flows/client_flows_benchmark.d.ts +73 -0
  5. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -0
  6. package/dest/bench/client_flows/client_flows_benchmark.js +311 -0
  7. package/dest/bench/client_flows/config.d.ts +14 -0
  8. package/dest/bench/client_flows/config.d.ts.map +1 -0
  9. package/dest/bench/client_flows/config.js +106 -0
  10. package/dest/bench/client_flows/data_extractor.d.ts +2 -0
  11. package/dest/bench/client_flows/data_extractor.d.ts.map +1 -0
  12. package/dest/bench/client_flows/data_extractor.js +99 -0
  13. package/dest/bench/utils.d.ts +10 -36
  14. package/dest/bench/utils.d.ts.map +1 -1
  15. package/dest/bench/utils.js +26 -66
  16. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +20 -12
  17. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
  18. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +85 -57
  19. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +18 -24
  20. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  21. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +48 -69
  22. package/dest/e2e_deploy_contract/deploy_test.d.ts +14 -6
  23. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  24. package/dest/e2e_deploy_contract/deploy_test.js +13 -19
  25. package/dest/e2e_epochs/epochs_test.d.ts +58 -17
  26. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  27. package/dest/e2e_epochs/epochs_test.js +224 -43
  28. package/dest/e2e_fees/bridging_race.notest.d.ts +2 -0
  29. package/dest/e2e_fees/bridging_race.notest.d.ts.map +1 -0
  30. package/dest/e2e_fees/bridging_race.notest.js +63 -0
  31. package/dest/e2e_fees/fees_test.d.ts +20 -9
  32. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  33. package/dest/e2e_fees/fees_test.js +98 -107
  34. package/dest/e2e_l1_publisher/write_json.d.ts +10 -0
  35. package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -0
  36. package/dest/e2e_l1_publisher/write_json.js +57 -0
  37. package/dest/e2e_multi_validator/utils.d.ts +12 -0
  38. package/dest/e2e_multi_validator/utils.d.ts.map +1 -0
  39. package/dest/e2e_multi_validator/utils.js +214 -0
  40. package/dest/e2e_nested_contract/nested_contract_test.d.ts +9 -6
  41. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
  42. package/dest/e2e_nested_contract/nested_contract_test.js +22 -19
  43. package/dest/e2e_p2p/inactivity_slash_test.d.ts +31 -0
  44. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -0
  45. package/dest/e2e_p2p/inactivity_slash_test.js +135 -0
  46. package/dest/e2e_p2p/p2p_network.d.ts +69 -22
  47. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  48. package/dest/e2e_p2p/p2p_network.js +180 -129
  49. package/dest/e2e_p2p/shared.d.ts +41 -5
  50. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  51. package/dest/e2e_p2p/shared.js +163 -19
  52. package/dest/e2e_token_contract/token_contract_test.d.ts +11 -5
  53. package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
  54. package/dest/e2e_token_contract/token_contract_test.js +50 -26
  55. package/dest/{e2e_prover → fixtures}/e2e_prover_test.d.ts +14 -9
  56. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -0
  57. package/dest/{e2e_prover → fixtures}/e2e_prover_test.js +95 -100
  58. package/dest/fixtures/fixtures.d.ts +5 -6
  59. package/dest/fixtures/fixtures.d.ts.map +1 -1
  60. package/dest/fixtures/fixtures.js +4 -3
  61. package/dest/fixtures/get_acvm_config.d.ts +1 -1
  62. package/dest/fixtures/get_acvm_config.d.ts.map +1 -1
  63. package/dest/fixtures/get_acvm_config.js +2 -14
  64. package/dest/fixtures/get_bb_config.d.ts +1 -1
  65. package/dest/fixtures/get_bb_config.d.ts.map +1 -1
  66. package/dest/fixtures/get_bb_config.js +10 -17
  67. package/dest/fixtures/l1_to_l2_messaging.d.ts +8 -5
  68. package/dest/fixtures/l1_to_l2_messaging.d.ts.map +1 -1
  69. package/dest/fixtures/l1_to_l2_messaging.js +44 -18
  70. package/dest/fixtures/setup_l1_contracts.d.ts +3 -3
  71. package/dest/fixtures/setup_l1_contracts.d.ts.map +1 -1
  72. package/dest/fixtures/setup_l1_contracts.js +4 -4
  73. package/dest/fixtures/setup_p2p_test.d.ts +14 -13
  74. package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
  75. package/dest/fixtures/setup_p2p_test.js +73 -21
  76. package/dest/fixtures/snapshot_manager.d.ts +15 -7
  77. package/dest/fixtures/snapshot_manager.d.ts.map +1 -1
  78. package/dest/fixtures/snapshot_manager.js +147 -121
  79. package/dest/fixtures/token_utils.d.ts +6 -3
  80. package/dest/fixtures/token_utils.d.ts.map +1 -1
  81. package/dest/fixtures/token_utils.js +23 -10
  82. package/dest/fixtures/utils.d.ts +76 -37
  83. package/dest/fixtures/utils.d.ts.map +1 -1
  84. package/dest/fixtures/utils.js +464 -368
  85. package/dest/fixtures/web3signer.d.ts +5 -0
  86. package/dest/fixtures/web3signer.d.ts.map +1 -0
  87. package/dest/fixtures/web3signer.js +53 -0
  88. package/dest/quality_of_service/alert_checker.d.ts +1 -1
  89. package/dest/quality_of_service/alert_checker.d.ts.map +1 -1
  90. package/dest/shared/cross_chain_test_harness.d.ts +41 -25
  91. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  92. package/dest/shared/cross_chain_test_harness.js +104 -50
  93. package/dest/shared/gas_portal_test_harness.d.ts +32 -24
  94. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  95. package/dest/shared/gas_portal_test_harness.js +50 -29
  96. package/dest/shared/jest_setup.js +1 -1
  97. package/dest/shared/submit-transactions.d.ts +5 -3
  98. package/dest/shared/submit-transactions.d.ts.map +1 -1
  99. package/dest/shared/submit-transactions.js +8 -7
  100. package/dest/shared/uniswap_l1_l2.d.ts +13 -11
  101. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  102. package/dest/shared/uniswap_l1_l2.js +138 -108
  103. package/dest/simulators/lending_simulator.d.ts +6 -6
  104. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  105. package/dest/simulators/lending_simulator.js +13 -16
  106. package/dest/simulators/token_simulator.d.ts +5 -2
  107. package/dest/simulators/token_simulator.d.ts.map +1 -1
  108. package/dest/simulators/token_simulator.js +16 -13
  109. package/dest/spartan/setup_test_wallets.d.ts +23 -10
  110. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  111. package/dest/spartan/setup_test_wallets.js +167 -58
  112. package/dest/spartan/utils.d.ts +106 -303
  113. package/dest/spartan/utils.d.ts.map +1 -1
  114. package/dest/spartan/utils.js +434 -130
  115. package/package.json +61 -56
  116. package/src/bench/client_flows/benchmark.ts +341 -0
  117. package/src/bench/client_flows/client_flows_benchmark.ts +402 -0
  118. package/src/bench/client_flows/config.ts +61 -0
  119. package/src/bench/client_flows/data_extractor.ts +111 -0
  120. package/src/bench/utils.ts +22 -76
  121. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +80 -77
  122. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +63 -105
  123. package/src/e2e_deploy_contract/deploy_test.ts +23 -38
  124. package/src/e2e_epochs/epochs_test.ts +274 -54
  125. package/src/e2e_fees/bridging_race.notest.ts +80 -0
  126. package/src/e2e_fees/fees_test.ts +137 -136
  127. package/src/e2e_l1_publisher/write_json.ts +76 -0
  128. package/src/e2e_multi_validator/utils.ts +258 -0
  129. package/src/e2e_nested_contract/nested_contract_test.ts +27 -18
  130. package/src/e2e_p2p/inactivity_slash_test.ts +178 -0
  131. package/src/e2e_p2p/p2p_network.ts +272 -166
  132. package/src/e2e_p2p/shared.ts +244 -29
  133. package/src/e2e_token_contract/token_contract_test.ts +43 -39
  134. package/src/fixtures/dumps/epoch_proof_result.json +1 -1
  135. package/src/{e2e_prover → fixtures}/e2e_prover_test.ts +101 -145
  136. package/src/fixtures/fixtures.ts +4 -3
  137. package/src/fixtures/get_acvm_config.ts +3 -11
  138. package/src/fixtures/get_bb_config.ts +18 -13
  139. package/src/fixtures/l1_to_l2_messaging.ts +53 -23
  140. package/src/fixtures/setup_l1_contracts.ts +6 -7
  141. package/src/fixtures/setup_p2p_test.ts +112 -38
  142. package/src/fixtures/snapshot_manager.ts +187 -139
  143. package/src/fixtures/token_utils.ts +29 -12
  144. package/src/fixtures/utils.ts +552 -425
  145. package/src/fixtures/web3signer.ts +63 -0
  146. package/src/guides/up_quick_start.sh +6 -14
  147. package/src/quality_of_service/alert_checker.ts +1 -1
  148. package/src/shared/cross_chain_test_harness.ts +108 -79
  149. package/src/shared/gas_portal_test_harness.ts +58 -49
  150. package/src/shared/jest_setup.ts +1 -1
  151. package/src/shared/submit-transactions.ts +12 -8
  152. package/src/shared/uniswap_l1_l2.ts +173 -176
  153. package/src/simulators/lending_simulator.ts +12 -15
  154. package/src/simulators/token_simulator.ts +21 -13
  155. package/src/spartan/DEVELOP.md +121 -0
  156. package/src/spartan/setup_test_wallets.ts +215 -93
  157. package/src/spartan/utils.ts +490 -130
  158. package/dest/e2e_prover/e2e_prover_test.d.ts.map +0 -1
  159. package/dest/sample-dapp/connect.js +0 -12
  160. package/dest/sample-dapp/contracts.js +0 -10
  161. package/dest/sample-dapp/deploy.js +0 -35
  162. package/dest/sample-dapp/index.js +0 -98
  163. package/src/sample-dapp/connect.mjs +0 -16
  164. package/src/sample-dapp/contracts.mjs +0 -14
  165. package/src/sample-dapp/deploy.mjs +0 -40
  166. package/src/sample-dapp/index.mjs +0 -128
@@ -1,93 +1,114 @@
1
- import { getSchnorrWalletWithSecretKey } from '@aztec/accounts/schnorr';
2
- import { ChainMonitor } from '@aztec/aztec.js/ethereum';
3
- import { RollupContract, getExpectedAddress, getL1ContractsConfigEnvVars } from '@aztec/ethereum';
4
- import { L1TxUtilsWithBlobs } from '@aztec/ethereum/l1-tx-utils-with-blobs';
5
- import { EthCheatCodesWithState } from '@aztec/ethereum/test';
1
+ import { EthAddress } from '@aztec/aztec.js/addresses';
2
+ import { Fr } from '@aztec/aztec.js/fields';
3
+ import { GSEContract, MultiAdderArtifact, RollupContract, createL1TxUtilsFromViemWallet, deployL1Contract, getL1ContractsConfigEnvVars } from '@aztec/ethereum';
4
+ import { ChainMonitor } from '@aztec/ethereum/test';
5
+ import { SecretValue } from '@aztec/foundation/config';
6
6
  import { createLogger } from '@aztec/foundation/log';
7
- import { ForwarderAbi, ForwarderBytecode, RollupAbi, TestERC20Abi } from '@aztec/l1-artifacts';
8
- import { SpamContract } from '@aztec/noir-contracts.js/Spam';
7
+ import { retryUntil } from '@aztec/foundation/retry';
8
+ import { RollupAbi, SlasherAbi, TestERC20Abi } from '@aztec/l1-artifacts';
9
+ import { SpamContract } from '@aztec/noir-test-contracts.js/Spam';
9
10
  import { createBootstrapNodeFromPrivateKey, getBootstrapNodeEnr } from '@aztec/p2p/test-helpers';
11
+ import { tryStop } from '@aztec/stdlib/interfaces/server';
12
+ import { SlashFactoryContract } from '@aztec/stdlib/l1-contracts';
13
+ import { ZkPassportProofParams } from '@aztec/stdlib/zkpassport';
10
14
  import { getGenesisValues } from '@aztec/world-state/testing';
11
15
  import getPort from 'get-port';
12
- import { getContract } from 'viem';
16
+ import { getAddress, getContract } from 'viem';
13
17
  import { privateKeyToAccount } from 'viem/accounts';
14
- import { ATTESTER_PRIVATE_KEYS_START_INDEX, PROPOSER_PRIVATE_KEYS_START_INDEX, createValidatorConfig, generatePrivateKeys } from '../fixtures/setup_p2p_test.js';
18
+ import { ATTESTER_PRIVATE_KEYS_START_INDEX, createValidatorConfig, generatePrivateKeys } from '../fixtures/setup_p2p_test.js';
15
19
  import { createSnapshotManager, deployAccounts } from '../fixtures/snapshot_manager.js';
16
- import { getPrivateKeyFromIndex } from '../fixtures/utils.js';
20
+ import { getPrivateKeyFromIndex, getSponsoredFPCAddress } from '../fixtures/utils.js';
17
21
  import { getEndToEndTestTelemetryClient } from '../fixtures/with_telemetry_utils.js';
18
22
  // Use a fixed bootstrap node private key so that we can re-use the same snapshot and the nodes can find each other
19
23
  const BOOTSTRAP_NODE_PRIVATE_KEY = '080212208f988fc0899e4a73a5aee4d271a5f20670603a756ad8d84f2c94263a6427c591';
20
24
  const l1ContractsConfig = getL1ContractsConfigEnvVars();
21
25
  export const WAIT_FOR_TX_TIMEOUT = l1ContractsConfig.aztecSlotDuration * 3;
22
- export const SHORTENED_BLOCK_TIME_CONFIG = {
26
+ export const SHORTENED_BLOCK_TIME_CONFIG_NO_PRUNES = {
23
27
  aztecSlotDuration: 12,
24
- ethereumSlotDuration: 4
28
+ ethereumSlotDuration: 4,
29
+ aztecProofSubmissionWindow: 640
25
30
  };
26
31
  export class P2PNetworkTest {
32
+ testName;
27
33
  bootstrapNodeEnr;
28
34
  bootNodePort;
35
+ numberOfValidators;
29
36
  numberOfNodes;
30
37
  metricsPort;
31
38
  snapshotManager;
39
+ baseAccountPrivateKey;
32
40
  baseAccount;
33
41
  logger;
34
42
  monitor;
35
43
  ctx;
36
44
  attesterPrivateKeys;
37
45
  attesterPublicKeys;
38
- proposerPrivateKeys;
39
46
  peerIdPrivateKeys;
47
+ validators;
40
48
  deployedAccounts;
41
49
  prefilledPublicData;
42
50
  // The re-execution test needs a wallet and a spam contract
43
51
  wallet;
52
+ defaultAccountAddress;
44
53
  spamContract;
45
54
  bootstrapNode;
46
- cleanupInterval;
47
- gasUtils;
48
- constructor(testName, bootstrapNodeEnr, bootNodePort, numberOfNodes, initialValidatorConfig, // If set enable metrics collection
49
- metricsPort){
55
+ constructor(testName, bootstrapNodeEnr, bootNodePort, numberOfValidators, initialValidatorConfig, numberOfNodes = 0, // If set enable metrics collection
56
+ metricsPort, startProverNode, mockZkPassportVerifier){
57
+ this.testName = testName;
50
58
  this.bootstrapNodeEnr = bootstrapNodeEnr;
51
59
  this.bootNodePort = bootNodePort;
60
+ this.numberOfValidators = numberOfValidators;
52
61
  this.numberOfNodes = numberOfNodes;
53
62
  this.metricsPort = metricsPort;
54
63
  this.attesterPrivateKeys = [];
55
64
  this.attesterPublicKeys = [];
56
- this.proposerPrivateKeys = [];
57
65
  this.peerIdPrivateKeys = [];
66
+ this.validators = [];
58
67
  this.deployedAccounts = [];
59
68
  this.prefilledPublicData = [];
60
- this.cleanupInterval = undefined;
61
- this.gasUtils = undefined;
62
69
  this.logger = createLogger(`e2e:e2e_p2p:${testName}`);
63
70
  // Set up the base account and node private keys for the initial network deployment
64
- this.baseAccount = privateKeyToAccount(`0x${getPrivateKeyFromIndex(0).toString('hex')}`);
65
- this.proposerPrivateKeys = generatePrivateKeys(PROPOSER_PRIVATE_KEYS_START_INDEX, numberOfNodes);
66
- this.attesterPrivateKeys = generatePrivateKeys(ATTESTER_PRIVATE_KEYS_START_INDEX, numberOfNodes);
71
+ this.baseAccountPrivateKey = `0x${getPrivateKeyFromIndex(1).toString('hex')}`;
72
+ this.baseAccount = privateKeyToAccount(this.baseAccountPrivateKey);
73
+ this.attesterPrivateKeys = generatePrivateKeys(ATTESTER_PRIVATE_KEYS_START_INDEX + numberOfNodes, numberOfValidators);
67
74
  this.attesterPublicKeys = this.attesterPrivateKeys.map((privateKey)=>privateKeyToAccount(privateKey).address);
75
+ const zkPassportParams = ZkPassportProofParams.random();
68
76
  this.snapshotManager = createSnapshotManager(`e2e_p2p_network/${testName}`, process.env.E2E_DATA_PATH, {
69
77
  ...initialValidatorConfig,
70
78
  ethereumSlotDuration: initialValidatorConfig.ethereumSlotDuration ?? l1ContractsConfig.ethereumSlotDuration,
71
79
  aztecEpochDuration: initialValidatorConfig.aztecEpochDuration ?? l1ContractsConfig.aztecEpochDuration,
72
80
  aztecSlotDuration: initialValidatorConfig.aztecSlotDuration ?? l1ContractsConfig.aztecSlotDuration,
73
- aztecProofSubmissionWindow: initialValidatorConfig.aztecProofSubmissionWindow ?? l1ContractsConfig.aztecProofSubmissionWindow,
81
+ aztecProofSubmissionEpochs: initialValidatorConfig.aztecProofSubmissionEpochs ?? l1ContractsConfig.aztecProofSubmissionEpochs,
82
+ slashingRoundSizeInEpochs: initialValidatorConfig.slashingRoundSizeInEpochs ?? l1ContractsConfig.slashingRoundSizeInEpochs,
83
+ slasherFlavor: initialValidatorConfig.slasherFlavor ?? 'tally',
84
+ aztecTargetCommitteeSize: numberOfValidators,
74
85
  salt: 420,
75
86
  metricsPort: metricsPort,
76
- numberOfInitialFundedAccounts: 1
87
+ numberOfInitialFundedAccounts: 2,
88
+ startProverNode
77
89
  }, {
90
+ ...initialValidatorConfig,
78
91
  aztecEpochDuration: initialValidatorConfig.aztecEpochDuration ?? l1ContractsConfig.aztecEpochDuration,
92
+ slashingRoundSizeInEpochs: initialValidatorConfig.slashingRoundSizeInEpochs ?? l1ContractsConfig.slashingRoundSizeInEpochs,
93
+ slasherFlavor: initialValidatorConfig.slasherFlavor ?? 'tally',
79
94
  ethereumSlotDuration: initialValidatorConfig.ethereumSlotDuration ?? l1ContractsConfig.ethereumSlotDuration,
80
95
  aztecSlotDuration: initialValidatorConfig.aztecSlotDuration ?? l1ContractsConfig.aztecSlotDuration,
81
- aztecProofSubmissionWindow: initialValidatorConfig.aztecProofSubmissionWindow ?? l1ContractsConfig.aztecProofSubmissionWindow,
82
- initialValidators: []
96
+ aztecProofSubmissionEpochs: initialValidatorConfig.aztecProofSubmissionEpochs ?? l1ContractsConfig.aztecProofSubmissionEpochs,
97
+ aztecTargetCommitteeSize: numberOfValidators,
98
+ initialValidators: [],
99
+ zkPassportArgs: {
100
+ mockZkPassportVerifier,
101
+ zkPassportDomain: zkPassportParams.domain,
102
+ zkPassportScope: zkPassportParams.scope
103
+ }
83
104
  });
84
105
  }
85
- static async create({ testName, numberOfNodes, basePort, metricsPort, initialConfig }) {
106
+ static async create({ testName, numberOfNodes, numberOfValidators, basePort, metricsPort, initialConfig, startProverNode, mockZkPassportVerifier }) {
86
107
  const port = basePort || await getPort();
87
108
  const bootstrapNodeENR = await getBootstrapNodeEnr(BOOTSTRAP_NODE_PRIVATE_KEY, port);
88
109
  const bootstrapNodeEnr = bootstrapNodeENR.encodeTxt();
89
110
  const initialValidatorConfig = await createValidatorConfig(initialConfig ?? {}, bootstrapNodeEnr);
90
- return new P2PNetworkTest(testName, bootstrapNodeEnr, port, numberOfNodes, initialValidatorConfig, metricsPort);
111
+ return new P2PNetworkTest(testName, bootstrapNodeEnr, port, numberOfValidators, initialValidatorConfig, numberOfNodes, metricsPort, startProverNode, mockZkPassportVerifier);
91
112
  }
92
113
  get fundedAccount() {
93
114
  if (!this.deployedAccounts[0]) {
@@ -95,110 +116,94 @@ export class P2PNetworkTest {
95
116
  }
96
117
  return this.deployedAccounts[0];
97
118
  }
98
- /**
99
- * Start a loop to sync the mock system time with the L1 block time
100
- */ startSyncMockSystemTimeInterval() {
101
- this.cleanupInterval = setInterval(()=>{
102
- void this.syncMockSystemTime().catch((err)=>this.logger.error('Error syncing mock system time', err));
103
- }, l1ContractsConfig.aztecSlotDuration * 1000);
104
- }
105
- /**
106
- * When using fake timers, we need to keep the system and anvil clocks in sync.
107
- */ async syncMockSystemTime() {
108
- this.logger.info('Syncing mock system time');
109
- const { dateProvider, deployL1ContractsValues } = this.ctx;
110
- // Send a tx and only update the time after the tx is mined, as eth time is not continuous
111
- const { receipt } = await this.gasUtils.sendAndMonitorTransaction({
112
- to: this.baseAccount.address,
113
- data: '0x',
114
- value: 1n
115
- });
116
- const timestamp = await deployL1ContractsValues.publicClient.getBlock({
117
- blockNumber: receipt.blockNumber
118
- });
119
- this.logger.info(`Timestamp: ${timestamp.timestamp}`);
120
- dateProvider.setTime(Number(timestamp.timestamp) * 1000);
121
- }
122
- async applyBaseSnapshots() {
119
+ async addBootstrapNode() {
123
120
  await this.snapshotManager.snapshot('add-bootstrap-node', async ({ aztecNodeConfig })=>{
124
121
  const telemetry = getEndToEndTestTelemetryClient(this.metricsPort);
125
122
  this.bootstrapNode = await createBootstrapNodeFromPrivateKey(BOOTSTRAP_NODE_PRIVATE_KEY, this.bootNodePort, telemetry, aztecNodeConfig);
126
123
  // Overwrite enr with updated info
127
124
  this.bootstrapNodeEnr = this.bootstrapNode.getENR().encodeTxt();
128
125
  });
129
- await this.snapshotManager.snapshot('add-validators', async ({ deployL1ContractsValues, aztecNodeConfig, dateProvider })=>{
126
+ }
127
+ getValidators() {
128
+ const validators = [];
129
+ for(let i = 0; i < this.numberOfValidators; i++){
130
+ const keyIndex = i;
131
+ const attester = privateKeyToAccount(this.attesterPrivateKeys[keyIndex]);
132
+ validators.push({
133
+ attester: EthAddress.fromString(attester.address),
134
+ withdrawer: EthAddress.fromString(attester.address),
135
+ bn254SecretKey: new SecretValue(Fr.random().toBigInt())
136
+ });
137
+ this.logger.info(`Adding attester ${attester.address} as validator`);
138
+ }
139
+ return {
140
+ validators
141
+ };
142
+ }
143
+ async applyBaseSnapshots() {
144
+ await this.addBootstrapNode();
145
+ await this.snapshotManager.snapshot('add-validators', async ({ deployL1ContractsValues, cheatCodes })=>{
130
146
  const rollup = getContract({
131
147
  address: deployL1ContractsValues.l1ContractAddresses.rollupAddress.toString(),
132
148
  abi: RollupAbi,
133
- client: deployL1ContractsValues.walletClient
149
+ client: deployL1ContractsValues.l1Client
134
150
  });
135
- this.logger.verbose(`Adding ${this.numberOfNodes} validators`);
151
+ this.logger.info(`Adding ${this.numberOfValidators} validators`);
136
152
  const stakingAsset = getContract({
137
153
  address: deployL1ContractsValues.l1ContractAddresses.stakingAssetAddress.toString(),
138
154
  abi: TestERC20Abi,
139
- client: deployL1ContractsValues.walletClient
155
+ client: deployL1ContractsValues.l1Client
156
+ });
157
+ const { address: multiAdderAddress } = await deployL1Contract(deployL1ContractsValues.l1Client, MultiAdderArtifact.contractAbi, MultiAdderArtifact.contractBytecode, [
158
+ rollup.address,
159
+ deployL1ContractsValues.l1Client.account.address
160
+ ]);
161
+ const multiAdder = getContract({
162
+ address: multiAdderAddress.toString(),
163
+ abi: MultiAdderArtifact.contractAbi,
164
+ client: deployL1ContractsValues.l1Client
140
165
  });
141
- const stakeNeeded = l1ContractsConfig.minimumStake * BigInt(this.numberOfNodes);
166
+ const stakeNeeded = await rollup.read.getActivationThreshold() * BigInt(this.numberOfValidators);
142
167
  await Promise.all([
143
168
  await stakingAsset.write.mint([
144
- deployL1ContractsValues.walletClient.account.address,
145
- stakeNeeded
146
- ], {}),
147
- await stakingAsset.write.approve([
148
- deployL1ContractsValues.l1ContractAddresses.rollupAddress.toString(),
169
+ multiAdder.address,
149
170
  stakeNeeded
150
171
  ], {})
151
- ].map((txHash)=>deployL1ContractsValues.publicClient.waitForTransactionReceipt({
172
+ ].map((txHash)=>deployL1ContractsValues.l1Client.waitForTransactionReceipt({
152
173
  hash: txHash
153
174
  })));
154
- const validators = [];
155
- for(let i = 0; i < this.numberOfNodes; i++){
156
- const attester = privateKeyToAccount(this.attesterPrivateKeys[i]);
157
- const proposerEOA = privateKeyToAccount(this.proposerPrivateKeys[i]);
158
- const forwarder = getExpectedAddress(ForwarderAbi, ForwarderBytecode, [
159
- proposerEOA.address
160
- ], proposerEOA.address).address;
161
- validators.push({
162
- attester: attester.address,
163
- proposer: forwarder,
164
- withdrawer: attester.address,
165
- amount: l1ContractsConfig.minimumStake
166
- });
167
- this.logger.verbose(`Adding (attester, proposer) pair: (${attester.address}, ${forwarder}) as validator`);
175
+ const { validators } = this.getValidators();
176
+ this.validators = validators;
177
+ const gseAddress = deployL1ContractsValues.l1ContractAddresses.gseAddress;
178
+ if (!gseAddress) {
179
+ throw new Error('GSE contract not deployed');
168
180
  }
169
- await deployL1ContractsValues.publicClient.waitForTransactionReceipt({
170
- hash: await rollup.write.cheat__InitialiseValidatorSet([
171
- validators
181
+ const gseContract = new GSEContract(deployL1ContractsValues.l1Client, gseAddress.toString());
182
+ const makeValidatorTuples = async (validator)=>{
183
+ const registrationTuple = await gseContract.makeRegistrationTuple(validator.bn254SecretKey.getValue());
184
+ return {
185
+ attester: validator.attester.toString(),
186
+ withdrawer: validator.withdrawer.toString(),
187
+ ...registrationTuple
188
+ };
189
+ };
190
+ const validatorTuples = await Promise.all(validators.map(makeValidatorTuples));
191
+ await deployL1ContractsValues.l1Client.waitForTransactionReceipt({
192
+ hash: await multiAdder.write.addValidators([
193
+ validatorTuples
172
194
  ])
173
195
  });
174
- const slotsInEpoch = await rollup.read.getEpochDuration();
175
- const timestamp = await rollup.read.getTimestampForSlot([
176
- slotsInEpoch
177
- ]);
178
- const cheatCodes = new EthCheatCodesWithState(aztecNodeConfig.l1RpcUrls);
179
- try {
180
- await cheatCodes.warp(Number(timestamp));
181
- } catch (err) {
182
- this.logger.debug('Warp failed, time already satisfied');
183
- }
196
+ await cheatCodes.rollup.advanceToEpoch(await cheatCodes.rollup.getEpoch() + await rollup.read.getLagInEpochs() + 1n);
184
197
  // Send and await a tx to make sure we mine a block for the warp to correctly progress.
185
- await deployL1ContractsValues.publicClient.waitForTransactionReceipt({
186
- hash: await deployL1ContractsValues.walletClient.sendTransaction({
187
- to: this.baseAccount.address,
188
- value: 1n,
189
- account: this.baseAccount
190
- })
191
- });
192
- // Set the system time in the node, only after we have warped the time and waited for a block
193
- // Time is only set in the NEXT block
194
- dateProvider.setTime(Number(timestamp) * 1000);
198
+ await this._sendDummyTx(deployL1ContractsValues.l1Client);
195
199
  });
196
200
  }
197
201
  async setupAccount() {
198
- await this.snapshotManager.snapshot('setup-account', deployAccounts(1, this.logger, false), async ({ deployedAccounts }, { pxe })=>{
202
+ await this.snapshotManager.snapshot('setup-account', deployAccounts(1, this.logger), ({ deployedAccounts }, { wallet })=>{
199
203
  this.deployedAccounts = deployedAccounts;
200
- const [account] = deployedAccounts;
201
- this.wallet = await getSchnorrWalletWithSecretKey(pxe, account.secret, account.signingKey, account.salt);
204
+ [{ address: this.defaultAccountAddress }] = deployedAccounts;
205
+ this.wallet = wallet;
206
+ return Promise.resolve();
202
207
  });
203
208
  }
204
209
  async deploySpamContract() {
@@ -206,7 +211,9 @@ export class P2PNetworkTest {
206
211
  if (!this.wallet) {
207
212
  throw new Error('Call snapshot t.setupAccount before deploying account contract');
208
213
  }
209
- const spamContract = await SpamContract.deploy(this.wallet).send().deployed();
214
+ const spamContract = await SpamContract.deploy(this.wallet).send({
215
+ from: this.defaultAccountAddress
216
+ }).deployed();
210
217
  return {
211
218
  contractAddress: spamContract.address
212
219
  };
@@ -218,34 +225,38 @@ export class P2PNetworkTest {
218
225
  });
219
226
  }
220
227
  async removeInitialNode() {
221
- await this.snapshotManager.snapshot('remove-inital-validator', async ({ deployL1ContractsValues, aztecNode, dateProvider })=>{
228
+ await this.snapshotManager.snapshot('remove-initial-validator', async ({ deployL1ContractsValues, aztecNode, dateProvider })=>{
222
229
  // Send and await a tx to make sure we mine a block for the warp to correctly progress.
223
- const receipt = await deployL1ContractsValues.publicClient.waitForTransactionReceipt({
224
- hash: await deployL1ContractsValues.walletClient.sendTransaction({
225
- to: this.baseAccount.address,
226
- value: 1n,
227
- account: this.baseAccount
228
- })
229
- });
230
- const block = await deployL1ContractsValues.publicClient.getBlock({
230
+ const { receipt } = await this._sendDummyTx(deployL1ContractsValues.l1Client);
231
+ const block = await deployL1ContractsValues.l1Client.getBlock({
231
232
  blockNumber: receipt.blockNumber
232
233
  });
233
234
  dateProvider.setTime(Number(block.timestamp) * 1000);
234
235
  await aztecNode.stop();
235
236
  });
236
237
  }
238
+ async sendDummyTx() {
239
+ return await this._sendDummyTx(this.ctx.deployL1ContractsValues.l1Client);
240
+ }
241
+ async _sendDummyTx(l1Client) {
242
+ const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client);
243
+ return await l1TxUtils.sendAndMonitorTransaction({
244
+ to: l1Client.account.address,
245
+ value: 1n
246
+ });
247
+ }
237
248
  async setup() {
238
249
  this.ctx = await this.snapshotManager.setup();
239
- this.prefilledPublicData = (await getGenesisValues(this.ctx.initialFundedAccounts.map((a)=>a.address))).prefilledPublicData;
240
- this.startSyncMockSystemTimeInterval();
241
- this.gasUtils = new L1TxUtilsWithBlobs(this.ctx.deployL1ContractsValues.publicClient, this.ctx.deployL1ContractsValues.walletClient, this.logger, {
242
- gasLimitBufferPercentage: 20,
243
- maxGwei: 500n,
244
- maxAttempts: 3,
245
- checkIntervalMs: 100,
246
- stallTimeMs: 1000
247
- });
248
- this.monitor = new ChainMonitor(RollupContract.getFromL1ContractsValues(this.ctx.deployL1ContractsValues)).start();
250
+ const sponsoredFPCAddress = await getSponsoredFPCAddress();
251
+ const initialFundedAccounts = [
252
+ ...this.ctx.initialFundedAccounts.map((a)=>a.address),
253
+ sponsoredFPCAddress
254
+ ];
255
+ const { prefilledPublicData } = await getGenesisValues(initialFundedAccounts);
256
+ this.prefilledPublicData = prefilledPublicData;
257
+ const rollupContract = RollupContract.getFromL1ContractsValues(this.ctx.deployL1ContractsValues);
258
+ this.monitor = new ChainMonitor(rollupContract, this.ctx.dateProvider).start();
259
+ this.monitor.on('l1-block', ({ timestamp })=>this.ctx.dateProvider.setTime(Number(timestamp) * 1000));
249
260
  }
250
261
  async stopNodes(nodes) {
251
262
  this.logger.info('Stopping nodes');
@@ -256,12 +267,52 @@ export class P2PNetworkTest {
256
267
  await Promise.all(nodes.map((node)=>node.stop()));
257
268
  this.logger.info('Nodes stopped');
258
269
  }
270
+ /**
271
+ * Wait for P2P mesh to be fully formed across all nodes.
272
+ * This ensures that all nodes are connected to each other before proceeding,
273
+ * preventing race conditions where validators propose blocks before the network is ready.
274
+ *
275
+ * @param nodes - Array of nodes to check for P2P connectivity
276
+ * @param expectedNodeCount - Expected number of nodes in the network (defaults to nodes.length)
277
+ * @param timeoutSeconds - Maximum time to wait for connections (default: 30 seconds)
278
+ * @param checkIntervalSeconds - How often to check connectivity (default: 0.1 seconds)
279
+ */ async waitForP2PMeshConnectivity(nodes, expectedNodeCount, timeoutSeconds = 30, checkIntervalSeconds = 0.1) {
280
+ const nodeCount = expectedNodeCount ?? nodes.length;
281
+ const minPeerCount = nodeCount - 1;
282
+ this.logger.warn(`Waiting for all ${nodeCount} nodes to connect to P2P mesh (at least ${minPeerCount} peers each)...`);
283
+ await Promise.all(nodes.map(async (node, index)=>{
284
+ const p2p = node.getP2P();
285
+ await retryUntil(async ()=>{
286
+ const peers = await p2p.getPeers();
287
+ // Each node should be connected to at least N-1 other nodes
288
+ return peers.length >= minPeerCount ? true : undefined;
289
+ }, `Node ${index} to connect to at least ${minPeerCount} peers`, timeoutSeconds, checkIntervalSeconds);
290
+ }));
291
+ this.logger.warn('All nodes connected to P2P mesh');
292
+ }
259
293
  async teardown() {
260
- this.monitor.stop();
261
- await this.bootstrapNode?.stop();
294
+ await this.monitor.stop();
295
+ await tryStop(this.bootstrapNode, this.logger);
262
296
  await this.snapshotManager.teardown();
263
- if (this.cleanupInterval) {
264
- clearInterval(this.cleanupInterval);
297
+ }
298
+ async getContracts() {
299
+ if (!this.ctx.deployL1ContractsValues) {
300
+ throw new Error('DeployL1ContractsValues not set');
265
301
  }
302
+ const rollup = new RollupContract(this.ctx.deployL1ContractsValues.l1Client, this.ctx.deployL1ContractsValues.l1ContractAddresses.rollupAddress);
303
+ const slasherContract = getContract({
304
+ address: getAddress(await rollup.getSlasherAddress()),
305
+ abi: SlasherAbi,
306
+ client: this.ctx.deployL1ContractsValues.l1Client
307
+ });
308
+ // Get the actual slashing proposer from rollup (which handles both empire and tally)
309
+ const slashingProposer = await rollup.getSlashingProposer();
310
+ const slashFactory = new SlashFactoryContract(this.ctx.deployL1ContractsValues.l1Client, getAddress(this.ctx.deployL1ContractsValues.l1ContractAddresses.slashFactoryAddress.toString()));
311
+ return {
312
+ rollup,
313
+ slasherContract,
314
+ slashingProposer,
315
+ slashFactory
316
+ };
266
317
  }
267
318
  }
@@ -1,10 +1,46 @@
1
1
  import type { InitialAccountData } from '@aztec/accounts/testing';
2
2
  import type { AztecNodeService } from '@aztec/aztec-node';
3
- import { type Logger, type SentTx } from '@aztec/aztec.js';
4
- import type { SpamContract } from '@aztec/noir-contracts.js/Spam';
5
- import type { NodeContext } from '../fixtures/setup_p2p_test.js';
6
- export declare const submitComplexTxsTo: (logger: Logger, spamContract: SpamContract, numTxs: number, opts?: {
3
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
4
+ import { type SentTx } from '@aztec/aztec.js/contracts';
5
+ import type { Logger } from '@aztec/aztec.js/log';
6
+ import { Tx } from '@aztec/aztec.js/tx';
7
+ import type { RollupCheatCodes } from '@aztec/aztec/testing';
8
+ import type { EmpireSlashingProposerContract, RollupContract, TallySlashingProposerContract } from '@aztec/ethereum';
9
+ import type { SpamContract } from '@aztec/noir-test-contracts.js/Spam';
10
+ import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
11
+ import type { SlashFactoryContract } from '@aztec/stdlib/l1-contracts';
12
+ export declare const submitComplexTxsTo: (logger: Logger, from: AztecAddress, spamContract: SpamContract, numTxs: number, opts?: {
7
13
  callPublic?: boolean;
8
14
  }) => Promise<SentTx[]>;
9
- export declare const createPXEServiceAndSubmitTransactions: (logger: Logger, node: AztecNodeService, numTxs: number, fundedAccount: InitialAccountData) => Promise<NodeContext>;
15
+ export declare const submitTransactions: (logger: Logger, node: AztecNodeService, numTxs: number, fundedAccount: InitialAccountData) => Promise<SentTx[]>;
16
+ export declare function prepareTransactions(logger: Logger, node: AztecNodeService, numTxs: number, fundedAccount: InitialAccountData): Promise<Tx[]>;
17
+ export declare function awaitProposalExecution(slashingProposer: EmpireSlashingProposerContract | TallySlashingProposerContract, timeoutSeconds: number, logger: Logger): Promise<bigint>;
18
+ export declare function awaitCommitteeExists({ rollup, logger, }: {
19
+ rollup: RollupContract;
20
+ logger: Logger;
21
+ }): Promise<readonly `0x${string}`[]>;
22
+ export declare function awaitOffenseDetected({ logger, nodeAdmin, slashingRoundSize, epochDuration, waitUntilOffenseCount, timeoutSeconds, }: {
23
+ nodeAdmin: AztecNodeAdmin;
24
+ logger: Logger;
25
+ slashingRoundSize: number;
26
+ epochDuration: number;
27
+ waitUntilOffenseCount?: number;
28
+ timeoutSeconds?: number;
29
+ }): Promise<import("@aztec/slasher").Offense[]>;
30
+ /**
31
+ * Await the committee to be slashed out of the validator set.
32
+ * Currently assumes that the committee is the same size as the validator set.
33
+ */
34
+ export declare function awaitCommitteeKicked({ rollup, cheatCodes, committee, slashFactory, slashingProposer, slashingRoundSize, aztecSlotDuration, aztecEpochDuration, logger, offenseEpoch, }: {
35
+ rollup: RollupContract;
36
+ cheatCodes: RollupCheatCodes;
37
+ committee: readonly `0x${string}`[];
38
+ slashFactory: SlashFactoryContract;
39
+ slashingProposer: EmpireSlashingProposerContract | TallySlashingProposerContract | undefined;
40
+ slashingRoundSize: number;
41
+ aztecSlotDuration: number;
42
+ aztecEpochDuration: number;
43
+ logger: Logger;
44
+ offenseEpoch: number;
45
+ }): Promise<void>;
10
46
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/e2e_p2p/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAY,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAIjE,eAAO,MAAM,kBAAkB,WACrB,MAAM,gBACA,YAAY,UAClB,MAAM,SACR;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,sBAwB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