/* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ import Contract, { CustomOptions, contractOptions } from "web3/eth/contract"; import { TransactionObject, BlockType } from "web3/eth/types"; import { Callback, EventLog } from "web3/types"; import { EventEmitter } from "events"; import { Provider } from "web3/providers"; export class IErc20 { constructor(jsonInterface: any[], address?: string, options?: CustomOptions); _address: string; options: contractOptions; methods: { balanceOf(who: string): TransactionObject; allowance(owner: string, spender: string): TransactionObject; transfer(to: string, value: number | string): TransactionObject; transferFrom( from: string, to: string, value: number | string ): TransactionObject; approve(spender: string, value: number | string): TransactionObject; totalSupply(): TransactionObject; name(): TransactionObject; symbol(): TransactionObject; decimals(): TransactionObject; }; deploy(options: { data: string; arguments: any[]; }): TransactionObject; events: { Transfer( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback ): EventEmitter; Approval( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback ): EventEmitter; allEvents: ( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback ) => EventEmitter; }; getPastEvents( event: string, options?: { filter?: object; fromBlock?: BlockType; toBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback ): Promise; setProvider(provider: Provider): void; clone(): IErc20; }