Module backgammon
Module Info
Module Name backgammon
Module Reference 7f8910ef1a
Deployed in block 4,401,622
Deployed in tx 809c
Age 773 days
Sender Cryptogammon
Methods 10
Instances 1
Module Usage
Module Schema
Initialization

Parameters
None
Errors
None
Event
None
Methods

Parameters
"<AccountAddress>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "Player2Error": []
    },
    {
      "Unauthorized": []
    }
  ]
}
Return
"<UInt64>"

Parameters
"<UInt64>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "Player2Error": []
    },
    {
      "Unauthorized": []
    }
  ]
}
Return
{
  "amount": "<Amount in microCCD>",
  "player1": "<AccountAddress>",
  "player2": "<AccountAddress>",
  "status": {
    "Enum": [
      {
        "Initialized": []
      },
      {
        "Ongoing": []
      },
      {
        "Completed": []
      },
      {
        "Terminated": []
      }
    ]
  },
  "winner": {
    "Enum": [
      {
        "Player": [
          "<AccountAddress>"
        ]
      },
      {
        "None": []
      }
    ]
  }
}

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "Player2Error": []
    },
    {
      "Unauthorized": []
    }
  ]
}
Return
None

Parameters
{
  "match_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "Player2Error": []
    },
    {
      "Unauthorized": []
    }
  ]
}
Return
None

Parameters
{
  "match_id": "<UInt64>",
  "winner": "<AccountAddress>"
}
Errors
None
Return
None

Parameters
"<AccountAddress>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "Player2Error": []
    },
    {
      "Unauthorized": []
    }
  ]
}
Return
None

Parameters
"<UInt64>"
Errors
None
Return
None

Parameters
"<UInt64>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "Player2Error": []
    },
    {
      "Unauthorized": []
    }
  ]
}
Return
None

Parameters
"<UInt64>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "Player2Error": []
    },
    {
      "Unauthorized": []
    }
  ]
}
Return
None

Parameters
"<UInt64>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "Player2Error": []
    },
    {
      "Unauthorized": []
    }
  ]
}
Return
None