The Lotto contract is a highly configurable proof of concept that can be used with VRF to create and participate in a lottery.
- Install any wallet to your browser (Metamask, etc.)
- Install ganache client locally
- Run ganache
- Confirm test eth on ganache account
- Set metamask to ganache network
$ git clone [email protected]:linkpoolio/lotto-chainlink-automation.git
# from /root
$ echo "NETWORK=ganache" >> .env
$ echo "LOCAL_RPC_URL=\"http://127.0.0.1:7545\"" >> .env
# from /root
$ npm install
# from /root
$ make deploy
# from /root/ui
$ npm storybook
- Open browser at localhost:9009
# from root
$ make test-contracts
# from root
$ make coverage