@lyncworld/fuel-marketplace
Version:
Marketplace NPM SDK on Fuel blockchain. Powered by LYNC, it allows anyone to create their own decentralized marketplace which includes listing and buying of Non-fungible tokens (NFTs) and Semi-fungible tokens (SFTs) in a few lines of code.
51 lines (44 loc) • 1.2 kB
text/typescript
import { useAllNftsInCollection, useCollections, useListings, useNft } from '@/hooks';
import { AllowedProviders, MarketplaceErrorCodes, Networks } from '@/enums';
import {
MarketplaceError,
MarketplaceListings,
MarketplaceCollections,
NftDetails,
NftMetadata,
OmittedMarketplaceListings,
TokensInCollection,
} from '@/interfaces';
import { MarketplaceClient } from '@/services/marketplace';
import { searchMarketplace } from '@/services/orders';
import { checkNftOwnership } from '@/utils';
import { getAllNftsInCollection, getCollections, getListings, getNftDetails } from '@/ssr';
export {
/* -- Hooks -- */
useAllNftsInCollection,
useCollections,
useListings,
useNft,
/* -- SSR Functions -- */
getAllNftsInCollection,
getCollections,
getListings,
getNftDetails,
/* -- Enums -- */
AllowedProviders,
MarketplaceErrorCodes,
Networks,
/* -- Interfaces -- */
type MarketplaceError,
type MarketplaceListings,
type MarketplaceCollections,
type NftDetails,
type NftMetadata,
type OmittedMarketplaceListings,
type TokensInCollection,
/* -- Services -- */
MarketplaceClient,
searchMarketplace,
/* -- Utils -- */
checkNftOwnership,
};