Skip to content

solutions-plug/predictIQ

Repository files navigation

PredictIQ Documentation

Welcome to the PredictIQ project documentation index.

Contents

Document Description
API Specification Full on-chain contract API — methods, error codes, and events
OpenAPI (REST) REST API spec for the off-chain backend service

Repository Layout

predictIQ/
├── API_SPEC.md                  # On-chain contract API reference
├── contracts/
│   └── predict-iq/              # Soroban smart contract (Rust)
│       └── src/
│           ├── lib.rs           # Public contract entry points
│           ├── errors.rs        # ErrorCode enum
│           ├── types.rs         # Shared types and constants
│           └── modules/         # Feature modules (markets, bets, oracles, …)
├── services/
│   ├── api/                     # Rust/Axum backend API
│   │   ├── openapi.yaml         # REST API spec
│   │   ├── DATABASE.md          # Database schema and migration guide
│   │   └── database/
│   │       ├── migrations/      # Ordered SQL migration files
│   │       └── seeds/           # Development seed data
│   └── tts/                     # Text-to-speech microservice (TypeScript)
├── frontend/                    # Next.js frontend
└── docs/                        # This documentation index
    └── README.md

Quick Links

  • Contract errors: see Error Codes in API_SPEC.md
  • Contract events: see Events in API_SPEC.md
  • Database schema: see services/api/DATABASE.md
  • REST endpoints: see services/api/openapi.yaml

Running Tests

# Run all API tests (unit + integration)
cd services/api && cargo test

# Run only the security integration tests
cd services/api && cargo test --test security_tests

About

PredictIQ Contracts is a comprehensive prediction market platform built on Stellar's Soroban smart contract platform. The system enables users to create and participate in prediction markets with hybrid resolution mechanisms that combine real-time oracle data (from Pyth Network and Reflector oracles) with community voting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors