Smart Contract Lottery with Chainlink VRF
Install git
Install foundry
git clone https://github.com/caglacelik/lottery.git
cd lottery
make build
make anvil
make build
make format
make test
or
forge test
for testnet
forge test --fork-url $SEPOLIA_RPC_URL
forge coverage
make snapshot
anvil
make deploy
To deploy testnet/mainnet PLEASE MAKE SURE;
-
Set up the environment variables
SEPOLIA_RPC_URL
,PRIVATE_KEY
andETHERSCAN_API_KEY
to verify your contract on Etherscan. -
Get test ETH from the Faucets.
forge --help
anvil --help
cast --help
Contributions to this project are welcome.