This project allows an oracle (contract deployer) to award NFTs on Polygon
- BadgeFactory contract deploys Badge contracts for owner
- BadgeFactory contract awards badges specified by owner
- BadgeFactory contract allows whitelisted addresses to burn badges
- BadgeFactory contract allows whitelisted addresses to revoke their privileges
- Store your private key in a .secret file
- run
npm installfrom the project's root directory - To deploy on Polygon mainnet, include a .matic-vigil-key file with your Matic Vigil API key: https://maticvigil.com
- run scripts:
node scripts/deploy-and-mint.js - run tests:
npx hardhat test - interact with contracts directly:
npx hardhat console
- hardhat
- a local network great for testing
- mumbai
- test MATIC required https://faucet.polygon.technology
- matic
- MATIC token and .matic-vigil-key required for interacting with Polygon mainnet