Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

_contract: Web3Contract<ERC20Methods, any>
_decimals: number = 0
abi: AbiItem[]
contractAddress?: string

Accessors

  • get account(): Account
  • Returns the Account associated with this connection

    Returns Account

  • get decimals(): number
  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • allowance(owner: string, spender: string): Promise<number>
  • approve(address: string, amount: number): Promise<TransactionReceipt>
  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • connect(): Promise<boolean>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt>

  • deployJsonAbi(name: string, symbol: string, cap: number, distributionAddress: string): Promise<TransactionReceipt>
  • getTokenAmount(address: string): Promise<number>
  • increaseAllowance(address: string, amount: number): Promise<TransactionReceipt>
  • isApproved(spenderAddress?: string, amount: number): Promise<boolean>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • name(): Promise<string>
  • sendTx(method: ContractSendMethod, value?: any, debug?: undefined | boolean): Promise<TransactionReceipt>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • debug: undefined | boolean = ...

    Returns Promise<TransactionReceipt>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, debug?: boolean): Promise<TransactionReceipt>
  • Send unsigned transaction

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • Optional debug: boolean

    Returns Promise<TransactionReceipt>

  • start(): Promise<void>
  • symbol(): Promise<string>
  • totalSupply(): Promise<number>
  • transferFrom(owner: string, receiver: string, amount: number): Promise<TransactionReceipt>
  • Parameters

    • owner: string
    • receiver: string
    • amount: number

    Returns Promise<TransactionReceipt>

  • transferTokenAmount(toAddress: string, amount: number): Promise<TransactionReceipt>

Generated using TypeDoc