@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
package/dest/fixtures/utils.d.ts
CHANGED
|
@@ -1,40 +1,45 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
import { type InitialAccountData } from '@aztec/accounts/testing';
|
|
4
2
|
import { type AztecNodeConfig } from '@aztec/aztec-node';
|
|
5
|
-
import {
|
|
6
|
-
import type
|
|
3
|
+
import { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
4
|
+
import { type ContractMethod } from '@aztec/aztec.js/contracts';
|
|
5
|
+
import { type Logger } from '@aztec/aztec.js/log';
|
|
6
|
+
import { type AztecNode } from '@aztec/aztec.js/node';
|
|
7
|
+
import type { Wallet } from '@aztec/aztec.js/wallet';
|
|
8
|
+
import { AnvilTestWatcher, CheatCodes } from '@aztec/aztec/testing';
|
|
7
9
|
import { type BlobSinkServer } from '@aztec/blob-sink/server';
|
|
8
|
-
import { type DeployL1ContractsArgs,
|
|
9
|
-
import { startAnvil } from '@aztec/ethereum/test';
|
|
10
|
-
import {
|
|
10
|
+
import { type DeployL1ContractsArgs, type DeployL1ContractsReturnType, type Operator } from '@aztec/ethereum';
|
|
11
|
+
import { EthCheatCodes, startAnvil } from '@aztec/ethereum/test';
|
|
12
|
+
import { SecretValue } from '@aztec/foundation/config';
|
|
11
13
|
import { Fr } from '@aztec/foundation/fields';
|
|
12
14
|
import { TestDateProvider } from '@aztec/foundation/timer';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
+
import type { DataStoreConfig } from '@aztec/kv-store/config';
|
|
16
|
+
import { MockGossipSubNetwork } from '@aztec/p2p/test-helpers';
|
|
17
|
+
import { type ProverNode, type ProverNodeConfig, type ProverNodeDeps } from '@aztec/prover-node';
|
|
18
|
+
import { type PXEConfig } from '@aztec/pxe/server';
|
|
15
19
|
import type { SequencerClient } from '@aztec/sequencer-client';
|
|
20
|
+
import { type ContractInstanceWithAddress } from '@aztec/stdlib/contract';
|
|
21
|
+
import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
|
|
16
22
|
import type { PublicDataTreeLeaf } from '@aztec/stdlib/trees';
|
|
17
23
|
import { type TelemetryClient, type TelemetryClientConfig } from '@aztec/telemetry-client';
|
|
18
|
-
import {
|
|
24
|
+
import { TestWallet } from '@aztec/test-wallet/server';
|
|
25
|
+
import { type Chain, type HDAccount, type PrivateKeyAccount } from 'viem';
|
|
19
26
|
export { deployAndInitializeTokenAndBridgeContracts } from '../shared/cross_chain_test_harness.js';
|
|
20
27
|
export { startAnvil };
|
|
21
28
|
export declare const getPrivateKeyFromIndex: (index: number) => Buffer | null;
|
|
22
29
|
export declare const setupL1Contracts: (l1RpcUrls: string[], account: HDAccount | PrivateKeyAccount, logger: Logger, args?: Partial<DeployL1ContractsArgs>, chain?: Chain) => Promise<DeployL1ContractsReturnType>;
|
|
23
30
|
/**
|
|
24
|
-
* Sets up Private eXecution Environment (PXE).
|
|
31
|
+
* Sets up Private eXecution Environment (PXE) and returns the corresponding test wallet.
|
|
25
32
|
* @param aztecNode - An instance of Aztec Node.
|
|
26
|
-
* @param opts - Partial configuration for the PXE
|
|
27
|
-
* @param firstPrivKey - The private key of the first account to be created.
|
|
33
|
+
* @param opts - Partial configuration for the PXE.
|
|
28
34
|
* @param logger - The logger to be used.
|
|
29
35
|
* @param useLogSuffix - Whether to add a randomly generated suffix to the PXE debug logs.
|
|
30
|
-
* @
|
|
31
|
-
* @returns Private eXecution Environment (PXE), accounts, wallets and logger.
|
|
36
|
+
* @returns A test wallet, logger and teardown function.
|
|
32
37
|
*/
|
|
33
|
-
export declare function
|
|
38
|
+
export declare function setupPXEAndGetWallet(aztecNode: AztecNode, opts?: Partial<PXEConfig>, logger?: Logger, useLogSuffix?: boolean): Promise<{
|
|
34
39
|
/**
|
|
35
|
-
* The
|
|
40
|
+
* The wallet instance.
|
|
36
41
|
*/
|
|
37
|
-
|
|
42
|
+
wallet: TestWallet;
|
|
38
43
|
/**
|
|
39
44
|
* Logger instance named as the current test.
|
|
40
45
|
*/
|
|
@@ -63,7 +68,9 @@ export type SetupOptions = {
|
|
|
63
68
|
/** Salt to use in L1 contract deployment */
|
|
64
69
|
salt?: number;
|
|
65
70
|
/** An initial set of validators */
|
|
66
|
-
initialValidators?:
|
|
71
|
+
initialValidators?: (Operator & {
|
|
72
|
+
privateKey: `0x${string}`;
|
|
73
|
+
})[];
|
|
67
74
|
/** Anvil Start time */
|
|
68
75
|
l1StartTime?: number;
|
|
69
76
|
/** The anvil time where we should at the earliest be seeing L2 blocks */
|
|
@@ -78,31 +85,47 @@ export type SetupOptions = {
|
|
|
78
85
|
};
|
|
79
86
|
/** Public data that will be inserted in the tree in genesis */
|
|
80
87
|
genesisPublicData?: PublicDataTreeLeaf[];
|
|
88
|
+
/** Specific config for the prover node, if set. */
|
|
89
|
+
proverNodeConfig?: Partial<ProverNodeConfig>;
|
|
90
|
+
/** Whether to use a mock gossip sub network for p2p clients. */
|
|
91
|
+
mockGossipSubNetwork?: boolean;
|
|
92
|
+
/** Whether to disable the anvil test watcher (can still be manually started) */
|
|
93
|
+
disableAnvilTestWatcher?: boolean;
|
|
94
|
+
/** Whether to enable anvil automine during deployment of L1 contracts (consider defaulting this to true). */
|
|
95
|
+
automineL1Setup?: boolean;
|
|
96
|
+
/** How many accounts to seed and unlock in anvil. */
|
|
97
|
+
anvilAccounts?: number;
|
|
98
|
+
/** Port to start anvil (defaults to 8545) */
|
|
99
|
+
anvilPort?: number;
|
|
100
|
+
/** Key to use for publishing L1 contracts */
|
|
101
|
+
l1PublisherKey?: SecretValue<`0x${string}`>;
|
|
81
102
|
} & Partial<AztecNodeConfig>;
|
|
82
103
|
/** Context for an end-to-end test as returned by the `setup` function */
|
|
83
104
|
export type EndToEndContext = {
|
|
84
105
|
/** The Aztec Node service or client a connected to it. */
|
|
85
106
|
aztecNode: AztecNode;
|
|
107
|
+
/** Client to the Aztec Node admin interface (undefined if connected to remote environment) */
|
|
108
|
+
aztecNodeAdmin?: AztecNodeAdmin;
|
|
86
109
|
/** The prover node service (only set if startProverNode is true) */
|
|
87
110
|
proverNode: ProverNode | undefined;
|
|
88
111
|
/** A client to the sequencer service (undefined if connected to remote environment) */
|
|
89
112
|
sequencer: SequencerClient | undefined;
|
|
90
|
-
/** The Private eXecution Environment (PXE). */
|
|
91
|
-
pxe: PXE;
|
|
92
113
|
/** Return values from deployL1Contracts function. */
|
|
93
114
|
deployL1ContractsValues: DeployL1ContractsReturnType;
|
|
94
115
|
/** The Aztec Node configuration. */
|
|
95
116
|
config: AztecNodeConfig;
|
|
96
117
|
/** The data for the initial funded accounts. */
|
|
97
118
|
initialFundedAccounts: InitialAccountData[];
|
|
98
|
-
/** The
|
|
99
|
-
wallet:
|
|
119
|
+
/** The wallet to be used. */
|
|
120
|
+
wallet: TestWallet;
|
|
100
121
|
/** The wallets to be used. */
|
|
101
|
-
|
|
122
|
+
accounts: AztecAddress[];
|
|
102
123
|
/** Logger instance named as the current test. */
|
|
103
124
|
logger: Logger;
|
|
104
125
|
/** The cheat codes. */
|
|
105
126
|
cheatCodes: CheatCodes;
|
|
127
|
+
/** The cheat codes for L1 */
|
|
128
|
+
ethCheatCodes: EthCheatCodes;
|
|
106
129
|
/** The anvil test watcher (undefined if connected to remote environment) */
|
|
107
130
|
watcher: AnvilTestWatcher | undefined;
|
|
108
131
|
/** Allows tweaking current system time, used by the epoch cache only (undefined if connected to remote environment) */
|
|
@@ -111,6 +134,10 @@ export type EndToEndContext = {
|
|
|
111
134
|
blobSink: BlobSinkServer | undefined;
|
|
112
135
|
/** Telemetry client */
|
|
113
136
|
telemetryClient: TelemetryClient | undefined;
|
|
137
|
+
/** Mock gossip sub network used for gossipping messages (only if mockGossipSubNetwork was set to true in opts) */
|
|
138
|
+
mockGossipSubNetwork: MockGossipSubNetwork | undefined;
|
|
139
|
+
/** Prefilled public data used for setting up nodes. */
|
|
140
|
+
prefilledPublicData: PublicDataTreeLeaf[] | undefined;
|
|
114
141
|
/** Function to stop the started services. */
|
|
115
142
|
teardown: () => Promise<void>;
|
|
116
143
|
};
|
|
@@ -120,36 +147,48 @@ export type EndToEndContext = {
|
|
|
120
147
|
* @param opts - Options to pass to the node initialization and to the setup script.
|
|
121
148
|
* @param pxeOpts - Options to pass to the PXE initialization.
|
|
122
149
|
*/
|
|
123
|
-
export declare function setup(numberOfAccounts?: number, opts?: SetupOptions, pxeOpts?: Partial<
|
|
150
|
+
export declare function setup(numberOfAccounts?: number, opts?: SetupOptions, pxeOpts?: Partial<PXEConfig>, chain?: Chain): Promise<EndToEndContext>;
|
|
124
151
|
/**
|
|
125
152
|
* Registers the contract class used for test accounts and publicly deploys the instances requested.
|
|
126
153
|
* Use this when you need to make a public call to an account contract, such as for requesting a public authwit.
|
|
127
154
|
* @param sender - Wallet to send the deployment tx.
|
|
128
155
|
* @param accountsToDeploy - Which accounts to publicly deploy.
|
|
129
156
|
*/
|
|
130
|
-
export declare function
|
|
131
|
-
/**
|
|
132
|
-
* Sets the timestamp of the next block.
|
|
133
|
-
* @param rpcUrl - rpc url of the blockchain instance to connect to
|
|
134
|
-
* @param timestamp - the timestamp for the next block
|
|
135
|
-
*/
|
|
136
|
-
export declare function setNextBlockTimestamp(rpcUrl: string, timestamp: number): Promise<void>;
|
|
157
|
+
export declare function ensureAccountContractsPublished(wallet: Wallet, accountsToDeploy: AztecAddress[]): Promise<void>;
|
|
137
158
|
/**
|
|
138
159
|
* Returns a logger instance for the current test.
|
|
139
160
|
* @returns a logger instance for the current test.
|
|
140
161
|
*/
|
|
141
162
|
export declare function getLogger(): Logger;
|
|
142
163
|
export type BalancesFn = ReturnType<typeof getBalancesFn>;
|
|
143
|
-
export declare function getBalancesFn(symbol: string, method: ContractMethod, logger: any): (...addresses: (AztecAddress | {
|
|
164
|
+
export declare function getBalancesFn(symbol: string, method: ContractMethod, from: AztecAddress, logger: any): (...addresses: (AztecAddress | {
|
|
144
165
|
address: AztecAddress;
|
|
145
166
|
})[]) => Promise<bigint[]>;
|
|
146
167
|
export declare function expectMapping<K, V>(fn: (...k: K[]) => Promise<V[]>, inputs: K[], expectedOutputs: V[]): Promise<void>;
|
|
147
168
|
export declare function expectMappingDelta<K, V extends number | bigint>(initialValues: V[], fn: (...k: K[]) => Promise<V[]>, inputs: K[], expectedDiffs: V[]): Promise<void>;
|
|
148
169
|
/**
|
|
149
|
-
*
|
|
170
|
+
* Computes the address of the "canonical" SponsoredFPCContract. This is not a protocol contract
|
|
171
|
+
* but by conventions its address is computed with a salt of 0.
|
|
172
|
+
* @returns The address of the sponsored FPC contract
|
|
173
|
+
*/
|
|
174
|
+
export declare function getSponsoredFPCInstance(): Promise<ContractInstanceWithAddress>;
|
|
175
|
+
/**
|
|
176
|
+
* Computes the address of the "canonical" SponsoredFPCContract. This is not a protocol contract
|
|
177
|
+
* but by conventions its address is computed with a salt of 0.
|
|
178
|
+
* @returns The address of the sponsored FPC contract
|
|
179
|
+
*/
|
|
180
|
+
export declare function getSponsoredFPCAddress(): Promise<AztecAddress>;
|
|
181
|
+
/**
|
|
182
|
+
* Deploy a sponsored FPC contract to a running instance.
|
|
183
|
+
*/
|
|
184
|
+
export declare function setupSponsoredFPC(wallet: Wallet): Promise<ContractInstanceWithAddress>;
|
|
185
|
+
/**
|
|
186
|
+
* Registers the SponsoredFPC in this PXE instance
|
|
187
|
+
* @param wallet - The wallet
|
|
150
188
|
*/
|
|
151
|
-
export declare function
|
|
189
|
+
export declare function registerSponsoredFPC(wallet: Wallet): Promise<void>;
|
|
152
190
|
export declare function waitForProvenChain(node: AztecNode, targetBlock?: number, timeoutSec?: number, intervalSec?: number): Promise<void>;
|
|
153
|
-
export declare function createAndSyncProverNode(proverNodePrivateKey: `0x${string}`, aztecNodeConfig: AztecNodeConfig,
|
|
154
|
-
|
|
191
|
+
export declare function createAndSyncProverNode(proverNodePrivateKey: `0x${string}`, aztecNodeConfig: AztecNodeConfig, proverNodeConfig: Partial<ProverNodeConfig> & Pick<DataStoreConfig, 'dataDirectory'> & {
|
|
192
|
+
dontStart?: boolean;
|
|
193
|
+
}, aztecNode: AztecNode | undefined, prefilledPublicData?: PublicDataTreeLeaf[], proverNodeDeps?: ProverNodeDeps): Promise<ProverNode>;
|
|
155
194
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/fixtures/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/fixtures/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,kBAAkB,EAA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