Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • ERC20

Index

Constructors

constructor

  • new ERC20(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): ERC20
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns ERC20

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

_runningEvents

_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent

_wrappedEmits

_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: any[]) => void
      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

Readonly address

address: string

callStatic

callStatic: { allowance: any; approve: any; balanceOf: any; decimals: any; decreaseAllowance: any; increaseAllowance: any; name: any; symbol: any; totalSupply: any; transfer: any; transferFrom: any }

Type declaration

  • allowance: function
    • allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>
    • See {IERC20-allowance}.

      Parameters

      • owner: string
      • spender: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • approve: function
    • approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>
    • See {IERC20-approve}. Requirements: - spender cannot be the zero address.

      Parameters

      • spender: string
      • amount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • balanceOf: function
    • balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>
    • See {IERC20-balanceOf}.

      Parameters

      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • decimals: function
    • decimals(overrides?: CallOverrides): Promise<number>
    • Returns the number of decimals used to get its user representation. For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5.05 (505 / 10 ** 2). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for display purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<number>

  • decreaseAllowance: function
    • decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: CallOverrides): Promise<boolean>
    • Atomically decreases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address. - spender must have allowance for the caller of at least subtractedValue.

      Parameters

      • spender: string
      • subtractedValue: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • increaseAllowance: function
    • increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: CallOverrides): Promise<boolean>
    • Atomically increases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address.

      Parameters

      • spender: string
      • addedValue: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • name: function
    • name(overrides?: CallOverrides): Promise<string>
    • Returns the name of the token.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<string>
    • Returns the symbol of the token, usually a shorter version of the name.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • totalSupply: function
    • totalSupply(overrides?: CallOverrides): Promise<BigNumber>
    • See {IERC20-totalSupply}.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • transfer: function
    • transfer(recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>
    • See {IERC20-transfer}. Requirements: - recipient cannot be the zero address. - the caller must have a balance of at least amount.

      Parameters

      • recipient: string
      • amount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • transferFrom: function
    • transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>
    • See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - sender and recipient cannot be the zero address. - sender must have a balance of at least amount. - the caller must have allowance for sender's tokens of at least amount.

      Parameters

      • sender: string
      • recipient: string
      • amount: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { allowance: any; approve: any; balanceOf: any; decimals: any; decreaseAllowance: any; increaseAllowance: any; name: any; symbol: any; totalSupply: any; transfer: any; transferFrom: any }

Type declaration

  • allowance: function
    • allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>
    • See {IERC20-allowance}.

      Parameters

      • owner: string
      • spender: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • approve: function
    • approve(spender: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • See {IERC20-approve}. Requirements: - spender cannot be the zero address.

      Parameters

      • spender: string
      • amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • balanceOf: function
    • balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>
    • See {IERC20-balanceOf}.

      Parameters

      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • decimals: function
    • decimals(overrides?: CallOverrides): Promise<BigNumber>
    • Returns the number of decimals used to get its user representation. For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5.05 (505 / 10 ** 2). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for display purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • decreaseAllowance: function
    • decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Atomically decreases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address. - spender must have allowance for the caller of at least subtractedValue.

      Parameters

      • spender: string
      • subtractedValue: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • increaseAllowance: function
    • increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Atomically increases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address.

      Parameters

      • spender: string
      • addedValue: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • name: function
    • name(overrides?: CallOverrides): Promise<BigNumber>
    • Returns the name of the token.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<BigNumber>
    • Returns the symbol of the token, usually a shorter version of the name.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • totalSupply: function
    • totalSupply(overrides?: CallOverrides): Promise<BigNumber>
    • See {IERC20-totalSupply}.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • transfer: function
    • transfer(recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • See {IERC20-transfer}. Requirements: - recipient cannot be the zero address. - the caller must have a balance of at least amount.

      Parameters

      • recipient: string
      • amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • transferFrom: function
    • transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - sender and recipient cannot be the zero address. - sender must have a balance of at least amount. - the caller must have allowance for sender's tokens of at least amount.

      Parameters

      • sender: string
      • recipient: string
      • amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

filters

filters: { Approval: any; Transfer: any }

Type declaration

  • Approval: function
    • Approval(owner?: null | string, spender?: null | string, value?: null): TypedEventFilter<[string, string, BigNumber], { owner: string; spender: string; value: BigNumber }>
    • Parameters

      • Optional owner: null | string
      • Optional spender: null | string
      • Optional value: null

      Returns TypedEventFilter<[string, string, BigNumber], { owner: string; spender: string; value: BigNumber }>

  • Transfer: function
    • Transfer(from?: null | string, to?: null | string, value?: null): TypedEventFilter<[string, string, BigNumber], { from: string; to: string; value: BigNumber }>
    • Parameters

      • Optional from: null | string
      • Optional to: null | string
      • Optional value: null

      Returns TypedEventFilter<[string, string, BigNumber], { from: string; to: string; value: BigNumber }>

functions

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

Type declaration

  • allowance: function
    • allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<[BigNumber]>
    • See {IERC20-allowance}.

      Parameters

      • owner: string
      • spender: string
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber]>

  • approve: function
    • approve(spender: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • See {IERC20-approve}. Requirements: - spender cannot be the zero address.

      Parameters

      • spender: string
      • amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • balanceOf: function
    • balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>
    • See {IERC20-balanceOf}.

      Parameters

      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber]>

  • decimals: function
    • decimals(overrides?: CallOverrides): Promise<[number]>
    • Returns the number of decimals used to get its user representation. For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5.05 (505 / 10 ** 2). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for display purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[number]>

  • decreaseAllowance: function
    • decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Atomically decreases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address. - spender must have allowance for the caller of at least subtractedValue.

      Parameters

      • spender: string
      • subtractedValue: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • increaseAllowance: function
    • increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Atomically increases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address.

      Parameters

      • spender: string
      • addedValue: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • name: function
    • name(overrides?: CallOverrides): Promise<[string]>
    • Returns the name of the token.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<[string]>
    • Returns the symbol of the token, usually a shorter version of the name.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • totalSupply: function
    • totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>
    • See {IERC20-totalSupply}.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber]>

  • transfer: function
    • transfer(recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • See {IERC20-transfer}. Requirements: - recipient cannot be the zero address. - the caller must have a balance of at least amount.

      Parameters

      • recipient: string
      • amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • transferFrom: function
    • transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - sender and recipient cannot be the zero address. - sender must have a balance of at least amount. - the caller must have allowance for sender's tokens of at least amount.

      Parameters

      • sender: string
      • recipient: string
      • amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

interface

interface: ERC20Interface

populateTransaction

populateTransaction: { allowance: any; approve: any; balanceOf: any; decimals: any; decreaseAllowance: any; increaseAllowance: any; name: any; symbol: any; totalSupply: any; transfer: any; transferFrom: any }

Type declaration

  • allowance: function
    • allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • See {IERC20-allowance}.

      Parameters

      • owner: string
      • spender: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • approve: function
    • approve(spender: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • See {IERC20-approve}. Requirements: - spender cannot be the zero address.

      Parameters

      • spender: string
      • amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • balanceOf: function
    • balanceOf(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • See {IERC20-balanceOf}.

      Parameters

      • account: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • decimals: function
    • decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns the number of decimals used to get its user representation. For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5.05 (505 / 10 ** 2). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for display purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • decreaseAllowance: function
    • decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Atomically decreases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address. - spender must have allowance for the caller of at least subtractedValue.

      Parameters

      • spender: string
      • subtractedValue: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • increaseAllowance: function
    • increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Atomically increases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address.

      Parameters

      • spender: string
      • addedValue: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • name: function
    • name(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns the name of the token.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns the symbol of the token, usually a shorter version of the name.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • totalSupply: function
    • totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • See {IERC20-totalSupply}.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • transfer: function
    • transfer(recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • See {IERC20-transfer}. Requirements: - recipient cannot be the zero address. - the caller must have a balance of at least amount.

      Parameters

      • recipient: string
      • amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • transferFrom: function
    • transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - sender and recipient cannot be the zero address. - sender must have a balance of at least amount. - the caller must have allowance for sender's tokens of at least amount.

      Parameters

      • sender: string
      • recipient: string
      • amount: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

Readonly provider

provider: Provider

Readonly resolvedAddress

resolvedAddress: Promise<string>

Readonly signer

signer: Signer

Methods

_checkRunningEvents

  • _checkRunningEvents(runningEvent: RunningEvent): void
  • Parameters

    • runningEvent: RunningEvent

    Returns void

_deployed

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

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

_wrapEvent

  • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
  • Parameters

    • runningEvent: RunningEvent
    • log: Log
    • listener: Listener

    Returns Event

allowance

  • allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>
  • See {IERC20-allowance}.

    Parameters

    • owner: string
    • spender: string
    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

approve

  • approve(spender: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • See {IERC20-approve}. Requirements: - spender cannot be the zero address.

    Parameters

    • spender: string
    • amount: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

attach

  • attach(addressOrName: string): ERC20
  • Parameters

    • addressOrName: string

    Returns ERC20

balanceOf

  • balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>
  • See {IERC20-balanceOf}.

    Parameters

    • account: string
    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

connect

  • connect(signerOrProvider: string | Signer | Provider): ERC20
  • Parameters

    • signerOrProvider: string | Signer | Provider

    Returns ERC20

decimals

  • decimals(overrides?: CallOverrides): Promise<number>
  • Returns the number of decimals used to get its user representation. For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5.05 (505 / 10 ** 2). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for display purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

    Parameters

    • Optional overrides: CallOverrides

    Returns Promise<number>

decreaseAllowance

  • decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Atomically decreases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address. - spender must have allowance for the caller of at least subtractedValue.

    Parameters

    • spender: string
    • subtractedValue: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

deployed

  • deployed(): Promise<ERC20>
  • Returns Promise<ERC20>

emit

  • emit(eventName: string | EventFilter, ...args: any[]): boolean
  • Parameters

    • eventName: string | EventFilter
    • Rest ...args: any[]

    Returns boolean

fallback

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

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

increaseAllowance

  • increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Atomically increases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address.

    Parameters

    • spender: string
    • addedValue: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

listenerCount

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

    • Optional eventName: string | EventFilter

    Returns number

listeners

  • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
  • listeners(eventName?: string): Listener[]
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns TypedListener<EventArgsArray, EventArgsObject>[]

  • Parameters

    • Optional eventName: string

    Returns Listener[]

name

  • name(overrides?: CallOverrides): Promise<string>
  • Returns the name of the token.

    Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

off

  • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): ERC20
  • off(eventName: string, listener: Listener): ERC20
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns ERC20

  • Parameters

    • eventName: string
    • listener: Listener

    Returns ERC20

on

  • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): ERC20
  • on(eventName: string, listener: Listener): ERC20
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns ERC20

  • Parameters

    • eventName: string
    • listener: Listener

    Returns ERC20

once

  • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): ERC20
  • once(eventName: string, listener: Listener): ERC20
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns ERC20

  • Parameters

    • eventName: string
    • listener: Listener

    Returns ERC20

queryFilter

  • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • event: TypedEventFilter<EventArgsArray, EventArgsObject>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

removeAllListeners

  • removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): ERC20
  • removeAllListeners(eventName?: string): ERC20
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns ERC20

  • Parameters

    • Optional eventName: string

    Returns ERC20

removeListener

  • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): ERC20
  • removeListener(eventName: string, listener: Listener): ERC20
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns ERC20

  • Parameters

    • eventName: string
    • listener: Listener

    Returns ERC20

symbol

  • symbol(overrides?: CallOverrides): Promise<string>
  • Returns the symbol of the token, usually a shorter version of the name.

    Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

totalSupply

  • totalSupply(overrides?: CallOverrides): Promise<BigNumber>
  • See {IERC20-totalSupply}.

    Parameters

    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

transfer

  • transfer(recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • See {IERC20-transfer}. Requirements: - recipient cannot be the zero address. - the caller must have a balance of at least amount.

    Parameters

    • recipient: string
    • amount: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

transferFrom

  • transferFrom(sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - sender and recipient cannot be the zero address. - sender must have a balance of at least amount. - the caller must have allowance for sender's tokens of at least amount.

    Parameters

    • sender: string
    • recipient: string
    • amount: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

Static getContractAddress

  • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
  • Parameters

    • transaction: { from: string; nonce: BigNumberish }
      • from: string
      • nonce: BigNumberish

    Returns string

Static getInterface

  • getInterface(contractInterface: ContractInterface): Interface
  • Parameters

    • contractInterface: ContractInterface

    Returns Interface

Static isIndexed

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

    • value: any

    Returns value is Indexed

Generated using TypeDoc