@cross-nft-marketplace/auction-house-nft-components
Version:
NFT Media Rendering Components
28 lines (27 loc) • 863 B
TypeScript
import type { IAuction, IBid, ICurrency, INft } from "@cross-nft-marketplace/auction-house-nft-hooks";
export declare type PricingInfoComputed = {
inUSD: string;
};
export declare type PricingInfo = {
currency: ICurrency;
prettyAmount: string;
computedValue?: PricingInfoComputed;
};
export interface ITransformedAuctionsPrices {
reservePrice: PricingInfo;
buyNowPrice?: PricingInfo;
currentBid?: ITransformedBid;
previousBids: ITransformedBid[];
}
export interface ITransformedBid extends IBid {
trasformedPricing: PricingInfo;
}
export interface IAuctionEx extends IAuction {
trasformedPricing?: ITransformedAuctionsPrices;
isLikelyHasEnded: boolean;
topBid?: ITransformedBid;
endedUsingBuyNow: boolean;
}
export interface INftWithPricing extends INft {
pricing?: IAuctionEx;
}