Firmament
Firmament is a hackathon backend runtime for managed Solana liquidity. It is focused on the maker side: quote decisions, risk checks, wallet settlement state, ledger entries, inventory repair, and public runtime reads. The web app is a small demo surface. It shows a taker swap flow and a read-only runtime page. The main work lives in the Rust backend. Read these in order when setting up a maker:- Quickstart to run the local API and web app.
- Maker setup to configure live credentials, policy, inventory, and safety caps.
- Swap flow to understand the app-facing RFQ and wallet-settlement path.
- Runtime proof to inspect public state, events, ledger, and trades.
What it handles
- firm RFQs for configured USDC, SOL, and cbBTC assets
- policy rejection when size, pair, wallet, price, or inventory checks fail
- browser-wallet settlement through Solana HTLC transactions
- ledger-backed balances and recent trade summaries
- Jupiter rebalancing and Circle Gateway USDC refill when live workers are configured
- runtime events for quotes, settlement, inventory, Gateway, swaps, reconciliation, and system status
What the demo shows
- A taker requests a quote from
/app. - The backend accepts or rejects the RFQ.
- Accepted quotes move through wallet settlement.
/app/runtimeshows health, ledger balances, trade counts, and recent runtime state.
runtime.enable_protocol_workers = true.