@aztec/end-to-end 0.77.0-testnet-ignition.26 → 0.77.0-testnet-ignition.28
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
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type AccountWallet, type CompleteAddress, type Logger } from '@aztec/aztec.js';
|
|
2
|
-
import { DocsExampleContract } from '@aztec/noir-contracts.js/DocsExample';
|
|
3
|
-
import { TokenContract } from '@aztec/noir-contracts.js/Token';
|
|
4
|
-
import { type SubsystemsContext } from '../fixtures/snapshot_manager.js';
|
|
5
|
-
import { TokenSimulator } from '../simulators/token_simulator.js';
|
|
6
|
-
export declare class TokenContractTest {
|
|
7
|
-
static TOKEN_NAME: string;
|
|
8
|
-
static TOKEN_SYMBOL: string;
|
|
9
|
-
static TOKEN_DECIMALS: bigint;
|
|
10
|
-
private snapshotManager;
|
|
11
|
-
logger: Logger;
|
|
12
|
-
wallets: AccountWallet[];
|
|
13
|
-
accounts: CompleteAddress[];
|
|
14
|
-
asset: TokenContract;
|
|
15
|
-
tokenSim: TokenSimulator;
|
|
16
|
-
badAccount: DocsExampleContract;
|
|
17
|
-
constructor(testName: string);
|
|
18
|
-
/**
|
|
19
|
-
* Adds two state shifts to snapshot manager.
|
|
20
|
-
* 1. Add 3 accounts.
|
|
21
|
-
* 2. Publicly deploy accounts, deploy token contract and a "bad account".
|
|
22
|
-
*/
|
|
23
|
-
applyBaseSnapshots(): Promise<void>;
|
|
24
|
-
setup(): Promise<void>;
|
|
25
|
-
snapshot: <T>(name: string, apply: (context: SubsystemsContext) => Promise<T>, restore?: (snapshotData: T, context: SubsystemsContext) => Promise<void>) => Promise<void>;
|
|
26
|
-
teardown(): Promise<void>;
|
|
27
|
-
applyMintSnapshot(): Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=token_contract_test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token_contract_test.d.ts","sourceRoot":"","sources":["../../src/e2e_token_contract/token_contract_test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,KAAK,MAAM,EAAgB,MAAM,iBAAiB,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAI/D,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIlE,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,UAAU,SAAU;IAC3B,MAAM,CAAC,YAAY,SAAS;IAC5B,MAAM,CAAC,cAAc,SAAO;IAC5B,OAAO,CAAC,eAAe,CAAmB;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,aAAa,EAAE,CAAM;IAC9B,QAAQ,EAAE,eAAe,EAAE,CAAM;IACjC,KAAK,EAAG,aAAa,CAAC;IACtB,QAAQ,EAAG,cAAc,CAAC;IAC1B,UAAU,EAAG,mBAAmB,CAAC;gBAErB,QAAQ,EAAE,MAAM;IAO5B;;;;OAIG;IACG,kBAAkB;IAgElB,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;IAIR,iBAAiB;CAyCxB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
export declare const METRICS_PORT = 4318;
|
|
4
|
-
export declare const shouldCollectMetrics: () => 4318 | undefined;
|
|
5
|
-
export declare const TEST_PEER_CHECK_INTERVAL_MS = 1000;
|
|
6
|
-
export declare const MNEMONIC = "test test test test test test test test test test test junk";
|
|
7
|
-
export declare const privateKey: Buffer;
|
|
8
|
-
export declare const privateKey2: Buffer;
|
|
9
|
-
export declare const U128_UNDERFLOW_ERROR = "Assertion failed: attempt to subtract with overflow 'self - other'";
|
|
10
|
-
export declare const U128_OVERFLOW_ERROR = "Assertion failed: attempt to add with overflow 'self + other'";
|
|
11
|
-
export declare const BITSIZE_TOO_BIG_ERROR = "Assertion failed: call to assert_max_bit_size 'self.__assert_max_bit_size'";
|
|
12
|
-
export declare const DUPLICATE_NULLIFIER_ERROR: RegExp;
|
|
13
|
-
export declare const NO_L1_TO_L2_MSG_ERROR: RegExp;
|
|
14
|
-
export declare const STATIC_CALL_STATE_MODIFICATION_ERROR: RegExp;
|
|
15
|
-
export declare const STATIC_CONTEXT_ASSERTION_ERROR: RegExp;
|
|
16
|
-
export declare const DEFAULT_BLOB_SINK_PORT = "5052";
|
|
17
|
-
//# sourceMappingURL=fixtures.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/fixtures/fixtures.ts"],"names":[],"mappings":";;AAAA,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,oBAAoB,wBAKhC,CAAC;AAEF,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD,eAAO,MAAM,QAAQ,gEAAgE,CAAC;AACtF,eAAO,MAAM,UAAU,QAAyF,CAAC;AACjH,eAAO,MAAM,WAAW,QAAyF,CAAC;AAGlH,eAAO,MAAM,oBAAoB,uEAAuE,CAAC;AACzG,eAAO,MAAM,mBAAmB,kEAAkE,CAAC;AACnG,eAAO,MAAM,qBAAqB,+EAA+E,CAAC;AAElH,eAAO,MAAM,yBAAyB,QAA6D,CAAC;AACpG,eAAO,MAAM,qBAAqB,QACwE,CAAC;AAC3G,eAAO,MAAM,oCAAoC,QAC+B,CAAC;AACjF,eAAO,MAAM,8BAA8B,QAAkE,CAAC;AAE9G,eAAO,MAAM,sBAAsB,SAAS,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Logger } from '@aztec/aztec.js';
|
|
2
|
-
export { deployAndInitializeTokenAndBridgeContracts } from '../shared/cross_chain_test_harness.js';
|
|
3
|
-
export declare function getACVMConfig(logger: Logger): Promise<{
|
|
4
|
-
acvmWorkingDirectory: string;
|
|
5
|
-
acvmBinaryPath: string;
|
|
6
|
-
cleanup: () => Promise<void>;
|
|
7
|
-
} | undefined>;
|
|
8
|
-
//# sourceMappingURL=get_acvm_config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get_acvm_config.d.ts","sourceRoot":"","sources":["../../src/fixtures/get_acvm_config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAM9C,OAAO,EAAE,0CAA0C,EAAE,MAAM,uCAAuC,CAAC;AAWnG,wBAAsB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CACxD;IACE,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,GACD,SAAS,CACZ,CAkCA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type Logger } from '@aztec/aztec.js';
|
|
2
|
-
import type { BBConfig } from '@aztec/bb-prover';
|
|
3
|
-
export declare const getBBConfig: (logger: Logger) => Promise<(BBConfig & {
|
|
4
|
-
cleanup: () => Promise<void>;
|
|
5
|
-
}) | undefined>;
|
|
6
|
-
//# sourceMappingURL=get_bb_config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get_bb_config.d.ts","sourceRoot":"","sources":["../../src/fixtures/get_bb_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAiB,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAcjD,eAAO,MAAM,WAAW,WACd,MAAM,KACb,QAAQ,CAAC,QAAQ,GAAG;IAAE,OAAO,EAAE,MAAM,QAAQ,IAAI,CAAC,CAAA;CAAE,CAAC,GAAG,SAAS,CAoCnE,CAAC"}
|
package/dest/fixtures/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { L1ContractAddresses, ViemPublicClient, ViemWalletClient } from '@aztec/ethereum';
|
|
2
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
3
|
-
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
|
-
export declare function sendL1ToL2Message(message: {
|
|
5
|
-
recipient: AztecAddress;
|
|
6
|
-
content: Fr;
|
|
7
|
-
secretHash: Fr;
|
|
8
|
-
}, ctx: {
|
|
9
|
-
walletClient: ViemWalletClient;
|
|
10
|
-
publicClient: ViemPublicClient;
|
|
11
|
-
l1ContractAddresses: Pick<L1ContractAddresses, 'inboxAddress'>;
|
|
12
|
-
}): Promise<Fr[]>;
|
|
13
|
-
//# sourceMappingURL=l1_to_l2_messaging.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"l1_to_l2_messaging.d.ts","sourceRoot":"","sources":["../../src/fixtures/l1_to_l2_messaging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,wBAAsB,iBAAiB,CACrC,OAAO,EAAE;IAAE,SAAS,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC;IAAC,UAAU,EAAE,EAAE,CAAA;CAAE,EACjE,GAAG,EAAE;IACH,YAAY,EAAE,gBAAgB,CAAC;IAC/B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;CAChE,iBAmCF"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Returns whether metrics logging should be enabled by default, checking env vars CI and BENCHMARK. */
|
|
2
|
-
export declare function isMetricsLoggingRequested(): boolean;
|
|
3
|
-
/**
|
|
4
|
-
* Configures an NDJSON logger to output entries to a local file that have an `eventName` associated.
|
|
5
|
-
* Idempotent and automatically called by `setup` if CI or BENCHMARK env vars are set.
|
|
6
|
-
*/
|
|
7
|
-
export declare function setupMetricsLogger(filename: string): void;
|
|
8
|
-
//# sourceMappingURL=logging.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/fixtures/logging.ts"],"names":[],"mappings":"AAKA,wGAAwG;AACxG,wBAAgB,yBAAyB,YAExC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,QAOlD"}
|
|
@@ -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,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/**
|
|
3
|
-
* Test fixtures and utilities to set up and run a test using multiple validators
|
|
4
|
-
*/
|
|
5
|
-
import { type AztecNodeConfig, AztecNodeService } from '@aztec/aztec-node';
|
|
6
|
-
import type { SentTx } from '@aztec/aztec.js';
|
|
7
|
-
import type { DateProvider } from '@aztec/foundation/timer';
|
|
8
|
-
import type { PXEService } from '@aztec/pxe';
|
|
9
|
-
import type { PublicDataTreeLeaf } from '@aztec/stdlib/trees';
|
|
10
|
-
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
11
|
-
export declare const PROPOSER_PRIVATE_KEYS_START_INDEX = 1;
|
|
12
|
-
export declare const ATTESTER_PRIVATE_KEYS_START_INDEX = 1001;
|
|
13
|
-
export interface NodeContext {
|
|
14
|
-
node: AztecNodeService;
|
|
15
|
-
pxeService: PXEService;
|
|
16
|
-
txs: SentTx[];
|
|
17
|
-
}
|
|
18
|
-
export declare function generatePrivateKeys(startIndex: number, numberOfKeys: number): `0x${string}`[];
|
|
19
|
-
export declare function createNodes(config: AztecNodeConfig, dateProvider: DateProvider, bootstrapNodeEnr: string, numNodes: number, bootNodePort: number, prefilledPublicData?: PublicDataTreeLeaf[], dataDirectory?: string, metricsPort?: number): Promise<AztecNodeService[]>;
|
|
20
|
-
export declare function createNode(config: AztecNodeConfig, dateProvider: DateProvider, tcpPort: number, bootstrapNode: string | undefined, accountIndex: number, prefilledPublicData?: PublicDataTreeLeaf[], dataDirectory?: string, metricsPort?: number, loggerIdStorage?: AsyncLocalStorage<string>): Promise<AztecNodeService>;
|
|
21
|
-
export declare function createValidatorConfig(config: AztecNodeConfig, bootstrapNodeEnr?: string, port?: number, accountIndex?: number, dataDirectory?: string): Promise<AztecNodeConfig>;
|
|
22
|
-
//# sourceMappingURL=setup_p2p_test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup_p2p_test.d.ts","sourceRoot":"","sources":["../../src/fixtures/setup_p2p_test.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9D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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';
|
|
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,KAAK,MAAM,EAEZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,KAAK,qBAAqB,EAA6D,MAAM,iBAAiB,CAAC;AAM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EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAA2B;IA4CnG;;;;OAIG;IACU,KAAK;IA0BlB;;OAEG;IACU,QAAQ;CAKtB;AAmUD;;;GAGG;AACH,eAAO,MAAM,cAAc,qBACN,MAAM,UAAU,MAAM,iEACF;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,qBAAqB,EAAE,kBAAkB,EAAE,CAAA;CAAE;;EAU/F,CAAC;AAEJ;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,CAAC,eAAe,GAAG,YAAY,CAAC,EAAE,EACpD,eAAe,UAAQ,iBAoBxB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { AztecAddress, Logger, Wallet } from '@aztec/aztec.js';
|
|
2
|
-
import { TokenContract } from '@aztec/noir-contracts.js/Token';
|
|
3
|
-
export declare function deployToken(adminWallet: Wallet, initialAdminBalance: bigint, logger: Logger): Promise<TokenContract>;
|
|
4
|
-
export declare function mintTokensToPrivate(token: TokenContract, minterWallet: Wallet, recipient: AztecAddress, amount: bigint): Promise<void>;
|
|
5
|
-
export declare function expectTokenBalance(wallet: Wallet, token: TokenContract, owner: AztecAddress, expectedBalance: bigint, logger: Logger): Promise<void>;
|
|
6
|
-
//# sourceMappingURL=token_utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token_utils.d.ts","sourceRoot":"","sources":["../../src/fixtures/token_utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,wBAAsB,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,0BAcjG;AAED,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,MAAM,iBAKf;AAGD,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,YAAY,EACnB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,iBAOf"}
|
package/dest/fixtures/utils.d.ts
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
import { type InitialAccountData } from '@aztec/accounts/testing';
|
|
4
|
-
import { type AztecNodeConfig } from '@aztec/aztec-node';
|
|
5
|
-
import { type AccountWalletWithSecretKey, AnvilTestWatcher, type AztecAddress, type AztecNode, CheatCodes, type ContractMethod, type DeployL1ContractsReturnType, type Logger, type PXE, type Wallet } from '@aztec/aztec.js';
|
|
6
|
-
import type { BBNativePrivateKernelProver } from '@aztec/bb-prover';
|
|
7
|
-
import { type BlobSinkServer } from '@aztec/blob-sink/server';
|
|
8
|
-
import { type DeployL1ContractsArgs, ForwarderContract } from '@aztec/ethereum';
|
|
9
|
-
import { startAnvil } from '@aztec/ethereum/test';
|
|
10
|
-
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
11
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
12
|
-
import { TestDateProvider } from '@aztec/foundation/timer';
|
|
13
|
-
import { type ProverNode } from '@aztec/prover-node';
|
|
14
|
-
import { type PXEService, type PXEServiceConfig } from '@aztec/pxe';
|
|
15
|
-
import type { SequencerClient } from '@aztec/sequencer-client';
|
|
16
|
-
import type { PublicDataTreeLeaf } from '@aztec/stdlib/trees';
|
|
17
|
-
import { type TelemetryClient, type TelemetryClientConfig } from '@aztec/telemetry-client';
|
|
18
|
-
import { type Chain, type HDAccount, type Hex, type PrivateKeyAccount } from 'viem';
|
|
19
|
-
export { deployAndInitializeTokenAndBridgeContracts } from '../shared/cross_chain_test_harness.js';
|
|
20
|
-
export { startAnvil };
|
|
21
|
-
export declare const getPrivateKeyFromIndex: (index: number) => Buffer | null;
|
|
22
|
-
export declare const setupL1Contracts: (l1RpcUrls: string[], account: HDAccount | PrivateKeyAccount, logger: Logger, args?: Partial<DeployL1ContractsArgs>, chain?: Chain) => Promise<DeployL1ContractsReturnType>;
|
|
23
|
-
/**
|
|
24
|
-
* Sets up Private eXecution Environment (PXE).
|
|
25
|
-
* @param aztecNode - An instance of Aztec Node.
|
|
26
|
-
* @param opts - Partial configuration for the PXE service.
|
|
27
|
-
* @param firstPrivKey - The private key of the first account to be created.
|
|
28
|
-
* @param logger - The logger to be used.
|
|
29
|
-
* @param useLogSuffix - Whether to add a randomly generated suffix to the PXE debug logs.
|
|
30
|
-
* @param proofCreator - An optional proof creator to use
|
|
31
|
-
* @returns Private eXecution Environment (PXE), accounts, wallets and logger.
|
|
32
|
-
*/
|
|
33
|
-
export declare function setupPXEService(aztecNode: AztecNode, opts?: Partial<PXEServiceConfig>, logger?: Logger, useLogSuffix?: boolean, proofCreator?: BBNativePrivateKernelProver): Promise<{
|
|
34
|
-
/**
|
|
35
|
-
* The PXE instance.
|
|
36
|
-
*/
|
|
37
|
-
pxe: PXEService;
|
|
38
|
-
/**
|
|
39
|
-
* Logger instance named as the current test.
|
|
40
|
-
*/
|
|
41
|
-
logger: Logger;
|
|
42
|
-
/**
|
|
43
|
-
* Teardown function
|
|
44
|
-
*/
|
|
45
|
-
teardown: () => Promise<void>;
|
|
46
|
-
}>;
|
|
47
|
-
/** Options for the e2e tests setup */
|
|
48
|
-
export type SetupOptions = {
|
|
49
|
-
/** State load */
|
|
50
|
-
stateLoad?: string;
|
|
51
|
-
/** Whether to enable metrics collection, if undefined, metrics collection is disabled */
|
|
52
|
-
metricsPort?: number | undefined;
|
|
53
|
-
/** Previously deployed contracts on L1 */
|
|
54
|
-
deployL1ContractsValues?: DeployL1ContractsReturnType;
|
|
55
|
-
/** Whether to skip deployment of protocol contracts (auth registry, etc) */
|
|
56
|
-
skipProtocolContracts?: boolean;
|
|
57
|
-
/** Initial fee juice for default accounts */
|
|
58
|
-
initialAccountFeeJuice?: Fr;
|
|
59
|
-
/** Number of initial accounts funded with fee juice */
|
|
60
|
-
numberOfInitialFundedAccounts?: number;
|
|
61
|
-
/** Data of the initial funded accounts */
|
|
62
|
-
initialFundedAccounts?: InitialAccountData[];
|
|
63
|
-
/** Salt to use in L1 contract deployment */
|
|
64
|
-
salt?: number;
|
|
65
|
-
/** An initial set of validators */
|
|
66
|
-
initialValidators?: EthAddress[];
|
|
67
|
-
/** Anvil Start time */
|
|
68
|
-
l1StartTime?: number;
|
|
69
|
-
/** The anvil time where we should at the earliest be seeing L2 blocks */
|
|
70
|
-
l2StartTime?: number;
|
|
71
|
-
/** Whether to start a prover node */
|
|
72
|
-
startProverNode?: boolean;
|
|
73
|
-
/** Whether to fund the rewardDistributor */
|
|
74
|
-
fundRewardDistributor?: boolean;
|
|
75
|
-
/** Manual config for the telemetry client */
|
|
76
|
-
telemetryConfig?: Partial<TelemetryClientConfig> & {
|
|
77
|
-
benchmark?: boolean;
|
|
78
|
-
};
|
|
79
|
-
/** Public data that will be inserted in the tree in genesis */
|
|
80
|
-
genesisPublicData?: PublicDataTreeLeaf[];
|
|
81
|
-
} & Partial<AztecNodeConfig>;
|
|
82
|
-
/** Context for an end-to-end test as returned by the `setup` function */
|
|
83
|
-
export type EndToEndContext = {
|
|
84
|
-
/** The Aztec Node service or client a connected to it. */
|
|
85
|
-
aztecNode: AztecNode;
|
|
86
|
-
/** The prover node service (only set if startProverNode is true) */
|
|
87
|
-
proverNode: ProverNode | undefined;
|
|
88
|
-
/** A client to the sequencer service (undefined if connected to remote environment) */
|
|
89
|
-
sequencer: SequencerClient | undefined;
|
|
90
|
-
/** The Private eXecution Environment (PXE). */
|
|
91
|
-
pxe: PXE;
|
|
92
|
-
/** Return values from deployL1Contracts function. */
|
|
93
|
-
deployL1ContractsValues: DeployL1ContractsReturnType;
|
|
94
|
-
/** The Aztec Node configuration. */
|
|
95
|
-
config: AztecNodeConfig;
|
|
96
|
-
/** The data for the initial funded accounts. */
|
|
97
|
-
initialFundedAccounts: InitialAccountData[];
|
|
98
|
-
/** The first wallet to be used. */
|
|
99
|
-
wallet: AccountWalletWithSecretKey;
|
|
100
|
-
/** The wallets to be used. */
|
|
101
|
-
wallets: AccountWalletWithSecretKey[];
|
|
102
|
-
/** Logger instance named as the current test. */
|
|
103
|
-
logger: Logger;
|
|
104
|
-
/** The cheat codes. */
|
|
105
|
-
cheatCodes: CheatCodes;
|
|
106
|
-
/** The anvil test watcher (undefined if connected to remote environment) */
|
|
107
|
-
watcher: AnvilTestWatcher | undefined;
|
|
108
|
-
/** Allows tweaking current system time, used by the epoch cache only (undefined if connected to remote environment) */
|
|
109
|
-
dateProvider: TestDateProvider | undefined;
|
|
110
|
-
/** The blob sink (undefined if connected to remote environment) */
|
|
111
|
-
blobSink: BlobSinkServer | undefined;
|
|
112
|
-
/** Telemetry client */
|
|
113
|
-
telemetryClient: TelemetryClient | undefined;
|
|
114
|
-
/** Function to stop the started services. */
|
|
115
|
-
teardown: () => Promise<void>;
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* Sets up the environment for the end-to-end tests.
|
|
119
|
-
* @param numberOfAccounts - The number of new accounts to be created once the PXE is initiated.
|
|
120
|
-
* @param opts - Options to pass to the node initialization and to the setup script.
|
|
121
|
-
* @param pxeOpts - Options to pass to the PXE initialization.
|
|
122
|
-
*/
|
|
123
|
-
export declare function setup(numberOfAccounts?: number, opts?: SetupOptions, pxeOpts?: Partial<PXEServiceConfig>, chain?: Chain): Promise<EndToEndContext>;
|
|
124
|
-
/**
|
|
125
|
-
* Registers the contract class used for test accounts and publicly deploys the instances requested.
|
|
126
|
-
* Use this when you need to make a public call to an account contract, such as for requesting a public authwit.
|
|
127
|
-
* @param sender - Wallet to send the deployment tx.
|
|
128
|
-
* @param accountsToDeploy - Which accounts to publicly deploy.
|
|
129
|
-
*/
|
|
130
|
-
export declare function ensureAccountsPubliclyDeployed(sender: Wallet, accountsToDeploy: Wallet[]): Promise<void>;
|
|
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>;
|
|
137
|
-
/**
|
|
138
|
-
* Returns a logger instance for the current test.
|
|
139
|
-
* @returns a logger instance for the current test.
|
|
140
|
-
*/
|
|
141
|
-
export declare function getLogger(): Logger;
|
|
142
|
-
export type BalancesFn = ReturnType<typeof getBalancesFn>;
|
|
143
|
-
export declare function getBalancesFn(symbol: string, method: ContractMethod, logger: any): (...addresses: (AztecAddress | {
|
|
144
|
-
address: AztecAddress;
|
|
145
|
-
})[]) => Promise<bigint[]>;
|
|
146
|
-
export declare function expectMapping<K, V>(fn: (...k: K[]) => Promise<V[]>, inputs: K[], expectedOutputs: V[]): Promise<void>;
|
|
147
|
-
export declare function expectMappingDelta<K, V extends number | bigint>(initialValues: V[], fn: (...k: K[]) => Promise<V[]>, inputs: K[], expectedDiffs: V[]): Promise<void>;
|
|
148
|
-
/**
|
|
149
|
-
* Deploy the protocol contracts to a running instance.
|
|
150
|
-
*/
|
|
151
|
-
export declare function setupCanonicalFeeJuice(pxe: PXE): Promise<void>;
|
|
152
|
-
export declare function waitForProvenChain(node: AztecNode, targetBlock?: number, timeoutSec?: number, intervalSec?: number): Promise<void>;
|
|
153
|
-
export declare function createAndSyncProverNode(proverNodePrivateKey: `0x${string}`, aztecNodeConfig: AztecNodeConfig, aztecNode: AztecNode, dataDirectory: string, prefilledPublicData?: PublicDataTreeLeaf[]): Promise<ProverNode>;
|
|
154
|
-
export declare function createForwarderContract(aztecNodeConfig: AztecNodeConfig, privateKey: `0x${string}`, rollupAddress: Hex): Promise<ForwarderContract>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C,EAAE,EAClB,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,EAC/B,MAAM,EAAE,CAAC,EAAE,EACX,aAAa,EAAE,CAAC,EAAE,GACjB,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,GAAG,iBAgBpD;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,UAAU,SAAK,EAAE,WAAW,SAAI,iBAS/G;AAED,wBAAsB,uBAAuB,CAC3C,oBAAoB,EAAE,KAAK,MAAM,EAAE,EACnC,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,MAAM,EACrB,mBAAmB,GAAE,kBAAkB,EAAO,uBA+C/C;AAWD,wBAAsB,uBAAuB,CAC3C,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,KAAK,MAAM,EAAE,EACzB,aAAa,EAAE,GAAG,8BAWnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"with_telemetry_utils.d.ts","sourceRoot":"","sources":["../../src/fixtures/with_telemetry_utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,eAAe,EAIrB,MAAM,yBAAyB,CAAC;AAGjC,wBAAgB,8BAA8B,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,eAAe,CAMpF"}
|
package/dest/index.d.ts
DELETED
package/dest/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { Logger } from '@aztec/aztec.js';
|
|
2
|
-
export interface AlertConfig {
|
|
3
|
-
alert: string;
|
|
4
|
-
expr: string;
|
|
5
|
-
start?: number;
|
|
6
|
-
end?: number;
|
|
7
|
-
step?: number;
|
|
8
|
-
for: string;
|
|
9
|
-
labels: Record<string, string>;
|
|
10
|
-
annotations: Record<string, string>;
|
|
11
|
-
}
|
|
12
|
-
export interface AlertCheckerConfig {
|
|
13
|
-
grafanaEndpoint: string;
|
|
14
|
-
grafanaCredentials: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class AlertChecker {
|
|
17
|
-
private config;
|
|
18
|
-
private logger;
|
|
19
|
-
constructor(logger: Logger, config?: Partial<AlertCheckerConfig>);
|
|
20
|
-
/**
|
|
21
|
-
* Load the alerts config from a file path.
|
|
22
|
-
* @param filePath - The absolute path to the alerts file.
|
|
23
|
-
*/
|
|
24
|
-
private loadAlertsConfig;
|
|
25
|
-
private queryGrafana;
|
|
26
|
-
private checkAlerts;
|
|
27
|
-
/**
|
|
28
|
-
* Run the alert check based on the alerts defined in an array.
|
|
29
|
-
* @param alerts - The alerts to check.
|
|
30
|
-
*/
|
|
31
|
-
runAlertCheck(alerts: AlertConfig[]): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Run the alert check based on the alerts defined in a yaml file.
|
|
34
|
-
* @param filePath - The absolute path to the alerts file.
|
|
35
|
-
*/
|
|
36
|
-
runAlertCheckFromFilePath(filePath: string): Promise<void>;
|
|
37
|
-
}
|
|
38
|
-
export declare class AlertTriggeredError extends Error {
|
|
39
|
-
name: string;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=alert_checker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert_checker.d.ts","sourceRoot":"","sources":["../../src/quality_of_service/alert_checker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAK9C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAQD,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,MAAM,CAAS;gBAEX,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,kBAAkB,CAAM;IAKpE;;;OAGG;IACH,OAAO,CAAC,gBAAgB;YAMV,YAAY;YAqCZ,WAAW;IAqBzB;;;OAGG;IACU,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAUhE;;;OAGG;IACU,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAIxE;AAED,qBAAa,mBAAoB,SAAQ,KAAK;IACnC,IAAI,SAAyB;CACvC"}
|