UNPKG

@muirglacier/testcontainers

Version:

A collection of TypeScript + JavaScript tools and libraries for DeFi Blockchain developers to build decentralized finance for Bitcoin

29 lines 1.33 kB
import { MasterNodeRegTestContainer } from './Masternode'; import { StartOptions } from '../DeFiDContainer'; /** * PersistentMNRegTestContainer container is a RegTest container with MasterNode minting preconfigured. * The container configuration is persistent and can be used consistently. * If you do not stop the container, the same container can be used for all tests. * However, you must be cognizant of race conditions. * * This container should not be used for finished work, it merely a dev tool to speed up test-driven development. * Once you are done with your dev work, you should swap this out for MasterNodeRegTestContainer. */ export declare class PersistentMNRegTestContainer extends MasterNodeRegTestContainer { /** * Init the required container instances for start/stop operation */ init(): Promise<void>; /** * This will only start a persistent container if it's not yet already started. * @param {StartOptions} [startOptions={}] to start the container with * @see {generateName()} for the name of container */ start(startOptions?: StartOptions): Promise<void>; /** * @return {string} name of persistent container that is always consistent. */ generateName(): string; stop(): Promise<void>; } //# sourceMappingURL=Persistent.d.ts.map