Giter Site home page Giter Site logo

aleo_roulette's People

Contributors

angiedutra avatar collinc97 avatar elfantasma avatar mationorato avatar maurotoscano avatar mlsmith avatar ncontinanza avatar unbalancedparentheses avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

aleo_roulette's Issues

Frontend Integration

We need to do the following integrations with the server api:

  • Make a bet using the following endpoint: POST http://localhost:5000/api/bets/make
  • Display The list of Aleo Transaction Ids

Connect the Api Server with the Leo Circuits

When the following request arrives to the api:
curl -X POST http://localhost:5000/api/bets/make -H 'Content-Type: application/json' -d '{ "bet_number": n, "credits": n}'

We need to:

  • generate the random seed with poseido in leo
  • generate the leo input for the beting circuit
  • parse the output and return it as json

Error when parsing roulette.in

How to reproduce:

make run_api

Make the following request:

curl -X POST http://localhost:5000/api/bets/make -H 'Content-Type: application/json' -d '{ "bet_number": "10", "credits": "50", spin_number="20"}'

After this, the server do not respond.

Hint:

There is a error when parsing circuits/bets/inputs/bets.in when credits has more tan one digit.

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.