Skip to content

congmucc/foundry-lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a foundry project for smart contract of lottery game.

  1. Users can enter by paying for a ticket
    1. The ticket fees are going to go to the winner during the draw
  2. After X period of time, the lottery will automatically draw a winner
    1. And this will be done programatically
  3. Using Chainlink VRF & Chainlink Automation
    1. Chainlink VRF -> Randomness
    2. Chainlink Automation -> Time based trigger

Documentation

https://book.getfoundry.sh/

Usage

Build

$ make build

Test

$ make test

Format

$ make fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ make deploy

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

1.Write some deploy scripts 2.Write our tests 1.Work on a local chain 2.Forked testnet

BY

The Github course link

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors