Skip to content

StarkAg/NFT-Badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRM Badge Demo

An ERC-721 NFT badge system deployed on Polygon Amoy testnet.

🚀 Contract

Address: 0xd3DCcCE2eD92Cf9C8062C6dc25532E21cbDA1189
Network: Polygon Amoy
Explorer: View on PolygonScan

📋 Features

  • Public Claim: Anyone can claim one free badge per address
  • Admin Mint: Contract owner can mint badges for specific addresses
  • ERC-721 Standard: Fully compliant NFT contract using OpenZeppelin

🛠️ Setup

  1. Install dependencies:
npm install
  1. Create .env file:
PRIVATE_KEY=your_private_key_here
AMOY_RPC=https://polygon-amoy.g.alchemy.com/v2/your-api-key
  1. Compile contracts:
npm run compile
  1. Deploy to Polygon Amoy:
npm run deploy:amoy

🌐 Frontend

Open frontend/index.html in your browser to interact with the contract.

Requirements:

  • MetaMask wallet
  • Connected to Polygon Amoy network
  • Some testnet MATIC for gas fees

📦 Project Structure

srm-badge-demo/
├── contracts/
│   └── SRMBadge.sol      # Main NFT contract
├── scripts/
│   └── deploy.js         # Deployment script
├── frontend/
│   ├── index.html        # Frontend UI
│   └── script.js         # Wallet interaction
├── hardhat.config.js     # Hardhat configuration
└── package.json          # Dependencies

🔧 Commands

  • npm run compile - Compile Solidity contracts
  • npm run deploy:amoy - Deploy to Polygon Amoy
  • ./deploy-and-update.sh - Deploy and update frontend

📝 License

MIT

About

ERC-721 NFT badge system deployed on Polygon Amoy testnet. Features public claim functionality and admin minting capabilities using OpenZeppelin standards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors