import { StartedNativeChainContainer } from './NativeChainContainer'; import { MasterNodeRegTestContainer } from '../index'; export declare class NativeChainWaitFor { private readonly sncc; constructor(sncc: StartedNativeChainContainer | MasterNodeRegTestContainer); /** * @param {number} nblocks to generate * @param {number} timeout * @param {string} address */ generate(nblocks: number, timeout?: number, address?: string | undefined): Promise; /** * Wait for block height by minting towards the target * * @param {number} height to wait for * @param {number} [timeout=590000] in ms */ blockHeight(height: number, timeout?: number): Promise; /** * Wait for master node wallet coin to be mature for spending. * * A coinbase transaction must be 100 blocks deep before you can spend its outputs. This is a * safeguard to prevent outputs that originate from the coinbase transaction from becoming * un-spendable (in the event the mined block moves out of the active chain due to a fork). * * @param {number} [timeout=180000] in ms * @param {boolean} [mockTime=true] to generate blocks faster */ walletCoinbaseMaturity(timeout?: number, mockTime?: boolean): Promise; /** * Wait for in wallet balance to be greater than an amount. * This allow test that require fund to wait for fund to be filled up before running the tests. * This method will trigger block generate to get to the required balance faster. * Set `timeout` to higher accordingly when large balance required. * * @param {number} balance to wait for in wallet to be greater than or equal * @param {number} [timeout=300000] in ms * @see waitForWalletCoinbaseMaturity */ walletBalanceGTE(balance: number, timeout?: number): Promise; /** * Wait for anchor teams * * @param {number} nodesLength * @param {number} [timeout=30000] in ms * @return {Promise} */ anchorTeams(nodesLength: number, timeout?: number): Promise; /** * Wait for anchor auths * * @param {number} nodesLength * @param {number} [timeout=30000] in ms * @return {Promise} */ anchorAuths(nodesLength: number, timeout?: number): Promise; /** * Wait for anchor reward confirms * * @param {number} [timeout=30000] in ms * @return {Promise} */ anchorRewardConfirms(timeout?: number): Promise; /** * Wait for price become valid * * @param {string} fixedIntervalPriceId * @param {number} [timeout=30000] in ms * @return {Promise} */ priceValid(fixedIntervalPriceId: string, timeout?: number): Promise; /** * Wait for price become invalid * * @param {string} fixedIntervalPriceId * @param {number} [timeout=30000] in ms * @return {Promise} */ priceInvalid(fixedIntervalPriceId: string, timeout?: number): Promise; /** * Wait for valut state * * @param {string} vaultId * @param {string} state * @param {number} [timeout=30000] in ms * @return {Promise} */ vaultState(vaultId: string, state: string, timeout?: number): Promise; /** * Wait for active price * * @param {string} fixedIntervalPriceId * @param {string} activePrice * @param {number} [timeout=30000] in ms * @return {Promise} */ activePrice(fixedIntervalPriceId: string, activePrice: string, timeout?: number): Promise; /** * Wait for next price * * @param {string} fixedIntervalPriceId * @param {string} nextPrice * @param {number} [timeout=30000] in ms * @return {Promise} */ nextPrice(fixedIntervalPriceId: string, nextPrice: string, timeout?: number): Promise; } //# sourceMappingURL=NativeChainWaitFor.d.ts.map