Table of Contents
This is a sample of NFT-721A project to deploy to testnet.
-
npm
npm install npm@latest -g
-
install metamask extension
-
add Polygon mumbai testnet to metamask networks
-
claim your test assets from mumbai faucet
-
Clone the repo
git clone https://github.com/bimkon144/NFT721A.git
-
Install NPM packages
npm install
-
Enter your wallet address in
contractAddresses.js
walletAddress: 'ENTER_YOUR_ADDRESS';
-
create .env in root directory with keys like in .env.example
-
go to alchemy create mumbai network app and get api url. Enter the key in .env
MUMBAI_RPC_URL="https://polygon-mumbai.g.alchemy.com/v2/xbeYcyfyuzhLbI-_sxU5NB5rhQk8ypSK";
-
get your wallet private key from metamask. Enter the key in .env
WALLET_KEY="ENTER_YOUR_PRIVATE_KEY";
-
get your API key from polygon scan. Enter the key in .env
POLYGONSCAN_API_KEY="ENTER_YOUR_API_KEY";
-
run deploy script -
npx hardhat run tasks/deploy.js --network mumbai
-
Congratulations! Now you got your deployed and verified contract. You can check it on etherscan.
update: publicSale, whiteListSale, airDrop now got states: 0 - "Soon", 1 - "Available", 2 - "Finished".
Default state of those are 'Soon'.
You have to pass argument of state(0-1) to functions like toggleWhiteListSale(1);
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Alexei kutsenko - [email protected]
Project Link: https://github.com/bimkon144/NFT721A