https://github.com/masaun/pooltogether-with-sports-event-prediction
PoolTogether with Sports Event Prediction🏀⚾️⚽️🏈
https://github.com/masaun/pooltogether-with-sports-event-prediction
bandprotocol pooltogether react solidity truffle web3js
Last synced: about 1 month ago
JSON representation
PoolTogether with Sports Event Prediction🏀⚾️⚽️🏈
- Host: GitHub
- URL: https://github.com/masaun/pooltogether-with-sports-event-prediction
- Owner: masaun
- Created: 2020-05-13T06:44:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T01:45:39.000Z (about 5 years ago)
- Last Synced: 2025-04-20T01:06:08.934Z (about 1 month ago)
- Topics: bandprotocol, pooltogether, react, solidity, truffle, web3js
- Language: JavaScript
- Homepage:
- Size: 430 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PoolTogether with Sports Event Prediction🏀⚾️⚽️🏈
***
## 【Introduction of PoolTogether with Sports Event Prediction】
- This is a dApp which integrates PoolTogether with sport event oracle
- This is combined lottery of PoolTogether and Sports Event Prediction.
- Participants buy ticket which include rights of prediction of target sports game score.
- Target of game score prediction is professional sports events (MLB, EPL, NFL, NBA).
(Utilize Band-Protocol for getting results of game score / Sport Event Oracle: https://developer.bandprotocol.com/datasets/sport-kovan.html )
## 【Flow】:
- ① Admin choose target league and `1 prediction target game` (=1 draw) in all of game every gameday.
(Draw is opened every gameday)- ② Participants predict and buy ticket for joining the sports event pool(=the target game's pool)
- Participant need to buy a ticket of sports event prediction until the target gameday before (〜23:59 UTC).
- What participant predict is the game score of target game.- ③ The target gameday after, 1st selection. Only participants who prediction was hit are remaining.
- Utilize Band-Protocol which is oracle for getting results of game score.
https://developer.bandprotocol.com/datasets/sport-kovan.html- ④ Then, 2nd selection is coming. Only 1 participant is selected as the winner in participants who are remaining by 1st selection
- The logic of 2nd selection is as PoolTogether is.- ⑤ Prizes awarded
- Reward is distributed into the winner's address.
(Reward is generated by earned interest from the pool)
***
## 【Setup】
### Setup wallet by using Metamask
1. Add MetaMask to browser (Chrome or FireFox or Opera or Brave)
https://metamask.io/2. Adjust appropriate newwork below
```
Kovan Test Network
```
### Setup backend
1. Deploy contracts to Kovan Test Network
```
(root directory)$ npm run migrate:kovan
```
### Setup frontend(※ In progress)
1. Move to `./client`
```
$ cd client
```2. Add an `.env` file under the directory of `./client`.
```
$ cp .env.example .env
```3. Execute command below in root directory.
```
$ npm run client
```4. Access to browser by using link
```
http://127.0.0.1:3000/pooltogether-with-sports-event-prediction
```
***
## 【References】
- [PoolTogether]:
- Bounty of "Best PoolTogether Project" at Gitcoin
https://gitcoin.co/issue/pooltogether/pooltogether-contracts/30/4308- Repos
- pooltogether-contracts
https://github.com/pooltogether/pooltogether-contracts
- pods
https://github.com/pooltogether/pods
- pooltogether-contracts-mock
https://github.com/pooltogether/pooltogether-contracts-mock
- pooltogether.js
https://github.com/pooltogether/pooltogetherjs- Article abount "v2"
https://medium.com/pooltogether/inside-pooltogether-v2-0-e7d0e1b90a08
- [Band-Protocol]
- How to create instance of Oracle
https://developer.bandprotocol.com/devs/data-query.html- Sport Events Oracle (Kovan)
https://developer.bandprotocol.com/datasets/sport-kovan.html