Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Contract

Index

Constructors

constructor

Properties

Private Optional abi

Private Optional address

address: undefined | string

methods

methods: object

Type declaration

  • [funcName: string]: Function

Private Optional options

options: Options

Optional provider

provider: IRpcMethod

Methods

decodeMethodResult

  • decodeMethodResult(method: string, result: string): any | Array<any>

deploy

  • deploy(account: IAccount, inputs: Array<any>, amount?: undefined | string, gasLimit?: string | undefined, gasPrice?: undefined | string): Promise<string>
  • Parameters

    • account: IAccount
    • inputs: Array<any>
    • Optional amount: undefined | string
    • Optional gasLimit: string | undefined
    • Optional gasPrice: undefined | string

    Returns Promise<string>

encodeMethod

  • encodeMethod(amount: string, method: string, input: object, gasLimit?: string | undefined, gasPrice?: undefined | string): Execution
  • Parameters

    • amount: string
    • method: string
    • input: object
      • [key: string]: any
    • Optional gasLimit: string | undefined
    • Optional gasPrice: undefined | string

    Returns Execution

getABI

getAddress

  • getAddress(): string | undefined

pureEncodeMethod

  • pureEncodeMethod(amount: string, method: string, ...args: Array<any>): Execution

setProvider

Generated using TypeDoc