UNPKG

@ledgerhq/coin-tron

Version:
25 lines 951 B
import { TxPageResult } from "../network"; import { TrongridTxInfo } from "../types"; export type ListOperationsCursor = { txHash: string; timestamp: number; }; export declare function serializeCursor(cursor: ListOperationsCursor): string; export declare function parseCursor(cursor: string | undefined): ListOperationsCursor | null; export declare function compareTxsByTimestamp(order: "asc" | "desc"): (a: TrongridTxInfo, b: TrongridTxInfo) => number; export declare function dropTxsBeforeCursor(params: { txs: TrongridTxInfo[]; order: "asc" | "desc"; cursor: ListOperationsCursor | null; }): TrongridTxInfo[]; export declare function dropTxsAfterNextCursor(params: { order: "asc" | "desc"; cursor: string | undefined; pageTxs: TrongridTxInfo[]; nativeResult: TxPageResult; trc20Result: TxPageResult; }): { txs: TrongridTxInfo[]; nextCursor: string | undefined; }; //# sourceMappingURL=cursor.d.ts.map