Cryptobet is a decentralized betting application. The project is divided into two main parts: the backend, which uses Hardhat for smart contract development and deployment, and the frontend, which is built using Next.js.
-
Backend: This folder contains the smart contracts and related scripts for deployment. The contracts are written in Solidity and are deployed on the Sepolia test network using Hardhat.
-
To compile the contracts, use:
npx hardhat compile
-
To deploy the contracts locally, use:
npx hardhat ignition deploy ./ignition/modules/your_contract.js
-
To deploy the contracts on the Sepolia network, use:
npx hardhat ignition deploy ./ignition/modules/your_contract.js --network optimismSepolia
-
-
Frontend: This folder contains the web application built with Next.js. The frontend interacts with the smart contracts and provides a user interface for placing bets and viewing outcomes.
Ensure you have Node.js and npm installed. You will also need Hardhat and Next.js to run the backend and frontend, respectively.
-
Clone the repository:
git clone https://github.com/yourusername/cryptobet.git
-
Install dependencies for the backend:
cd backend npm install
-
Install dependencies for the frontend:
cd ../frontend npm install
Open your browser and navigate to http://localhost:3000
to view the application.
We appreciate the contributions of the following individuals to this project:
- Issue Comment: Leave a comment on the issue introducing yourself briefly and describing how you plan to address the issue.
- Time Estimate: Provide an estimate of how long it will take you to resolve the issue.
- Contact Information: Include your Telegram username in case we need to contact you.
- Questions: For any questions, feel free to join our Telegram channel here.