Skip to content

A general-purpose Cadence contract for trading NFTs on Flow

License

Notifications You must be signed in to change notification settings

FlowFans/nft-storefront

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT Storefront

The NFT storefront is a general-purpose Cadence contract for trading NFTs on Flow.

NFTStorefront uses modern Cadence run-time type facilities to implement a marketplace that can take any currency in order to vend any token in a safe and secure way. This means that only one instance of the contract is needed (see below for its address on Testnet and Mainnet), and its resources, transactions, and scripts can be used by any account to create any marketplace.

Contract Addresses

Name Testnet Mainnet
NFTStorefront TBD TBD

Usage

Each account that wants to offer NFTs for sale installs a Storefront, and then lists individual sales within that Storefront as SaleOffer resources.

There is one Storefront per account that handles sales of all NFT types for that account.

Each SaleOffer can list one or more cut percentages. Each cut is delivered to a predefined address. Cuts can be used to pay listing fees or other considerations.

Each NFT may be listed in one or more SaleOffer resources. The validity of each SaleOffer can easily be checked.

Purchasers can watch for SaleOffer events and check the NFT type and ID to see if they wish to buy the offered item.

Marketplaces and other aggregators can watch for SaleOffer events and list items of interest.

About

A general-purpose Cadence contract for trading NFTs on Flow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.8%
  • Makefile 1.2%