GithubHelp home page GithubHelp logo

masaun / pooltogether-with-sports-event-prediction Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 440 KB

PoolTogether with Sports Event Prediction🏀⚾️⚽️🏈

JavaScript 93.87% HTML 1.08% CSS 4.65% Shell 0.40%
pooltogether bandprotocol solidity truffle web3js react

pooltogether-with-sports-event-prediction's Introduction

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.

  • ④ 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
  1. Add an .env file under the directory of ./client.
$ cp .env.example .env
  1. Execute command below in root directory.
$ npm run client
  1. Access to browser by using link
http://127.0.0.1:3000/pooltogether-with-sports-event-prediction

 


【References】


pooltogether-with-sports-event-prediction's People

Contributors

masaun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

baajarmeh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.