This project demonstrates a basic Hardhat use case. It comes with a contract generated by OpenZeppelin Wizard, a test for that contract, and a script that deploys that contract.
npm install
npm test
You can target any network from your Hardhat config using:
npx hardhat run --network <network-name> scripts/deploy.ts
-
Compile npx hardhat compile
-
Deploy local npx hardhat node npx hardhat run --network localhost scripts/deploymintpass.ts npx hardhat run --network localhost scripts/deploymindfulnft.ts
-
Deploy public npx hardhat run scripts/deploymintpass.ts --network polytestnet npx hardhat run scripts/deploymindfulnft.ts --network polytestnet
-
Verify npx hardhat verify --network polytestnet {contract_address} {constructor args}
e.g. npx hardhat verify --network polytestnet 0xb67d4B2C967D4aA6c148CDB9bBc43e19E673669E "0x4BCC679c78E2C6D724E49B2F59f0F3B0565854D9" "0x1f6A403347fd2d335d14Dc3f1AEb21D9192cF166" 100000000000000 100 npx hardhat verify --network polytestnet 0xD483d0DE39b3BA9F0cc0D41E853b67a0cc99CF38 "0x91C25E22e131Ae298d291307116FDB054838dc5C" 100
- Interacting with smart contract
npx hardhat run scripts/mintMintPass.js --network polytestnet npx hardhat run scripts/mintMindfulNFT.js --network polytestnet