Options
All
  • Public
  • Public/Protected
  • All
Menu

Module near-utils/lib

Index

Functions

fromBase64

  • fromBase64(str: string, encoding?: BufferEncoding): any

fromNearTimestamp

  • fromNearTimestamp(ts: number): number

normalizeTransactionObject

  • normalizeTransactionObject(tx: near.InputTransaction, currentHeight?: number): Transaction<InputTransaction>

parseReceipt

  • parseReceipt(_tx: near.InputTransaction): near.NearSwapTransaction

toBase64

  • toBase64(str: string, encoding?: BufferEncoding): string

toNearTimestampFormat

  • toNearTimestampFormat(ts: number): number

validateAddress

  • validateAddress(_address: Address | string): void

validateSecret

  • validateSecret(secret: string): void
  • Parameters

    • secret: string

    Returns void

validateSecretAndHash

  • validateSecretAndHash(secret: string, secretHash: string): void
  • Parameters

    • secret: string
    • secretHash: string

    Returns void

validateSwapParams

  • validateSwapParams(swapParams: SwapParams): void

Generated using TypeDoc