Skip to content

Decentralized lottery with Solidity, Chainlink VRF & Foundry

Notifications You must be signed in to change notification settings

caglacelik/lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
caglos
Apr 15, 2024
d22f85c · Apr 15, 2024

History

3 Commits
Apr 15, 2024
Apr 15, 2024
Apr 15, 2024
Apr 15, 2024
Apr 15, 2024
Apr 15, 2024
Apr 15, 2024
Apr 15, 2024
Apr 15, 2024
Apr 15, 2024

Repository files navigation

Smart Contract Lottery with Chainlink VRF

Requirements

Install git

Install foundry

Quickstart

git clone https://github.com/caglacelik/lottery.git
cd lottery
make build

Usage

Start a local node

make anvil

Build

make build

Format

make format

Test

make test

or

forge test

for testnet

forge test --fork-url $SEPOLIA_RPC_URL

Test Coverage

forge coverage

Gas Snapshots

make snapshot

Anvil

anvil

Deploy

make deploy

To deploy testnet/mainnet PLEASE MAKE SURE;

  1. Set up the environment variables SEPOLIA_RPC_URL, PRIVATE_KEY and ETHERSCAN_API_KEY to verify your contract on Etherscan.

  2. Get test ETH from the Faucets.

Help

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

Contributing

Contributions to this project are welcome.

About

Decentralized lottery with Solidity, Chainlink VRF & Foundry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published