Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 986 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 986 Bytes

Smart Contract Lottery

This project is a decentralized lottery/raffle application implemented using Solidity and Foundry. Developed following the Cyfrin Updraft online course. Cyfrin repo: https://github.com/Cyfrin/foundry-smart-contract-lottery-cu

How It Works

  1. Users enter the lottery by sending ETH to the smart contract, paying a predefined minimum entry fee.
  2. After a specified amount of time, a winner is selected randomly from the list of participants.
  3. The winner receives the entire accumulated prize pool.

Diagram

Setup and Installation

  1. Clone the Repository:

    git clone https://github.com/sergipastor/smart-contract-lottery-cyfrin.git
    cd smart-contract-lottery-cyfrin
  2. Install Dependencies:

    make install
  3. Compile Contracts:

    make build
  4. Run Tests:

    make test