@bajetech/digitalbits-wallet-sdk
Version:
A library to make it easier to write wallets that interact with the DigitalBits blockchain
9 lines (8 loc) • 390 B
TypeScript
import { ServerApi } from "xdb-digitalbits-sdk";
import { Account, Offer } from "../types";
export declare type TradeCollection = ServerApi.TradeRecord[];
export interface DisplayableOffersParams {
offers: ServerApi.OfferRecord[];
tradeResponses: TradeCollection[];
}
export declare function makeDisplayableOffers(subjectAccount: Account, params: DisplayableOffersParams): Offer[];