How xamie01/swat works
WAKE is a multi-chain, non-custodial copy-trading product. A user manages a followed trader (“master”) through the dashboard and API; WAKE ingests that master’s activity, evaluates per-master signals and safety, then sizes and executes mirrors under the user’s balance and risk settings. Scoring and clustering support wallet intelligence and discovery, while alerts report trade and ingestion status. The README documents the service-level pipeline; sampled source confirms selected auth, API-client, ingestion-health, and database details, so unsampled internal links are omitted.
Main entry points: src/index.ts Multi-chain indexer · src/index.ts Trade executor · src PostgreSQL data · src/index.ts REST API
Components 16
User access
- Dashboard
apps/web/app - Browser API client
apps/web/lib/api.ts - REST API
apps/api/src/index.ts
Wallet intelligence
- Multi-chain indexer
apps/indexer/src/index.ts - Wallet scoring
apps/scorer/src/index.ts - Wallet discovery
apps/discovery/src/runner.ts
Signals and control
- Signal engine
apps/signal-engine/src/index.ts - Alert service
apps/alert-service/src/index.ts
Trade execution
- Trade executor
apps/trade-executor/src/index.ts - Solana venues
- Polymarket CLOB
- Robinhood Chain
Persistence and operations
- PostgreSQL data
packages/db/src - Ingestion health
packages/db/src/ingestion-health.ts
Other components
- WAKE user
- Telegram
Connections 17
- WAKE user → Dashboard: manages wallets
README.md - Dashboard → Browser API client: requests data
apps/web/lib/api.ts - Browser API client → REST API: calls API
apps/web/lib/api.ts - REST API → PostgreSQL data: authenticates users
- REST API → Wallet discovery: triggers discovery
README.md - Multi-chain indexer → PostgreSQL data: stores transactions
README.md - Multi-chain indexer → Signal engine: publishes swap events
README.md - Multi-chain indexer → Wallet scoring: supplies wallet data
README.md - Wallet scoring → PostgreSQL data: stores scores
README.md - Signal engine → Trade executor: dispatches trades
README.md - Signal engine → Alert service: dispatches alerts
README.md - Trade executor → Solana venues: executes swaps
README.md - Trade executor → Polymarket CLOB: places orders
README.md - Trade executor → Robinhood Chain: executes swaps
README.md - Alert service → Telegram: sends notifications
README.md - Multi-chain indexer → Ingestion health: records batch health
- Ingestion health → PostgreSQL data: writes health records
packages/db/src/ingestion-health.ts