UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

38 lines (37 loc) 1.79 kB
import type { ContractTransaction } from 'ethers'; import { SystemReserve } from '../../ethers-contracts/SystemReserve'; import { SystemContractInstance } from '../SystemContractInstance'; import { QNonPayableTx, SignerOrProvider } from '../../types'; /** * System reserve instance to interact with System reserve contract. * See [onchain documentation](@system-contracts-repo/@network/SystemReserve/) for more details. * An instance of this class for a deployed network can be obtained via {@link ContractRegistryInstance.systemReserve} */ export declare class SystemReserveInstance extends SystemContractInstance<SystemReserve> { static readonly registryKey = "tokeneconomics.systemReserve"; constructor(signerOrProvider: SignerOrProvider, address: string); /** * [External documentation](@system-contracts-repo/@network/SystemReserve/#cooldownphase) */ coolDownPhase(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/SystemReserve/#systempaused) */ systemPaused(): Promise<boolean>; /** * [External documentation](@system-contracts-repo/@network/SystemReserve/#availableamount) */ availableAmount(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/SystemReserve/#setpausestate) */ setPauseState(state: boolean, txOptions?: QNonPayableTx): Promise<ContractTransaction>; /** * [External documentation](@system-contracts-repo/@network/SystemReserve/#withdraw) */ withdraw(amount: string | number, txOptions?: QNonPayableTx): Promise<ContractTransaction>; /** * [External documentation](@system-contracts-repo/@network/SystemReserve/#geteligiblecontractkeys) */ getEligibleContractKeys(): Promise<string[]>; }