This project contains the smart contracts and all the necessary configuration for the creation of non-fungible tokens.
Each NFT consists of an image formed by many attributes, generated in a pseudo-random way and obtained from Avataaars
Hardhat is used as a development environment and OpenZeppelin security standards, such as ERC721 and ERC721Enumerable, are used.
Please run the following commands
npm install
yarn install
npx hardhat compile
node scripts/deploy.js
Other useful commands
npx hardhat accounts
npx hardhat clean
npx hardhat test
npx hardhat help
NOTE: It is necessary to modify the file .env.example
so that it is .env
and contains the private key of the account that is going to deploy the contract and the identifier of the project previously created in Infura.
This is an example of how to deploy at the Rinkeby TESNET
npx hardhat run .\scripts\deploy.js --network rinkeby
You can use Chainlink's faucet to get Ether to be used in Rinkeby's TESNET
Use the following command to generate and export a single smart contract at the moment of verifying and validating the ByteCode of a contract.
npx hardhat flatten > Flattened.sol
NOTE: Please remove all license lines and then leave only one of them to avoid errors.