Smart Contracts (Testnet)

Module: backgammon
back to overview
backgammon
Methods: 9
Instances: 1
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
Address
🗎<1712,0>


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status CCDExplorer is supported by AesirX - Decentralized Consent & Data Ownership