This code is create a proveably random smart contract lottery
- Users can enter by paying for a ticket
- The ticket fees are goign 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 and Chainlink Automation
- Chainlink VRF -> Randomness
- Chainlink Automation -> Time based trigger
- Write deploy scripts
- Will not work on zkSync
- Write tests
- Local chain
- Forked testnet
- Forked mainnet
- It deploys the contract, but didn't fund it. Need to update the code for it. But it works locally perfectly with our mocks.
- If you want to deploy it on Sepolia for instance, you will need to change some hardcoded things like subscription ID, address account.
- Mostly all of the hardcoded changes will be on the HelperConfig.sol (addreses and more).