{"id":23446196,"url":"https://github.com/rajeebkm/luckylotto","last_synced_at":"2025-04-10T00:48:05.016Z","repository":{"id":267009319,"uuid":"899818032","full_name":"rajeebkm/luckylotto","owner":"rajeebkm","description":"LuckyLotto - Seamless Blockchain Powered Betting for Gamers","archived":false,"fork":false,"pushed_at":"2024-12-08T04:07:36.000Z","size":2251,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T00:48:01.625Z","etag":null,"topics":["attestation-service","ethersjs","graph-protocol","nextjs","polkadot","solidity","true-network"],"latest_commit_sha":null,"homepage":"https://luckylotto.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajeebkm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-07T05:08:24.000Z","updated_at":"2024-12-08T04:07:39.000Z","dependencies_parsed_at":"2025-02-15T15:56:55.623Z","dependency_job_id":"9070fe94-18ae-4aff-9bcd-041daa6ae9a8","html_url":"https://github.com/rajeebkm/luckylotto","commit_stats":null,"previous_names":["rajeebkm/luckylotto"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeebkm%2Fluckylotto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeebkm%2Fluckylotto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeebkm%2Fluckylotto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeebkm%2Fluckylotto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajeebkm","download_url":"https://codeload.github.com/rajeebkm/luckylotto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248138006,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attestation-service","ethersjs","graph-protocol","nextjs","polkadot","solidity","true-network"],"created_at":"2024-12-23T20:31:43.252Z","updated_at":"2025-04-10T00:48:04.994Z","avatar_url":"https://github.com/rajeebkm.png","language":"TypeScript","readme":"\n# LuckyLotto  \n**Seamless Blockchain-Powered Betting for Gamers**  \n\nLuckyLotto is a decentralized betting platform that leverages blockchain technology to provide a seamless and transparent gaming experience. Gamers can engage in exciting games like dice rolling, coin flip, and wheel spin, powered by smart contracts to ensure fairness and immutability.\n\n\u003cimg width=\"1433\" alt=\"Screenshot 2024-12-08 at 04 49 23\" src=\"https://github.com/user-attachments/assets/453f85a0-956c-4d7a-9bbd-4b6111cddf3d\"\u003e\n\n## Table of Contents  \n- [Description](#description)  \n- [Features](#features)  \n- [Installation](#installation)  \n- [Frontend Interaction](#frontend-interaction)  \n- [Smart Contracts](#smart-contracts)  \n- [Supported Games](#supported-games)  \n- [Contributing](#contributing)  \n- [License](#license)\n\n## Description  \nLuckyLotto is designed to bring transparency and excitement to online betting. By utilizing blockchain smart contracts, LuckyLotto guarantees secure and fair gameplay. The platform enables players to participate in various games, place bets, and instantly verify results—all within a decentralized environment.\n\n\u003cimg width=\"1434\" alt=\"Screenshot 2024-12-08 at 04 49 47\" src=\"https://github.com/user-attachments/assets/1b135708-f699-4c6b-9dab-f7362ce64a79\"\u003e\n\n## Features  \n- **Decentralized Betting:** Fully transparent and immutable, ensuring a fair gaming experience.  \n- **Multiple Game Types:** Choose from dice rolling, coin flip, and wheel spin, with more games coming soon.  \n- **Smart Contract Powered:** Game logic and payouts are handled securely on the blockchain.  \n- **Seamless Integration:** Easy-to-use frontend for interacting with the contracts.  \n\n## Installation  \n\n### Prerequisites  \n- **Next.js**\n- **Node.js**\n- **Hardhat**\n\n### Steps  \n1. Clone the repository:  \n   ```bash  \n   git clone https://github.com/rajeebkm/luckylotto.git  \n   cd luckylotto  \n   ```  \n\n2. Install dependencies:  \n   ```bash  \n   npm install  \n   ```  \n\n3. Compile smart contracts:  \n   ```bash  \n   npx hardhat compile  \n   ```  \n\n4. Deploy the contracts to your desired network:  \n   ```bash  \n   npx hardhat run scripts/deploy.js --network \u003cnetwork_name\u003e  \n   ```  \n\n5. Update the frontend with the deployed contract addresses (e.g., in a `app/utils/constant.ts` file).\n   \n\u003cimg width=\"1422\" alt=\"Screenshot 2024-12-08 at 04 50 17\" src=\"https://github.com/user-attachments/assets/eae5aab1-ed66-4351-a417-2fd2a0245389\"\u003e\n\n## Frontend Interaction  \nLuckyLotto offers an intuitive user interface where players can:  \n1. Connect their blockchain wallet (e.g., Metamask).  \n2. Select a game type from the options (dice rolling, coin flip, or wheel spin etc.).  \n3. Place their bet and confirm the transaction.  \n4. View results and claim winnings, if any.  \n\nTo run the frontend locally:  \n1. Navigate to the frontend directory:  \n   ```bash  \n   cd frontend  \n   ```  \n2. Start the development server:  \n   ```bash  \n   npm start  \n   ```  \n3. Open your browser and navigate to `http://localhost:3000`.  \n\n## Smart Contracts  \nThe smart contracts are written in Solidity and handle the following functionalities:  \n- Game mechanics (dice rolls, coin flips, wheel spins).  \n- Bet placements and payouts.  \n- Ensuring transparency and fairness through on-chain randomness.  \n\nContracts are located in the `contracts` directory. Key files include:  \n- `LuckyDiceRoll.sol`  \n\n## Supported Games  \n1. **Dice Rolling:** Roll a dice to predict the outcome and win if your prediction is correct.  \n2. **Coin Flip:** Bet on heads or tails and test your luck!  \n3. **Wheel Spin:** Spin the wheel for a chance to win big payouts.  \n\nMore games will be added soon to enhance the platform's versatility.\n\n## Contributing  \nContributions are welcome! To get started:  \n1. Fork the repository.  \n2. Create a feature branch:  \n   ```bash  \n   git checkout -b feature-name  \n   ```  \n3. Commit your changes:  \n   ```bash  \n   git commit -m \"Add feature description\"  \n   ```  \n4. Push to your fork:  \n   ```bash  \n   git push origin feature-name  \n   ```  \n5. Create a pull request.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajeebkm%2Fluckylotto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajeebkm%2Fluckylotto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajeebkm%2Fluckylotto/lists"}