UNPKG

qos-qweb

Version:
24 lines (23 loc) 1.03 kB
import Qweb from './Qweb'; import { IApproveTx, IDelegatorTx, IKeyPair, IQSC, IUnbondDelegatorTx, IUserTx } from './types/common'; declare class Account { readonly qweb: Qweb; qos: number; qscs: IQSC[]; mnemonic: string; keypair: IKeyPair; address: string; pubKey: string; privateKey: string; constructor(controller: Qweb, keyPair?: IKeyPair, mnemonic?: string); getAccount(): Promise<any>; sendTx(tx: IUserTx | IUserTx[], maxGas?: number): Promise<any>; sendDelegatorTx(tx: IDelegatorTx, maxGas?: number): Promise<any>; sendUnbondDelegatorTx(tx: IUnbondDelegatorTx, maxGas?: number): Promise<any>; sendApproveTx(tx: IApproveTx, maxGas?: number): Promise<any>; setApproveTx(tx: IApproveTx, nonce: number, maxGas: number): Promise<unknown>; setDelegatorTx(tx: IDelegatorTx, nonce: number, maxGas: number): Promise<unknown>; setUnbondDelegatorTx(tx: IUnbondDelegatorTx, nonce: number, maxGas: number): Promise<unknown>; private setTx; } export default Account;