A multiplayer racing game on Base where players tap to move their team's coin around a circular track. First team to complete 3 laps wins and shares the prize pool proportionally!
# 1. Install dependencies
npm install
# 2. Set up environment (see SETUP.md)
cp env.example .env.local
# 3. Run in demo mode (no blockchain)
npm run dev
# 4. For production mode, see SETUP.md for deployment→ SETUP.md - Complete setup guide with:
- Environment configuration
- Contract deployment
- Multi-player testing
- Troubleshooting
- Circular Race Track - Coins race around a circuit (not linear bars!)
- 3 Laps to Win - 3,000 taps total, 1,000 per lap
- Real-time Multiplayer - Cross-browser/device synchronization
- Smart Contracts - Decentralized race management on Base
- Proportional Winnings - Fair distribution based on contribution
- Mobile Responsive - Works on all devices
- No blockchain required
- Instant testing
- Single-player only
- Real blockchain transactions
- Multi-player support
- Requires Base Sepolia ETH
- Frontend: Next.js 15, TypeScript, Tailwind CSS, Framer Motion
- Blockchain: Hardhat, Solidity, Wagmi, Viem
- Network: Base Sepolia (Testnet)
├── src/
│ ├── app/ # Next.js app directory
│ ├── components/ # React components
│ └── lib/ # Utilities and state management
├── hardhat/ # Smart contracts
│ ├── contracts/ # Solidity contracts
│ └── ignition/ # Deployment scripts
├── env.example # Environment template
└── SETUP.md # Complete setup guide
- Connect wallet (Base Sepolia network)
- Create or join a race (pay entry fee)
- Wait for host to start
- Tap rapidly! Move your team around the track
- First to 3 laps wins
- Claim your winnings (proportional to your taps)
# Install dependencies
npm install
cd hardhat && npm install && cd ..
# Run development server
npm run dev
# Deploy contracts (see SETUP.md first)
cd hardhat
npm run deploy:baseSepolia
# Build for production
npm run build
npm startSee env.example for template. Key variables:
NEXT_PUBLIC_RACE_FACTORY_ADDRESS- Deployed contract addressNEXT_PUBLIC_BASE_SEPOLIA_RPC_URL- RPC endpointDEPLOYER_PRIVATE_KEY- For contract deployment (hardhat/.env)
See SETUP.md for common issues and solutions.
MIT
Contributions welcome! This is a hackathon/demo project.
🎮 Ready to race? See SETUP.md for complete instructions! 🏁