Lottery using Smart Contracts
Main functionality:
- Users can enter lottery with ETH/USD
- An admin will choose when the lottery is over
- The lottery select a random winner
Table Of Content
- Python 3
- NodeJS ^12.0
- Infura project id
- Ether Scan Token
Create python env
$ python3 -m venv .env-lottery
$ source .env-lottery
Install Ganache CLI
$ npm i -g [email protected]
Install python dependencies
$ pip install -r requirements.dev.txt
$ pip install -r requirements.txt
Create new account
NOTE: When asked for your private key, make sure to add the prefix
0x
, for example:0x<private-key>
.
brownie accounts new lottery-account
Open .vscode/settings.json
and change <brownie-folder-path>
with the correct absolute path to the .brownie
folder in your machine.
TODO