Explanations > Architecture
Architecture
Explain Quovra's system architecture and data path.
Architecture
Quovra has three layers:
- Frontend: Next.js app for markets, receipts, faucet, wallet actions, and docs.
- Settlement kernel: Anchor program on Solana that escrows, settles, and pays.
- Proof source: TxODDS TxLINE API and txoracle program.
mermaid
flowchart TB
subgraph Browser
UI[Next.js UI]
Wallet[Solana wallet]
end
subgraph AppServer[Next.js server]
Faucet[/api/faucet]
Reads[market/account reads]
end
subgraph Solana[Solana devnet]
Program[Quovra program]
Vault[USDC vault PDA]
TxOracle[TxODDS txoracle]
end
subgraph TxLINE[TxODDS TxLINE]
API[Proof API]
Roots[Daily score roots]
end
UI --> Reads
UI --> Wallet
Wallet --> Program
Faucet --> Solana
API --> Keeper[Keeper]
Keeper --> Program
Program --> TxOracle
TxOracle --> Roots
Program --> VaultDesign choices
| Choice | Reason |
|---|---|
| Pull payouts | Settlement proof verification stays separate from token transfers |
| Stored market terms | Callers cannot change fixture/stat/threshold during settlement |
| Txoracle CPI | Proof verification happens on-chain |
| Devnet test USDC | Safe public demo without real-money wagering |
| Metadata fallback | RPC flakiness should not crash public pages |
Related pages
Search keywords
architecture, Next.js, Anchor, TxLINE, txoracle, Solana
Last updated: [YYYY-MM-DD]