The users can enter in the lottery with ETH based on a USD fee (using chainlink data feed),then,the admin will choose the lottery is over. Finally, the lottery will select a random winner (chainlink oracle random number)
-
Clone the repo
git clone https://github.com/pinalikefruit/Lottery cd Lottery
-
Install all packages
yarn
-
Edit
.env.example
for.env
and enter your API keys -
Open a terminal and run this command and remember replace your
API_KEY
yarn test || yarn test
Distributed under the MIT License. See LICENSE.txt
for more information.
Piña - @pinalikefruit - [email protected]
Project Link: https://github.com/pinalikefruit