Skip to content

aminsammara/foundry-lottery

Repository files navigation

Proveably Random Raffle Contracts

About

This code is to create a proveably random smart contract lottery.

What we want it to do?

  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

Tests!

  1. Write some deploy scripts
  2. Write our tests
    1. Work on a local chain
    2. Work on a forked testnet
    3. Work on a forked mainnet

Commands

forge script script/Interactions.s.sol:FundSubscription --rpc-url $SEPOLIA_URL --private-key $PRIVATE_KEY forge coverage --report debug forge coverage --report debug > coverage.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published