Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Erc20TokenClient

Hierarchy

  • TokenErc20
    • Erc20TokenClient

Indexable

[name: string]: ContractFunction | any

Index

Constructors

constructor

  • new Erc20TokenClient(addressOrName: string, contractInterface: Array<string | FunctionFragment | EventFragment | ParamType> | string | Interface, signerOrProvider: Signer | Provider): Erc20TokenClient
  • Parameters

    • addressOrName: string
    • contractInterface: Array<string | FunctionFragment | EventFragment | ParamType> | string | Interface
    • signerOrProvider: Signer | Provider

    Returns Erc20TokenClient

Properties

address

address: string

addressPromise

addressPromise: Promise<string>

clientType

clientType: TokenClient

deployTransaction

deployTransaction: TransactionResponse

estimate

estimate: { allowance: any; approve: any; balanceOf: any; decimals: any; name: any; symbol: any; totalSupply: any; transfer: any; transferFrom: any }

Type declaration

filters

filters: { Approval: any; Transfer: any }

Type declaration

  • Approval: function
    • Approval(owner: string | null, spender: string | null, value: null): EventFilter
  • Transfer: function
    • Transfer(from: string | null, to: string | null, value: null): EventFilter

functions

functions: { allowance: any; approve: any; balanceOf: any; decimals: any; name: any; symbol: any; totalSupply: any; transfer: any; transferFrom: any }

Type declaration

interface

interface: TokenErc20Interface

provider

provider: Provider

signer

signer: Signer

tokenClientType

tokenClientType: Erc20

Methods

_deployed

  • _deployed(blockTag?: BlockTag): Promise<Contract>
  • Parameters

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

addListener

  • addListener(eventName: EventFilter | string, listener: Listener): TokenErc20

allowance

  • allowance(_owner: string, _spender: string): Promise<BigNumber>

approve

  • approve(_spender: string, _value: BigNumberish, overrides?: TransactionOverrides): Promise<ContractTransaction>

attach

  • attach(addressOrName: string): TokenErc20

balanceOf

  • balanceOf(_owner: string): Promise<BigNumber>

connect

  • connect(signerOrProvider: Signer | Provider | string): TokenErc20

decimals

  • decimals(): Promise<number>

deployed

  • deployed(): Promise<TokenErc20>

emit

  • emit(eventName: EventFilter | string, ...args: Array<any>): boolean
  • Parameters

    • eventName: EventFilter | string
    • Rest ...args: Array<any>

    Returns boolean

fallback

  • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
  • Parameters

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

getTokenInfo

  • getTokenInfo(): Promise<TokenInfo>

listenerCount

  • listenerCount(eventName?: EventFilter | string): number
  • Parameters

    • Optional eventName: EventFilter | string

    Returns number

listeners

  • listeners(eventName: EventFilter | string): Array<Listener>
  • Parameters

    • eventName: EventFilter | string

    Returns Array<Listener>

name

  • name(): Promise<string>

on

  • on(event: EventFilter | string, listener: Listener): TokenErc20

once

  • once(event: EventFilter | string, listener: Listener): TokenErc20

removeAllListeners

  • removeAllListeners(eventName: EventFilter | string): TokenErc20

removeListener

  • removeListener(eventName: any, listener: Listener): TokenErc20

symbol

  • symbol(): Promise<string>

totalSupply

  • totalSupply(): Promise<BigNumber>

transfer

  • transfer(_to: string, _value: BigNumberish, overrides?: TransactionOverrides): Promise<ContractTransaction>

transferFrom

  • transferFrom(_from: string, _to: string, _value: BigNumberish, overrides?: TransactionOverrides): Promise<ContractTransaction>

Static isIndexed

  • isIndexed(value: any): value is Indexed
  • Parameters

    • value: any

    Returns value is Indexed

Generated using TypeDoc