@xoxno/sdk-js
Version:
The SDK to interact with the XOXNO Protocol!
124 lines • 2.9 kB
TypeScript
import type { GlobalOffers, ICollectionProfile, ISocials, MetadataAttribute } from './collection';
export interface NFTAttribute extends MetadataAttribute {
occurance: number;
frequency: number;
onSaleCount?: number;
floorPrice?: number;
usdValue?: number;
}
export interface NFTMetadata {
description?: string;
attributes?: NFTAttribute[];
rarity?: {
rank: number;
};
}
export interface Media {
originalMedia?: OriginalMedia;
avifUrl?: string;
webpUrl?: string;
retries?: number;
}
export interface OriginalMedia {
contentType?: string;
contentLength?: number;
}
export interface SaleInfo {
auctionId: number;
seller: string;
currentWinner?: Owner;
minBid: string;
maxBid?: string;
currentBid?: string;
startTime: number;
deadline: number;
paymentToken: string;
paymentTokenNonce: number;
auctionType: string;
timestamp: number;
minBidShort: number;
maxBidShort: number;
currentBidShort?: number;
currentBidUsd?: number;
quantity: number;
marketplace: string;
minBidUsdValue: string;
maxBidUsdValue?: string;
royalties?: number;
}
export interface NftValue {
floorValue: number;
avgValue: number;
maxValue: number;
collectionFp: number;
}
export interface GameData {
name: string;
value: number;
}
export interface NftData {
id: string;
name: string;
identifier: string;
nonce: number;
collection: string;
type: string;
supply?: number;
supplyLong?: string;
url: string;
wasProcessed: boolean;
royalties: number;
onSale: boolean;
metadata: NFTMetadata;
media: Media;
attributes?: string;
creator?: Owner;
hasOffers?: boolean;
collectionName: string;
saleInfo?: SaleInfo;
tags?: string[];
gameData?: GameData[];
owner?: Owner;
currentOwner?: Owner;
balance?: number;
balanceLong?: string;
collectionInfo?: CollectionInfo;
isStaked?: boolean;
hasUboundPeriod?: boolean;
unboundEpoch?: number;
currentEpoch?: number;
poolId?: number;
globalOffer?: GlobalOffers;
isTicket?: boolean;
eventData?: {
eventId: string;
checkInStatus: boolean;
ticketId: string;
timestamp: number;
};
uris?: string[];
statistics?: {
likeCount: number;
};
}
export interface CollectionInfo {
name: string;
isVerified: boolean;
isVisible: boolean;
profile: string;
banner: string;
socials?: ISocials;
collectionSize?: number;
description?: string;
followCount?: number;
holdersCount?: number;
volume?: number;
owner?: string;
customConfig?: ICollectionProfile['customConfig'];
}
export interface Owner {
username: string;
address: string;
profile: string;
}
//# sourceMappingURL=nft.d.ts.map