chips-blockchain / bet

This repository holds the implementation code of Pangea Poker white paper: https://bit.ly/3bdCz0Z
https://chips.cash
16 stars 17 forks source link

Use RPC API instead of CLI commands in bet #179

Open satindergrewal opened 3 years ago

satindergrewal commented 3 years ago

Currently bet code is using CLI commands such as lightning-cli and chips-cli to execute and get outputs to proceed with further code logic.

Using API calls instead of CLI commands will make the whole Pangea Poker setup more flexible.

sg777 commented 3 years ago

Right now, the game state and game specific information is stored in global variables during the context of the game. For us to make the full API's we need to identify what information that an user like to retrieve during and after the game in general.