Skip to content

Create ERC-720 tokens stored on IPFS and sell on custom marketplace

Notifications You must be signed in to change notification settings

0xBonanza/Solidity-erc721-NFT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General

This repo can be used to create ERC-721 tokens, upload the artworks on IPFS and list them on a customized marketplace. 

Contracts

ShelterCollectible.sol

This contract is used to mint ERC-721 tokens. For our use case, the tokens are minted directly to the Marketplace (not to the user!), hence can only be called by the admin of the contract.

ShelterMarketplace.sol

This contract is used as an adoption platform for the ERC-721 tokens. 

Dependencies

This contract mostly depends on the ERC20.sol contract from OpenZeppelin.

.env file

Make sure you have a .env file in your working directory containing:

  • export PRIVATE_KEY="YOUR_KEY"
  • export WEB3_INFURA_PROJECT_ID="YOUR_INFURA_ID"
  • export ETHERSCAN_TOKEN="YOUR_ETHERSCAN_TOKEN"

NB: the ETHERSCAN_TOKEN is only needed if you want your contract to be verified upon deployment. 

Deployment

The contracts have been deployed successfully on Kovan test network at the following addresses:

  • Collectible: 0x2f6b3F8e9b5a95D7cfc46F877e372eb266Ad1e14
  • Marketplace: 0x92B50E5d85cD6c52e3Fb5084092f50B6D678D05B

How to use?

This contract has been created by using Python and Brownie. So you should consider using both these tools to reproduce the exact result.

About

Create ERC-720 tokens stored on IPFS and sell on custom marketplace

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published