@aztec/end-to-end 0.77.0-testnet-ignition.24 → 0.77.0-testnet-ignition.27
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/package.json +31 -31
- package/dest/bench/utils.d.ts +0 -70
- package/dest/bench/utils.d.ts.map +0 -1
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +0 -46
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +0 -1
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +0 -47
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +0 -1
- package/dest/e2e_deploy_contract/deploy_test.d.ts +0 -28
- package/dest/e2e_deploy_contract/deploy_test.d.ts.map +0 -1
- package/dest/e2e_epochs/epochs_test.d.ts +0 -51
- package/dest/e2e_epochs/epochs_test.d.ts.map +0 -1
- package/dest/e2e_fees/fees_test.d.ts +0 -73
- package/dest/e2e_fees/fees_test.d.ts.map +0 -1
- package/dest/e2e_nested_contract/nested_contract_test.d.ts +0 -26
- package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +0 -1
- package/dest/e2e_p2p/p2p_network.d.ts +0 -61
- package/dest/e2e_p2p/p2p_network.d.ts.map +0 -1
- package/dest/e2e_p2p/shared.d.ts +0 -10
- package/dest/e2e_p2p/shared.d.ts.map +0 -1
- 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_token_contract/token_contract_test.d.ts +0 -29
- package/dest/e2e_token_contract/token_contract_test.d.ts.map +0 -1
- package/dest/fixtures/fixtures.d.ts +0 -17
- package/dest/fixtures/fixtures.d.ts.map +0 -1
- package/dest/fixtures/get_acvm_config.d.ts +0 -8
- package/dest/fixtures/get_acvm_config.d.ts.map +0 -1
- package/dest/fixtures/get_bb_config.d.ts +0 -6
- package/dest/fixtures/get_bb_config.d.ts.map +0 -1
- package/dest/fixtures/index.d.ts +0 -6
- package/dest/fixtures/index.d.ts.map +0 -1
- package/dest/fixtures/l1_to_l2_messaging.d.ts +0 -13
- package/dest/fixtures/l1_to_l2_messaging.d.ts.map +0 -1
- package/dest/fixtures/logging.d.ts +0 -8
- package/dest/fixtures/logging.d.ts.map +0 -1
- 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_p2p_test.d.ts +0 -22
- package/dest/fixtures/setup_p2p_test.d.ts.map +0 -1
- package/dest/fixtures/snapshot_manager.d.ts +0 -87
- package/dest/fixtures/snapshot_manager.d.ts.map +0 -1
- package/dest/fixtures/token_utils.d.ts +0 -6
- package/dest/fixtures/token_utils.d.ts.map +0 -1
- package/dest/fixtures/utils.d.ts +0 -155
- package/dest/fixtures/utils.d.ts.map +0 -1
- package/dest/fixtures/with_telemetry_utils.d.ts +0 -3
- package/dest/fixtures/with_telemetry_utils.d.ts.map +0 -1
- package/dest/index.d.ts +0 -2
- package/dest/index.d.ts.map +0 -1
- 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/shared/cross_chain_test_harness.d.ts +0 -124
- package/dest/shared/cross_chain_test_harness.d.ts.map +0 -1
- package/dest/shared/gas_portal_test_harness.d.ts +0 -80
- package/dest/shared/gas_portal_test_harness.d.ts.map +0 -1
- package/dest/shared/index.d.ts +0 -2
- package/dest/shared/index.d.ts.map +0 -1
- package/dest/shared/jest_setup.d.ts +0 -2
- package/dest/shared/jest_setup.d.ts.map +0 -1
- package/dest/shared/submit-transactions.d.ts +0 -4
- package/dest/shared/submit-transactions.d.ts.map +0 -1
- package/dest/shared/uniswap_l1_l2.d.ts +0 -25
- package/dest/shared/uniswap_l1_l2.d.ts.map +0 -1
- package/dest/simulators/index.d.ts +0 -3
- package/dest/simulators/index.d.ts.map +0 -1
- package/dest/simulators/lending_simulator.d.ts +0 -69
- package/dest/simulators/lending_simulator.d.ts.map +0 -1
- package/dest/simulators/token_simulator.d.ts +0 -29
- package/dest/simulators/token_simulator.d.ts.map +0 -1
- package/dest/spartan/setup_test_wallets.d.ts +0 -20
- package/dest/spartan/setup_test_wallets.d.ts.map +0 -1
- package/dest/spartan/utils.d.ts +0 -415
- package/dest/spartan/utils.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/end-to-end",
|
|
3
|
-
"version": "0.77.0-testnet-ignition.
|
|
3
|
+
"version": "0.77.0-testnet-ignition.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"inherits": [
|
|
@@ -26,36 +26,36 @@
|
|
|
26
26
|
"formatting": "run -T prettier --check ./src && run -T eslint ./src"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aztec/accounts": "0.77.0-testnet-ignition.
|
|
30
|
-
"@aztec/archiver": "0.77.0-testnet-ignition.
|
|
31
|
-
"@aztec/aztec": "0.77.0-testnet-ignition.
|
|
32
|
-
"@aztec/aztec-node": "0.77.0-testnet-ignition.
|
|
33
|
-
"@aztec/aztec.js": "0.77.0-testnet-ignition.
|
|
34
|
-
"@aztec/bb-prover": "0.77.0-testnet-ignition.
|
|
35
|
-
"@aztec/blob-lib": "0.77.0-testnet-ignition.
|
|
36
|
-
"@aztec/blob-sink": "0.77.0-testnet-ignition.
|
|
37
|
-
"@aztec/bot": "0.77.0-testnet-ignition.
|
|
38
|
-
"@aztec/constants": "0.77.0-testnet-ignition.
|
|
39
|
-
"@aztec/entrypoints": "0.77.0-testnet-ignition.
|
|
40
|
-
"@aztec/epoch-cache": "0.77.0-testnet-ignition.
|
|
41
|
-
"@aztec/ethereum": "0.77.0-testnet-ignition.
|
|
42
|
-
"@aztec/foundation": "0.77.0-testnet-ignition.
|
|
43
|
-
"@aztec/kv-store": "0.77.0-testnet-ignition.
|
|
44
|
-
"@aztec/l1-artifacts": "0.77.0-testnet-ignition.
|
|
45
|
-
"@aztec/merkle-tree": "0.77.0-testnet-ignition.
|
|
46
|
-
"@aztec/noir-contracts.js": "0.77.0-testnet-ignition.
|
|
47
|
-
"@aztec/noir-protocol-circuits-types": "0.77.0-testnet-ignition.
|
|
48
|
-
"@aztec/p2p": "0.77.0-testnet-ignition.
|
|
49
|
-
"@aztec/protocol-contracts": "0.77.0-testnet-ignition.
|
|
50
|
-
"@aztec/prover-client": "0.77.0-testnet-ignition.
|
|
51
|
-
"@aztec/prover-node": "0.77.0-testnet-ignition.
|
|
52
|
-
"@aztec/pxe": "0.77.0-testnet-ignition.
|
|
53
|
-
"@aztec/sequencer-client": "0.77.0-testnet-ignition.
|
|
54
|
-
"@aztec/simulator": "0.77.0-testnet-ignition.
|
|
55
|
-
"@aztec/stdlib": "0.77.0-testnet-ignition.
|
|
56
|
-
"@aztec/telemetry-client": "0.77.0-testnet-ignition.
|
|
57
|
-
"@aztec/validator-client": "0.77.0-testnet-ignition.
|
|
58
|
-
"@aztec/world-state": "0.77.0-testnet-ignition.
|
|
29
|
+
"@aztec/accounts": "0.77.0-testnet-ignition.27",
|
|
30
|
+
"@aztec/archiver": "0.77.0-testnet-ignition.27",
|
|
31
|
+
"@aztec/aztec": "0.77.0-testnet-ignition.27",
|
|
32
|
+
"@aztec/aztec-node": "0.77.0-testnet-ignition.27",
|
|
33
|
+
"@aztec/aztec.js": "0.77.0-testnet-ignition.27",
|
|
34
|
+
"@aztec/bb-prover": "0.77.0-testnet-ignition.27",
|
|
35
|
+
"@aztec/blob-lib": "0.77.0-testnet-ignition.27",
|
|
36
|
+
"@aztec/blob-sink": "0.77.0-testnet-ignition.27",
|
|
37
|
+
"@aztec/bot": "0.77.0-testnet-ignition.27",
|
|
38
|
+
"@aztec/constants": "0.77.0-testnet-ignition.27",
|
|
39
|
+
"@aztec/entrypoints": "0.77.0-testnet-ignition.27",
|
|
40
|
+
"@aztec/epoch-cache": "0.77.0-testnet-ignition.27",
|
|
41
|
+
"@aztec/ethereum": "0.77.0-testnet-ignition.27",
|
|
42
|
+
"@aztec/foundation": "0.77.0-testnet-ignition.27",
|
|
43
|
+
"@aztec/kv-store": "0.77.0-testnet-ignition.27",
|
|
44
|
+
"@aztec/l1-artifacts": "0.77.0-testnet-ignition.27",
|
|
45
|
+
"@aztec/merkle-tree": "0.77.0-testnet-ignition.27",
|
|
46
|
+
"@aztec/noir-contracts.js": "0.77.0-testnet-ignition.27",
|
|
47
|
+
"@aztec/noir-protocol-circuits-types": "0.77.0-testnet-ignition.27",
|
|
48
|
+
"@aztec/p2p": "0.77.0-testnet-ignition.27",
|
|
49
|
+
"@aztec/protocol-contracts": "0.77.0-testnet-ignition.27",
|
|
50
|
+
"@aztec/prover-client": "0.77.0-testnet-ignition.27",
|
|
51
|
+
"@aztec/prover-node": "0.77.0-testnet-ignition.27",
|
|
52
|
+
"@aztec/pxe": "0.77.0-testnet-ignition.27",
|
|
53
|
+
"@aztec/sequencer-client": "0.77.0-testnet-ignition.27",
|
|
54
|
+
"@aztec/simulator": "0.77.0-testnet-ignition.27",
|
|
55
|
+
"@aztec/stdlib": "0.77.0-testnet-ignition.27",
|
|
56
|
+
"@aztec/telemetry-client": "0.77.0-testnet-ignition.27",
|
|
57
|
+
"@aztec/validator-client": "0.77.0-testnet-ignition.27",
|
|
58
|
+
"@aztec/world-state": "0.77.0-testnet-ignition.27",
|
|
59
59
|
"@iarna/toml": "^2.2.5",
|
|
60
60
|
"@jest/globals": "^29.5.0",
|
|
61
61
|
"@noble/curves": "^1.0.0",
|
package/dest/bench/utils.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { type AztecNode, BatchCall, type SentTx, type WaitOpts } from '@aztec/aztec.js';
|
|
2
|
-
import { BenchmarkingContract } from '@aztec/noir-contracts.js/Benchmarking';
|
|
3
|
-
import { type PXEService } from '@aztec/pxe';
|
|
4
|
-
import type { MetricsType } from '@aztec/telemetry-client';
|
|
5
|
-
import type { BenchmarkTelemetryClient } from '@aztec/telemetry-client/bench';
|
|
6
|
-
import { type EndToEndContext, type SetupOptions } from '../fixtures/utils.js';
|
|
7
|
-
/**
|
|
8
|
-
* Setup for benchmarks. Initializes a remote node with a single account and deploys a benchmark contract.
|
|
9
|
-
*/
|
|
10
|
-
export declare function benchmarkSetup(opts: Partial<SetupOptions> & {
|
|
11
|
-
/** What metrics to export */ metrics: (MetricsType | MetricFilter)[];
|
|
12
|
-
/** Where to output the benchmark data (defaults to BENCH_OUTPUT or bench.json) */
|
|
13
|
-
benchOutput?: string;
|
|
14
|
-
}): Promise<{
|
|
15
|
-
telemetry: BenchmarkTelemetryClient;
|
|
16
|
-
context: EndToEndContext;
|
|
17
|
-
contract: BenchmarkingContract;
|
|
18
|
-
sequencer: import("@aztec/sequencer-client").SequencerClient;
|
|
19
|
-
}>;
|
|
20
|
-
type MetricFilter = {
|
|
21
|
-
source: MetricsType;
|
|
22
|
-
transform: (value: number) => number;
|
|
23
|
-
name: string;
|
|
24
|
-
unit?: string;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Creates and returns a directory with the current job name and a random number.
|
|
28
|
-
* @param index - Index to merge into the dir path.
|
|
29
|
-
* @returns A path to a created dir.
|
|
30
|
-
*/
|
|
31
|
-
export declare function makeDataDirectory(index: number): string;
|
|
32
|
-
/**
|
|
33
|
-
* Returns the size in disk of a folder.
|
|
34
|
-
* @param path - Path to the folder.
|
|
35
|
-
* @returns Size in bytes.
|
|
36
|
-
*/
|
|
37
|
-
export declare function getFolderSize(path: string): number;
|
|
38
|
-
/**
|
|
39
|
-
* Returns a call to the benchmark contract. Each call has a private execution (account entrypoint),
|
|
40
|
-
* a nested private call (create_note), a public call (increment_balance), and a nested public
|
|
41
|
-
* call (broadcast). These include emitting one private note and one public log, two storage
|
|
42
|
-
* reads and one write.
|
|
43
|
-
* @param index - Index of the call within a block.
|
|
44
|
-
* @param context - End to end context.
|
|
45
|
-
* @param contract - Benchmarking contract.
|
|
46
|
-
* @param heavyPublicCompute - Whether the transactions include heavy public compute (like a big sha256).
|
|
47
|
-
* @returns A BatchCall instance.
|
|
48
|
-
*/
|
|
49
|
-
export declare function makeCall(index: number, context: EndToEndContext, contract: BenchmarkingContract, heavyPublicCompute: boolean): Promise<BatchCall>;
|
|
50
|
-
/**
|
|
51
|
-
* Assembles and sends multiple transactions simultaneously to the node in context.
|
|
52
|
-
* Each tx is the result of calling makeCall.
|
|
53
|
-
* @param txCount - How many txs to send
|
|
54
|
-
* @param context - End to end context.
|
|
55
|
-
* @param contract - Target contract.
|
|
56
|
-
* @param heavyPublicCompute - Whether the transactions include heavy public compute (like a big sha256).
|
|
57
|
-
* @returns Array of sent txs.
|
|
58
|
-
*/
|
|
59
|
-
export declare function sendTxs(txCount: number, context: EndToEndContext, contract: BenchmarkingContract, heavyPublicCompute?: boolean): Promise<SentTx[]>;
|
|
60
|
-
export declare function waitTxs(txs: SentTx[], context: EndToEndContext, txWaitOpts?: WaitOpts): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
* Creates a new PXE
|
|
63
|
-
* @param node - Node to connect the pxe to.
|
|
64
|
-
* @param contract - Benchmark contract to add to the pxe.
|
|
65
|
-
* @param startingBlock - First l2 block to process.
|
|
66
|
-
* @returns The new PXE.
|
|
67
|
-
*/
|
|
68
|
-
export declare function createNewPXE(node: AztecNode, contract: BenchmarkingContract, startingBlock?: number): Promise<PXEService>;
|
|
69
|
-
export {};
|
|
70
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/bench/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,SAAS,EAAwB,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG9G,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E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AAC,EAAE,QAAQ,iBAI3F;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,oBAAoB,EAC9B,aAAa,GAAE,MAA6B,GAC3C,OAAO,CAAC,UAAU,CAAC,CAerB"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { type AccountWallet, type CompleteAddress, Fr, type Logger, type TxHash } from '@aztec/aztec.js';
|
|
2
|
-
import { DocsExampleContract } from '@aztec/noir-contracts.js/DocsExample';
|
|
3
|
-
import { TokenBlacklistContract } from '@aztec/noir-contracts.js/TokenBlacklist';
|
|
4
|
-
import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
|
|
5
|
-
import { TokenSimulator } from '../simulators/token_simulator.js';
|
|
6
|
-
export declare class Role {
|
|
7
|
-
private isAdmin;
|
|
8
|
-
private isMinter;
|
|
9
|
-
private isBlacklisted;
|
|
10
|
-
withAdmin(): this;
|
|
11
|
-
withMinter(): this;
|
|
12
|
-
withBlacklisted(): this;
|
|
13
|
-
toNoirStruct(): {
|
|
14
|
-
is_admin: boolean;
|
|
15
|
-
is_minter: boolean;
|
|
16
|
-
is_blacklisted: boolean;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare class BlacklistTokenContractTest {
|
|
20
|
-
#private;
|
|
21
|
-
static DELAY: number;
|
|
22
|
-
private snapshotManager;
|
|
23
|
-
logger: Logger;
|
|
24
|
-
wallets: AccountWallet[];
|
|
25
|
-
accounts: CompleteAddress[];
|
|
26
|
-
asset: TokenBlacklistContract;
|
|
27
|
-
tokenSim: TokenSimulator;
|
|
28
|
-
badAccount: DocsExampleContract;
|
|
29
|
-
admin: AccountWallet;
|
|
30
|
-
other: AccountWallet;
|
|
31
|
-
blacklisted: AccountWallet;
|
|
32
|
-
constructor(testName: string);
|
|
33
|
-
mineBlocks(amount?: number): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Adds two state shifts to snapshot manager.
|
|
36
|
-
* 1. Add 3 accounts.
|
|
37
|
-
* 2. Publicly deploy accounts, deploy token contract and a "bad account".
|
|
38
|
-
*/
|
|
39
|
-
applyBaseSnapshots(): Promise<void>;
|
|
40
|
-
setup(): Promise<void>;
|
|
41
|
-
snapshot: <T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>) => Promise<void>;
|
|
42
|
-
teardown(): Promise<void>;
|
|
43
|
-
addPendingShieldNoteToPXE(contract: TokenBlacklistContract, wallet: AccountWallet, amount: bigint, secretHash: Fr, txHash: TxHash): Promise<void>;
|
|
44
|
-
applyMintSnapshot(): Promise<void>;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=blacklist_token_contract_test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blacklist_token_contract_test.d.ts","sourceRoot":"","sources":["../../src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,EAAE,EACF,KAAK,MAAM,EACX,KAAK,MAAM,EAGZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAE3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAIjF,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIlE,qBAAa,IAAI;IACf,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,aAAa,CAAS;IAE9B,SAAS;IAKT,UAAU;IAKV,eAAe;IAKf,YAAY;;;;;CAKb;AAED,qBAAa,0BAA0B;;IAGrC,MAAM,CAAC,KAAK,SAAK;IAEjB,OAAO,CAAC,eAAe,CAAmB;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,aAAa,EAAE,CAAM;IAC9B,QAAQ,EAAE,eAAe,EAAE,CAAM;IACjC,KAAK,EAAG,sBAAsB,CAAC;IAC/B,QAAQ,EAAG,cAAc,CAAC;IAC1B,UAAU,EAAG,mBAAmB,CAAC;IAEjC,KAAK,EAAG,aAAa,CAAC;IACtB,KAAK,EAAG,aAAa,CAAC;IACtB,WAAW,EAAG,aAAa,CAAC;gBAEhB,QAAQ,EAAE,MAAM;IAKtB,UAAU,CAAC,MAAM,GAAE,MAAyC;IAMlE;;;;OAIG;IACG,kBAAkB;IA0DlB,KAAK;IAIX,QAAQ,YACA,MAAM,SACL,CAAC,OAAO,EAAE,iBAAiB,KAAK,QAAQ,CAAC,CAAC,YACxC,CAAC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,KAAK,QAAQ,IAAI,CAAC,KACtE,QAAQ,IAAI,CAAC,CAAwD;IAElE,QAAQ;IAQR,yBAAyB,CAC7B,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,EAAE,EACd,MAAM,EAAE,MAAM;IAgBV,iBAAiB;CAmExB"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { AztecNodeConfig } from '@aztec/aztec-node';
|
|
2
|
-
import { type AccountWallet, AztecAddress, type AztecNode, CheatCodes, type CompleteAddress, EthAddress, type Logger, type PXE } from '@aztec/aztec.js';
|
|
3
|
-
import { type ViemPublicClient } from '@aztec/ethereum';
|
|
4
|
-
import { TokenContract } from '@aztec/noir-contracts.js/Token';
|
|
5
|
-
import { TokenBridgeContract } from '@aztec/noir-contracts.js/TokenBridge';
|
|
6
|
-
import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
|
|
7
|
-
import { CrossChainTestHarness } from '../shared/cross_chain_test_harness.js';
|
|
8
|
-
export declare class CrossChainMessagingTest {
|
|
9
|
-
private snapshotManager;
|
|
10
|
-
logger: Logger;
|
|
11
|
-
wallets: AccountWallet[];
|
|
12
|
-
accounts: CompleteAddress[];
|
|
13
|
-
aztecNode: AztecNode;
|
|
14
|
-
pxe: PXE;
|
|
15
|
-
aztecNodeConfig: AztecNodeConfig;
|
|
16
|
-
publicClient: ViemPublicClient | undefined;
|
|
17
|
-
user1Wallet: AccountWallet;
|
|
18
|
-
user2Wallet: AccountWallet;
|
|
19
|
-
crossChainTestHarness: CrossChainTestHarness;
|
|
20
|
-
ethAccount: EthAddress;
|
|
21
|
-
ownerAddress: AztecAddress;
|
|
22
|
-
l2Token: TokenContract;
|
|
23
|
-
l2Bridge: TokenBridgeContract;
|
|
24
|
-
rollup: any;
|
|
25
|
-
inbox: any;
|
|
26
|
-
outbox: any;
|
|
27
|
-
cheatcodes: CheatCodes;
|
|
28
|
-
constructor(testName: string);
|
|
29
|
-
assumeProven(): Promise<void>;
|
|
30
|
-
setup(): Promise<void>;
|
|
31
|
-
snapshot: <T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>) => Promise<void>;
|
|
32
|
-
teardown(): Promise<void>;
|
|
33
|
-
applyBaseSnapshots(): Promise<void>;
|
|
34
|
-
toCrossChainContext(): CrossChainContext;
|
|
35
|
-
}
|
|
36
|
-
type CrossChainContext = {
|
|
37
|
-
l2Token: AztecAddress;
|
|
38
|
-
l2Bridge: AztecAddress;
|
|
39
|
-
tokenPortal: EthAddress;
|
|
40
|
-
underlying: EthAddress;
|
|
41
|
-
ethAccount: EthAddress;
|
|
42
|
-
ownerAddress: AztecAddress;
|
|
43
|
-
inbox: EthAddress;
|
|
44
|
-
outbox: EthAddress;
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
47
|
-
//# sourceMappingURL=cross_chain_messaging_test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cross_chain_messaging_test.d.ts","sourceRoot":"","sources":["../../src/e2e_cross_chain_messaging/cross_ch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AM,SACL,CAAC,OAAO,EAAE,iBAAiB,KAAK,QAAQ,CAAC,CAAC,YACxC,CAAC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,KAAK,QAAQ,IAAI,CAAC,KACtE,QAAQ,IAAI,CAAC,CAAwD;IAElE,QAAQ;IAIR,kBAAkB;IAiHxB,mBAAmB,IAAI,iBAAiB;CAYzC;AAED,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,YAAY,CAAC;IACvB,WAAW,EAAE,UAAU,CAAC;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type AccountWallet, type AztecAddress, type AztecNode, type ContractArtifact, type ContractBase, Fr, type Logger, type PXE, type PublicKeys, type Wallet } from '@aztec/aztec.js';
|
|
2
|
-
import type { StatefulTestContract } from '@aztec/noir-contracts.js/StatefulTest';
|
|
3
|
-
export declare class DeployTest {
|
|
4
|
-
private snapshotManager;
|
|
5
|
-
private wallets;
|
|
6
|
-
logger: Logger;
|
|
7
|
-
pxe: PXE;
|
|
8
|
-
wallet: AccountWallet;
|
|
9
|
-
aztecNode: AztecNode;
|
|
10
|
-
constructor(testName: string);
|
|
11
|
-
setup(): Promise<this>;
|
|
12
|
-
teardown(): Promise<void>;
|
|
13
|
-
private applyInitialAccountSnapshot;
|
|
14
|
-
registerContract<T extends ContractBase>(wallet: Wallet, contractArtifact: ContractArtifactClass<T>, opts?: {
|
|
15
|
-
salt?: Fr;
|
|
16
|
-
publicKeys?: PublicKeys;
|
|
17
|
-
initArgs?: any[];
|
|
18
|
-
constructorName?: string;
|
|
19
|
-
deployer?: AztecAddress;
|
|
20
|
-
}): Promise<T>;
|
|
21
|
-
registerRandomAccount(): Promise<AztecAddress>;
|
|
22
|
-
}
|
|
23
|
-
export type StatefulContractCtorArgs = Parameters<StatefulTestContract['methods']['constructor']>;
|
|
24
|
-
export type ContractArtifactClass<T extends ContractBase> = {
|
|
25
|
-
at(address: AztecAddress, wallet: Wallet): Promise<T>;
|
|
26
|
-
artifact: ContractArtifact;
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=deploy_test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy_test.d.ts","sourceRoot":"","sources":["../../src/e2e_deploy_contract/deploy_test.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,EAAE,EACF,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,UAAU,EACf,KAAK,MAAM,EAGZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAMlF,qBAAa,UAAU;IACrB,OAAO,CAAC,eAAe,CAAmB;IAC1C,OAAO,CAAC,OAAO,CAAuB;IAE/B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAG,GAAG,CAAC;IACV,MAAM,EAAG,aAAa,CAAC;IACvB,SAAS,EAAG,SAAS,CAAC;gBAEjB,QAAQ,EAAE,MAAM;IAKtB,KAAK;IAOL,QAAQ;YAIA,2BAA2B;IAYnC,gBAAgB,CAAC,CAAC,SAAS,YAAY,EAC3C,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,qBAAqB,CAAC,CAAC,CAAC,EAC1C,IAAI,GAAE;QACJ,IAAI,CAAC,EAAE,EAAE,CAAC;QACV,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;QACjB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,EAAE,YAAY,CAAC;KACpB,GACL,OAAO,CAAC,CAAC,CAAC;IAaP,qBAAqB,IAAI,OAAO,CAAC,YAAY,CAAC;CAIrD;AAED,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;AAElG,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,YAAY,IAAI;IAC1D,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACtD,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { AztecNodeService } from '@aztec/aztec-node';
|
|
2
|
-
import { type Logger } from '@aztec/aztec.js';
|
|
3
|
-
import { ChainMonitor } from '@aztec/aztec.js/ethereum';
|
|
4
|
-
import { RollupContract } from '@aztec/ethereum/contracts';
|
|
5
|
-
import { type Delayer } from '@aztec/ethereum/test';
|
|
6
|
-
import { ProverNode } from '@aztec/prover-node';
|
|
7
|
-
import type { L2BlockNumber } from '@aztec/stdlib/block';
|
|
8
|
-
import type { L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
|
|
9
|
-
import type { PublicClient } from 'viem';
|
|
10
|
-
import { type EndToEndContext, type SetupOptions } from '../fixtures/utils.js';
|
|
11
|
-
export declare const L1_BLOCK_TIME_IN_S: number;
|
|
12
|
-
export declare const EPOCH_DURATION_IN_L2_SLOTS = 4;
|
|
13
|
-
export declare const L2_SLOT_DURATION_IN_L1_SLOTS = 2;
|
|
14
|
-
export declare const WORLD_STATE_BLOCK_HISTORY = 2;
|
|
15
|
-
export declare const WORLD_STATE_BLOCK_CHECK_INTERVAL = 50;
|
|
16
|
-
export declare const ARCHIVER_POLL_INTERVAL = 50;
|
|
17
|
-
export type EpochsTestOpts = Partial<Pick<SetupOptions, 'startProverNode'>>;
|
|
18
|
-
/**
|
|
19
|
-
* Tests building of epochs using fast block times and short epochs.
|
|
20
|
-
* Spawns an aztec node and a prover node with fake proofs.
|
|
21
|
-
* Sequencer is allowed to build empty blocks.
|
|
22
|
-
*/
|
|
23
|
-
export declare class EpochsTestContext {
|
|
24
|
-
context: EndToEndContext;
|
|
25
|
-
l1Client: PublicClient;
|
|
26
|
-
rollup: RollupContract;
|
|
27
|
-
constants: L1RollupConstants;
|
|
28
|
-
logger: Logger;
|
|
29
|
-
monitor: ChainMonitor;
|
|
30
|
-
proverDelayer: Delayer;
|
|
31
|
-
sequencerDelayer: Delayer;
|
|
32
|
-
proverNodes: ProverNode[];
|
|
33
|
-
nodes: AztecNodeService[];
|
|
34
|
-
static setup(opts?: EpochsTestOpts): Promise<EpochsTestContext>;
|
|
35
|
-
setup(opts?: EpochsTestOpts): Promise<void>;
|
|
36
|
-
teardown(): Promise<void>;
|
|
37
|
-
createProverNode(): Promise<ProverNode>;
|
|
38
|
-
createNonValidatorNode(): Promise<AztecNodeService>;
|
|
39
|
-
private getNextPrivateKey;
|
|
40
|
-
/** Waits until the epoch begins (ie until the immediately previous L1 block is mined). */
|
|
41
|
-
waitUntilEpochStarts(epoch: number): Promise<bigint>;
|
|
42
|
-
/** Waits until the given L2 block number is mined. */
|
|
43
|
-
waitUntilL2BlockNumber(target: number, timeout?: number): Promise<void>;
|
|
44
|
-
/** Waits until the given L2 block number is marked as proven. */
|
|
45
|
-
waitUntilProvenL2BlockNumber(t: number, timeout?: number): Promise<void>;
|
|
46
|
-
/** Waits for the aztec node to sync to the target block number. */
|
|
47
|
-
waitForNodeToSync(blockNumber: number, type: 'finalised' | 'historic'): Promise<void>;
|
|
48
|
-
/** Verifies whether the given block number is found on the aztec node. */
|
|
49
|
-
verifyHistoricBlock(blockNumber: L2BlockNumber, expectedSuccess: boolean): Promise<void>;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=epochs_test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"epochs_test.d.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AAG,OAAO,CAAC;IAE3B,WAAW,EAAE,UAAU,EAAE,CAAM;IAC/B,KAAK,EAAE,gBAAgB,EAAE,CAAM;WAElB,KAAK,CAAC,IAAI,GAAE,cAAmB;IAMtC,KAAK,CAAC,IAAI,GAAE,cAAmB;IA+D/B,QAAQ;IAOR,gBAAgB;IAgBhB,sBAAsB;IAcnC,OAAO,CAAC,iBAAiB;IAKzB,0FAA0F;IAC7E,oBAAoB,CAAC,KAAK,EAAE,MAAM;IAO/C,sDAAsD;IACzC,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,SAAK;IAShE,iEAAiE;IACpD,4BAA4B,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,SAAK;IASjE,mEAAmE;IACtD,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU;IAclF,0EAA0E;IAC7D,mBAAmB,CAAC,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,OAAO;CAOtF"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { type AccountWallet, type AztecAddress, type AztecNode, ChainMonitor, CheatCodes, type Logger, type PXE } from '@aztec/aztec.js';
|
|
2
|
-
import { type DeployL1ContractsArgs } from '@aztec/ethereum';
|
|
3
|
-
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
4
|
-
import { AppSubscriptionContract } from '@aztec/noir-contracts.js/AppSubscription';
|
|
5
|
-
import { CounterContract } from '@aztec/noir-contracts.js/Counter';
|
|
6
|
-
import { FPCContract } from '@aztec/noir-contracts.js/FPC';
|
|
7
|
-
import { FeeJuiceContract } from '@aztec/noir-contracts.js/FeeJuice';
|
|
8
|
-
import { TokenContract as BananaCoin } from '@aztec/noir-contracts.js/Token';
|
|
9
|
-
import { GasSettings } from '@aztec/stdlib/gas';
|
|
10
|
-
import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
|
|
11
|
-
import { type BalancesFn, type SetupOptions } from '../fixtures/utils.js';
|
|
12
|
-
import { type GasBridgingTestHarness } from '../shared/gas_portal_test_harness.js';
|
|
13
|
-
/**
|
|
14
|
-
* Test fixture for testing fees. Provides the following snapshots:
|
|
15
|
-
* InitialAccounts: Initializes 3 Schnorr account contracts.
|
|
16
|
-
* PublicDeployAccounts: Deploys the accounts publicly.
|
|
17
|
-
* DeployFeeJuice: Deploys the Fee Juice contract.
|
|
18
|
-
* FPCSetup: Deploys BananaCoin and FPC contracts, and bridges gas from L1.
|
|
19
|
-
* FundAlice: Mints private and public bananas to Alice.
|
|
20
|
-
* SetupSubscription: Deploys a counter contract and a subscription contract, and mints Fee Juice to the subscription contract.
|
|
21
|
-
*/
|
|
22
|
-
export declare class FeesTest {
|
|
23
|
-
private numberOfAccounts;
|
|
24
|
-
private snapshotManager;
|
|
25
|
-
private wallets;
|
|
26
|
-
logger: Logger;
|
|
27
|
-
pxe: PXE;
|
|
28
|
-
aztecNode: AztecNode;
|
|
29
|
-
cheatCodes: CheatCodes;
|
|
30
|
-
aliceWallet: AccountWallet;
|
|
31
|
-
aliceAddress: AztecAddress;
|
|
32
|
-
bobWallet: AccountWallet;
|
|
33
|
-
bobAddress: AztecAddress;
|
|
34
|
-
sequencerAddress: AztecAddress;
|
|
35
|
-
coinbase: EthAddress;
|
|
36
|
-
fpcAdmin: AztecAddress;
|
|
37
|
-
gasSettings: GasSettings;
|
|
38
|
-
feeJuiceContract: FeeJuiceContract;
|
|
39
|
-
bananaCoin: BananaCoin;
|
|
40
|
-
bananaFPC: FPCContract;
|
|
41
|
-
counterContract: CounterContract;
|
|
42
|
-
subscriptionContract: AppSubscriptionContract;
|
|
43
|
-
feeJuiceBridgeTestHarness: GasBridgingTestHarness;
|
|
44
|
-
context: SubsystemsContext;
|
|
45
|
-
chainMonitor: ChainMonitor;
|
|
46
|
-
getCoinbaseBalance: () => Promise<bigint>;
|
|
47
|
-
getCoinbaseSequencerRewards: () => Promise<bigint>;
|
|
48
|
-
getGasBalanceFn: BalancesFn;
|
|
49
|
-
getBananaPublicBalanceFn: BalancesFn;
|
|
50
|
-
getBananaPrivateBalanceFn: BalancesFn;
|
|
51
|
-
getProverFee: (blockNumber: number) => Promise<bigint>;
|
|
52
|
-
readonly ALICE_INITIAL_BANANAS: bigint;
|
|
53
|
-
readonly SUBSCRIPTION_AMOUNT: bigint;
|
|
54
|
-
readonly APP_SPONSORED_TX_GAS_LIMIT: bigint;
|
|
55
|
-
constructor(testName: string, numberOfAccounts?: number, setupOptions?: Partial<SetupOptions & DeployL1ContractsArgs>);
|
|
56
|
-
setup(): Promise<this>;
|
|
57
|
-
teardown(): Promise<void>;
|
|
58
|
-
setIsMarkingAsProven(b: boolean): void;
|
|
59
|
-
catchUpProvenChain(): Promise<void>;
|
|
60
|
-
mintAndBridgeFeeJuice(address: AztecAddress, amount: bigint): Promise<void>;
|
|
61
|
-
/** Alice mints bananaCoin tokens privately to the target address and redeems them. */
|
|
62
|
-
mintPrivateBananas(amount: bigint, address: AztecAddress): Promise<void>;
|
|
63
|
-
applyBaseSnapshots(): Promise<void>;
|
|
64
|
-
applyInitialAccountsSnapshot(): Promise<void>;
|
|
65
|
-
applyPublicDeployAccountsSnapshot(): Promise<void>;
|
|
66
|
-
applySetupFeeJuiceSnapshot(): Promise<void>;
|
|
67
|
-
applyDeployBananaTokenSnapshot(): Promise<void>;
|
|
68
|
-
applyFPCSetupSnapshot(): Promise<void>;
|
|
69
|
-
applyFundAliceWithBananas(): Promise<void>;
|
|
70
|
-
applyFundAliceWithPrivateBananas(): Promise<void>;
|
|
71
|
-
applySetupSubscription(): Promise<void>;
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=fees_test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fees_test.d.ts","sourceRoot":"","sources":["../../src/e2e_fees/fees_test.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,YAAY,EACZ,UAAU,EACV,KAAK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,UAAU,EAAG,UAAU,CAAC;IACxB,SAAS,EAAG,WAAW,CAAC;IACxB,eAAe,EAAG,eAAe,CAAC;IAClC,oBAAoB,EAAG,uBAAuB,CAAC;IAC/C,yBAAyB,EAAG,sBAAsB,CAAC;IAEnD,OAAO,EAAG,iBAAiB,CAAC;IAC5B,YAAY,EAAG,YAAY,CAAC;IAE5B,kBAAkB,EAAG,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3C,2BAA2B,EAAG,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACpD,eAAe,EAAG,UAAU,CAAC;IAC7B,wBAAwB,EAAG,UAAU,CAAC;IACtC,yBAAyB,EAAG,UAAU,CAAC;IACvC,YAAY,EAAG,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAE/D,SAAgB,qBAAqB,SAAgB;IACrD,SAAgB,mBAAmB,SAAgB;IACnD,SAAgB,0BAA0B,SAAgB;gBAGxD,QAAQ,EAAE,MAAM,EACR,gBAAgB,SAAI,EAC5B,YAAY,GAAE,OAAO,CAAC,YAAY,GAAG,qBAAqB,CAAM;IAc5D,KAAK;IAUL,QAAQ;IAKd,oBAAoB,CAAC,CAAC,EAAE,OAAO;IAIzB,kBAAkB;IAOlB,qBAAqB,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAMjE,sFAAsF;IAChF,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;IASjD,kBAAkB;IAOzB,4BAA4B;IAsC5B,iCAAiC;IAMjC,0BAA0B;IA0B1B,8BAA8B;IAgBvB,qBAAqB;IA0ErB,yBAAyB;IAWzB,gCAAgC;IAUhC,sBAAsB;CAgCpC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type AccountWallet, type CompleteAddress, type Logger, type PXE } from '@aztec/aztec.js';
|
|
2
|
-
import { ChildContract } from '@aztec/noir-contracts.js/Child';
|
|
3
|
-
import { ParentContract } from '@aztec/noir-contracts.js/Parent';
|
|
4
|
-
import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
|
|
5
|
-
export declare class NestedContractTest {
|
|
6
|
-
private numberOfAccounts;
|
|
7
|
-
private snapshotManager;
|
|
8
|
-
logger: Logger;
|
|
9
|
-
wallets: AccountWallet[];
|
|
10
|
-
accounts: CompleteAddress[];
|
|
11
|
-
pxe: PXE;
|
|
12
|
-
parentContract: ParentContract;
|
|
13
|
-
childContract: ChildContract;
|
|
14
|
-
constructor(testName: string, numberOfAccounts?: number);
|
|
15
|
-
/**
|
|
16
|
-
* Adds two state shifts to snapshot manager.
|
|
17
|
-
* 1. Add 3 accounts.
|
|
18
|
-
* 2. Publicly deploy accounts
|
|
19
|
-
*/
|
|
20
|
-
applyBaseSnapshots(): Promise<void>;
|
|
21
|
-
setup(): Promise<void>;
|
|
22
|
-
teardown(): Promise<void>;
|
|
23
|
-
snapshot: <T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>) => Promise<void>;
|
|
24
|
-
applyManualSnapshots(): Promise<void>;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=nested_contract_test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nested_contract_test.d.ts","sourceRoot":"","sources":["../../src/e2e_nested_contract/nested_contract_test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,KAAK,MAAM,EAAE,KAAK,GAAG,EAAgB,MAAM,iBAAiB,CAAC;AAChH,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,iCAAiC,CAAC;AAIzC,qBAAa,kBAAkB;IAUC,OAAO,CAAC,gBAAgB;IATtD,OAAO,CAAC,eAAe,CAAmB;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,aAAa,EAAE,CAAM;IAC9B,QAAQ,EAAE,eAAe,EAAE,CAAM;IACjC,GAAG,EAAG,GAAG,CAAC;IAEV,cAAc,EAAG,cAAc,CAAC;IAChC,aAAa,EAAG,aAAa,CAAC;gBAElB,QAAQ,EAAE,MAAM,EAAU,gBAAgB,SAAI;IAK1D;;;;OAIG;IACG,kBAAkB;IAsBlB,KAAK;IAIL,QAAQ;IAId,QAAQ,YACA,MAAM,SACL,CAAC,OAAO,EAAE,iBAAiB,KAAK,QAAQ,CAAC,CAAC,YACxC,CAAC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,KAAK,QAAQ,IAAI,CAAC,KACtE,QAAQ,IAAI,CAAC,CAAwD;IAElE,oBAAoB;CAc3B"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { InitialAccountData } from '@aztec/accounts/testing';
|
|
2
|
-
import type { AztecNodeConfig, AztecNodeService } from '@aztec/aztec-node';
|
|
3
|
-
import type { AccountWalletWithSecretKey } from '@aztec/aztec.js';
|
|
4
|
-
import { ChainMonitor } from '@aztec/aztec.js/ethereum';
|
|
5
|
-
import { type Logger } from '@aztec/foundation/log';
|
|
6
|
-
import { SpamContract } from '@aztec/noir-contracts.js/Spam';
|
|
7
|
-
import type { BootstrapNode } from '@aztec/p2p/bootstrap';
|
|
8
|
-
import type { PublicDataTreeLeaf } from '@aztec/stdlib/trees';
|
|
9
|
-
import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
|
|
10
|
-
export declare const WAIT_FOR_TX_TIMEOUT: number;
|
|
11
|
-
export declare const SHORTENED_BLOCK_TIME_CONFIG: {
|
|
12
|
-
aztecSlotDuration: number;
|
|
13
|
-
ethereumSlotDuration: number;
|
|
14
|
-
};
|
|
15
|
-
export declare class P2PNetworkTest {
|
|
16
|
-
bootstrapNodeEnr: string;
|
|
17
|
-
bootNodePort: number;
|
|
18
|
-
private numberOfNodes;
|
|
19
|
-
private metricsPort?;
|
|
20
|
-
private snapshotManager;
|
|
21
|
-
private baseAccount;
|
|
22
|
-
logger: Logger;
|
|
23
|
-
monitor: ChainMonitor;
|
|
24
|
-
ctx: SubsystemsContext;
|
|
25
|
-
attesterPrivateKeys: `0x${string}`[];
|
|
26
|
-
attesterPublicKeys: string[];
|
|
27
|
-
proposerPrivateKeys: `0x${string}`[];
|
|
28
|
-
peerIdPrivateKeys: string[];
|
|
29
|
-
deployedAccounts: InitialAccountData[];
|
|
30
|
-
prefilledPublicData: PublicDataTreeLeaf[];
|
|
31
|
-
wallet?: AccountWalletWithSecretKey;
|
|
32
|
-
spamContract?: SpamContract;
|
|
33
|
-
bootstrapNode?: BootstrapNode;
|
|
34
|
-
private cleanupInterval;
|
|
35
|
-
private gasUtils;
|
|
36
|
-
constructor(testName: string, bootstrapNodeEnr: string, bootNodePort: number, numberOfNodes: number, initialValidatorConfig: AztecNodeConfig, metricsPort?: number | undefined);
|
|
37
|
-
static create({ testName, numberOfNodes, basePort, metricsPort, initialConfig, }: {
|
|
38
|
-
testName: string;
|
|
39
|
-
numberOfNodes: number;
|
|
40
|
-
basePort?: number;
|
|
41
|
-
metricsPort?: number;
|
|
42
|
-
initialConfig?: Partial<AztecNodeConfig>;
|
|
43
|
-
}): Promise<P2PNetworkTest>;
|
|
44
|
-
get fundedAccount(): InitialAccountData;
|
|
45
|
-
/**
|
|
46
|
-
* Start a loop to sync the mock system time with the L1 block time
|
|
47
|
-
*/
|
|
48
|
-
startSyncMockSystemTimeInterval(): void;
|
|
49
|
-
/**
|
|
50
|
-
* When using fake timers, we need to keep the system and anvil clocks in sync.
|
|
51
|
-
*/
|
|
52
|
-
syncMockSystemTime(): Promise<void>;
|
|
53
|
-
applyBaseSnapshots(): Promise<void>;
|
|
54
|
-
setupAccount(): Promise<void>;
|
|
55
|
-
deploySpamContract(): Promise<void>;
|
|
56
|
-
removeInitialNode(): Promise<void>;
|
|
57
|
-
setup(): Promise<void>;
|
|
58
|
-
stopNodes(nodes: AztecNodeService[]): Promise<void>;
|
|
59
|
-
teardown(): Promise<void>;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=p2p_network.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"p2p_network.d.ts","sourceRoot":"","sources":["../../src/e2e_p2p/p2p_network.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIxD,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAa9D,OAAO,EAEL,KAAK,iBAAiB,EAGvB,MAAM,iCAAiC,CAAC;AAOzC,eAAO,MAAM,mBAAmB,QAA0C,CAAC;AAE3E,eAAO,MAAM,2BAA2B;;;CAGvC,CAAC;AAEF,qBAAa,cAAc;IA2BhB,gBAAgB,EAAE,MAAM;IACxB,YAAY,EAAE,MAAM;IAC3B,OAAO,CAAC,aAAa;IAGrB,OAAO,CAAC,WAAW,CAAC;IA/BtB,OAAO,CAAC,eAAe,CAAmB;IAC1C,OAAO,CAAC,WAAW,CAAC;IAEb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAG,YAAY,CAAC;IAEvB,GAAG,EAAG,iBAAiB,CAAC;IACxB,mBAAmB,EAAE,KAAK,MAAM,EAAE,EAAE,CAAM;IAC1C,kBAAkB,EAAE,MAAM,EAAE,CAAM;IAClC,mBAAmB,EAAE,KAAK,MAAM,EAAE,EAAE,CAAM;IAC1C,iBAAiB,EAAE,MAAM,EAAE,CAAM;IAEjC,gBAAgB,EAAE,kBAAkB,EAAE,CAAM;IAC5C,mBAAmB,EAAE,kBAAkB,EAAE,CAAM;IAE/C,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,aAAa,CAAC,EAAE,aAAa,CAAC;IAErC,OAAO,CAAC,eAAe,CAAyC;IAEhE,OAAO,CAAC,QAAQ,CAA6C;gBAG3D,QAAQ,EAAE,MAAM,EACT,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EAC7B,sBAAsB,EAAE,eAAe,EAE/B,WAAW,CAAC,oBAAQ;WAmCjB,MAAM,CAAC,EAClB,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,WAAW,EACX,aAAa,GACd,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;KAC1C;IAcD,IAAI,aAAa,uBAKhB;IAED;;OAEG;IACI,+BAA+B;IAMtC;;OAEG;IACU,kBAAkB;IAczB,kBAAkB;IA8FlB,YAAY;IAYZ,kBAAkB;IAoBlB,iBAAiB;IAsBjB,KAAK;IA0BL,SAAS,CAAC,KAAK,EAAE,gBAAgB,EAAE;IAanC,QAAQ;CAQf"}
|
package/dest/e2e_p2p/shared.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { InitialAccountData } from '@aztec/accounts/testing';
|
|
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?: {
|
|
7
|
-
callPublic?: boolean;
|
|
8
|
-
}) => Promise<SentTx[]>;
|
|
9
|
-
export declare const createPXEServiceAndSubmitTransactions: (logger: Logger, node: AztecNodeService, numTxs: number, fundedAccount: InitialAccountData) => Promise<NodeContext>;
|
|
10
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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/B,CAAC;AAGF,eAAO,MAAM,qCAAqC,WACxC,MAAM,QACR,gBAAgB,UACd,MAAM,iBACC,kBAAkB,KAChC,QAAQ,WAAW,CAmBrB,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { InitialAccountData } from '@aztec/accounts/testing';
|
|
2
|
-
import { type AccountWalletWithSecretKey, type AztecNode, type CheatCodes, type CompleteAddress, type DeployL1ContractsReturnType, EthAddress, type Logger } from '@aztec/aztec.js';
|
|
3
|
-
import { type ClientProtocolCircuitVerifier } from '@aztec/bb-prover';
|
|
4
|
-
import type { BlobSinkServer } from '@aztec/blob-sink/server';
|
|
5
|
-
import { TokenContract } from '@aztec/noir-contracts.js/Token';
|
|
6
|
-
import type { PXEService } from '@aztec/pxe';
|
|
7
|
-
import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
|
|
8
|
-
import { TokenSimulator } from '../simulators/token_simulator.js';
|
|
9
|
-
/**
|
|
10
|
-
* Largely taken from the e2e_token_contract test file. We deploy 2 accounts and a token contract.
|
|
11
|
-
* However, we then setup a second PXE with a full prover instance.
|
|
12
|
-
* We configure this instance with all of the accounts and contracts.
|
|
13
|
-
* We then prove and verify transactions created via this full prover PXE.
|
|
14
|
-
*/
|
|
15
|
-
export declare class FullProverTest {
|
|
16
|
-
private minNumberOfTxsPerBlock;
|
|
17
|
-
private realProofs;
|
|
18
|
-
static TOKEN_NAME: string;
|
|
19
|
-
static TOKEN_SYMBOL: string;
|
|
20
|
-
static TOKEN_DECIMALS: bigint;
|
|
21
|
-
private snapshotManager;
|
|
22
|
-
logger: Logger;
|
|
23
|
-
deployedAccounts: InitialAccountData[];
|
|
24
|
-
wallets: AccountWalletWithSecretKey[];
|
|
25
|
-
accounts: CompleteAddress[];
|
|
26
|
-
fakeProofsAsset: TokenContract;
|
|
27
|
-
tokenSim: TokenSimulator;
|
|
28
|
-
aztecNode: AztecNode;
|
|
29
|
-
pxe: PXEService;
|
|
30
|
-
cheatCodes: CheatCodes;
|
|
31
|
-
blobSink: BlobSinkServer;
|
|
32
|
-
private provenComponents;
|
|
33
|
-
private bbConfigCleanup?;
|
|
34
|
-
private acvmConfigCleanup?;
|
|
35
|
-
circuitProofVerifier?: ClientProtocolCircuitVerifier;
|
|
36
|
-
provenAssets: TokenContract[];
|
|
37
|
-
private context;
|
|
38
|
-
private proverNode;
|
|
39
|
-
private simulatedProverNode;
|
|
40
|
-
l1Contracts: DeployL1ContractsReturnType;
|
|
41
|
-
proverAddress: EthAddress;
|
|
42
|
-
constructor(testName: string, minNumberOfTxsPerBlock: number, coinbase: EthAddress, realProofs?: boolean);
|
|
43
|
-
/**
|
|
44
|
-
* Adds two state shifts to snapshot manager.
|
|
45
|
-
* 1. Add 2 accounts.
|
|
46
|
-
* 2. Publicly deploy accounts, deploy token contract
|
|
47
|
-
*/
|
|
48
|
-
applyBaseSnapshots(): Promise<void>;
|
|
49
|
-
setup(): Promise<this>;
|
|
50
|
-
private mintL1ERC20;
|
|
51
|
-
snapshot: <T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>) => Promise<void>;
|
|
52
|
-
teardown(): Promise<void>;
|
|
53
|
-
applyMintSnapshot(): Promise<void>;
|
|
54
|
-
deployVerifier(): Promise<void>;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=e2e_prover_test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"e2e_prover_test.d.ts","sourceRoot":"","sources":["../../src/e2e_prover/e2e_prover_test.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,UAAU,EACV,KAAK,MAAM,EAIZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAqB,KAAK,6BAA6B,EAAuB,MAAM,kBAAkB,CAAC;AAE9G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAQ7C,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AASlE;;;;;GAKG;AAEH,qBAAa,cAAc;IA4Bv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