Architecture
1. What Tycho Explorer Does
2. Architecture
┌─────────────────────────────────────────────────────────────────────┐
│ Frontend (React) │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ Views: PoolList.tsx, NetworkGraph.tsx, SwapInterface.tsx │ │
│ └─────────────────────────────────────────────────────────────┘ │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ State: useWebSocket.ts, usePools.ts, FilterContext.tsx │ │
│ └─────────────────────────────────────────────────────────────┘ │
└───────────────────────────┬─────────────────────────────────────────┘
│ WebSocket + HTTP
┌───────────────────────────┴─────────────────────────────────────────┐
│ Backend (Rust) │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ API: ws.rs (WebSocket), pools.rs, simulation.rs │ │
│ └─────────────────────────────────────────────────────────────┘ │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ Cache: Pool state, Route finder, Price calculator │ │
│ └─────────────────────────────────────────────────────────────┘ │
└───────────────────────────┬─────────────────────────────────────────┘
│ Tycho SDK
┌───────────────────────────┴─────────────────────────────────────────┐
│ Blockchains: Ethereum, Base, Unichain │
└─────────────────────────────────────────────────────────────────────┘3. When There Is a New Block
4. When User Gets a Swap Quote
Last updated