PrediFi is a decentralized prediction protocol built on the Stellar network using Soroban smart contracts. In a trustless, transparent, and secure environment, it allows users to predict future outcomes across various fields, including sports, finance, and global events. By utilizing Stellar's fast and low-cost technology, PrediFi ensures that all predictions and their results are verifiable on-chain and immutable.
Telegram Community: here
PrediFi is designed to empower individuals, influencers, and communities to enter the dynamic world of prediction markets. Leveraging the power of blockchain, PrediFi allows anyone to establish custom prediction markets focused on any event imaginable.
The repository is organized into two main workspaces:
contract/: Contains the Stellar/Soroban smart contracts (Rust).frontend/: Contains the Next.js web application (TypeScript).
The smart contract logic is written in Rust for the Soroban platform.
contracts/: Directory containing individual contract crates.hello-world/: Initial template contract (to be replaced/expanded with PrediFi logic).
The user interface is built with Next.js, Tailwind CSS, and TypeScript.
- Rust: Install Rust
- Soroban CLI: Install Soroban CLI
- Node.js: Install Node.js
- pnpm: Install pnpm
-
Clone the repository:
git clone https://github.com/Web3Novalabs/predifi.git cd predifi -
Smart Contracts:
Navigate to the contract directory:
cd contractBuild the contracts:
soroban contract build
Run tests:
cargo test -
Frontend:
Navigate to the frontend directory:
cd ../frontendInstall dependencies:
pnpm install
Run the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create your feature branch (
git checkout -b feature/your-feature-name). - Commit your changes with meaningful messages.
- Test your changes thoroughly.
- Submit a Pull Request.