{"id":21171821,"url":"https://github.com/ileskov/lottery1000geeks","last_synced_at":"2025-03-14T17:41:14.363Z","repository":{"id":43647157,"uuid":"511253798","full_name":"ILESKOV/Lottery1000Geeks","owner":"ILESKOV","description":"Lottery contract exercise","archived":false,"fork":false,"pushed_at":"2022-07-10T14:55:48.000Z","size":646,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-20T16:12:13.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","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/ILESKOV.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}},"created_at":"2022-07-06T18:40:15.000Z","updated_at":"2022-07-06T19:01:03.000Z","dependencies_parsed_at":"2022-09-19T00:41:44.002Z","dependency_job_id":null,"html_url":"https://github.com/ILESKOV/Lottery1000Geeks","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/ILESKOV%2FLottery1000Geeks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ILESKOV%2FLottery1000Geeks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ILESKOV%2FLottery1000Geeks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ILESKOV%2FLottery1000Geeks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ILESKOV","download_url":"https://codeload.github.com/ILESKOV/Lottery1000Geeks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234938509,"owners_count":18910259,"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":[],"created_at":"2024-11-20T16:12:36.802Z","updated_at":"2025-01-21T10:44:16.114Z","avatar_url":"https://github.com/ILESKOV.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lottery\n\u003e Lottery contract with VRF2 and Data Feed Aggregator\n\u003e Contract is using VRFv2 for generating random numbers. Therefore, for the correct operation of the contract, it is necessary to create subscription on \u003e https://vrf.chain.link/rinkeby , replenish the balance of LINK and add contract address as a consumer\n\n## Table of Contents\n* [General Info](#general-information)\n* [Technologies Used](#technologies-used)\n* [Features](#features)\n* [Requirements For Initial Setup](#requirements)\n* [Setup](#setup)\n* [Contact](#contact)\n\n\n\n## General Information\n- Owner(admin) of the contract can start/end lottery\n- Every user can participate and participation fee(price of ticket) is based on Chainlink Data price aggregator of ETH/USD price\n- After owner end lottery, the winner will be picked using randomness from Chainlink VRFv2 Coordinator\n\n \n## Technologies Used\n- Chainlink Data Feed Aggregator\n- Chainlink VRFv2\n\n## Features\n- Trully random contract(Ideally for lottery)\n- Ticket price is based on ETH/USD prices\n- The contract has been properly reviewed.\n\n## Requirements For Initial Setup\n- Install [NodeJS](https://nodejs.org/en/), should work with any node version below 16.16.0\n- Install [Hardhat](https://hardhat.org/)\n\n## Setup\n### 1. Clone/Download the Repository\n### 2. Install Dependencies:\n```\n$ cd lottery_file\n$ npm install\n```\n### 3. In the secret.json file, enter your URL of the provider and private key instead of \"x\":\n\n### 4. Run Tests\n`$ npx hardhat test`\n\n### 5. Migrate to Rinkeby\n`$ npx hardhat run scripts/deploy.js --network rinkeby\n`\n\n\n\n## Contact\nCreated by [@LESKOV](https://www.linkedin.com/in/ivan-lieskov-4b5664189/) - feel free to contact me!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fileskov%2Flottery1000geeks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fileskov%2Flottery1000geeks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fileskov%2Flottery1000geeks/lists"}