- Users can enter lottery with ETH based on a USD fee
- An admin will choose when the lottery is over
- The lottery will select a random winner
First step setting up your project:
1. `brownie init`
or use [chainlink-mix](https://github.com/smartcontractkit/chainlink-mix).
2. `brownie bake chainlink-mix & mv chainlink (project_name)`
Create `dot.env` file inside your project's directory and include the following:
`export PRIVATE_KEY_1 = PRIVATE_KEY_1`
`export WEB3_INFURA_PROJECT_ID = PROJECT_ID`
`export ETHERSCAN_TOKEN = API_TOKEN`
In order to encrypt your private key, add it to Brownie:
`brownie accounts new <account_id>`
`brownie compile`
`brownie test --network <choose_network> -s`
`brownie run scripts/deploy_lottery.py --network <choose_network>`