import { TypedEventFilter , TypedEvent , TypedListener , OnEvent } from "./common" ; import { FunctionFragment , Result , EventFragment } from "@ethersproject/abi" ; import { Listener , Provider } from "@ethersproject/providers" ; import { BaseContract , BigNumber , BigNumberish , BytesLike , CallOverrides , ContractTransaction , Overrides , PopulatedTransaction , Signer , utils , } from "ethers" ; export interface ERC20Interface extends utils . Interface { functions : { "allowance(address,address)" : FunctionFragment ; "approve(address,uint256)" : FunctionFragment ; "balanceOf(address)" : FunctionFragment ; "decimals()" : FunctionFragment ; "decreaseAllowance(address,uint256)" : FunctionFragment ; "increaseAllowance(address,uint256)" : FunctionFragment ; "name()" : FunctionFragment ; "symbol()" : FunctionFragment ; "totalSupply()" : FunctionFragment ; "transfer(address,uint256)" : FunctionFragment ; "transferFrom(address,address,uint256)" : FunctionFragment ; } ; encodeFunctionData ( functionFragment , values ) : string ; encodeFunctionData ( functionFragment , values ) : string ; encodeFunctionData ( functionFragment , values ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; encodeFunctionData ( functionFragment , values ) : string ; encodeFunctionData ( functionFragment , values ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; encodeFunctionData ( functionFragment , values ) : string ; encodeFunctionData ( functionFragment , values ) : string ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; events : { "Approval(address,address,uint256)" : EventFragment ; "Transfer(address,address,uint256)" : EventFragment ; } ; getEvent ( nameOrSignatureOrTopic ) : EventFragment ; getEvent ( nameOrSignatureOrTopic ) : EventFragment ; } export type ApprovalEvent = TypedEvent < [ string , string , BigNumber ] , { owner : string ; spender : string ; value : BigNumber ; } > ; export type ApprovalEventFilter = TypedEventFilter < ApprovalEvent > ; export type TransferEvent = TypedEvent < [ string , string , BigNumber ] , { from : string ; to : string ; value : BigNumber ; } > ; export type TransferEventFilter = TypedEventFilter < TransferEvent > ; export interface ERC20 extends BaseContract { connect ( signerOrProvider ) : this ; attach ( addressOrName ) : this ; deployed ( ) : Promise < this > ; interface : ERC20Interface ; queryFilter < TEvent extends TypedEvent > ( event , fromBlockOrBlockhash ? , toBlock ? ) : Promise < Array < TEvent > > ; listeners < TEvent extends TypedEvent > ( eventFilter ? ) : Array < TypedListener < TEvent > > ; listeners ( eventName ? ) : Array < Listener > ; removeAllListeners < TEvent extends TypedEvent > ( eventFilter ) : this ; removeAllListeners ( eventName ? ) : this ; off : OnEvent < this > ; on : OnEvent < this > ; once : OnEvent < this > ; removeListener : OnEvent < this > ; functions : { allowance ( owner , spender , overrides ? ) : Promise < [ BigNumber ] > ; approve ( spender , amount , overrides ? ) : Promise < ContractTransaction > ; balanceOf ( account , overrides ? ) : Promise < [ BigNumber ] > ; decimals ( overrides ? ) : Promise < [ number ] > ; decreaseAllowance ( spender , subtractedValue , overrides ? ) : Promise < ContractTransaction > ; increaseAllowance ( spender , addedValue , overrides ? ) : Promise < ContractTransaction > ; name ( overrides ? ) : Promise < [ string ] > ; symbol ( overrides ? ) : Promise < [ string ] > ; totalSupply ( overrides ? ) : Promise < [ BigNumber ] > ; transfer ( recipient , amount , overrides ? ) : Promise < ContractTransaction > ; transferFrom ( sender , recipient , amount , overrides ? ) : Promise < ContractTransaction > ; } ; allowance ( owner , spender , overrides ? ) : Promise < BigNumber > ; approve ( spender , amount , overrides ? ) : Promise < ContractTransaction > ; balanceOf ( account , overrides ? ) : Promise < BigNumber > ; decimals ( overrides ? ) : Promise < number > ; decreaseAllowance ( spender , subtractedValue , overrides ? ) : Promise < ContractTransaction > ; increaseAllowance ( spender , addedValue , overrides ? ) : Promise < ContractTransaction > ; name ( overrides ? ) : Promise < string > ; symbol ( overrides ? ) : Promise < string > ; totalSupply ( overrides ? ) : Promise < BigNumber > ; transfer ( recipient , amount , overrides ? ) : Promise < ContractTransaction > ; transferFrom ( sender , recipient , amount , overrides ? ) : Promise < ContractTransaction > ; callStatic : { allowance ( owner , spender , overrides ? ) : Promise < BigNumber > ; approve ( spender , amount , overrides ? ) : Promise < boolean > ; balanceOf ( account , overrides ? ) : Promise < BigNumber > ; decimals ( overrides ? ) : Promise < number > ; decreaseAllowance ( spender , subtractedValue , overrides ? ) : Promise < boolean > ; increaseAllowance ( spender , addedValue , overrides ? ) : Promise < boolean > ; name ( overrides ? ) : Promise < string > ; symbol ( overrides ? ) : Promise < string > ; totalSupply ( overrides ? ) : Promise < BigNumber > ; transfer ( recipient , amount , overrides ? ) : Promise < boolean > ; transferFrom ( sender , recipient , amount , overrides ? ) : Promise < boolean > ; } ; filters : { "Approval(address,address,uint256)" ( owner ? , spender ? , value ? ) : ApprovalEventFilter ; Approval ( owner ? , spender ? , value ? ) : ApprovalEventFilter ; "Transfer(address,address,uint256)" ( from ? , to ? , value ? ) : TransferEventFilter ; Transfer ( from ? , to ? , value ? ) : TransferEventFilter ; } ; estimateGas : { allowance ( owner , spender , overrides ? ) : Promise < BigNumber > ; approve ( spender , amount , overrides ? ) : Promise < BigNumber > ; balanceOf ( account , overrides ? ) : Promise < BigNumber > ; decimals ( overrides ? ) : Promise < BigNumber > ; decreaseAllowance ( spender , subtractedValue , overrides ? ) : Promise < BigNumber > ; increaseAllowance ( spender , addedValue , overrides ? ) : Promise < BigNumber > ; name ( overrides ? ) : Promise < BigNumber > ; symbol ( overrides ? ) : Promise < BigNumber > ; totalSupply ( overrides ? ) : Promise < BigNumber > ; transfer ( recipient , amount , overrides ? ) : Promise < BigNumber > ; transferFrom ( sender , recipient , amount , overrides ? ) : Promise < BigNumber > ; } ; populateTransaction : { allowance ( owner , spender , overrides ? ) : Promise < PopulatedTransaction > ; approve ( spender , amount , overrides ? ) : Promise < PopulatedTransaction > ; balanceOf ( account , overrides ? ) : Promise < PopulatedTransaction > ; decimals ( overrides ? ) : Promise < PopulatedTransaction > ; decreaseAllowance ( spender , subtractedValue , overrides ? ) : Promise < PopulatedTransaction > ; increaseAllowance ( spender , addedValue , overrides ? ) : Promise < PopulatedTransaction > ; name ( overrides ? ) : Promise < PopulatedTransaction > ; symbol ( overrides ? ) : Promise < PopulatedTransaction > ; totalSupply ( overrides ? ) : Promise < PopulatedTransaction > ; transfer ( recipient , amount , overrides ? ) : Promise < PopulatedTransaction > ; transferFrom ( sender , recipient , amount , overrides ? ) : Promise < PopulatedTransaction > ; } ; }