@bithomp/xrpl-api
Version:
A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger
19 lines (18 loc) • 529 B
TypeScript
import { TransactionMetadata } from "xrpl";
import { OfferFlagsKeysInterface } from "../../types";
type OfferDescription = {
flags: OfferFlagsKeysInterface;
account?: string;
quantity: any;
totalPrice: any;
sequence: number;
status?: string;
makerExchangeRate: string;
expirationTime?: string;
direction: string;
};
type Orderbook = {
[key: string]: OfferDescription[];
};
declare function parseOrderbookChanges(metadata: TransactionMetadata): Orderbook;
export { parseOrderbookChanges };