How gobicycle/bicycle works
Main System Components
a) Core Processing Components:
• Payment Processor Service (Main Application)
• TON Blockchain Node (External Dependency)
• PostgreSQL Database
• Optional Components:
• RabbitMQ for notifications
• Grafana for monitoring
• Webhook notification system
b) Wallet Components:
• Hot Wallet (Main processing wallet)
• Cold Wallet (Security storage)
• Deposit Addresses (User payment endpoints)
Architecture Representation
TOP LAYER:
• External Interfaces (REST API, Webhooks)
• Monitoring (Grafana, Prometheus)
MIDDLE LAYER:
• Core Processing Components
• Block Scanner
• Withdrawal Processor
• Payment Processor
• Queue Manager
BOTTOM LAYER:
• Storage Layer (PostgreSQL)
• Blockchain Interface Layer
Component Relationships
• Blockchain interactions (special connector)
Specific Implementation Details
a) Payment Flow:
• User → Deposit Address → Hot Wallet → Cold Wallet
• Withdrawal process from Hot Wallet to user wallets
b) Monitoring Flow:
• Metrics collection
• Grafana dashboards
• Prometheus monitoring
c) Security Boundaries:
• API authentication zones
• Blockchain verification boundaries
• Wallet security levels
Technical Elements
Specific components from the codebase:
• API Handlers (from /api)
• Blockchain Interface (from /blockchain)
• Core Processing (from /core)
• Database Layer (from /db)
• Queue Management (from /queue)
• Webhook System (from /webhook)