Industrial + Futuristic + Dark + Minimal Web3 Telegram Mini App built on TON Testnet and Supabase.
- Framework: Next.js 14+ (App Router, TypeScript, Tailwind CSS)
- State Management: Zustand
- Animations: Framer Motion, Lucide Icons
- Database & Auth: Supabase (PostgreSQL, Row Level Security, Service Role API)
- TON Ecosystem: @tonconnect/ui-react, @ton/ton, @twa-dev/sdk
- Smart Contracts: Tact (TON Testnet)
- Off-Chain Mining Engine: Real-time visual increment with server-side authoritative validation and atomic claim logic.
- Dynamic Level Progression: Non-linear level calculator based on total $DRILL balance.
- Task System: Interactive tasks with strict anti-double-claim protection (
UNIQUEconstraints). - Referral System: Telegram
startapplink generation and automated energy transfer rewards. - TON Wallet & NFT Access: TonConnect integration for Testnet wallets with Mining NFT access verification.
- Genesis Season & Halving: 30-day locked withdrawal phase with automated quarterly halving emission logic.
Create a .env.local file in your local environment using the template below:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
NEXT_PUBLIC_TON_NETWORK=testnet
NEXT_PUBLIC_TON_CONNECT_MANIFEST_URL=https://drillprotocol.xyz/tonconnect-manifest.json
TON_RPC_URL=https://testnet.toncenter.com/api/v2/jsonRPC
TON_TESTNET_MNEMONIC="word1 word2 ... word24"
GENESIS_START_TIMESTAMP=1725148800
NEXT_PUBLIC_NFT_COLLECTION_ADDRESS=your_testnet_nft_collection_address