Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • XRC20

Index

Constructors

constructor

Properties

address

address: string

Private contract

contract: Contract

Private methods

methods: object

Type declaration

Private tokenDecimals

tokenDecimals: BigNumber

Private tokenName

tokenName: string

Private tokenSymbol

tokenSymbol: string

Private tokenTotalSupply

tokenTotalSupply: BigNumber

Methods

allowance

  • allowance(owner: string, spender: string, options: ExecuteOption): Promise<string>

approve

  • approve(spender: string, value: BigNumber, options: ExecuteOption): Promise<string>

balanceOf

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

decimals

  • decimals(): Promise<BigNumber>

decode

Private executeMethod

  • executeMethod(method: string, account: Account, gasPrice: string, gasLimit: string, amount: string, ...args: any[]): string
  • Parameters

    • method: string
    • account: Account
    • gasPrice: string
    • gasLimit: string
    • amount: string
    • Rest ...args: any[]

    Returns string

name

  • name(): Promise<string>

Private readMethod

  • readMethod(method: string, callerAddress: string, ...args: any[]): Promise<string>
  • Parameters

    • method: string
    • callerAddress: string
    • Rest ...args: any[]

    Returns Promise<string>

symbol

  • symbol(): Promise<string>

totalSupply

  • totalSupply(): Promise<BigNumber>

transfer

  • transfer(to: string, value: BigNumber, options: ExecuteOption): Promise<string>

transferFrom

  • transferFrom(from: string, to: string, value: BigNumber, options: ExecuteOption): Promise<string>

Generated using TypeDoc