A decentralized chess wagering platform built on Solana, enabling users to stake funds in a smart contract and automatically settle wagers based on game results fetched from the Chess.com API.
Faceoff is a trustless system that allows players to bet on chess matches. It integrates on-chain smart contracts, zero-knowledge proofs (ZKPs) for fair validation, and real-time game result fetching via the Chess.com API.
- Users can create, join, and cancel chess wagers.
- Funds are escrowed in a Solana smart contract until game completion.
- Game results are fetched from Chess.com API in real time.
- ZKPs (Zero-Knowledge Proofs) ensure fair and transparent verification.
- The smart contract automatically distributes funds to the winner.
- Users log in using Chess.com accounts.
- Game results are verified off-chain and validated on-chain.
git clone https://github.com/Naman-45/Faceoff-client.git
cd Faceoff-client
npm install
Create a .env
file in the root directory and configure the following variables:
DATABASE_URL=
DEVNET_RPC_URL=
baseHref=
Private_Key=
RECLAIM_APP_ID=
RECLAIM_APP_SECRET=
TWILIO_PHONE_NUMBER=
TWILIO_AUTH_TOKEN=
TWILIO_ACCOUNT_SID=
npm run dev
- Blockchain: Solana (Rust, Anchor)
- Frontend: Next.js, TailwindCSS
- Smart Contracts: Solana Programs (Anchor Framework)
- ZKP Integration: Reclaim Protocol (zkFetch)
- APIs: Chess.com API, Twilio (notifications)
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature-name
) - Commit your changes (
git commit -m 'Add feature'
) - Push to your branch (
git push origin feature-name
) - Open a Pull Request
This project is licensed under the MIT License.
For any inquiries, reach out at: [email protected]
Happy gaming! 🏆