This repo can be used to create ERC-721 tokens, upload the artworks on IPFS and list them on a customized marketplace.
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.
This contract is used as an adoption platform for the ERC-721 tokens.
This contract mostly depends on the ERC20.sol contract from OpenZeppelin.
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.
The contracts have been deployed successfully on Kovan test network at the following addresses:
- Collectible: 0x2f6b3F8e9b5a95D7cfc46F877e372eb266Ad1e14
- Marketplace: 0x92B50E5d85cD6c52e3Fb5084092f50B6D678D05B
This contract has been created by using Python and Brownie. So you should consider using both these tools to reproduce the exact result.