Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

_contract: Web3Contract<ERC20Methods, any>
_decimals: number = 0
_ownable: Ownable
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<string>
  • approve(address: string, amount: string | number): Promise<TransactionReceipt<any>>
  • Parameters

    • address: string
    • amount: string | number

    Returns Promise<TransactionReceipt<any>>

  • connect(): Promise<boolean>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt<any>>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt<any>>

  • deployJsonAbi(name: string, symbol: string, cap: string | number, distributionAddress: string): Promise<TransactionReceipt<any>>
  • getTokenAmount(address: string): Promise<string>
  • increaseAllowance(address: string, amount: string | number): Promise<TransactionReceipt<any>>
  • Parameters

    • address: string
    • amount: string | number

    Returns Promise<TransactionReceipt<any>>

  • isApproved(spenderAddress?: string, amount: string | number): Promise<boolean>
  • Parameters

    • spenderAddress: string = ...
    • amount: string | number

    Returns Promise<boolean>

  • loadAbi(): void
  • loadContract(): Promise<void>
  • mint(receiver: string, amount: number): Promise<TransactionReceipt<any>>
  • Parameters

    • receiver: string
    • amount: number

    Returns Promise<TransactionReceipt<any>>

  • name(): Promise<string>
  • sendTx(method: ContractSendMethod, value?: any): Promise<TransactionReceipt<any>>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any

    Returns Promise<TransactionReceipt<any>>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, __namedParameters?: Partial<Web3ConnectionOptions>): Promise<TransactionReceipt<any>>
  • start(): Promise<void>
  • symbol(): Promise<string>
  • totalSupply(): Promise<string>
  • transferFrom(owner: string, receiver: string, amount: string | number): Promise<TransactionReceipt<any>>
  • Parameters

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

    Returns Promise<TransactionReceipt<any>>

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

    • toAddress: string
    • amount: string | number

    Returns Promise<TransactionReceipt<any>>

Generated using TypeDoc