Skip to content

floxxih/zMiniNftt

Repository files navigation

💎 MiniNFT

A collection of 505 unique NFTs on Base Chain with micro-pricing.

MiniNFT Banner License NFTs

✨ Features

  • 505 Unique NFTs - Each NFT is uniquely generated
  • Random Minting - Get a random NFT from the collection
  • Micro Price - Only 0.00001 ETH per mint
  • Batch Minting - Mint up to 10 NFTs at once
  • 5 Rarity Tiers - Common, Uncommon, Rare, Epic, Legendary
  • Base Chain - Low gas fees on Ethereum L2

🚀 Quick Start

Prerequisites

Smart Contract

# Install dependencies
forge install

# Build
forge build

# Test
forge test

# Deploy (update .env first)
forge script script/DeployMiniNFT.s.sol --rpc-url base --broadcast

Frontend

cd frontend

# Install dependencies
npm install

# Run development server
npm run dev

📜 Contract Details

Property Value
Network Base Mainnet
Contract 0x80203c0838a1cABe0eAbc0aC9e22f6Abd512cAa9
Max Supply 505
Mint Price 0.00001 ETH
Max per Batch 10

🏗️ Architecture

miniNFT/
├── src/
│   └── MiniNFT.sol          # Main NFT contract
├── test/
│   └── MiniNFT.t.sol        # Foundry tests
├── frontend/
│   ├── src/
│   │   ├── components/      # React components
│   │   ├── hooks/           # Custom hooks
│   │   ├── App.jsx          # Main app
│   │   └── contract.js      # Contract config
│   └── package.json
└── foundry.toml

🔧 Contract Functions

Read Functions

  • remainingSupply() - Get available NFTs count
  • totalSupply() - Get minted NFTs count
  • balanceOf(address) - Get user's NFT count
  • tokenURI(uint256) - Get NFT metadata URI

Write Functions

  • mint() - Mint 1 random NFT (0.00001 ETH)
  • mintBatch(quantity) - Mint multiple NFTs (max 10)

Owner Functions

  • setBaseURI(string) - Update metadata URI
  • withdraw() - Withdraw contract balance

🎨 NFT Rarity Distribution

Tier Probability Count
Common 40% ~202
Uncommon 30% ~152
Rare 18% ~91
Epic 9% ~45
Legendary 3% ~15

🔗 Links

📄 License

MIT License - see LICENSE for details.


Built with ❤️ on Base Chain

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published