Chainlink-compatible oracle infrastructure for Somnia
Somnia is a high-throughput L1 with a growing developer ecosystem, but it had no standardized oracle layer. Without trusted price feeds and verifiable randomness on the network, teams could not safely build lending markets, DEXs, derivatives, or on-chain games, because those applications depend on external data and provably fair randomness that a chain does not produce on its own.
Somnia contracted Protofire to close that gap. Within 92 days, Protofire designed and deployed a Chainlink-compatible oracle stack: four OCR-based production price feeds, a distributed cluster of oracle nodes running OCR consensus, and VRF-based randomness infrastructure. The feeds aggregate market data from multiple external providers and write on-chain price updates on a fixed interval. The result is a shared data layer developers can build on without each team operating its own oracle infrastructure.
“A price feed is only useful if the whole ecosystem treats it as the reference.”
How Protofire built Somnia's oracle infrastructure
Protofire delivered the stack Chainlink's model calls for, adapted to Somnia's operational setup. We deployed four OCR-based price feeds, each aggregating data from multiple external providers, with on-chain aggregator contracts that deliver verified prices to Somnia smart contracts every 30 to 60 seconds.
Off-chain, we ran a distributed cluster with five oracle nodes participating in OCR consensus, hosted in isolated infrastructure so a single node failure does not stop reporting. For randomness, we deployed VRF Coordinator, subscription, and wrapper contracts, giving gaming and NFT applications provably fair randomness through interfaces developers already know.
We also shipped operational tooling and documentation so operators can participate in the network over time. Because the interfaces match Chainlink's, a team already familiar with Chainlink price feeds integrates without learning a new API.
Results
The price feeds and node cluster ran in production under Protofire's operation after deployment.
Proof pack
The price-feed work is public: somnia-price-feeds is Protofire's Hardhat project with the feed contracts, deployment tasks, and documentation. The wider engineering history sits in the Protofire GitHub org.