It is necessary to develop a full-fledged 2D farm game in Telegram with gamification, tap-to-earn mechanics, referral system, and Web3 features (company tokens, NFT, staking). The game should be launched as a Mini-App inside Telegram and support messenger-based authorization.
Tasks and Requirements
1. Frontend (game client)
- Framework: Phaser.js
- Wrapper: React or Vue.js
- Gameplay:
- 2D scenes "farm": pastures, cows, milking machines
- Tap-to-earn, daily quests and missions, puzzles
- Leaderboards, achievements, social challenges
- Telegram Integration:
- Telegram Web App SDK (authorization, context transfer)
- Inline buttons and deep-link transitions from chat
- UX/UI:
- Responsive interface for mobile platforms
- Animations and micro-interactions
2. Bot & Backend
- Language and framework: Node.js + Telegraf.js
- Bot functionality:
- Linking Telegram ID to game profile
- Referral system: generating and tracking referral links, bonus accrual
- Sending notifications about new missions and airdrops
- API for frontend:
- Storing progress, statistics, and ratings
- Endpoints for requests: get profile, balance, task list
- Database: PostgreSQL (or similar)
3. Web3 Integration
- Smart Contracts:
- ERC-20 company token
- ERC-721/1155 for game NFTs
- Development tools: Hardhat or Truffle
- Client library: ethers.js (interacting with contracts, wallets)
- Functions:
- mint / claimReward
- stake / unstake
- transfer / swap within the game
- Wallet support: MetaMask, Telegram Wallet, WalletConnect
4. Admin Panel
- Framework: React or Vue.js
- Functions:
- Monitoring KPIs (DAU, CPA, Retention)
- Managing referral and airdrop campaigns
- Viewing and moderating user accounts
- Configuring economic parameters (bonus sizes, farming speeds)
5. Infrastructure and DevOps
- Containerization: Docker for all services
- CI/CD: GitHub Actions (or similar)
- Deployment: AWS / GCP / DigitalOcean
- Monitoring and logging: Prometheus + Grafana or ELK
6. Testing and Security
- Functional testing: coverage of critical scenarios
- Unit and integration tests for smart contracts
- Security audit of smart contracts (recommendations for fixes)
- Load testing of backend API and bot
Expected Results
- A fully functional Telegram Mini-App with the described features
- Deployed and tested smart contracts
- Bot and backend ready for scaling
- Admin panel for project management
- Detailed documentation on installation, deployment, and operation
Required Freelancer Skills
- Phaser.js, JavaScript/TypeScript, HTML5/WebGL
- React or Vue.js
- Node.js, Telegraf.js, Express
- Solidity, Hardhat/Truffle
- ethers.js / Web3.js
- PostgreSQL (relational databases)
- Docker, CI/CD, experience deploying to cloud services
- Experience developing Telegram Mini-Apps and bots
- Knowledge of Web3 architecture, tokenomics, and NFT