Smart Contracts (Testnet)

Module: backgammon
back to overview
backgammon
Methods: 4
Instances: 1
Initialization

Parameters
None
Errors
None
Event
None
Methods

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

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

Parameters
{
  "address": "<AccountAddress>",
  "match_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "InvokeTransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "match_id": "<UInt64>",
  "winner": "<AccountAddress>"
}
Errors
None
Return
None
Address
🗎<1435,0>


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