@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
55 lines (45 loc) • 1.32 kB
TypeScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import BN from "bn.js";
import { ContractOptions } from "web3-eth-contract";
import { EventLog } from "web3-core";
import { EventEmitter } from "events";
import {
Callback,
PayableTransactionObject,
NonPayableTransactionObject,
BlockType,
ContractEventLog,
BaseContract,
} from "./types";
interface EventOptions {
filter?: object;
fromBlock?: BlockType;
topics?: string[];
}
export interface SystemReserve extends BaseContract {
constructor(
jsonInterface: any[],
address?: string,
options?: ContractOptions
): SystemReserve;
clone(): SystemReserve;
methods: {
availableAmount(): NonPayableTransactionObject<string>;
coolDownPhase(): NonPayableTransactionObject<string>;
systemPaused(): NonPayableTransactionObject<boolean>;
initialize(
_registry: string,
_keys: string[]
): NonPayableTransactionObject<void>;
setPauseState(_state: boolean): NonPayableTransactionObject<void>;
withdraw(
_amount: number | string | BN
): NonPayableTransactionObject<boolean>;
getEligibleContractKeys(): NonPayableTransactionObject<string[]>;
};
events: {
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
}