import { TestingFixture } from './fixture'; import { TestingToken } from './token'; import { TestingPoolPair } from './poolpair'; import { TestingRawTx } from './rawtx'; import { TestingICX } from './icxorderbook'; import { TestingMisc } from './misc'; import { TestingGroupAnchor } from './anchor'; import { ContainerGroup, MasterNodeRegTestContainer, StartOptions } from '@defichain/testcontainers'; import { JsonRpcClient } from '@defichain/jellyfish-api-jsonrpc'; export declare class Testing { readonly container: MasterNodeRegTestContainer; readonly rpc: TestingJsonRpcClient; readonly fixture: TestingFixture; readonly token: TestingToken; readonly poolpair: TestingPoolPair; readonly rawtx: TestingRawTx; readonly icxorderbook: TestingICX; readonly misc: TestingMisc; private readonly addresses; private constructor(); generate(n: number): Promise; address(key: number | string): Promise; generateAddress(): Promise; generateAddress(n: 1): Promise; generateAddress(n: number): Promise; static create(container: MasterNodeRegTestContainer): Testing; } export declare class TestingGroup { readonly group: ContainerGroup; readonly testings: Testing[]; readonly anchor: TestingGroupAnchor; private constructor(); /** * @param {number} n of testing container to create * @param {(index: number) => MasterNodeRegTestContainer} [init=MasterNodeRegTestContainer] */ static create(n: number, init?: (index: number) => MasterNodeRegTestContainer): TestingGroup; get(index: number): Testing; length(): number; add(container: MasterNodeRegTestContainer): Promise; start(opts?: StartOptions): Promise; stop(): Promise; link(): Promise; exec(runner: (testing: Testing) => Promise): Promise; waitForSync(): Promise; waitForMempoolSync(txid: string, timeout?: number): Promise; } /** * JsonRpcClient with dynamic url resolved from MasterNodeRegTestContainer. */ declare class TestingJsonRpcClient extends JsonRpcClient { readonly container: MasterNodeRegTestContainer; constructor(container: MasterNodeRegTestContainer); protected fetch(body: string, controller: any): Promise; } export {}; //# sourceMappingURL=testing.d.ts.map