UNPKG

@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.

13 lines (11 loc) 296 B
import { MarketplaceErrorCodes } from '@/enums'; export class MarketplaceError<TErrorData = unknown> extends Error { constructor( message: string, public code: MarketplaceErrorCodes, public errorData?: TErrorData ) { super(message); this.name = 'MarketplaceError'; } }