Skip to content

algo-aryan/sidebet-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🥊 SideBet

SideBet is a real-time, peer-to-peer Web3 prediction market built for Gen-Z.
Users stake crypto tokens on real-world events, and smart contracts handle everything — from escrow to payouts — in a fully trustless environment.


👨‍💻 Built By

  • Aryan Bansal
  • Vansh Singla
  • Arnav Negi

🎯 Features

  • 🔮 Create or join bets on real-world events
  • 💸 Stake ETH or tokens with another user — winner takes all
  • 🛡️ Smart contract ensures secure and fair payouts
  • ⏱️ Real-time interaction through MetaMask + Ethers.js
  • 🌐 Chainlink integration for event verification (WIP)

⚙️ Tech Stack

Layer Tech
Frontend React.js, Tailwind CSS, Ethers.js
Blockchain Solidity, Hardhat, MetaMask, Chainlink
Backend/API Node.js (optional for activity logs)

🚀 Local Setup Guide

Step 1: Clone the Repository

git clone https://github.com/algo-aryan/sidebet-project.git
cd sidebet-project

Step 2: Frontend Setup

cd client
npm install
npm start

Step 3: Smart Contracts Setup

cd ../contracts
npm install
npx hardhat compile
npx hardhat node

Step 4: Deploy Contract

npx hardhat run scripts/deploy.js --network localhost

Step 5: MetaMask Setup

  • Connect to http://127.0.0.1:8545
  • Import test accounts using Hardhat private keys

💡 Use Case Examples

  • India vs Pakistan match — Bet 0.05 ETH with your friend
  • Bitcoin > $80k by year-end? — Create a public bet
  • College dares — Settle it on-chain with SideBet

🔐 Smart Contract Logic

  • createBet(string memory description, uint amount)
  • joinBet(uint betId)
  • declareWinner(uint betId, address winner)
  • Funds locked using escrow pattern
  • Future scope: Chainlink Oracles for auto result

🛡 License

This project is licensed under the MIT License © 2025
Built with 💙 by Aryan Bansal, Vansh Singla, and Arnav Negi


📬 Contact

  • Aryan BansalGitHub | LinkedIn
  • Feel free to fork, contribute, or drop us feedback 🚀

About

Sidebet turns your hot takes into high-stakes — bet on anything, anytime, straight from the web.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published