Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allwin199/foundry-raffle
https://github.com/allwin199/foundry-raffle
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/allwin199/foundry-raffle
- Owner: allwin199
- Created: 2023-06-28T10:22:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-03T16:52:04.000Z (over 1 year ago)
- Last Synced: 2024-05-29T17:23:41.901Z (6 months ago)
- Language: Solidity
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Foundry Raffle Contract
## About
This code is to create a proveably random smart contract lottery.
## Layout
### Layout of Contract:
- version
- imports
- errors
- interfaces, libraries, contracts
- Type declarations
- State variables
- Events
- Modifiers
- Functions### Layout of Functions:
- constructor
- receive function (if exists)
- fallback function (if exists)
- external
- public
- internal
- private
- view & pure functions## 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. This will be done programatically.
3. This will be implemented using Chainlink VRF & Chainlink Automation
1. Chainlink VRF -> Randomness
2. Chainlink Automation - > Time based trigger## Test!
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