Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dappcoderr/raffle-contract
Raffle is an onchain gambling competition build on top of evm blockchain in which people obtain numbered tickets, each of which has the chance of winning a prize.
https://github.com/dappcoderr/raffle-contract
evm foundry smart-contracts solidity solidity-contracts
Last synced: about 2 months ago
JSON representation
Raffle is an onchain gambling competition build on top of evm blockchain in which people obtain numbered tickets, each of which has the chance of winning a prize.
- Host: GitHub
- URL: https://github.com/dappcoderr/raffle-contract
- Owner: DappCoderr
- Created: 2024-06-27T06:06:42.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-10T09:27:27.000Z (6 months ago)
- Last Synced: 2024-07-10T11:18:23.501Z (6 months ago)
- Topics: evm, foundry, smart-contracts, solidity, solidity-contracts
- Language: Solidity
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Provably Random Raffle Contracts
### What we are doing?
1. User can enter by paying for the ticket.
- 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.
- This will be done programmatically.
3. Using Chainlink VRF & Chainlink Automation
- Chainlink VRF -> Randomness
- Chainlink Automation -> Time based triggers## Project Structure 📦
Before delving into the code, let's take a moment to understand the structure of the repository:
- `/src`: This folder contains all the solidity smart contract of the Raffle Contract.
- `/script`: Here, you will find the script to deploy the smart contract
- `/test`: All the unit, integration testing are here.## Foundry
We are using Foundry toolkit for this application development:
- `Forge`: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- `Cast`: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- `Anvil`: Local Ethereum node, akin to Ganache, Hardhat Network.
- `Chisel`: Fast, utilitarian, and verbose solidity REPL.## Tests
1. Write deploy script
2. Write tests- Local Chain
- Forked Testnet
- Forked Mainnet