@aztec/end-to-end 0.0.0-test.0 → 0.0.1-commit.023c3e5
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 +62 -0
- package/dest/bench/client_flows/benchmark.d.ts.map +1 -0
- package/dest/bench/client_flows/benchmark.js +281 -0
- package/dest/bench/client_flows/client_flows_benchmark.d.ts +79 -0
- package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -0
- package/dest/bench/client_flows/client_flows_benchmark.js +321 -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 +79 -0
- package/dest/bench/utils.d.ts +16 -41
- package/dest/bench/utils.d.ts.map +1 -1
- package/dest/bench/utils.js +41 -72
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +26 -19
- 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 +114 -102
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +32 -32
- 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 +104 -104
- package/dest/e2e_deploy_contract/deploy_test.d.ts +19 -10
- package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
- package/dest/e2e_deploy_contract/deploy_test.js +26 -27
- package/dest/e2e_epochs/epochs_test.d.ts +71 -22
- package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
- package/dest/e2e_epochs/epochs_test.js +260 -54
- 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 +61 -0
- package/dest/e2e_fees/fees_test.d.ts +38 -23
- package/dest/e2e_fees/fees_test.d.ts.map +1 -1
- package/dest/e2e_fees/fees_test.js +162 -183
- package/dest/e2e_l1_publisher/write_json.d.ts +11 -0
- package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -0
- package/dest/e2e_l1_publisher/write_json.js +56 -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 +15 -15
- package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
- package/dest/e2e_nested_contract/nested_contract_test.js +37 -41
- 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 +136 -0
- package/dest/e2e_p2p/p2p_network.d.ts +281 -27
- package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
- package/dest/e2e_p2p/p2p_network.js +237 -175
- package/dest/e2e_p2p/reqresp/utils.d.ts +22 -0
- package/dest/e2e_p2p/reqresp/utils.d.ts.map +1 -0
- package/dest/e2e_p2p/reqresp/utils.js +153 -0
- package/dest/e2e_p2p/shared.d.ts +44 -8
- package/dest/e2e_p2p/shared.d.ts.map +1 -1
- package/dest/e2e_p2p/shared.js +165 -27
- package/dest/e2e_token_contract/token_contract_test.d.ts +27 -14
- package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
- package/dest/e2e_token_contract/token_contract_test.js +96 -74
- package/dest/fixtures/e2e_prover_test.d.ts +55 -0
- package/dest/fixtures/e2e_prover_test.d.ts.map +1 -0
- package/dest/fixtures/e2e_prover_test.js +278 -0
- package/dest/fixtures/fixtures.d.ts +6 -8
- package/dest/fixtures/fixtures.d.ts.map +1 -1
- package/dest/fixtures/fixtures.js +5 -5
- package/dest/fixtures/get_acvm_config.d.ts +2 -2
- package/dest/fixtures/get_acvm_config.d.ts.map +1 -1
- package/dest/fixtures/get_acvm_config.js +3 -15
- package/dest/fixtures/get_bb_config.d.ts +2 -2
- package/dest/fixtures/get_bb_config.d.ts.map +1 -1
- package/dest/fixtures/get_bb_config.js +10 -17
- package/dest/fixtures/index.d.ts +1 -1
- package/dest/fixtures/l1_to_l2_messaging.d.ts +11 -7
- package/dest/fixtures/l1_to_l2_messaging.d.ts.map +1 -1
- package/dest/fixtures/l1_to_l2_messaging.js +45 -19
- package/dest/fixtures/logging.d.ts +1 -1
- package/dest/fixtures/setup.d.ts +218 -0
- package/dest/fixtures/setup.d.ts.map +1 -0
- package/dest/fixtures/setup.js +695 -0
- package/dest/fixtures/setup_p2p_test.d.ts +15 -15
- package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
- package/dest/fixtures/setup_p2p_test.js +96 -31
- package/dest/fixtures/token_utils.d.ts +10 -4
- package/dest/fixtures/token_utils.d.ts.map +1 -1
- package/dest/fixtures/token_utils.js +31 -12
- package/dest/fixtures/utils.d.ts +5 -153
- package/dest/fixtures/utils.d.ts.map +1 -1
- package/dest/fixtures/utils.js +4 -552
- 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/fixtures/with_telemetry_utils.d.ts +2 -2
- package/dest/fixtures/with_telemetry_utils.d.ts.map +1 -1
- package/dest/fixtures/with_telemetry_utils.js +2 -2
- package/dest/index.d.ts +1 -1
- package/dest/quality_of_service/grafana_client.d.ts +41 -0
- package/dest/quality_of_service/grafana_client.d.ts.map +1 -0
- package/dest/quality_of_service/{alert_checker.js → grafana_client.js} +1 -1
- package/dest/quality_of_service/prometheus_client.d.ts +38 -0
- package/dest/quality_of_service/prometheus_client.d.ts.map +1 -0
- package/dest/quality_of_service/prometheus_client.js +67 -0
- package/dest/shared/cross_chain_test_harness.d.ts +44 -27
- package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
- package/dest/shared/cross_chain_test_harness.js +105 -51
- package/dest/shared/gas_portal_test_harness.d.ts +33 -25
- package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
- package/dest/shared/gas_portal_test_harness.js +51 -30
- package/dest/shared/index.d.ts +2 -2
- package/dest/shared/index.d.ts.map +1 -1
- package/dest/shared/jest_setup.d.ts +1 -1
- package/dest/shared/jest_setup.js +1 -1
- package/dest/shared/submit-transactions.d.ts +6 -4
- package/dest/shared/submit-transactions.d.ts.map +1 -1
- package/dest/shared/submit-transactions.js +15 -16
- package/dest/shared/uniswap_l1_l2.d.ts +3 -25
- package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
- package/dest/shared/uniswap_l1_l2.js +176 -126
- package/dest/simulators/index.d.ts +1 -1
- package/dest/simulators/lending_simulator.d.ts +7 -7
- package/dest/simulators/lending_simulator.d.ts.map +1 -1
- package/dest/simulators/lending_simulator.js +17 -18
- package/dest/simulators/token_simulator.d.ts +6 -3
- 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 +27 -11
- package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
- package/dest/spartan/setup_test_wallets.js +233 -62
- package/dest/spartan/tx_metrics.d.ts +88 -0
- package/dest/spartan/tx_metrics.d.ts.map +1 -0
- package/dest/spartan/tx_metrics.js +422 -0
- package/dest/spartan/utils/bot.d.ts +27 -0
- package/dest/spartan/utils/bot.d.ts.map +1 -0
- package/dest/spartan/utils/bot.js +141 -0
- package/dest/spartan/utils/chaos.d.ts +79 -0
- package/dest/spartan/utils/chaos.d.ts.map +1 -0
- package/dest/spartan/utils/chaos.js +142 -0
- package/dest/spartan/utils/clients.d.ts +39 -0
- package/dest/spartan/utils/clients.d.ts.map +1 -0
- package/dest/spartan/utils/clients.js +90 -0
- package/dest/spartan/utils/config.d.ts +36 -0
- package/dest/spartan/utils/config.d.ts.map +1 -0
- package/dest/spartan/utils/config.js +20 -0
- package/dest/spartan/utils/health.d.ts +63 -0
- package/dest/spartan/utils/health.d.ts.map +1 -0
- package/dest/spartan/utils/health.js +202 -0
- package/dest/spartan/utils/helm.d.ts +15 -0
- package/dest/spartan/utils/helm.d.ts.map +1 -0
- package/dest/spartan/utils/helm.js +47 -0
- package/dest/spartan/utils/index.d.ts +9 -0
- package/dest/spartan/utils/index.d.ts.map +1 -0
- package/dest/spartan/utils/index.js +18 -0
- package/dest/spartan/utils/k8s.d.ts +126 -0
- package/dest/spartan/utils/k8s.d.ts.map +1 -0
- package/dest/spartan/utils/k8s.js +375 -0
- package/dest/spartan/utils/nodes.d.ts +41 -0
- package/dest/spartan/utils/nodes.d.ts.map +1 -0
- package/dest/spartan/utils/nodes.js +461 -0
- package/dest/spartan/utils/scripts.d.ts +16 -0
- package/dest/spartan/utils/scripts.d.ts.map +1 -0
- package/dest/spartan/utils/scripts.js +66 -0
- package/dest/spartan/utils.d.ts +2 -415
- package/dest/spartan/utils.d.ts.map +1 -1
- package/dest/spartan/utils.js +1 -445
- package/package.json +66 -58
- package/src/bench/client_flows/benchmark.ts +363 -0
- package/src/bench/client_flows/client_flows_benchmark.ts +384 -0
- package/src/bench/client_flows/config.ts +61 -0
- package/src/bench/client_flows/data_extractor.ts +89 -0
- package/src/bench/utils.ts +41 -85
- package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +134 -169
- package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +156 -182
- package/src/e2e_deploy_contract/deploy_test.ts +40 -48
- package/src/e2e_epochs/epochs_test.ts +341 -81
- package/src/e2e_fees/bridging_race.notest.ts +74 -0
- package/src/e2e_fees/fees_test.ts +220 -258
- package/src/e2e_l1_publisher/write_json.ts +77 -0
- package/src/e2e_multi_validator/utils.ts +258 -0
- package/src/e2e_nested_contract/nested_contract_test.ts +46 -59
- package/src/e2e_p2p/inactivity_slash_test.ts +179 -0
- package/src/e2e_p2p/p2p_network.ts +341 -234
- package/src/e2e_p2p/reqresp/utils.ts +207 -0
- package/src/e2e_p2p/shared.ts +260 -39
- package/src/e2e_token_contract/token_contract_test.ts +115 -126
- package/src/fixtures/dumps/epoch_proof_result.json +1 -1
- package/src/fixtures/e2e_prover_test.ts +336 -0
- package/src/fixtures/fixtures.ts +5 -7
- package/src/fixtures/get_acvm_config.ts +4 -12
- package/src/fixtures/get_bb_config.ts +18 -13
- package/src/fixtures/l1_to_l2_messaging.ts +56 -24
- package/src/fixtures/setup.ts +1017 -0
- package/src/fixtures/setup_p2p_test.ts +133 -50
- package/src/fixtures/token_utils.ts +33 -15
- package/src/fixtures/utils.ts +27 -820
- package/src/fixtures/web3signer.ts +63 -0
- package/src/fixtures/with_telemetry_utils.ts +2 -2
- package/src/guides/up_quick_start.sh +7 -15
- package/src/quality_of_service/{alert_checker.ts → grafana_client.ts} +2 -2
- package/src/quality_of_service/prometheus_client.ts +113 -0
- package/src/shared/cross_chain_test_harness.ts +103 -91
- package/src/shared/gas_portal_test_harness.ts +59 -50
- package/src/shared/index.ts +1 -1
- package/src/shared/jest_setup.ts +1 -1
- package/src/shared/submit-transactions.ts +18 -20
- package/src/shared/uniswap_l1_l2.ts +197 -221
- package/src/simulators/lending_simulator.ts +16 -17
- package/src/simulators/token_simulator.ts +21 -13
- package/src/spartan/DEVELOP.md +128 -0
- package/src/spartan/setup_test_wallets.ts +308 -95
- package/src/spartan/tx_metrics.ts +376 -0
- package/src/spartan/utils/bot.ts +185 -0
- package/src/spartan/utils/chaos.ts +253 -0
- package/src/spartan/utils/clients.ts +100 -0
- package/src/spartan/utils/config.ts +26 -0
- package/src/spartan/utils/health.ts +255 -0
- package/src/spartan/utils/helm.ts +84 -0
- package/src/spartan/utils/index.ts +64 -0
- package/src/spartan/utils/k8s.ts +527 -0
- package/src/spartan/utils/nodes.ts +538 -0
- package/src/spartan/utils/scripts.ts +63 -0
- package/src/spartan/utils.ts +1 -582
- package/dest/e2e_prover/e2e_prover_test.d.ts +0 -56
- package/dest/e2e_prover/e2e_prover_test.d.ts.map +0 -1
- package/dest/e2e_prover/e2e_prover_test.js +0 -291
- package/dest/fixtures/setup_l1_contracts.d.ts +0 -6
- package/dest/fixtures/setup_l1_contracts.d.ts.map +0 -1
- package/dest/fixtures/setup_l1_contracts.js +0 -17
- package/dest/fixtures/snapshot_manager.d.ts +0 -87
- package/dest/fixtures/snapshot_manager.d.ts.map +0 -1
- package/dest/fixtures/snapshot_manager.js +0 -479
- package/dest/quality_of_service/alert_checker.d.ts +0 -41
- package/dest/quality_of_service/alert_checker.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/e2e_prover/e2e_prover_test.ts +0 -418
- package/src/fixtures/setup_l1_contracts.ts +0 -27
- package/src/fixtures/snapshot_manager.ts +0 -617
- 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,291 +0,0 @@
|
|
|
1
|
-
import { SchnorrAccountContractArtifact, getSchnorrAccount, getSchnorrWalletWithSecretKey } from '@aztec/accounts/schnorr';
|
|
2
|
-
import { createArchiver } from '@aztec/archiver';
|
|
3
|
-
import { EthAddress, createLogger, deployL1Contract } from '@aztec/aztec.js';
|
|
4
|
-
import { BBCircuitVerifier, TestCircuitVerifier } from '@aztec/bb-prover';
|
|
5
|
-
import { createBlobSinkClient } from '@aztec/blob-sink/client';
|
|
6
|
-
import { Buffer32 } from '@aztec/foundation/buffer';
|
|
7
|
-
import { HonkVerifierAbi, HonkVerifierBytecode, RollupAbi, TestERC20Abi } from '@aztec/l1-artifacts';
|
|
8
|
-
import { TokenContract } from '@aztec/noir-contracts.js/Token';
|
|
9
|
-
import { createProverNode } from '@aztec/prover-node';
|
|
10
|
-
import { getGenesisValues } from '@aztec/world-state/testing';
|
|
11
|
-
import { getContract } from 'viem';
|
|
12
|
-
import { privateKeyToAddress } from 'viem/accounts';
|
|
13
|
-
import { getACVMConfig } from '../fixtures/get_acvm_config.js';
|
|
14
|
-
import { getBBConfig } from '../fixtures/get_bb_config.js';
|
|
15
|
-
import { createSnapshotManager, deployAccounts, publicDeployAccounts } from '../fixtures/snapshot_manager.js';
|
|
16
|
-
import { getPrivateKeyFromIndex, setupPXEService } from '../fixtures/utils.js';
|
|
17
|
-
import { TokenSimulator } from '../simulators/token_simulator.js';
|
|
18
|
-
const { E2E_DATA_PATH: dataPath } = process.env;
|
|
19
|
-
/**
|
|
20
|
-
* Largely taken from the e2e_token_contract test file. We deploy 2 accounts and a token contract.
|
|
21
|
-
* However, we then setup a second PXE with a full prover instance.
|
|
22
|
-
* We configure this instance with all of the accounts and contracts.
|
|
23
|
-
* We then prove and verify transactions created via this full prover PXE.
|
|
24
|
-
*/ export class FullProverTest {
|
|
25
|
-
minNumberOfTxsPerBlock;
|
|
26
|
-
realProofs;
|
|
27
|
-
static TOKEN_NAME = 'USDC';
|
|
28
|
-
static TOKEN_SYMBOL = 'USD';
|
|
29
|
-
static TOKEN_DECIMALS = 18n;
|
|
30
|
-
snapshotManager;
|
|
31
|
-
logger;
|
|
32
|
-
deployedAccounts;
|
|
33
|
-
wallets;
|
|
34
|
-
accounts;
|
|
35
|
-
fakeProofsAsset;
|
|
36
|
-
tokenSim;
|
|
37
|
-
aztecNode;
|
|
38
|
-
pxe;
|
|
39
|
-
cheatCodes;
|
|
40
|
-
blobSink;
|
|
41
|
-
provenComponents;
|
|
42
|
-
bbConfigCleanup;
|
|
43
|
-
acvmConfigCleanup;
|
|
44
|
-
circuitProofVerifier;
|
|
45
|
-
provenAssets;
|
|
46
|
-
context;
|
|
47
|
-
proverNode;
|
|
48
|
-
simulatedProverNode;
|
|
49
|
-
l1Contracts;
|
|
50
|
-
proverAddress;
|
|
51
|
-
constructor(testName, minNumberOfTxsPerBlock, coinbase, realProofs = true){
|
|
52
|
-
this.minNumberOfTxsPerBlock = minNumberOfTxsPerBlock;
|
|
53
|
-
this.realProofs = realProofs;
|
|
54
|
-
this.deployedAccounts = [];
|
|
55
|
-
this.wallets = [];
|
|
56
|
-
this.accounts = [];
|
|
57
|
-
this.provenComponents = [];
|
|
58
|
-
this.provenAssets = [];
|
|
59
|
-
this.snapshot = (name, apply, restore = ()=>Promise.resolve())=>this.snapshotManager.snapshot(name, apply, restore);
|
|
60
|
-
this.logger = createLogger(`e2e:full_prover_test:${testName}`);
|
|
61
|
-
this.snapshotManager = createSnapshotManager(`full_prover_integration/${testName}`, dataPath, {
|
|
62
|
-
startProverNode: true,
|
|
63
|
-
fundRewardDistributor: true,
|
|
64
|
-
coinbase
|
|
65
|
-
}, {});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Adds two state shifts to snapshot manager.
|
|
69
|
-
* 1. Add 2 accounts.
|
|
70
|
-
* 2. Publicly deploy accounts, deploy token contract
|
|
71
|
-
*/ async applyBaseSnapshots() {
|
|
72
|
-
await this.snapshotManager.snapshot('2_accounts', deployAccounts(2, this.logger), async ({ deployedAccounts }, { pxe })=>{
|
|
73
|
-
this.deployedAccounts = deployedAccounts;
|
|
74
|
-
this.wallets = await Promise.all(deployedAccounts.map((a)=>getSchnorrWalletWithSecretKey(pxe, a.secret, a.signingKey, a.salt)));
|
|
75
|
-
this.accounts = this.wallets.map((w)=>w.getCompleteAddress());
|
|
76
|
-
this.wallets.forEach((w, i)=>this.logger.verbose(`Wallet ${i} address: ${w.getAddress()}`));
|
|
77
|
-
});
|
|
78
|
-
await this.snapshotManager.snapshot('client_prover_integration', async ()=>{
|
|
79
|
-
// Create the token contract state.
|
|
80
|
-
// Move this account thing to addAccounts above?
|
|
81
|
-
this.logger.verbose(`Public deploy accounts...`);
|
|
82
|
-
await publicDeployAccounts(this.wallets[0], this.accounts.slice(0, 2), false);
|
|
83
|
-
this.logger.verbose(`Deploying TokenContract...`);
|
|
84
|
-
const asset = await TokenContract.deploy(this.wallets[0], this.accounts[0], FullProverTest.TOKEN_NAME, FullProverTest.TOKEN_SYMBOL, FullProverTest.TOKEN_DECIMALS).send().deployed();
|
|
85
|
-
this.logger.verbose(`Token deployed to ${asset.address}`);
|
|
86
|
-
return {
|
|
87
|
-
tokenContractAddress: asset.address
|
|
88
|
-
};
|
|
89
|
-
}, async ({ tokenContractAddress })=>{
|
|
90
|
-
// Restore the token contract state.
|
|
91
|
-
this.fakeProofsAsset = await TokenContract.at(tokenContractAddress, this.wallets[0]);
|
|
92
|
-
this.logger.verbose(`Token contract address: ${this.fakeProofsAsset.address}`);
|
|
93
|
-
this.tokenSim = new TokenSimulator(this.fakeProofsAsset, this.wallets[0], this.logger, this.accounts.map((a)=>a.address));
|
|
94
|
-
expect(await this.fakeProofsAsset.methods.get_admin().simulate()).toBe(this.accounts[0].address.toBigInt());
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
async setup() {
|
|
98
|
-
this.context = await this.snapshotManager.setup();
|
|
99
|
-
// We don't wish to mark as proven automatically, so we set the flag to false
|
|
100
|
-
this.context.watcher.setIsMarkingAsProven(false);
|
|
101
|
-
this.simulatedProverNode = this.context.proverNode;
|
|
102
|
-
({ pxe: this.pxe, aztecNode: this.aztecNode, deployL1ContractsValues: this.l1Contracts, cheatCodes: this.cheatCodes, blobSink: this.blobSink } = this.context);
|
|
103
|
-
const blobSinkClient = createBlobSinkClient({
|
|
104
|
-
blobSinkUrl: `http://localhost:${this.blobSink.port}`
|
|
105
|
-
});
|
|
106
|
-
// Configure a full prover PXE
|
|
107
|
-
let acvmConfig;
|
|
108
|
-
let bbConfig;
|
|
109
|
-
if (this.realProofs) {
|
|
110
|
-
[acvmConfig, bbConfig] = await Promise.all([
|
|
111
|
-
getACVMConfig(this.logger),
|
|
112
|
-
getBBConfig(this.logger)
|
|
113
|
-
]);
|
|
114
|
-
if (!acvmConfig || !bbConfig) {
|
|
115
|
-
throw new Error('Missing ACVM or BB config');
|
|
116
|
-
}
|
|
117
|
-
this.acvmConfigCleanup = acvmConfig.cleanup;
|
|
118
|
-
this.bbConfigCleanup = bbConfig.cleanup;
|
|
119
|
-
if (!bbConfig?.bbWorkingDirectory || !bbConfig?.bbBinaryPath) {
|
|
120
|
-
throw new Error(`Test must be run with BB native configuration`);
|
|
121
|
-
}
|
|
122
|
-
this.circuitProofVerifier = await BBCircuitVerifier.new(bbConfig);
|
|
123
|
-
this.logger.debug(`Configuring the node for real proofs...`);
|
|
124
|
-
await this.aztecNode.setConfig({
|
|
125
|
-
realProofs: true,
|
|
126
|
-
minTxsPerBlock: this.minNumberOfTxsPerBlock
|
|
127
|
-
});
|
|
128
|
-
} else {
|
|
129
|
-
this.logger.debug(`Configuring the node min txs per block ${this.minNumberOfTxsPerBlock}...`);
|
|
130
|
-
this.circuitProofVerifier = new TestCircuitVerifier();
|
|
131
|
-
await this.aztecNode.setConfig({
|
|
132
|
-
minTxsPerBlock: this.minNumberOfTxsPerBlock
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
this.logger.verbose(`Move to a clean epoch`);
|
|
136
|
-
await this.context.cheatCodes.rollup.advanceToNextEpoch();
|
|
137
|
-
this.logger.verbose(`Marking current block as proven`);
|
|
138
|
-
await this.context.cheatCodes.rollup.markAsProven();
|
|
139
|
-
this.logger.verbose(`Main setup completed, initializing full prover PXE, Node, and Prover Node`);
|
|
140
|
-
for(let i = 0; i < 2; i++){
|
|
141
|
-
const result = await setupPXEService(this.aztecNode, {
|
|
142
|
-
proverEnabled: this.realProofs,
|
|
143
|
-
bbBinaryPath: bbConfig?.bbBinaryPath,
|
|
144
|
-
bbWorkingDirectory: bbConfig?.bbWorkingDirectory
|
|
145
|
-
}, undefined, true);
|
|
146
|
-
this.logger.debug(`Contract address ${this.fakeProofsAsset.address}`);
|
|
147
|
-
await result.pxe.registerContract(this.fakeProofsAsset);
|
|
148
|
-
for(let i = 0; i < 2; i++){
|
|
149
|
-
await result.pxe.registerAccount(this.deployedAccounts[i].secret, this.wallets[i].getCompleteAddress().partialAddress);
|
|
150
|
-
await this.pxe.registerAccount(this.deployedAccounts[i].secret, this.wallets[i].getCompleteAddress().partialAddress);
|
|
151
|
-
}
|
|
152
|
-
const account = await getSchnorrAccount(result.pxe, this.deployedAccounts[0].secret, this.deployedAccounts[0].signingKey, this.deployedAccounts[0].salt);
|
|
153
|
-
await result.pxe.registerContract({
|
|
154
|
-
instance: account.getInstance(),
|
|
155
|
-
artifact: SchnorrAccountContractArtifact
|
|
156
|
-
});
|
|
157
|
-
const provenWallet = await account.getWallet();
|
|
158
|
-
const asset = await TokenContract.at(this.fakeProofsAsset.address, provenWallet);
|
|
159
|
-
this.provenComponents.push({
|
|
160
|
-
pxe: result.pxe,
|
|
161
|
-
teardown: result.teardown
|
|
162
|
-
});
|
|
163
|
-
this.provenAssets.push(asset);
|
|
164
|
-
}
|
|
165
|
-
this.logger.info(`Full prover PXE started`);
|
|
166
|
-
// Shutdown the current, simulated prover node
|
|
167
|
-
this.logger.verbose('Shutting down simulated prover node');
|
|
168
|
-
await this.simulatedProverNode.stop();
|
|
169
|
-
// Creating temp store and archiver for fully proven prover node
|
|
170
|
-
this.logger.verbose('Starting archiver for new prover node');
|
|
171
|
-
const archiver = await createArchiver({
|
|
172
|
-
...this.context.aztecNodeConfig,
|
|
173
|
-
dataDirectory: undefined
|
|
174
|
-
}, blobSinkClient, {
|
|
175
|
-
blockUntilSync: true
|
|
176
|
-
});
|
|
177
|
-
// The simulated prover node (now shutdown) used private key index 2
|
|
178
|
-
const proverNodePrivateKey = getPrivateKeyFromIndex(2);
|
|
179
|
-
const proverNodeSenderAddress = privateKeyToAddress(new Buffer32(proverNodePrivateKey).toString());
|
|
180
|
-
this.proverAddress = EthAddress.fromString(proverNodeSenderAddress);
|
|
181
|
-
this.logger.verbose(`Funding prover node at ${proverNodeSenderAddress}`);
|
|
182
|
-
await this.mintL1ERC20(proverNodeSenderAddress, 100_000_000n);
|
|
183
|
-
this.logger.verbose('Starting prover node');
|
|
184
|
-
const proverConfig = {
|
|
185
|
-
...this.context.aztecNodeConfig,
|
|
186
|
-
proverCoordinationNodeUrl: undefined,
|
|
187
|
-
dataDirectory: undefined,
|
|
188
|
-
proverId: this.proverAddress.toField(),
|
|
189
|
-
realProofs: this.realProofs,
|
|
190
|
-
proverAgentCount: 2,
|
|
191
|
-
publisherPrivateKey: `0x${proverNodePrivateKey.toString('hex')}`,
|
|
192
|
-
proverNodeMaxPendingJobs: 100,
|
|
193
|
-
proverNodeMaxParallelBlocksPerEpoch: 32,
|
|
194
|
-
proverNodePollingIntervalMs: 100,
|
|
195
|
-
txGatheringTimeoutMs: 60000,
|
|
196
|
-
txGatheringIntervalMs: 1000,
|
|
197
|
-
txGatheringMaxParallelRequests: 100
|
|
198
|
-
};
|
|
199
|
-
const { prefilledPublicData } = await getGenesisValues(this.context.initialFundedAccounts.map((a)=>a.address));
|
|
200
|
-
this.proverNode = await createProverNode(proverConfig, {
|
|
201
|
-
aztecNodeTxProvider: this.aztecNode,
|
|
202
|
-
archiver: archiver,
|
|
203
|
-
blobSinkClient
|
|
204
|
-
}, {
|
|
205
|
-
prefilledPublicData
|
|
206
|
-
});
|
|
207
|
-
this.proverNode.start();
|
|
208
|
-
this.logger.warn(`Proofs are now enabled`);
|
|
209
|
-
return this;
|
|
210
|
-
}
|
|
211
|
-
async mintL1ERC20(recipient, amount) {
|
|
212
|
-
const erc20Address = this.context.deployL1ContractsValues.l1ContractAddresses.feeJuiceAddress;
|
|
213
|
-
const client = this.context.deployL1ContractsValues.walletClient;
|
|
214
|
-
const erc20 = getContract({
|
|
215
|
-
abi: TestERC20Abi,
|
|
216
|
-
address: erc20Address.toString(),
|
|
217
|
-
client
|
|
218
|
-
});
|
|
219
|
-
const hash = await erc20.write.mint([
|
|
220
|
-
recipient,
|
|
221
|
-
amount
|
|
222
|
-
]);
|
|
223
|
-
await this.context.deployL1ContractsValues.publicClient.waitForTransactionReceipt({
|
|
224
|
-
hash
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
snapshot;
|
|
228
|
-
async teardown() {
|
|
229
|
-
await this.snapshotManager.teardown();
|
|
230
|
-
// Cleanup related to the full prover PXEs
|
|
231
|
-
for(let i = 0; i < this.provenComponents.length; i++){
|
|
232
|
-
await this.provenComponents[i].teardown();
|
|
233
|
-
}
|
|
234
|
-
// clean up the full prover node
|
|
235
|
-
await this.proverNode.stop();
|
|
236
|
-
await this.bbConfigCleanup?.();
|
|
237
|
-
await this.acvmConfigCleanup?.();
|
|
238
|
-
}
|
|
239
|
-
async applyMintSnapshot() {
|
|
240
|
-
await this.snapshotManager.snapshot('mint', async ()=>{
|
|
241
|
-
const { fakeProofsAsset: asset, accounts } = this;
|
|
242
|
-
const privateAmount = 10000n;
|
|
243
|
-
const publicAmount = 10000n;
|
|
244
|
-
const waitOpts = {
|
|
245
|
-
proven: false
|
|
246
|
-
};
|
|
247
|
-
this.logger.verbose(`Minting ${privateAmount + publicAmount} publicly...`);
|
|
248
|
-
await asset.methods.mint_to_public(accounts[0].address, privateAmount + publicAmount).send().wait(waitOpts);
|
|
249
|
-
this.logger.verbose(`Transferring ${privateAmount} to private...`);
|
|
250
|
-
await asset.methods.transfer_to_private(accounts[0].address, privateAmount).send().wait(waitOpts);
|
|
251
|
-
this.logger.verbose(`Minting complete.`);
|
|
252
|
-
return {
|
|
253
|
-
amount: publicAmount
|
|
254
|
-
};
|
|
255
|
-
}, async ({ amount })=>{
|
|
256
|
-
const { fakeProofsAsset: asset, accounts: [{ address }], tokenSim } = this;
|
|
257
|
-
tokenSim.mintPublic(address, amount);
|
|
258
|
-
const publicBalance = await asset.methods.balance_of_public(address).simulate();
|
|
259
|
-
this.logger.verbose(`Public balance of wallet 0: ${publicBalance}`);
|
|
260
|
-
expect(publicBalance).toEqual(this.tokenSim.balanceOfPublic(address));
|
|
261
|
-
tokenSim.mintPrivate(address, amount);
|
|
262
|
-
const privateBalance = await asset.methods.balance_of_private(address).simulate();
|
|
263
|
-
this.logger.verbose(`Private balance of wallet 0: ${privateBalance}`);
|
|
264
|
-
expect(privateBalance).toEqual(tokenSim.balanceOfPrivate(address));
|
|
265
|
-
const totalSupply = await asset.methods.total_supply().simulate();
|
|
266
|
-
this.logger.verbose(`Total supply: ${totalSupply}`);
|
|
267
|
-
expect(totalSupply).toEqual(tokenSim.totalSupply);
|
|
268
|
-
return Promise.resolve();
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
async deployVerifier() {
|
|
272
|
-
if (!this.realProofs) {
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
if (!this.circuitProofVerifier) {
|
|
276
|
-
throw new Error('No verifier');
|
|
277
|
-
}
|
|
278
|
-
const { walletClient, publicClient, l1ContractAddresses } = this.context.deployL1ContractsValues;
|
|
279
|
-
const rollup = getContract({
|
|
280
|
-
abi: RollupAbi,
|
|
281
|
-
address: l1ContractAddresses.rollupAddress.toString(),
|
|
282
|
-
client: walletClient
|
|
283
|
-
});
|
|
284
|
-
const { address: verifierAddress } = await deployL1Contract(walletClient, publicClient, HonkVerifierAbi, HonkVerifierBytecode);
|
|
285
|
-
this.logger.info(`Deployed honk verifier at ${verifierAddress}`);
|
|
286
|
-
await rollup.write.setEpochVerifier([
|
|
287
|
-
verifierAddress.toString()
|
|
288
|
-
]);
|
|
289
|
-
this.logger.info('Rollup only accepts valid proofs now');
|
|
290
|
-
}
|
|
291
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type Logger } from '@aztec/aztec.js';
|
|
2
|
-
import type { DeployL1ContractsArgs, L1ContractsConfig } from '@aztec/ethereum';
|
|
3
|
-
import type { HDAccount, PrivateKeyAccount } from 'viem';
|
|
4
|
-
export { deployAndInitializeTokenAndBridgeContracts } from '../shared/cross_chain_test_harness.js';
|
|
5
|
-
export declare const setupL1Contracts: (l1RpcUrl: string, account: HDAccount | PrivateKeyAccount, logger: Logger, args: Pick<DeployL1ContractsArgs, 'genesisArchiveRoot' | 'genesisBlockHash' | 'initialValidators'> & L1ContractsConfig) => Promise<import("@aztec/aztec.js").DeployL1ContractsReturnType>;
|
|
6
|
-
//# sourceMappingURL=setup_l1_contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup_l1_contracts.d.ts","sourceRoot":"","sources":["../../src/fixtures/setup_l1_contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAqB,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIhF,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAGzD,OAAO,EAAE,0CAA0C,EAAE,MAAM,uCAAuC,CAAC;AAEnG,eAAO,MAAM,gBAAgB,aACjB,MAAM,WACP,SAAS,GAAG,iBAAiB,UAC9B,MAAM,QACR,KAAK,qBAAqB,EAAE,oBAAoB,GAAG,kBAAkB,GAAG,mBAAmB,CAAC,GAChG,iBAAiB,mEAWpB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { deployL1Contracts } from '@aztec/aztec.js';
|
|
2
|
-
import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
3
|
-
import { ProtocolContractAddress, protocolContractTreeRoot } from '@aztec/protocol-contracts';
|
|
4
|
-
import { foundry } from 'viem/chains';
|
|
5
|
-
export { deployAndInitializeTokenAndBridgeContracts } from '../shared/cross_chain_test_harness.js';
|
|
6
|
-
export const setupL1Contracts = async (l1RpcUrl, account, logger, args)=>{
|
|
7
|
-
const l1Data = await deployL1Contracts([
|
|
8
|
-
l1RpcUrl
|
|
9
|
-
], account, foundry, logger, {
|
|
10
|
-
l2FeeJuiceAddress: ProtocolContractAddress.FeeJuice.toField(),
|
|
11
|
-
vkTreeRoot: getVKTreeRoot(),
|
|
12
|
-
protocolContractTreeRoot,
|
|
13
|
-
salt: undefined,
|
|
14
|
-
...args
|
|
15
|
-
});
|
|
16
|
-
return l1Data;
|
|
17
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { type InitialAccountData } from '@aztec/accounts/testing';
|
|
2
|
-
import { type AztecNodeConfig, AztecNodeService } from '@aztec/aztec-node';
|
|
3
|
-
import { AnvilTestWatcher, type AztecAddress, CheatCodes, type CompleteAddress, type DeployL1ContractsReturnType, type Logger, type PXE, type Wallet } from '@aztec/aztec.js';
|
|
4
|
-
import { type BlobSinkServer } from '@aztec/blob-sink/server';
|
|
5
|
-
import { type DeployL1ContractsArgs } from '@aztec/ethereum';
|
|
6
|
-
import { TestDateProvider } from '@aztec/foundation/timer';
|
|
7
|
-
import type { ProverNode } from '@aztec/prover-node';
|
|
8
|
-
import { type PXEService } from '@aztec/pxe/server';
|
|
9
|
-
import type { Anvil } from '@viem/anvil';
|
|
10
|
-
import { type SetupOptions } from './utils.js';
|
|
11
|
-
export type SubsystemsContext = {
|
|
12
|
-
anvil: Anvil;
|
|
13
|
-
acvmConfig: any;
|
|
14
|
-
bbConfig: any;
|
|
15
|
-
aztecNode: AztecNodeService;
|
|
16
|
-
aztecNodeConfig: AztecNodeConfig;
|
|
17
|
-
pxe: PXEService;
|
|
18
|
-
deployL1ContractsValues: DeployL1ContractsReturnType;
|
|
19
|
-
proverNode?: ProverNode;
|
|
20
|
-
watcher: AnvilTestWatcher;
|
|
21
|
-
cheatCodes: CheatCodes;
|
|
22
|
-
dateProvider: TestDateProvider;
|
|
23
|
-
blobSink: BlobSinkServer;
|
|
24
|
-
initialFundedAccounts: InitialAccountData[];
|
|
25
|
-
directoryToCleanup?: string;
|
|
26
|
-
};
|
|
27
|
-
export declare function createSnapshotManager(testName: string, dataPath?: string, config?: Partial<SetupOptions>, deployL1ContractsArgs?: Partial<DeployL1ContractsArgs>): SnapshotManager | MockSnapshotManager;
|
|
28
|
-
export interface ISnapshotManager {
|
|
29
|
-
snapshot<T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>): Promise<void>;
|
|
30
|
-
setup(): Promise<SubsystemsContext>;
|
|
31
|
-
teardown(): Promise<void>;
|
|
32
|
-
}
|
|
33
|
-
/** Snapshot manager that does not perform snapshotting, it just applies transition and restoration functions as it receives them. */
|
|
34
|
-
declare class MockSnapshotManager implements ISnapshotManager {
|
|
35
|
-
private config;
|
|
36
|
-
private deployL1ContractsArgs;
|
|
37
|
-
private context?;
|
|
38
|
-
private logger;
|
|
39
|
-
constructor(testName: string, config?: Partial<AztecNodeConfig>, deployL1ContractsArgs?: Partial<DeployL1ContractsArgs>);
|
|
40
|
-
snapshot<T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>): Promise<void>;
|
|
41
|
-
setup(): Promise<SubsystemsContext>;
|
|
42
|
-
teardown(): Promise<void>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Snapshot engine for local e2e tests. Read more:
|
|
46
|
-
* https://github.com/AztecProtocol/aztec-packages/pull/5526
|
|
47
|
-
*/
|
|
48
|
-
declare class SnapshotManager implements ISnapshotManager {
|
|
49
|
-
private dataPath;
|
|
50
|
-
private config;
|
|
51
|
-
private deployL1ContractsArgs;
|
|
52
|
-
private snapshotStack;
|
|
53
|
-
private context?;
|
|
54
|
-
private livePath;
|
|
55
|
-
private logger;
|
|
56
|
-
constructor(testName: string, dataPath: string, config?: Partial<SetupOptions>, deployL1ContractsArgs?: Partial<DeployL1ContractsArgs>);
|
|
57
|
-
snapshot<T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>): Promise<void>;
|
|
58
|
-
/**
|
|
59
|
-
* Creates and returns the subsystem context based on the current snapshot stack.
|
|
60
|
-
* If the subsystem context already exists, just return it.
|
|
61
|
-
* If you want to be sure to get a clean snapshot, be sure to call teardown() before calling setup().
|
|
62
|
-
*/
|
|
63
|
-
setup(): Promise<SubsystemsContext>;
|
|
64
|
-
/**
|
|
65
|
-
* Destroys the current subsystem context.
|
|
66
|
-
*/
|
|
67
|
-
teardown(): Promise<void>;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Snapshot 'apply' helper function to add accounts.
|
|
71
|
-
* The 'restore' function is not provided, as it must be a closure within the test context to capture the results.
|
|
72
|
-
*/
|
|
73
|
-
export declare const deployAccounts: (numberOfAccounts: number, logger: Logger, waitUntilProven?: boolean) => ({ pxe, initialFundedAccounts }: {
|
|
74
|
-
pxe: PXE;
|
|
75
|
-
initialFundedAccounts: InitialAccountData[];
|
|
76
|
-
}) => Promise<{
|
|
77
|
-
deployedAccounts: InitialAccountData[];
|
|
78
|
-
}>;
|
|
79
|
-
/**
|
|
80
|
-
* Registers the contract class used for test accounts and publicly deploys the instances requested.
|
|
81
|
-
* Use this when you need to make a public call to an account contract, such as for requesting a public authwit.
|
|
82
|
-
* @param sender - Wallet to send the deployment tx.
|
|
83
|
-
* @param accountsToDeploy - Which accounts to publicly deploy.
|
|
84
|
-
*/
|
|
85
|
-
export declare function publicDeployAccounts(sender: Wallet, accountsToDeploy: (CompleteAddress | AztecAddress)[], waitUntilProven?: boolean): Promise<void>;
|
|
86
|
-
export {};
|
|
87
|
-
//# sourceMappingURL=snapshot_manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot_manager.d.ts","sourceRoot":"","sources":["../../src/fixtures/snapshot_manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,kBAAkB,EAAwD,MAAM,yBAAyB,CAAC;AACxH,OAAO,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAoB,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EACL,gBAAgB,EAChB,KAAK,YAAY,EAGjB,UAAU,EACV,KAAK,eAAe,EAEpB,KAAK,2BAA2B,EAEhC,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KA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