BACKit-onCSPR is a social prediction market platform built on Casper Network. It allows users to create "calls" (predictions), back them with onchain stakes, and build a reputation based on accuracy.
- Create Calls: Make bold predictions about crypto, culture, or tech.
- Back & Counter: Stake on "YES" or "NO" outcomes.
- Social Feed:
- For You: Algorithmic feed of trending calls.
- Following: See calls from users you follow.
- User Profiles: Track your reputation, follower counts, and betting history.
- Onchain Accountability: All stakes and outcomes are recorded on Casper Network.
- Frontend: Next.js, Tailwind CSS, Casper Click (Wallet Integration)
- Backend: NestJS, TypeORM, PostgreSQL, Casper JS SDK
- Smart Contracts: Rust, Odra Framework
- Chain: Casper (Testnet/Mainnet)
packages/frontend: Next.js web applicationpackages/backend: NestJS API serverpackages/contracts-odra: Smart contracts (Odra)
- Node.js (v18+)
- Docker (for PostgreSQL)
- Rust & Cargo (latest stable)
- Odra CLI (
cargo install odra-cli)
-
Clone the repo
git clone https://github.com/degenspot/BACKit-onCSPR.git cd BACKit-onCSPR -
Install dependencies
pnpm install
-
Setup Environment Variables
- Copy
.env.exampleto.envinpackages/backendandpackages/contracts-odra. - Copy
.env.local.exampleto.env.localinpackages/frontend.
- Copy
-
Start Development
pnpm dev
This starts the frontend and backend.
-
Smart Contracts To test the contracts:
cd packages/contracts-odra cargo odra test
To deploy to Livenet (Testnet):
cargo odra build # Follow Odra deployment instructions
MIT