This repository contains Solidity smart contracts implementing a decentralized lottery system powered by Chainlink VRF V2.5 on Base Sepolia.
This project showcases an implementation of a Chainlink VRF V2.5-powered lottery.
It includes contracts for:
- Creating and managing lotteries through a factory.
- Players joining lotteries with an ETH ticket price.
- Picking a winner using verifiable random numbers.
- Managing jackpot reserves and handling rounds.
This project was developed as a portfolio demonstration of a decentralized lottery system using verifiable randomness.
The repository includes:
- FortunaVRFLottery: Core lottery contract managing rounds, players, ticket purchases, and randomness fulfillment.
- FortunaVRFLotteryFactory: Factory contract responsible for deploying and tracking multiple lottery instances.
- Deployment and verification scripts.
- Test scenarios simulating multiple players and randomness fulfillment using Chainlink VRF.
| Contract | Description |
|---|---|
FortunaVRFLottery.sol |
Lottery contract managing players, rounds, and randomness. |
FortunaVRFLotteryFactory.sol |
Factory contract to deploy and register multiple lotteries. |
- ✅ Chainlink VRF V2.5 integration for fair randomness.
- ✅ Multiple simultaneous lotteries.
- ✅ Rounds with configurable duration and ticket price.
- ✅ Jackpot accumulation and withdrawal.
- ✅ Fully verified on Base Sepolia block explorer.
🧪 Testnet – Base Sepolia
Contracts Owner: 0xB94503C6a717BDD677ad9dAB7B450AF86d3Aa3F5
| Contract | Address |
|---|---|
| Factory | 0x460F1D283f74A53e880c6C47763fCE038d7D60ca |
| Lottery #1 | 0x032D1F4670033ab3f620C38657471abD3d33283C |
| Lottery #2 | 0xb915d34ef521F7470430223abc281E4ED92CF61f |
Personal portfolio project demonstrating decentralized lottery mechanics using Chainlink VRF on an EVM Layer 2 test network.
Dantis Minurland Constantin
Full-Stack Software Developer
🌐 https://mdantis.dev
✉️ hello@mdantis.dev
This repository is licensed under the MIT License.
If you are interested in similar smart contract development or blockchain integrations, feel free to get in touch.