Smart Contracts

Module: cryptogammon
back to overview
cryptogammon
Methods: 13
Instances: 0
Initialization

Parameters
None
Errors
None
Event
None
Methods

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

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

Parameters
None
Errors
None
Return
"<UInt64>"

Parameters
None
Errors
None
Return
"<UInt64>"

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

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

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

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

Parameters
"<UInt64>"
Errors
None
Return
None

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

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

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

Parameters
"<UInt64>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "MismatchAmount": []
    },
    {
      "MatchInProgress": []
    },
    {
      "PlayerAlreadyInGame": []
    },
    {
      "Player1Error": []
    },
    {
      "Player2Error": []
    },
    {
      "Unauthorized": []
    }
  ]
}
Return
None
Address
🗎<8575,0>


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