Skip to content

heymustafa02/SolFlight

Repository files navigation

SolFlight

SolFlight is a decentralized flight prediction market built on Solana.

Users can create prediction markets around real-world flight outcomes such as delays, cancellations, or on-time arrivals. Other users can participate by placing predictions, and markets are resolved using live flight data fetched through the AeroDataBox API.

Demo

https://www.loom.com/share/ff3bc4b17b1d464aa9019f80ce4b8754


Features

  • Create flight prediction markets
  • Predict flight outcomes
  • USDC SPL token settlement
  • Solana wallet integration
  • Real-time flight data integration using AeroDataBox API
  • Solana Actions and Blinks support
  • Devnet support by default

Tech Stack

  • Solana
  • Anchor
  • Rust
  • Next.js
  • TypeScript
  • TailwindCSS
  • pnpm
  • TurboRepo
  • AeroDataBox API

Project Structure

SolFlight/
├── apps/
│   ├── program/     # Anchor smart contract
│   ├── resolver/    # Resolver backend
│   └── web/         # Next.js frontend

Prerequisites

Make sure you have the following installed:

  • Node.js
  • pnpm
  • Rust
  • Solana CLI
  • Anchor Framework

Installation

Clone the repository:

git clone https://github.com/heymustafa02/SolFlight.git
cd SolFlight

Install dependencies:

pnpm install

Environment Setup

Web

Copy the example environment file:

cp apps/web/.env.example apps/web/.env

Resolver

Copy the example environment file:

cp apps/resolver/.env.example apps/resolver/.env

Update the environment variables with your own values where required.


Running the Project

Start all services:

pnpm run dev

Smart Contract

Navigate to the program directory:

cd apps/program

Build the Anchor program:

anchor build

Run tests:

anchor test

Wallet Support

  • Phantom
  • Backpack
  • Compatible Solana wallets

Settlement

Markets are resolved using real-world flight data fetched through the AeroDataBox API.

The resolver backend is responsible for:

  • Fetching live flight data
  • Determining market outcomes
  • Executing settlement transactions on-chain

Development Network

The project uses Solana Devnet by default.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors