
Lumina NFT Marketplace
A comprehensive NFT marketplace on Somnia Network with minting, auctions, and fixed-price sales.
Timeline
3 Weeks
Role
Full Stack Blockchain Developer
Team
Solo
Status
CompletedTechnology Stack
Key Challenges
- Implementing ERC2981 royalty standard
- Anti-sniping auction protection
- Gas optimization for smart contracts
- Creator verification system
Key Learnings
- Advanced Solidity patterns
- NFT marketplace architecture
- Auction mechanism design
- Smart contract security best practices
Lumina NFT Marketplace
Overview
Lumina is a comprehensive NFT marketplace built on Somnia Network, enabling users to mint, buy, sell, and auction NFTs with full creator royalty support. The platform features ERC721 smart contracts with ERC2981 royalty standard, creator verification, and anti-sniping auction protection.
Key Features
NFT Minting
- Create and mint your own NFTs with customizable metadata
- Support for images, videos, and other media types
- Automatic IPFS integration for decentralized storage
Marketplace
- Fixed-price listings for direct sales
- Auction system with anti-sniping protection
- Creator royalties automatically distributed on secondary sales
Auction System
- Time-based auctions with reserve prices
- Anti-sniping mechanism extends auction time on last-minute bids
- Automatic settlement and winner notification
Technical Implementation
Smart Contracts
- ERC721: Standard NFT implementation with custom extensions
- ERC2981: Royalty standard for automatic creator payments
- Marketplace Contract: Handles listings, offers, and transfers
- Auction Contract: Manages time-based bidding with anti-snipe
Security Features
- Reentrancy guards on all external calls
- Access control for admin functions
- Input validation and bounds checking
- Emergency pause functionality
Tech Stack
Blockchain
- Solidity: Smart contract development
- Hardhat: Development environment and testing
- OpenZeppelin: Audited contract libraries
Frontend
- Next.js: React framework for server-side rendering
- Tailwind CSS: Utility-first styling
- Ethers.js: Blockchain interaction library
- IPFS/Pinata: Decentralized storage
Challenges & Solutions
Anti-Sniping Protection
Extended auction duration when bids are placed in the final minutes, giving other bidders a fair chance to respond.
Gas Optimization
Implemented efficient storage patterns and batch operations to minimize transaction costs for users.
Royalty Enforcement
Integrated ERC2981 to ensure creators receive royalties on all secondary sales automatically.
What I Learned
- Deep understanding of NFT standards and marketplace mechanics
- Smart contract security patterns and best practices
- Building user-friendly DeFi interfaces
- Gas optimization techniques for Ethereum
