Skip to content

Latest commit

 

History

History
91 lines (61 loc) · 1.95 KB

File metadata and controls

91 lines (61 loc) · 1.95 KB

Vatix Contracts

Soroban smart contracts for the Vatix prediction market protocol on Stellar.

Overview

Core smart contracts powering Vatix prediction markets, written in Rust for the Stellar Soroban platform.

Contracts

  • Market Contract: Market creation, trading, and settlement logic
  • Outcome Token: Fungible tokens representing market outcomes
  • Resolution Contract: Oracle-based outcome resolution
  • Treasury: Fee collection and protocol management

Tech Stack

  • Language: Rust
  • Platform: Stellar Soroban
  • Testing: Soroban SDK test utilities
  • Build: Cargo

Planned Functionality

  • Binary outcome markets (Yes/No)
  • Share minting and trading
  • Oracle-based resolution
  • Fee distribution
  • Market expiration and settlement

Frontend (apps/web)

Next.js 16 app for prediction-market UI (mock data + Freighter wallet stub).

pnpm install
pnpm dev          # http://localhost:3002
pnpm build:web

Getting Started

Contracts

# Prerequisites: Rust toolchain, Soroban CLI
cd contracts/market && cargo build

Contributor issues

Generate 375 onboarding issues (125 per repo) — see scripts/issues/README.md.

pnpm issues:generate
pnpm issues:publish   # requires gh auth

Development

# Prerequisites
- Rust toolchain
- Soroban CLI
- Node 20+ and pnpm 8+ (for apps/web and issue scripts)

# Build contracts
cargo build 

Security

Smart contract security is critical. All contracts will undergo:

  • Extensive unit testing
  • Integration testing
  • External audits before mainnet deployment

Contributing

Contribution guidelines coming soon. For now, check out vatix-docs for project information.

License

MIT License


Part of the Vatix Protocol