Creates a proveably random smart contract lottery.
- Users can enter by paying for a ticket
- The ticket fee will go for a winner during the draw
- After X period of time, the lottery will automatically draw a winner
- And this will be done programtically
- Using chainlink VRF & Chainlink Automation
- Chainlink VRF -> Randomness
- Chainlink automation -> Time based trigger
- forge install smartcontractkit/chainlink-brownie-contracts@0.6.1 --no-commit
- Go to .toml and add remappings ie.
- remappings = [ '@chainlink/contracts=/lib/chainlink-brownie-contracts/contracts/', ]
- Write some deploy scripts
- Write our tests
- Work on a local chain
- Forked Testnet
- Forked Mainnet