@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
51 lines (43 loc) • 1.3 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 type Recieved = ContractEventLog<{
value: string;
0: string;
}>;
export interface GreedyReceiverMock extends BaseContract {
constructor(
jsonInterface: any[],
address?: string,
options?: ContractOptions
): GreedyReceiverMock;
clone(): GreedyReceiverMock;
methods: {
changeMode(setingValue: boolean): NonPayableTransactionObject<void>;
doWithdraw(_withdrawble: string): NonPayableTransactionObject<void>;
};
events: {
Recieved(cb?: Callback<Recieved>): EventEmitter;
Recieved(options?: EventOptions, cb?: Callback<Recieved>): EventEmitter;
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
once(event: "Recieved", cb: Callback<Recieved>): void;
once(event: "Recieved", options: EventOptions, cb: Callback<Recieved>): void;
}