/* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ import BN from "bn.js"; import { EventLog } from "web3-core/types"; 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: "connected", listener: (subscriptionId: string) => void): this; 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; export interface Tx { nonce?: string | number; chainId?: string | number; from?: string; to?: string; data?: string; value?: string | number; gas?: string | number; gasPrice?: string | number; } export interface TransactionObject { arguments: any[]; call(tx?: Tx): Promise; send(tx?: Tx): PromiEvent; estimateGas(tx?: Tx): Promise; encodeABI(): string; } export type BlockType = "latest" | "pending" | "genesis" | number;