This code is to create a provably random smart contract lottery.
- Users should be able to enter the raffle by paying for a ticket. The ticket fees are the price the winner receives.
- The lottery should automatically and programatically draw a winner after a certain period.
- Chainlink VRF should generate a provably random number.
- Chainlink automation should trigger the lottery draw regularly.
- Write deploy scripts
- Write test scripts
make anvil
Installing the chainlink library, .
make install
This will default to your local node. You need to have it running in another terminal in order for it to deploy.
make deploy
cast wallet import account1 --interactive
make deploy-sepolia