Options
All
  • Public
  • Public/Protected
  • All
Menu

@taikai/dappkit

Index

Namespaces

Classes

Interfaces

Type Aliases

Functions

Type Aliases

Call<T>: ((options?: CallOptions, callback?: ((err: Error, result: any) => void)) => Promise<T>)

Type Parameters

  • T = any

Type declaration

    • (options?: CallOptions, callback?: ((err: Error, result: any) => void)): Promise<T>
    • Parameters

      • Optional options: CallOptions
      • Optional callback: ((err: Error, result: any) => void)
          • (err: Error, result: any): void
          • Parameters

            • err: Error
            • result: any

            Returns void

      Returns Promise<T>

ContractCallMethod<ReturnData>: { call: Call<ReturnData> } & ContractSendMethod

Type Parameters

  • ReturnData = any

MinimalModel: Pick<Model, NeedsFromModel>
NeedsFromModel: "sendTx" | "sendUnsignedTx" | "callTx" | "contract" | "connection" | "account"
UseModelParams<ModelMethods>: Pick<Model<ModelMethods>, NeedsFromModel>

Type Parameters

  • ModelMethods = any

XEvents<V>: { [ K in keyof EventData]: EventData[K] extends V ? V : any }

Type Parameters

  • V

XPromiseEvent<V>: Promise<XEvents<V>[]>

Type Parameters

  • V

Functions

  • bounty(__namedParameters: Bounty, networkTokenDecimals?: number, transactionalTokenDecimals?: number, rewardTokenDecimals?: number): Bounty
  • Parameters

    • __namedParameters: Bounty
    • networkTokenDecimals: number = 18
    • transactionalTokenDecimals: number = 18
    • rewardTokenDecimals: number = 18

    Returns Bounty

  • fromDecimals(value: string | number, decimals?: number): number
  • fromSmartContractDate(date: number): number
  • fromSmartContractDecimals(value: string | number | BigNumber, decimals?: number): number
  • Parameters

    • value: string | number | BigNumber
    • decimals: number = 18

    Returns number

  • oraclesResume(oracles: Oracle, delegations: Delegation[], settlerTokenDecimals?: number): OraclesResume
  • toSmartContractDate(date: number | Date): number
  • toSmartContractDecimals(value: string | number, decimals?: number): number
  • transactionHandler(transaction: PromiEvent<Contract | TransactionReceipt>, resolve: ResolveReject, reject: ResolveReject, debug?: boolean): Promise<void>
  • Parameters

    • transaction: PromiEvent<Contract | TransactionReceipt>
    • resolve: ResolveReject
    • reject: ResolveReject
    • Optional debug: boolean

    Returns Promise<void>

Generated using TypeDoc