UNPKG

@poprank/sdk

Version:

PopRank API client and types

30 lines (29 loc) 1.27 kB
import { Chain, ChainTermLabels } from "./types"; import { ChainExplorerMap } from "./types/explorers"; import { ChainMarketplaceMap } from "./types/marketplaces"; export declare const API_BASE_URL = "https://api.poprank.io"; export declare const OPENSEA_BASE_URL = "https://opensea.io"; export declare const OPENSEA_BASE_COLLECTIONS_URL = "https://opensea.io"; export declare const OPENSEA_BASE_NFTS_URL: string; export declare const MAGICEDEN_BASE_URL = "https://magiceden.io"; export declare const MAGICEDEN_BASE_COLLECTIONS_URL: string; export declare const MAGICEDEN_BASE_NFTS_URL: string; /** * Labels for collection, token, and token standards per-chain. * eg: on EVM chains, we have a "Contract Address", but on Solana that's * referred to as an "On-chain Collection" */ export declare const CHAIN_TERM_LABELS: Record<Chain, ChainTermLabels>; /** * A mapping of all PopRank supported chains to all * of our supported marketplaces. * * The first marketplace under a chain is considered the default. */ export declare const CHAIN_MARKETPLACE_MAP: ChainMarketplaceMap; /** * Mapping of all PopRank supported block explorers, per-chain. * * The first explorer for a given chain is the default. */ export declare const CHAIN_EXPLORER_MAP: ChainExplorerMap;