{"id":19125758,"url":"https://github.com/zeroekkusu/smartcontract-lottery","last_synced_at":"2026-05-06T02:37:00.706Z","repository":{"id":123875190,"uuid":"437270715","full_name":"ZeroEkkusu/smartcontract-lottery","owner":"ZeroEkkusu","description":"Overly documented, example Brownie project","archived":false,"fork":false,"pushed_at":"2022-01-26T11:10:19.000Z","size":28,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T09:46:43.416Z","etag":null,"topics":["brownie","chainlink","etherscan-api","python","solidity"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ZeroEkkusu.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":"2021-12-11T12:03:48.000Z","updated_at":"2022-02-12T12:31:47.000Z","dependencies_parsed_at":"2024-08-21T00:52:33.334Z","dependency_job_id":null,"html_url":"https://github.com/ZeroEkkusu/smartcontract-lottery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroEkkusu%2Fsmartcontract-lottery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroEkkusu%2Fsmartcontract-lottery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroEkkusu%2Fsmartcontract-lottery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroEkkusu%2Fsmartcontract-lottery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZeroEkkusu","download_url":"https://codeload.github.com/ZeroEkkusu/smartcontract-lottery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240190908,"owners_count":19762591,"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":["brownie","chainlink","etherscan-api","python","solidity"],"created_at":"2024-11-09T05:36:35.453Z","updated_at":"2025-10-07T17:23:38.274Z","avatar_url":"https://github.com/ZeroEkkusu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\nThis is an example of a full scale smart contract project, made using [Solidity](https://github.com/ethereum/solidity) and [Brownie](https://github.com/eth-brownie/brownie). You can use this repo as a refresher on how to use Brownie and write smart contracts.\n\nHow the contract works:\n1. Anyone can enter the lottery with 50 USD or more worth of ETH\n2. The owner will choose when the lottery is over\n3. The lottery will select one random winner and transfer the funds\n### Todo\n- [ ] Further decentralize using Chainlink Keepers\n# Setup\n*Note: This isn't a guide on how to set up system for development! For that, see [PatrickAlphaC/smartcontract-lottery](https://github.com/PatrickAlphaC/smartcontract-lottery/blob/main/README.md), on which this project is based.*\n\nTo set up your new project, either:\n\nUse [chainlink-mix](https://github.com/brownie-mix/chainlink-mix)\n```bash\nbrownie bake chainlink-mix \u0026\u0026 mv chainlink \u003cyour_project_name\u003e\n```\nOr start from scratch\n```bash\nbrownie init\n```\n## Other files\nCreate a `.env` file inside your project's directory and add the following\n```\nexport PRIVATE_KEY_1 = \u003cYOUR_PRIVATE_KEY_1\u003e\nexport PRIVATE_KEY_2 = \u003cYOUR_PRIVATE_KEY_2\u003e\nexport WEB3_INFURA_PROJECT_ID = \u003cYOUR_PROJECT_ID\u003e\nexport ETHERSCAN_TOKEN = \u003cYOUR_API_TOKEN\u003e\n```\nTo encrypt your private key, add it to Brownie instead\n```bash\nbrownie accounts new \u003cchoose_account_id\u003e\n```\n# Usage\n### Compile\n```bash\nbrownie compile\n```\n### Test\n```bash\nbrownie test --network \u003cchoose_network\u003e -s\n```\n### Deploy\n```bash\nbrownie run scripts/deploy_lottery.py --network \u003cchoose_network\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroekkusu%2Fsmartcontract-lottery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroekkusu%2Fsmartcontract-lottery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroekkusu%2Fsmartcontract-lottery/lists"}