
SOO is a decentralized arbitration system for resolving on-chain disputes. It serves as an oracle for projects like prediction markets, insurance protocols, derivatives, and cross-chain bridges, providing data ranging from cryptocurrency prices to sports and political events.
Stellar soroban contracts are currently being used for onChain contract development. I have done some initial work in this github repo(https://github.com/stackman27/soroban-opt-oracle) which i plan on expanding.
OnChain Optimistic Oracle (OOO) contract
The OOO is used to assert truths about the world which are verified using an optimistic escalation game.
Core idea: an asserter makes a statement about a truth, calling "assertTruth". If this statement is not challenged, it is taken as the state of the world. If challenged, it is arbitrated using the Data verification engine or if configured, an escalation manager. Escalation managers enable integrations to define their own security properties and tradeoffs, enabling the notion of "sovereign security".
OnChain Voting Oracle contract
OnChain Staking Contract
Staking contract enabling XLM to be locked up by stakers to earn a pro rata share of a fixed emission rate. This contract also handles the staking, unstaking and reward retrieval logic. There won't be any new XLM token generated, but the yield will be generated based on the asserter/disputer lost staked. Tentative staking interface below;
#[derive(Debug)]
pub struct VoterStake {
stake: u128, // XLM staked by the staker.
pending\_unstake: u128, // XLM in unstake cooldown period, waiting to be unstaked.
pending\_stakes: HashMap<u32, u128>, // If a voter stakes during an active reveal, stake is pending.
rewards_paid_per\_token: u128, // Internal tracker used in the calculation of pro-rata share of rewards.
outstanding\_rewards: u128, // Accumulated rewards that have not yet been claimed.
unapplied\_slash: i128, // Used to track unapplied slashing in the case of bisected rounds.
next_index_to\_process: u64, // The next request index that a staker is susceptible to be slashed on.
unstake\_time: u64, // Time that a staker can unstake. Used to determine if cooldown has passed.
delegate: Option<String>, // Address a staker has delegated to. The delegate can commit/reveal/claimRestake rewards.
}
OnChain Reward Distribution contract
Export a pluggable interface for other Soroban contracts to use it easily
Build necessary adaptars for the oracle contract interface to be easily pluggable in other projects
The adapters can be universally used or be changed subject to a specific project need
OffChain Data Verification Engine (DVE)
This is an offChain component which will be written in Rust to read/write to Stellar blockchain
DVE Purpose: Resolves disputes in the Soroban optimistic oracle by verifying disputed data.
Dispute Process: Ex: A price request is submitted to the DVE, triggering a vote among SOO stakers.
Voting Period: Voting lasts x hrs
Voting Criteria: SOO stakers use off-chain price feeds to guide their votes.
Final Price: The DVE aggregates votes to determine the final asset price for the given timestamp.
Yes
$30.0K
Expected success criteria by the end of the grant;
Integrate with 3 different Stellar projects enabling real-time data flow from the oracle to their platform
Have > 10 stakers consistently voting and earning rewards using our system
The rewards and security of the system grows as the project grows
Become a standard for onChain dispute handling on Stellar ecosystem
Keep the system economically secure and have strong security against spams, bots and malicious users.
Build early traction and trust by connecting with Stellar ecosystem founders and key developers.
Foster relationships with influential projects within the Stellar ecosystem and integrate them into the SOO service.
Collaborate with Stellar-focused developer communities to promote the adoption of the SOO framework.
Launch small bounty programs to incentivize the creation and use of SOO service
The Stellar Optimistic Oracle (SOO) is currently in the process of being deployed to the Stellar Testnet. This integration is pivotal for expanding the range of use cases that can be built on Stellar, from DeFi (decentralized finance) applications to synthetic assets, prediction markets, and real-world data tracking.
As part of this deployment, we are conducting several test flights to rigorously test the functionality and reliability of the Optimistic Oracle within the Stellar Testnet environment. These test flights involve the deployment of specific smart contracts that simulate real-world data requests, dispute resolutions, and data verification processes. In addition to the technical deployment, I am also in active communication with several other Stellar-funded projects that are well-positioned to leverage the capabilities of the Stellar Optimistic Oracle. These projects span across multiple sectors, including finance, data marketplaces, and NFT platforms, and could significantly benefit from integrating this oracle technology. The goal is to explore collaborative opportunities where SOO can be incorporated into existing Stellar-based applications or be used to create new innovative products that require reliable and decentralized data feeds. These projects are looking for ways to incorporate off-chain data for use in:
Automated price feeds for decentralized trading or financial derivatives.
Synthetic assets that track the value of real-world commodities and assets.
Event-driven smart contracts in prediction markets or decentralized insurance.
Cross-chain interoperability, where data from other blockchains or traditional systems can be fed into Stellar-based ecosystems.
[Deliverable 1: MVP]
Brief Description:
The MVP will focus on implementing a working version of the product to quickly achieve market fit and validate core functionalities.
How to Measure Completion:
End-to-End On-Chain Completion (Soroban): Deploy basic on-chain contracts on Soroban to ensure the core system functions on the Stellar blockchain.
Off-Chain Data Verification Engine: Develop an off-chain data verification engine in Rust to handle external data processing.
Mock Stakers Simulation: Run mock stakers to demonstrate the software’s usage in verifying claims.
End-to-End Functionality: Ensure the product can verify claims truthfully and reliably from off-chain data sources.
No Frontend Development: Frontend work is excluded during the MVP phase.
Estimated date of completion
Budget
$7,000
Soroban Contract Engineer, 100hr at $70rate, $7,000
[Deliverable 2: Testnet]
Brief Description:
After the MVP release, public testing will be conducted to ensure the Stellar Optimistic Oracle (SOO) works as expected in a real-world, non-production environment.
How to Measure Completion:
Deploy Contracts on Stellar Testnet: Deploy SOO contracts to Stellar Testnet for live testing.
Two-Step Voting Process: Implement and test the privacy-focused two-step voting mechanism.
Staking/Slashing Mechanism: Integrate staking/ slashing for honest data reporting and penalties for bad actors.
Voter Yield Mechanism: Develop yield generation for validators involved in dispute resolution.
Economic Guarantees for Voter Yield: Design economic incentives to ensure sufficient rewards for stakers.
Public Testing: Make the testnet version publicly available for users to test claims and participate.
Extensive Contract Testing: Perform thorough testing of contracts for security and functionality.
Frontend Integration: Complete frontend and integrate with Soroban contracts + off-chain code.
Estimated date of completion
Budget
$13,000
Soroban Contract Engineer, 100hr at $70rate, ~$7,000
Full Stack Engineer, 90hr at $65rate, ~$6,000
[Deliverable 3: Mainnet]
Brief description
Audited Soroban Contracts: All contracts will undergo external security audits to ensure they are secure and ready for mainnet deployment.
Partnership with Stellar Projects: At least one Stellar-funded project will integrate SOO, enabling real-time data flow from the oracle to their platform.
End-to-End (E2E) Functionality: The system will be fully functional for both on-chain (Stellar) and off-chain (external data) interactions, with all components tested for seamless integration.
Economic & Privacy Guarantees: The system will offer strong economic incentives for correct behavior and implement privacy protections for all participants.
How to measure completion
Audited Contracts: Successful completion of security audits with reports available to the community.
Integration with a Stellar Project: At least one Stellar-based project will integrate SOO, demonstrating its practical use.
End-to-End Testing: Complete E2E tests showing smooth data flow and dispute resolution on both the on-chain and off-chain components.
Stakers Available for Voting: At least 5-10 stakers ready to participate in dispute resolution during mainnet launch.
Estimated date of completion
Budget
$10,000
Soroban Contract Engineer, 100hr at $70rate, ~$7,000
Full Stack Engineer, 50hr at $65rate, ~$3,000
Team is composed of 2 individuals. I am currently a Blockchain engineer at Chainlink labs designing + implementing oracle systems in different blockchain ecosystem. I have been active in crypto for the past 5 years where i've previously worked on building Concentrated liquidity AMM at Osmosis Labs.

No other submissions.