Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/captain-woof/lottery-dapp
This DApp allows starting a lottery game, which players can then join (upto a specified limit), stake their entry fees, and the winner takes all the stake.
https://github.com/captain-woof/lottery-dapp
chainlink-vrf dapp graphql solidity the-graph typescript
Last synced: 3 days ago
JSON representation
This DApp allows starting a lottery game, which players can then join (upto a specified limit), stake their entry fees, and the winner takes all the stake.
- Host: GitHub
- URL: https://github.com/captain-woof/lottery-dapp
- Owner: captain-woof
- Created: 2022-04-17T16:02:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-18T11:16:31.000Z (over 2 years ago)
- Last Synced: 2024-11-08T05:33:32.550Z (about 2 months ago)
- Topics: chainlink-vrf, dapp, graphql, solidity, the-graph, typescript
- Language: Solidity
- Homepage:
- Size: 221 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LOTTERY DAPP
This DApp allows starting a lottery game, which players can then join (upto a specified limit), stake their entry fees, and the winner takes all the stake.
**Deployed on Polygon: [0x765e1309F7EEDc3eA5009b359f82b4A5e47135ed](https://mumbai.polygonscan.com/address/0x765e1309F7EEDc3eA5009b359f82b4A5e47135ed)**
## Description
Like you read above, the game involves players participating in a lottery. The contract uses **Chainlinks's VRF (v1)** to randomly then choose a winner, and award all the collected entry fees combined.
The Graph protocol is used to index all the games that are played, and are queryable at "[https://api.thegraph.com/subgraphs/name/captain-woof/lottery-dapp-v1](https://api.thegraph.com/subgraphs/name/captain-woof/lottery-dapp-v1)".
[Use the playground](https://thegraph.com/hosted-service/subgraph/captain-woof/lottery-dapp-v1?selected=playground) to try out the Graph on the contract.