Overview

This project aims to develop a lottery game leveraging blockchain technology and oracles to ensure transparency and reliability.

The Web3 Lottery project was developed over a relatively short time period as part of the Polygon BUILD IT: Summer 2022 hackathon. The main objective was to develop a web3 product from scratch and complete it so that it was ready for deployment on the mainnet. Of course, not everything is perfect and there are undoubtedly things to improve, but most of the heavy work has been done. On top of that, this project allows me to demonstrate my ability to lead a blockchain project, be it on smart contract, testing and security aspects or rather on the front-end and automation parts (ci/cd pipelines).

What are the rules?

  • 100 tickets are available per round, each at 0.01 MATIC.
  • At the end of the round, the contract randomly picks a number using Chainlink VRF. The lucky owner of the winning ticket wins the jackpot!!
  • A round lasts exactly 24 hours.
  • To finance maintenance and operational costs, the winner shares a percentage of the jackpot with the web3.lottery team (Winner: 90% / Team: 5% / Contract: 5%).

How I built it

System diagram

Because a diagram explains ideas way better than three paragraphs, here it is. diagram

Explanation TODO

Technologies used:

  • Front-end: Next.js, Typescript, HTML, CSS.
  • Back-end: Solidity, Typescript, Hardhat, Foundry, Chainlink VRF and Keepers.
  • Automation: Github CI/CD pipelines.

Challenges we ran into

TODO

Accomplishments that we're proud of

TODO

What we learned

TODO

What's next for Avocado

TODO

Built With

Share this project:

Updates