Theorem is a high-density, low-latency Real-World Asset (RWA) indexing pipeline engineered for the Solana blockchain. Designed primarily with Python (FastAPI/SQLModel) and a Vite + TypeScript + React 19 execution runtime, it minimizes Rust dependencies to focus on rapid data ingestion, transformation, and API delivery. The system leverages PostgreSQL for persistence and implements advanced streaming, caching, and retry architectures to ensure robust operation against public Solana RPC endpoints.
- Backend: Python, FastAPI, SQLModel, Asyncpg.
- Database: PostgreSQL (local/production tuned).
- Frontend: Vite, TypeScript, React 19.
- Blockchain Interface: Async Solana RPC client, WebSockets, specialized binary deserializers (Borsh).
- Windows 7 (PowerShell execution policies must allow local scripts)
- Python 3.10+
- PostgreSQL
- Git
- Environment Initialization:
# Open PowerShell as Administrator (if required for execution policy) Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Execute the initialization script .\setup.ps1