chips-blockchain / pangea-poker

This is the reference GUI for Pangea Poker, blackchain based decentralised game.
https://chips.cash/
27 stars 17 forks source link

Adding GUI support for the DRP #420

Open sg777 opened 3 years ago

sg777 commented 3 years ago

DRP stands for Dispute Resolution Protocol. Command to retrieve all the disconnected games

{
    method : "drp",
    args: ["game", "info", "fail"]
}

Command to retrieve all the successful games

{
    method : "drp",
    args: ["game", "info", "success"]
}

Command to resolve all the disputed tx's

{
    method : "drp",
    args: ["game", "solve"]
}

Command to resolve a specific disputed tx

{
    method : "drp",
    args: ["game", "dispute", "tx"] // here tx means the user has to enter a specific tx which he wants to resolve, user gets all the unresolved tx's with game info fail
}

The backend will respond with a json object, I'll write about the detailed list of members of the json object. For now display whole json object as it is to the user.

piggydoughnut commented 3 years ago

As per discussion, the players will not be able to use the dispute resolution protocol using the GUI. We actually might wanna look into not allowing them to do it at all (hide the rpc) I will close this for now.

sg777 commented 3 years ago

I think there is some confusion in understanding the DRP protocol, it handles lots of user friendly functionalities like showing the past games info and to settle any disputes w.r.t them.

piggydoughnut commented 3 years ago

The modal will open when the user clicks settings which will be placed next to cashier button in the top right corner.

Green bg means the game went with no issues. Red bg is a game which failed for some reason.

Default filter will always be today

To implement:

Past games-1 Past games