pancakeswap / Revelation-Hackathon-Bounties

PancakeSwap bounties for Revelation Hackathon by BNB Chain
6 stars 8 forks source link

NFT Marketplace bounty useful information #1

Open Chef-Cheems opened 2 years ago

Chef-Cheems commented 2 years ago

We will put some useful information here about NFT Marketplace to help people who decide to tackle this bounty. This post will be updated occasionally as we remember any useful information to share.

Please tag @chef-huan if you have any questions, he's our main tech chef behind NFT listings :)

There is this repository - https://github.com/pancakeswap/pancake-nft-publish It is a helper app to avoid manual work for listing NFTs.

chef-huan commented 2 years ago

Steps what we do for listing collection.


  1. Get particular NFT tokenId. If collection if ERC721Enumerable - tokenByIndex. Other case no need, id iteration will be 0,1,2.

  2. Get token metadata - tokenURI by id. 

  3. From metadata get image, gif etc, and store in s3 bucket with specific naming( paramCase lib). 
5. Store rest of data into DB, token (info, metadata, attributes) without duplicates. 

Key thing in todo it fast, because some collection has 10 000 items.
  4. Store banner, avatar.

Key thing in todo it fast, because some collection has 10 000 items.