Next-generation prediction markets on Stellar (via Soroban).
The project centers around the predinex Soroban smart contract which manages pool states, betting logic, and fund distribution. It utilizes the Stellar Asset Contract (SAC) for secure token transfers.
graph TD
User[User / Client]
subgraph Stellar_Blockchain [Stellar Blockchain]
Contract[predinex.wasm]
Ledger[Ledger State]
end
subgraph Storage [Soroban Storage]
Pools[Pools Data]
UserBets[User Bets Data]
end
User -- "Create Pool" --> Contract
User -- "Place Bet (XLM/TKN)" --> Contract
User -- "Settle Pool" --> Contract
Contract -- Read/Write --> Pools
Contract -- Read/Write --> UserBets
Contract -- Updates --> Ledger
The prediction market lifecycle on Stellar is designed for speed and finality.
stateDiagram-v2
[*] --> Created: create_pool
state Created {
[*] --> BettingOpen
BettingOpen --> BettingOpen: place_bet
}
Created --> Settled: settle_pool
state Settled {
[*] --> FundsDistributed
note right of FundsDistributed
Winner is declared
Marked as settled
end note
}
Settled --> [*]
- Decentralized Prediction Pools: Create and manage binary outcome markets with ease.
- Fast Settlements: Leverages Stellar's 5-second finality for rapid results.
- Cross-Asset Betting: Compatible with any Stellar asset via the Stellar Asset Contract (SAC).
- Automated Bookkeeping: Real-time tracking of pool totals and user positions.
- Robust Security: Built with Rust and Soroban's secure-by-design architecture.
- Transparency: Fully verifiable on-chain data and transaction history.
- Rust
- Stellar CLI
- Node.js (v18+)
-
Clone the repository
git clone <repository-url> cd predinex-stellar
-
Build the Contract
cd contracts/predinex stellar contract build -
Run Tests
cargo test
Predinex Stellar follows a phased approach to bring a premium betting experience to the ecosystem.
- ✅ Core contract logic (Pools, Bets, Settlement).
- ✅ Unit test suite for full lifecycle verification.
- ✅ Token integration (SAC).
- 🔄 Stellar SDK integration.
- 🔄 Freighter wallet support.
- ⏳ Real-time market tracking on Stellar.
- 📅 Multi-token liquidity pools.
- 📅 Decentralized Oracle integration.
- 📅 Governance dashboard for platform parameters.
This project is licensed under the ISC License.