/* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ import { EventLog } from "web3/types"; import { TransactionObject, BlockType } from "web3/eth/types"; import BN from "bn.js"; import { EventEmitter } from "events"; // @ts-ignore import PromiEvent from "web3/promiEvent"; interface EstimateGasOptions { from?: string; gas?: number; value?: number | string | BN; } interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export type Callback = (error: Error, result: T) => void; export interface TransactionObject { arguments: any[]; call(options?: EstimateGasOptions): Promise; send(options?: EstimateGasOptions): PromiEvent; estimateGas(options?: EstimateGasOptions): Promise; encodeABI(): string; } export interface ContractEventLog extends EventLog { returnValues: T; } export interface ContractEventEmitter extends EventEmitter { on( event: "data" | "changed", listener: (event: ContractEventLog) => void ): this; on(event: "error", listener: (error: Error) => void): this; } export type ContractEvent = ( options?: EventOptions, cb?: Callback> ) => ContractEventEmitter;