Skip to content

sixtusagbo/smart-contract-lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Contract Lottery

A decentralized and verifiably random smart contract lottery system built with Solidity. Check it out on Etherscan

About

This project implements a lottery system on the blockchain where:

  • Players can enter by paying for a ticket
  • Each ticket costs a fixed amount of Ether which contributes to the prize pool and must be greater than the minimum ticket price which is the entrance fee (currently 0.01 ether)

    See HelperConfig.s.sol for the entrance fee

  • After the interval (currently 30s) passes, the lottery will automatically draw a winner

    See HelperConfig.s.sol for the interval (in seconds)

  • Winner selection is provably random and automated with Chainlink VRF
  • The winner will receive the entire prize pool

Getting Started

Prerequisites

Installation

git clone https://github.com/yourusername/smart-contract-lottery
cd smart-contract-lottery
make install
make build

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published