Giter VIP home page Giter VIP logo

bit-nft-marketplace's Introduction

Bit-NFT-MarketPlace

This is an NFT market place where buyers can:

  1. pay in dribs and drabs for any Non-fungible token of their choice in as much as it is listed on Bit-NFT-Market place.
  2. On Bit-NFT-Marketplace,you as a seller can list your erc721 tokens for sale and a buyer can decide to buy it there and then, or on installment basis.
  3. Sellers list their NFT by sending it to the Bit-NFT-Marketplace contract address inputting the NFT's address,its tokenId and the price you intend to sell it.
  4. At the end of the duration of the sale which is 40 days(4 minutes for testing purpose),the seller gets his ether while the buyer gets his NFT.
  5. However,if the buyer defaults by not paying up before the expiry of the agreement,he forfeits 10% of the total ether sent(5% to the marketplace and 5% compensation to the seller) while the seller gets back his NFT.
  6. If the sale is an instant sale or instalment basis, the marketplace receive 5% of the NFT price...

##TESTING

##The steps are :

1)Create 5 wallets with test ethers.

2)Deploy the smart contract with the first wallet(owner).

3)Use the second wallet to deploy an NFT contract.

  1. Use the same second wallet to mint like 3 NFTs to the same address.

  2. Use the same second wallet to approve the smart Contract in 2 above.

  3. Use the same second wallet to list the 3 NFTs calling listNFT function.

  4. Use the 3rd wallet to call buyNow function on the first NFT.

  5. Use the 4th wallet to call buyInBit on the second NFT like three times till the price is complete to see if the NFT will be transfered to you and the ether to the seller(wallet two).

9)Lastly, use the 5th wallet to call buyInBit on the third NFT,wait till the time of the agreement elapse and call buyerClaim to claim back your fund. Then use wallet two(NFT owner) to call sellerClaim to claim back your NFT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.