Functions
arrayToObject
- arrayToObject<T>(array: T[]): {}
Type parameters
Parameters
Returns {}
buildData
- buildData(method: HttpMethod, path: string, timestamp: number, data?: Record<string, any>): any
Parameters
path: string
timestamp: number
Optional data: Record<string, any>
Returns any
getAssistant
- getAssistant(ain: default, objectId: string, tokenId: string, assistantId: string): Promise<any>
Parameters
ain: default
objectId: string
tokenId: string
assistantId: string
Returns Promise<any>
getChecksumAddress
- getChecksumAddress(address: string): string
getToken
- getToken(ain: default, objectId: string, tokenId: string): Promise<any>
Parameters
ain: default
objectId: string
tokenId: string
Returns Promise<any>
getValue
- getValue(ain: default, path: string, options?: GetOptions): Promise<any>
Parameters
ain: default
path: string
Optional options: GetOptions
Returns Promise<any>
isJoiError
- isJoiError(error: any): boolean
Parameters
Returns boolean
isMillisecond
- isMillisecond(timestamp: number): boolean
Parameters
Returns boolean
normalizeTimestamp
- normalizeTimestamp(timestamp: number): number
serializeEndpoint
- serializeEndpoint(endpoint: string): string
sleep
- sleep(ms: number): Promise<unknown>
Parameters
Returns Promise<unknown>
toSecond
- toSecond(millisecond: number): number
valueExists
- valueExists(ain: default, path: string): Promise<boolean>
Parameters
Returns Promise<boolean>