Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 997 Bytes

File metadata and controls

20 lines (13 loc) · 997 Bytes

A Minimalistic NFT Marketplace

Demonstartes a minimalistic NFT marketplace that allows users to list NFTs for sale.

Know your Contract

The nft-marketplace.clar contract includes the following functionality.

  • list-asset lists an asset along with its contract
  • transfer-nft transfers an NFT asset from a sender to a given recipient
  • transfer-ft transfers fungible tokens from a sender to a given recipient
  • get-listing function retrieves a listing by its ID
  • cancel-listing cancels a listing using an asset contract

To add a new contract, use Clarinet.

Test your Contract

  • You can manually test your your contracts in the Clarinet console.
  • You can programmatically test your contracts with unit tests.