/* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ import { ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction } from "ethers"; import { Contract, ContractTransaction, Overrides, CallOverrides } from "@ethersproject/contracts"; import { BytesLike } from "@ethersproject/bytes"; import { Listener, Provider } from "@ethersproject/providers"; import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; interface Ierc20Interface extends ethers.utils.Interface { functions: { "allowance(address,address)": FunctionFragment; "approve(address,uint256)": FunctionFragment; "balanceOf(address)": FunctionFragment; "totalSupply()": FunctionFragment; "transfer(address,uint256)": FunctionFragment; "transferFrom(address,address,uint256)": FunctionFragment; }; encodeFunctionData( functionFragment: "allowance", values: [string, string] ): string; encodeFunctionData( functionFragment: "approve", values: [string, BigNumberish] ): string; encodeFunctionData(functionFragment: "balanceOf", values: [string]): string; encodeFunctionData( functionFragment: "totalSupply", values?: undefined ): string; encodeFunctionData( functionFragment: "transfer", values: [string, BigNumberish] ): string; encodeFunctionData( functionFragment: "transferFrom", values: [string, string, BigNumberish] ): string; decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalSupply", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferFrom", data: BytesLike ): Result; events: { "Approval(address,address,uint256)": EventFragment; "Transfer(address,address,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; } export class Ierc20 extends Contract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; on(event: EventFilter | string, listener: Listener): this; once(event: EventFilter | string, listener: Listener): this; addListener(eventName: EventFilter | string, listener: Listener): this; removeAllListeners(eventName: EventFilter | string): this; removeListener(eventName: any, listener: Listener): this; interface: Ierc20Interface; functions: { allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise<{ 0: BigNumber; }>; "allowance(address,address)"( owner: string, spender: string, overrides?: CallOverrides ): Promise<{ 0: BigNumber; }>; approve( spender: string, amount: BigNumberish, overrides?: Overrides ): Promise; "approve(address,uint256)"( spender: string, amount: BigNumberish, overrides?: Overrides ): Promise; balanceOf( account: string, overrides?: CallOverrides ): Promise<{ 0: BigNumber; }>; "balanceOf(address)"( account: string, overrides?: CallOverrides ): Promise<{ 0: BigNumber; }>; totalSupply( overrides?: CallOverrides ): Promise<{ 0: BigNumber; }>; "totalSupply()"( overrides?: CallOverrides ): Promise<{ 0: BigNumber; }>; transfer( recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; "transfer(address,uint256)"( recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; "transferFrom(address,address,uint256)"( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; }; allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise; "allowance(address,address)"( owner: string, spender: string, overrides?: CallOverrides ): Promise; approve( spender: string, amount: BigNumberish, overrides?: Overrides ): Promise; "approve(address,uint256)"( spender: string, amount: BigNumberish, overrides?: Overrides ): Promise; balanceOf(account: string, overrides?: CallOverrides): Promise; "balanceOf(address)"( account: string, overrides?: CallOverrides ): Promise; totalSupply(overrides?: CallOverrides): Promise; "totalSupply()"(overrides?: CallOverrides): Promise; transfer( recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; "transfer(address,uint256)"( recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; "transferFrom(address,address,uint256)"( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; callStatic: { allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise; "allowance(address,address)"( owner: string, spender: string, overrides?: CallOverrides ): Promise; approve( spender: string, amount: BigNumberish, overrides?: CallOverrides ): Promise; "approve(address,uint256)"( spender: string, amount: BigNumberish, overrides?: CallOverrides ): Promise; balanceOf(account: string, overrides?: CallOverrides): Promise; "balanceOf(address)"( account: string, overrides?: CallOverrides ): Promise; totalSupply(overrides?: CallOverrides): Promise; "totalSupply()"(overrides?: CallOverrides): Promise; transfer( recipient: string, amount: BigNumberish, overrides?: CallOverrides ): Promise; "transfer(address,uint256)"( recipient: string, amount: BigNumberish, overrides?: CallOverrides ): Promise; transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: CallOverrides ): Promise; "transferFrom(address,address,uint256)"( sender: string, recipient: string, amount: BigNumberish, overrides?: CallOverrides ): Promise; }; filters: { Approval( owner: string | null, spender: string | null, value: null ): EventFilter; Transfer(from: string | null, to: string | null, value: null): EventFilter; }; estimateGas: { allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise; "allowance(address,address)"( owner: string, spender: string, overrides?: CallOverrides ): Promise; approve( spender: string, amount: BigNumberish, overrides?: Overrides ): Promise; "approve(address,uint256)"( spender: string, amount: BigNumberish, overrides?: Overrides ): Promise; balanceOf(account: string, overrides?: CallOverrides): Promise; "balanceOf(address)"( account: string, overrides?: CallOverrides ): Promise; totalSupply(overrides?: CallOverrides): Promise; "totalSupply()"(overrides?: CallOverrides): Promise; transfer( recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; "transfer(address,uint256)"( recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; "transferFrom(address,address,uint256)"( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; }; populateTransaction: { allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise; "allowance(address,address)"( owner: string, spender: string, overrides?: CallOverrides ): Promise; approve( spender: string, amount: BigNumberish, overrides?: Overrides ): Promise; "approve(address,uint256)"( spender: string, amount: BigNumberish, overrides?: Overrides ): Promise; balanceOf( account: string, overrides?: CallOverrides ): Promise; "balanceOf(address)"( account: string, overrides?: CallOverrides ): Promise; totalSupply(overrides?: CallOverrides): Promise; "totalSupply()"(overrides?: CallOverrides): Promise; transfer( recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; "transfer(address,uint256)"( recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; "transferFrom(address,address,uint256)"( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides ): Promise; }; }