@q-dev/q-ts-gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
74 lines (61 loc) • 1.77 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
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,
PayableTransactionObject,
NonPayableTransactionObject,
BlockType,
ContractEventLog,
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;
};
}