Skip to content

Latest commit

 

History

History
96 lines (63 loc) · 1.06 KB

README.md

File metadata and controls

96 lines (63 loc) · 1.06 KB

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.