Skip to content

e2xen/open-nft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Open NFT

Yet Another NFT Marketplace

  • Any NFT can be bought by anyone
  • After each successful deal the price is increased by a constant factor
  • Fully distributed (no back-end)
  • Metadata is stored on IPFS
  • Buy NFTs in Ether or USDC

Smart Contract

Solidity code can be found at contracts/ folder.

Currently hosted on Goerli.

Available methods:

  • safeMint(string uri, uint256 ethPrice, uint256 usdcPrice): mint token with the specified IPFS uri (link part after https://ipfs.io/ipfs/) and prices in ETH and USDC
  • buyEth(uint256 tokenId): buy specified token in ETH (price can be seen by invoking tokenPriceEth(uint256 tokenId))
  • buyUSDC(uint256 tokenId): buy specified token in USDC (price can be seen by invoking tokenPriceUSDC(uint256 tokenId)). Before invoking this method, this contract should be approved to transfer USDC from your account

After any successful deal, the price is increased by a constant amount.

Unit testing

Unit tests of the contract are done with the Remix Plugin.

Linter

Linting is done with the solhint Remix Plugin.