This code is to create a proveably random smart contract raffle lottery.
- Users can enter the lottery by sending a fixed amount of ETH to the contract.
- The contract periodically picks a random winner from the pool of players using Chainlink VRF.
- The winner receives the entire balance of the contract as a reward.
- The contract uses Chainlink VRF to automate the process of requesting and fulfilling random numbers.
- Chainlink VRF
- Solmate
- Foundry
- Clone the repository:
git clone https://github.com/PhantomOz/raffle-lottery.git
- Install Libraries
make install
- Compile
make build
for more info you run make help
To run tests locally on anvil you can just do
make test
Here is the live address to the verified smart contract on the sepolia testnet
0x820e3344daD54a086015cd210cead72390e12127
made with ❤️ by Favour Aniogor.