UNPKG

@bithomp/xrpl-api

Version:

A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger

13 lines (12 loc) 740 B
import BigNumber from "bignumber.js"; export type SortDirection = -1 | 0 | 1; export declare function signum(num: number): SortDirection; export declare function compareTransactions(first: any, second: any): SortDirection; export declare function sleep(ms: number): Promise<void>; export declare function getTimestamp(): number; export declare function createMarker(hash: string, marker?: any): any; export declare function parseMarker(marker?: any): any; export declare function dropsToXrp(drops: BigNumber.Value): string; export declare function xrpToDrops(xrp: BigNumber.Value): string; export declare function removeUndefined<T extends object>(obj: T): T; export declare function getConstructorName(object: object): string | undefined;