A complete NFT project featuring:
- 100 total supply
- 0.01 ETH mint price per NFT
- Built with Foundry and OpenZeppelin
- Next.js frontend for minting
- Name: Chibbi-Cyrene
- Symbol: CHIBBI
- Total Supply: 100 NFTs
- Mint Price: 0.01 ETH per NFT
- Max mint per transaction: 10 NFTs
- Owner functions: Toggle minting, withdraw funds, owner mint
- Security: ReentrancyGuard, Ownable access control
-
Environment Configuration
cp .env.example .env # Edit .env file with your private key and API keys -
Install Dependencies
forge install
-
Run Tests
forge test -
Deploy to Sepolia
forge script script/DeployChibbiCyrene.s.sol --rpc-url sepolia --broadcast
-
Verify Contract (Optional)
forge verify-contract <CONTRACT_ADDRESS> src/ChibbiCyrene.sol:ChibbiCyrene --chain sepolia
Add these to your .env file:
PRIVATE_KEY=your_wallet_private_key_here
ETHERSCAN_API_KEY=your_etherscan_api_key_here
BASE_URI=https://api.chibbi-cyrene.com/metadata/- Sepolia: Will be updated after deployment
The Next.js frontend will be available at /frontend directory with features:
- Connect wallet
- View NFT collection info
- Mint functionality
- Display owned NFTs
# Build contracts
forge build
# Test contracts
forge test
# Deploy to Sepolia
forge script script/DeployChibbiCyrene.s.sol --rpc-url sepolia --broadcast
# Verify contract
forge verify-contract <CONTRACT_ADDRESS> src/ChibbiCyrene.sol:ChibbiCyrene --chain sepolia
# Format code
forge fmt
# Gas snapshots
forge snapshot