Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/util

Index

Functions

  • arrayToObject<T>(array: T[]): {}
  • buildData(method: HttpMethod, path: string, timestamp: number, data?: Record<string, any>): any
  • getAssistant(ain: default, objectId: string, tokenId: string, assistantId: string): Promise<any>
  • Parameters

    • ain: default
    • objectId: string
    • tokenId: string
    • assistantId: string

    Returns Promise<any>

  • getChecksumAddress(address: string): string
  • getToken(ain: default, objectId: string, tokenId: string): Promise<any>
  • Parameters

    • ain: default
    • objectId: string
    • tokenId: string

    Returns Promise<any>

  • getValue(ain: default, path: string, options?: GetOptions): Promise<any>
  • Parameters

    • ain: default
    • path: string
    • Optional options: GetOptions

    Returns Promise<any>

  • isJoiError(error: any): boolean
  • isMillisecond(timestamp: number): boolean
  • normalizeTimestamp(timestamp: number): number
  • serializeEndpoint(endpoint: string): string
  • sleep(ms: number): Promise<unknown>
  • toSecond(millisecond: number): number
  • valueExists(ain: default, path: string): Promise<boolean>

Generated using TypeDoc