Skip to content

Kanthub/Raffle-Demo

Repository files navigation

LOTTERY-ZIYAO-FOUNDRY

LOTTERY-ZIYAO-FOUNDRY is a Eth Based, automatically run by Chainlink Raffle Project.

LOTTERY-ZIYAO-FOUNDRY consists of:

  • Raffle.sol: Basic Logic is in this file including enterRaffle, Chainlink mechanism.

  • DeployRaffle.sol: Script that deploys the contract on chain.

  • Interaction-EnterRaffle: An example shows interaction with the contract.

  • Anvil: Mock deploy on the local anvil chain.

  • frontEnd: A demo showing how to interact with the contract on the fornt end.

Usage

Build

$ forge build

Deploy

$ forge deploy

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

EnterRaffle

$ forge enter
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

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

About

A Eth-Based Raffle Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published