Phase 0: Foundation
Goal
Fix critical infrastructure so the platform can create wallets, detect deposits, and query balances.
Duration: Week 1
Status: See Migration Overview and Progress.
Tasks
| # | Task | Owner | Done |
|---|---|---|---|
| 1 | Fix TON Signer (integrate tonutils-go) | ||
| 2 | Fix TRON Signer (secp256k1 + keccak256) | ||
| 3 | Complete TON Watcher (blockchain monitoring) | ||
| 4 | Complete TRON Watcher (TRC20 monitoring) | ||
| 5 | Create Balance Service (RPC queries + caching) |
Flow: From chain to deposit
flowchart LR
A[TON/TRON RPC] --> B[Watcher]
B --> C[Deposit DB]
C --> D[Ledger / Notifications]
E[Wallet] --> F[Signer]
F --> G[Address / SignTx]
H[Balance Service] --> I[RPC + Cache]
I --> J[Gateway]
Deliverable
- Wallets can be created for TON and TRON.
- Deposits are detected and stored; balance queries work via Balance Service (or Wallet).
- Signers produce correct addresses and signed transactions for TON and TRON.