This code is to create a proveably random smart contract lottery.
-
Users should be able to enter the raffle by paying for a ticket. The ticket fees are going to be the prize the winner receives.
-
The lottery should automatically and programmatically draw a winner after a certain period.
-
Chainlink VRF should generate a provably random number.
-
Chainlink Automation should trigger the lottery draw regularly.
ETHERSCAN_API_key NETWORK=sepolia forge script script/DeployLottery.s.sol --rpc-url $SEPOLIA_RPC_URL --broadcast --verify -vvvv