{"id":22013284,"url":"https://github.com/catherinee24/lottery-dapp","last_synced_at":"2026-04-09T02:01:23.658Z","repository":{"id":154360455,"uuid":"578338283","full_name":"catherinee24/Lottery-Dapp","owner":"catherinee24","description":"Lottery Dapp with Solidity ✨","archived":false,"fork":false,"pushed_at":"2022-12-23T16:56:12.000Z","size":9145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T23:23:12.784Z","etag":null,"topics":["dapp","ganache-cli","ganache-ui","javascript","nodejs","reactjs","smart-contracts","solidity","truffle-framework","web3js"],"latest_commit_sha":null,"homepage":"https://iridescent-frangollo-c3b2c1.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catherinee24.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-12-14T20:26:04.000Z","updated_at":"2022-12-14T20:59:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f8f96a1-71d3-40e1-acf2-97b241b86873","html_url":"https://github.com/catherinee24/Lottery-Dapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/catherinee24/Lottery-Dapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catherinee24%2FLottery-Dapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catherinee24%2FLottery-Dapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catherinee24%2FLottery-Dapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catherinee24%2FLottery-Dapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catherinee24","download_url":"https://codeload.github.com/catherinee24/Lottery-Dapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catherinee24%2FLottery-Dapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dapp","ganache-cli","ganache-ui","javascript","nodejs","reactjs","smart-contracts","solidity","truffle-framework","web3js"],"created_at":"2024-11-30T03:18:44.150Z","updated_at":"2026-04-09T02:01:23.640Z","avatar_url":"https://github.com/catherinee24.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 aling=\"center\"\u003eLottery Dapp ⛓\u003c/h1\u003e\r\n\r\n  \u003ca href=\"https://github.com/maurodesouza/profile-readme-generator/blob/master/LICENSE.md\" target=\"_blank\"\u003e\r\n    \u003cimg alt=\"Badge showing project license type\" src=\"https://img.shields.io/github/license/maurodesouza/profile-readme-generator?color=f85149\"\u003e\r\n  \u003c/a\u003e\r\n\r\n  \u003ca href=\"#\" target=\"_blank\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/React-18.1.0-45b8d8?style=flat-square\" alt=\"Badge showing the react version\"/\u003e\r\n  \u003c/a\u003e\r\n\r\n  \u003ca href=\"#\" target=\"_blank\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/Solidity-%5E8.0.4-363636?style=flat-square\" alt=\"Badge showing the solidity version\"/\u003e\r\n  \u003c/a\u003e\r\n\r\n  \u003ca href=\"#\" target=\"_blank\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/truffle-5.4.5-F0E8E0??style=flat-square\" alt=\"Badge showing the hardhat version\"/\u003e\r\n  \u003c/a\u003e\r\n\r\n  \u003ca href=\"https://www.npmjs.com/package/prettier-plugin-solidity\" target=\"_blank\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/prettier%20plugin%20solidity-1.0.0-pink.svg\" alt=\"Badge showing the prettier plugin solidity version\"/\u003e\r\n  \u003c/a\u003e\r\n\r\n  \u003ca href=\"https://github.com/gab0071\" target=\"_blank\"\u003e\r\n    \u003cimg alt=\"Author\" src=\"https://img.shields.io/badge/made%20by-CatellaTech-blueviolet?style=flat-square\"\u003e\r\n  \u003c/a\u003e\r\n \r\n\r\n  \u003cbr\u003e\r\n  \u003cbr\u003e\r\n\r\nhello, for this lottery project I wanted to work with ERC20 and ERC721 tokens, first of all we will have a main smart contract that will allow people to buy our own token (ERC20) to buy the lottery tickets (ERC721). We have a factory that will allow each user to manage their own lottery tickets as they wish.\r\n\r\nIt is a complex but very complete project if you want to increase your skills in the design of smart contracts.\r\n\r\nTo test the project you only need to have your Metamask wallet with fake BNB that you can find \u003ca href=\"https://testnet.bnbchain.org/faucet-smart\"\u003ehere\u003c/a\u003e.\r\n\r\n\r\n\u003ch2\u003e Installing / Getting started \u003c/h2\u003e\r\n\r\n```bash\r\n# Clone this project\r\n$ git clone https://https://github.com/catherinee24/Lottery-Dapp\r\n\r\n# Access\r\n$ cd Lottery-Dapp\r\n\r\n# Install dependencies\r\n$ npm install\r\n\r\n``` \r\n\r\n\u003ch2\u003eCommands\u003c/h2\u003e\r\n\r\n- $ `truffle compile `: Upon first run, all contracts will be compiled. Upon subsequent runs, Truffle will compile only the contracts that have been changed since the last compile.\r\n- $ `truffle migrate `: This will run all migrations located within our project's migrations directory.\r\n- $ `truffle test `: Run all tests located within our project's test directory.\r\n\r\n\u003ch2\u003e Technologies / Built With \u003c/h2\u003e\r\n\r\n- Solidity\r\n- Metamask\r\n- Fake BNB (🚨 Note: \u003ca href=\"https://testnet.bnbchain.org/faucet-smart\"\u003e BNB Smart Chain Faucet\u003c/a\u003e)\r\n- \u003ca href=\"https://www.npmjs.com/package/@openzeppelin/contracts\"\u003e OpenZeppelin \u003c/a\u003e\r\n- \u003ca href=\"https://www.npmjs.com/package/ganache?activeTab=readme\"\u003e Ganache CLI \u003c/a\u003e\r\n- \u003ca href=\"https://trufflesuite.com/ganache/\"\u003e Ganache GUI \u003c/a\u003e\r\n- \u003ca href=\"https://pt-br.reactjs.org/\"\u003eReact\u003c/a\u003e\r\n- \u003ca href=\"https://web3js.readthedocs.io/en/v1.8.1/\"\u003e Web3.js \u003c/a\u003e\r\n\r\n\r\n\u003ch2\u003ePrettier definition \u003c/h2\u003e\r\n\u003cp\u003e Prettier offers support for multiple languages and frameworks. What \u003cPrettier\u003e offers is to take your code and \"re-format\" it based on the defined settings thus maintaining a consistent style. Making it much more readable and without worrying about how you write it initially.\u003c/p\u003e\r\n\r\n\u003cp\u003e  Link to install prettier: \u003ca href=\"https://prettier.io/docs/en/install.html\"\u003e\u003cstrong\u003e Prettier\u003cstrong\u003e\u003c/a\u003e\u003c/p\u003e\r\n\r\n\u003cp\u003eLink to install a prettier plugin for automatically formatting your Solidity code:\u003ca href=\"https://www.npmjs.com/package/prettier-plugin-solidity\"\u003e\u003cstrong\u003e Prettier Plugin \u003cstrong\u003e\u003c/a\u003e\u003c/p\u003e\r\n\r\n\u003ch2\u003eLicense\u003c/h2\u003e\r\n\r\n\u003cp\u003eThis project is under license from MIT. For more details, see the LICENSE file.\u003c/p\u003e\r\n\r\n\u003ch2\u003eContributing\u003c/h2\u003e\r\n\u003cp\u003e Contributions are always welcome! Open a PR or an issue!\u003c/p\u003e\r\n\r\n\u003cbr\u003e\r\n\u003cbr\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n\u003cbr/\u003e\r\n  Made with ❤️ by \u003cb\u003ecatellaTech\u003c/b\u003e.\r\n\u003c/p\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatherinee24%2Flottery-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatherinee24%2Flottery-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatherinee24%2Flottery-dapp/lists"}