Skip to content

sergipastor/smart-contract-lottery-cyfrin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published