This code is to create a proveably random smart contract lottery.
- Users can enter by paying for a ticket
- The ticket fees are going to go to the winner during the draw
- After X period of time, the lottery will automatically draw a winner
- And this will be done programatically
- Using Chainlink VRF & Chainlink automation
- Chainlink VRF -> Randomness
- Chainlink Automation -> Time based trigger
- Write some deploy scripts
- Write our tests
- Work on a local chain
- Work on a forked testnet
- Work on a forked mainnet
forge script script/Interactions.s.sol:FundSubscription --rpc-url $SEPOLIA_URL --private-key $PRIVATE_KEY forge coverage --report debug forge coverage --report debug > coverage.txt