This is a sample project made by me in which a contract development, testing and deployment (on Polygon's Mumbai Testne) has been done using Hardhat. The Repo also contains a simple frontend for checking if any address is whitelisted and then minting.
The user needs to sign-in by Signing a Message and then he/she/it can take the following actions:
- Mint (per NFT costs 0.1 ) his/her/its address
- Check if he/she/it is Whitelisted.
Please note that right now only 0xE61DCBb8B3dcf391B2144DD948738028431A4192
(mine) is Whitelisted.
The smart contract can be deployed using the general methodology but please make sure to have your .env
in the smart contracts. The .env
should atleast have
the following Environment Variables:
ETHERSCAN_API_KEY=<Your Etherscan Key>
ROPSTEN_URL=https://eth-ropsten.alchemyapi.io/v2/<YOUR ALCHEMY KEY>
PRIVATE_KEY=<Your Private Key>
REPORT_GAS=false
POLYGONSCAN_API_KEY=<Your Polygonscan key>
Given below is the process to run the frontend:-
- Browse to the frontend dir and run
npm install
. - Run
npm start
to open the site locally onlocalhost:3000
.
On the Frontend:-
- React
- Material UI
- EthersJS
On the Backend:-
- Hardhat
Solidity Compiler version: 0.8.4