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.
$ forge build
$ forge deploy
$ forge fmt
$ forge snapshot
$ anvil
$ forge enter
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
$ cast <subcommand>
$ forge --help
$ anvil --help
$ cast --help