UNPKG

@q-dev/q-ts-gdk-sdk

Version:

Typescript Library to interact with GDK Contracts

37 lines (36 loc) 1.65 kB
/// <reference types="node" /> import type BN from "bn.js"; import type { ContractOptions } from "web3-eth-contract"; import type { EventLog } from "web3-core"; import type { EventEmitter } from "events"; import type { Callback, NonPayableTransactionObject, BlockType, BaseContract } from "./types"; export interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export interface TimeLocksMock extends BaseContract { constructor(jsonInterface: any[], address?: string, options?: ContractOptions): TimeLocksMock; clone(): TimeLocksMock; methods: { add(value_: number | string | BN, priority_: number | string | BN): NonPayableTransactionObject<void>; elements(): NonPayableTransactionObject<{ 0: string[]; 1: string[]; }>; isAbleToWithdraw(userBalance_: number | string | BN, amount_: number | string | BN): NonPayableTransactionObject<void>; isAbleToWithdrawView(userBalance_: number | string | BN, amount_: number | string | BN): NonPayableTransactionObject<boolean>; length(): NonPayableTransactionObject<string>; lock(amount_: number | string | BN, timeToLock_: number | string | BN): NonPayableTransactionObject<void>; purgeTimeLocks(): NonPayableTransactionObject<void>; removeTop(): NonPayableTransactionObject<void>; top(): NonPayableTransactionObject<{ 0: string; 1: string; }>; topValue(): NonPayableTransactionObject<string>; }; events: { allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; }