UNPKG

@ledgerhq/types-live

Version:
100 lines 1.98 kB
import type BigNumber from "bignumber.js"; export type CryptoCurrencyIds = string; /** * */ export type NFTStandard = "ERC721" | "ERC1155" | "SPL"; /** * */ export type NFTMediaSize = "preview" | "big" | "original"; /** * */ export type NFTMedias = Record<NFTMediaSize, { uri: string; mediaType: string; }>; /** * */ export type NFTMetadata = { tokenName: string | null; nftName: string | null; medias: NFTMedias; description: string | null; properties: Array<Record<"key" | "value", string>>; links: Record<NFTMetadataLinksProviders, string | null>; staxImage?: string; }; /** * */ export type NFTCollectionMetadata = { tokenName: string | null; }; /** * */ export type ProtoNFT = { id: string; tokenId: string; amount: BigNumber; contract: string; standard: NFTStandard; currencyId: CryptoCurrencyIds; metadata?: NFTMetadata | undefined; }; /** * */ export type ProtoNFTRaw = Omit<ProtoNFT, "amount"> & { amount: string; }; /** * */ export type NFT = Omit<ProtoNFT, "metadata"> & { metadata: NFTMetadata; }; /** * */ export type NFTMetadataLinksProviders = "opensea" | "rarible" | "etherscan" | "explorer"; /** * */ export type NFTMetadataResponse = { status: 200 | 404 | 500; result?: { contract: string; tokenId: string; tokenName: string | null; nftName: string | null; medias: NFTMedias; description: string | null; properties: Array<Record<"key" | "value", string>>; links: Record<NFTMetadataLinksProviders, string>; staxImage?: string; spamScore?: number; } | null; }; /** * */ export type NFTCollectionMetadataResponse = { status: 200 | 404 | 500; result?: { contract: string; tokenName: string | null; spamScore?: number; } | null; }; /** * */ export type FloorPrice = { ticker: string; value: number; }; //# sourceMappingURL=nft.d.ts.map