Skip to content

willowgray071-cpu/vatix-contract

 
 

Repository files navigation

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

About

Soroban smart contracts for Vatix prediction markets - core market logic and settlements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 77.7%
  • TypeScript 21.6%
  • Other 0.7%