https://github.com/abuzaforfagun/decentralized-lottery
Decentralized Lottery System
https://github.com/abuzaforfagun/decentralized-lottery
blockchain-backend chainlink-automation ethereum golang lottery solidity vrf
Last synced: 7 months ago
JSON representation
Decentralized Lottery System
- Host: GitHub
- URL: https://github.com/abuzaforfagun/decentralized-lottery
- Owner: abuzaforfagun
- Created: 2024-11-26T10:11:44.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-24T06:33:05.000Z (8 months ago)
- Last Synced: 2025-02-24T07:34:21.126Z (8 months ago)
- Topics: blockchain-backend, chainlink-automation, ethereum, golang, lottery, solidity, vrf
- Language: Solidity
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Decentralized Lottery
This project is a decentralized lottery system built on Ethereum, featuring a smart contract for lottery management and a backend event listener.
## Smart Contract
The lottery smart contract is responsible for handling the lottery logic, including ticket purchases, random winner selection, and prize distribution. It is developed using Foundry.
## Features:
- Users can enter the lottery by purchasing a ticket.
- A Chainlink VRF (or similar mechanism) ensures fair and random winner selection.
- The contract stores lottery rounds and manages payouts securely.
## Event Listener
The backend listener, written in Go, listens for lottery events emitted by the smart contract, such as new entries, winner announcements, and payouts.
## Features:
- Listens to blockchain events related to the lottery contract.
- Processes winner selection and logs event details.
- Can trigger notifications or integrate with external services.
## Contributing
Feel free to fork the repository, open issues, and submit pull requests to improve the project.
## License
This project is open-source and available under the MIT License.