How dracor22/handi-cat_wallet-tracker works
Main Components
a) Client Layer:
• Telegram Bot Interface
• Bot Commands Module
• Message Handlers Module
b) Application Core:
• Transaction Processing Engine
• Wallet Tracking System
• Rate Limiting Service
c) External Services:
• Solana RPC Node
• Telegram API
• Token Price APIs
d) Data Layer:
• Supabase Database
• Prisma ORM
• Prisma Pulse (Real-time Updates)
[Telegram Users] → [Telegram Bot Interface]
• ↓
[Bot Layer (Commands & Handlers)] → [Application Core]
• ↓
• ┌─────────────┬──────┴───────┐
• ↓ ↓ ↓
• [External APIs] [Database Layer] [Blockchain]
Component Details
a) Bot Layer (src/bot/):
• Message processing flow
• Rate limiting mechanism
b) Core Services (src/lib/):
• Wallet tracking system
• Transaction parsing pipeline
• Token price aggregation
c) Data Flow:
• Real-time updates via Prisma Pulse
• Transaction monitoring flow
• User subscription handling
Specific Implementation Details
Key architectural elements:
• Prisma repositories pattern (src/repositories/)
• Transaction parsing pipeline (src/parsers/)
• Provider services (src/providers/)
• Type system (src/types/)
Important Relationships to Highlight
• Real-time transaction monitoring flow
• Database update notifications
• User subscription management
• Token price aggregation pipeline
Additional Elements
• Configuration management
• Cron jobs for maintenance tasks
• Backup processes
• Promotion handling system