@aztec/end-to-end 0.0.0-test.1 → 0.0.1-commit.b655e406
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.
- package/dest/bench/client_flows/benchmark.d.ts +61 -0
- package/dest/bench/client_flows/benchmark.d.ts.map +1 -0
- package/dest/bench/client_flows/benchmark.js +261 -0
- package/dest/bench/client_flows/client_flows_benchmark.d.ts +73 -0
- package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -0
- package/dest/bench/client_flows/client_flows_benchmark.js +311 -0
- package/dest/bench/client_flows/config.d.ts +14 -0
- package/dest/bench/client_flows/config.d.ts.map +1 -0
- package/dest/bench/client_flows/config.js +106 -0
- package/dest/bench/client_flows/data_extractor.d.ts +2 -0
- package/dest/bench/client_flows/data_extractor.d.ts.map +1 -0
- package/dest/bench/client_flows/data_extractor.js +99 -0
- package/dest/bench/utils.d.ts +10 -36
- package/dest/bench/utils.d.ts.map +1 -1
- package/dest/bench/utils.js +26 -66
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +20 -12
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +85 -57
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +18 -24
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +48 -69
- package/dest/e2e_deploy_contract/deploy_test.d.ts +14 -6
- package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
- package/dest/e2e_deploy_contract/deploy_test.js +13 -19
- package/dest/e2e_epochs/epochs_test.d.ts +58 -17
- package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
- package/dest/e2e_epochs/epochs_test.js +224 -43
- package/dest/e2e_fees/bridging_race.notest.d.ts +2 -0
- package/dest/e2e_fees/bridging_race.notest.d.ts.map +1 -0
- package/dest/e2e_fees/bridging_race.notest.js +63 -0
- package/dest/e2e_fees/fees_test.d.ts +20 -9
- package/dest/e2e_fees/fees_test.d.ts.map +1 -1
- package/dest/e2e_fees/fees_test.js +98 -107
- package/dest/e2e_l1_publisher/write_json.d.ts +10 -0
- package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -0
- package/dest/e2e_l1_publisher/write_json.js +57 -0
- package/dest/e2e_multi_validator/utils.d.ts +12 -0
- package/dest/e2e_multi_validator/utils.d.ts.map +1 -0
- package/dest/e2e_multi_validator/utils.js +214 -0
- package/dest/e2e_nested_contract/nested_contract_test.d.ts +9 -6
- package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
- package/dest/e2e_nested_contract/nested_contract_test.js +22 -19
- package/dest/e2e_p2p/inactivity_slash_test.d.ts +31 -0
- package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -0
- package/dest/e2e_p2p/inactivity_slash_test.js +135 -0
- package/dest/e2e_p2p/p2p_network.d.ts +69 -22
- package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
- package/dest/e2e_p2p/p2p_network.js +180 -129
- package/dest/e2e_p2p/shared.d.ts +41 -5
- package/dest/e2e_p2p/shared.d.ts.map +1 -1
- package/dest/e2e_p2p/shared.js +163 -19
- package/dest/e2e_token_contract/token_contract_test.d.ts +11 -5
- package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
- package/dest/e2e_token_contract/token_contract_test.js +50 -26
- package/dest/{e2e_prover → fixtures}/e2e_prover_test.d.ts +14 -9
- package/dest/fixtures/e2e_prover_test.d.ts.map +1 -0
- package/dest/{e2e_prover → fixtures}/e2e_prover_test.js +95 -100
- package/dest/fixtures/fixtures.d.ts +5 -6
- package/dest/fixtures/fixtures.d.ts.map +1 -1
- package/dest/fixtures/fixtures.js +4 -3
- package/dest/fixtures/get_acvm_config.d.ts +1 -1
- package/dest/fixtures/get_acvm_config.d.ts.map +1 -1
- package/dest/fixtures/get_acvm_config.js +2 -14
- package/dest/fixtures/get_bb_config.d.ts +1 -1
- package/dest/fixtures/get_bb_config.d.ts.map +1 -1
- package/dest/fixtures/get_bb_config.js +10 -17
- package/dest/fixtures/l1_to_l2_messaging.d.ts +8 -5
- package/dest/fixtures/l1_to_l2_messaging.d.ts.map +1 -1
- package/dest/fixtures/l1_to_l2_messaging.js +44 -18
- package/dest/fixtures/setup_l1_contracts.d.ts +3 -3
- package/dest/fixtures/setup_l1_contracts.d.ts.map +1 -1
- package/dest/fixtures/setup_l1_contracts.js +4 -4
- package/dest/fixtures/setup_p2p_test.d.ts +14 -13
- package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
- package/dest/fixtures/setup_p2p_test.js +73 -21
- package/dest/fixtures/snapshot_manager.d.ts +15 -7
- package/dest/fixtures/snapshot_manager.d.ts.map +1 -1
- package/dest/fixtures/snapshot_manager.js +147 -121
- package/dest/fixtures/token_utils.d.ts +6 -3
- package/dest/fixtures/token_utils.d.ts.map +1 -1
- package/dest/fixtures/token_utils.js +23 -10
- package/dest/fixtures/utils.d.ts +76 -37
- package/dest/fixtures/utils.d.ts.map +1 -1
- package/dest/fixtures/utils.js +464 -368
- package/dest/fixtures/web3signer.d.ts +5 -0
- package/dest/fixtures/web3signer.d.ts.map +1 -0
- package/dest/fixtures/web3signer.js +53 -0
- package/dest/quality_of_service/alert_checker.d.ts +1 -1
- package/dest/quality_of_service/alert_checker.d.ts.map +1 -1
- package/dest/shared/cross_chain_test_harness.d.ts +41 -25
- package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
- package/dest/shared/cross_chain_test_harness.js +104 -50
- package/dest/shared/gas_portal_test_harness.d.ts +32 -24
- package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
- package/dest/shared/gas_portal_test_harness.js +50 -29
- package/dest/shared/jest_setup.js +1 -1
- package/dest/shared/submit-transactions.d.ts +5 -3
- package/dest/shared/submit-transactions.d.ts.map +1 -1
- package/dest/shared/submit-transactions.js +8 -7
- package/dest/shared/uniswap_l1_l2.d.ts +13 -11
- package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
- package/dest/shared/uniswap_l1_l2.js +138 -108
- package/dest/simulators/lending_simulator.d.ts +6 -6
- package/dest/simulators/lending_simulator.d.ts.map +1 -1
- package/dest/simulators/lending_simulator.js +13 -16
- package/dest/simulators/token_simulator.d.ts +5 -2
- package/dest/simulators/token_simulator.d.ts.map +1 -1
- package/dest/simulators/token_simulator.js +16 -13
- package/dest/spartan/setup_test_wallets.d.ts +23 -10
- package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
- package/dest/spartan/setup_test_wallets.js +167 -58
- package/dest/spartan/utils.d.ts +106 -303
- package/dest/spartan/utils.d.ts.map +1 -1
- package/dest/spartan/utils.js +434 -130
- package/package.json +61 -56
- package/src/bench/client_flows/benchmark.ts +341 -0
- package/src/bench/client_flows/client_flows_benchmark.ts +402 -0
- package/src/bench/client_flows/config.ts +61 -0
- package/src/bench/client_flows/data_extractor.ts +111 -0
- package/src/bench/utils.ts +22 -76
- package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +80 -77
- package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +63 -105
- package/src/e2e_deploy_contract/deploy_test.ts +23 -38
- package/src/e2e_epochs/epochs_test.ts +274 -54
- package/src/e2e_fees/bridging_race.notest.ts +80 -0
- package/src/e2e_fees/fees_test.ts +137 -136
- package/src/e2e_l1_publisher/write_json.ts +76 -0
- package/src/e2e_multi_validator/utils.ts +258 -0
- package/src/e2e_nested_contract/nested_contract_test.ts +27 -18
- package/src/e2e_p2p/inactivity_slash_test.ts +178 -0
- package/src/e2e_p2p/p2p_network.ts +272 -166
- package/src/e2e_p2p/shared.ts +244 -29
- package/src/e2e_token_contract/token_contract_test.ts +43 -39
- package/src/fixtures/dumps/epoch_proof_result.json +1 -1
- package/src/{e2e_prover → fixtures}/e2e_prover_test.ts +101 -145
- package/src/fixtures/fixtures.ts +4 -3
- package/src/fixtures/get_acvm_config.ts +3 -11
- package/src/fixtures/get_bb_config.ts +18 -13
- package/src/fixtures/l1_to_l2_messaging.ts +53 -23
- package/src/fixtures/setup_l1_contracts.ts +6 -7
- package/src/fixtures/setup_p2p_test.ts +112 -38
- package/src/fixtures/snapshot_manager.ts +187 -139
- package/src/fixtures/token_utils.ts +29 -12
- package/src/fixtures/utils.ts +552 -425
- package/src/fixtures/web3signer.ts +63 -0
- package/src/guides/up_quick_start.sh +6 -14
- package/src/quality_of_service/alert_checker.ts +1 -1
- package/src/shared/cross_chain_test_harness.ts +108 -79
- package/src/shared/gas_portal_test_harness.ts +58 -49
- package/src/shared/jest_setup.ts +1 -1
- package/src/shared/submit-transactions.ts +12 -8
- package/src/shared/uniswap_l1_l2.ts +173 -176
- package/src/simulators/lending_simulator.ts +12 -15
- package/src/simulators/token_simulator.ts +21 -13
- package/src/spartan/DEVELOP.md +121 -0
- package/src/spartan/setup_test_wallets.ts +215 -93
- package/src/spartan/utils.ts +490 -130
- package/dest/e2e_prover/e2e_prover_test.d.ts.map +0 -1
- package/dest/sample-dapp/connect.js +0 -12
- package/dest/sample-dapp/contracts.js +0 -10
- package/dest/sample-dapp/deploy.js +0 -35
- package/dest/sample-dapp/index.js +0 -98
- package/src/sample-dapp/connect.mjs +0 -16
- package/src/sample-dapp/contracts.mjs +0 -14
- package/src/sample-dapp/deploy.mjs +0 -40
- package/src/sample-dapp/index.mjs +0 -128
|
@@ -1,93 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { RollupContract,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 {
|
|
8
|
-
import {
|
|
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,
|
|
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
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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.
|
|
65
|
-
this.
|
|
66
|
-
this.attesterPrivateKeys = generatePrivateKeys(ATTESTER_PRIVATE_KEYS_START_INDEX,
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
82
|
-
|
|
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,
|
|
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
|
-
|
|
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.
|
|
149
|
+
client: deployL1ContractsValues.l1Client
|
|
134
150
|
});
|
|
135
|
-
this.logger.
|
|
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.
|
|
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 =
|
|
166
|
+
const stakeNeeded = await rollup.read.getActivationThreshold() * BigInt(this.numberOfValidators);
|
|
142
167
|
await Promise.all([
|
|
143
168
|
await stakingAsset.write.mint([
|
|
144
|
-
|
|
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.
|
|
172
|
+
].map((txHash)=>deployL1ContractsValues.l1Client.waitForTransactionReceipt({
|
|
152
173
|
hash: txHash
|
|
153
174
|
})));
|
|
154
|
-
const validators =
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
202
|
+
await this.snapshotManager.snapshot('setup-account', deployAccounts(1, this.logger), ({ deployedAccounts }, { wallet })=>{
|
|
199
203
|
this.deployedAccounts = deployedAccounts;
|
|
200
|
-
|
|
201
|
-
this.wallet =
|
|
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(
|
|
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-
|
|
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.
|
|
224
|
-
|
|
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
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
this.monitor
|
|
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
|
|
294
|
+
await this.monitor.stop();
|
|
295
|
+
await tryStop(this.bootstrapNode, this.logger);
|
|
262
296
|
await this.snapshotManager.teardown();
|
|
263
|
-
|
|
264
|
-
|
|
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
|
}
|
package/dest/e2e_p2p/shared.d.ts
CHANGED
|
@@ -1,10 +1,46 @@
|
|
|
1
1
|
import type { InitialAccountData } from '@aztec/accounts/testing';
|
|
2
2
|
import type { AztecNodeService } from '@aztec/aztec-node';
|
|
3
|
-
import {
|
|
4
|
-
import type
|
|
5
|
-
import type {
|
|
6
|
-
|
|
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
|
|
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":"
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/e2e_p2p/shared.ts"],"names":[],"mappings":"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"}
|