Smart Contracts (Testnet)

Module: ccd_contract
back to overview
ccd_contract
Methods: 7
Instances: 61
Initialization

Parameters
{
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "entry_fee": "<Amount in microCCD>",
  "entry_limit": "<UInt32>",
  "id": "<String>",
  "prize": "<Amount in microCCD>",
  "start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    }
  ]
}
Event
{
  "Enum": [
    {
      "JoinGameRoom": [
        {
          "game_room_id": "<String>",
          "team_id": "<String>",
          "user_id": "<String>",
          "wallet_address": "<AccountAddress>"
        }
      ]
    },
    {
      "ProcessPayout": [
        {
          "game_room_id": "<String>",
          "prize": "<Amount in microCCD>",
          "wallet_address": "<AccountAddress>"
        }
      ]
    }
  ]
}
Methods

Parameters
{
  "end": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        ]
      }
    ]
  },
  "entry_fee": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Amount in microCCD>"
        ]
      }
    ]
  },
  "entry_limit": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<UInt32>"
        ]
      }
    ]
  },
  "id": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<String>"
        ]
      }
    ]
  },
  "prize": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Amount in microCCD>"
        ]
      }
    ]
  },
  "start": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        ]
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
None

Parameters
{
  "game_room_id": "<String>",
  "team_id": "<String>",
  "user_id": "<String>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    }
  ]
}
Return
None

Parameters
{
  "potential_winner": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    }
  ]
}
Return
{
  "balance": "<Amount in microCCD>",
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "entry_fee": "<Amount in microCCD>",
  "entry_limit": "<UInt32>",
  "id": "<String>",
  "participants_count": "<UInt32>",
  "prize": "<Amount in microCCD>",
  "start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "winner": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  }
}

Parameters
None
Errors
None
Return
[
  "<AccountAddress>"
]

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    }
  ]
}
Return
None
Address
🗎<10065,0>
🗎<10066,0>
🗎<10162,0>
🗎<10163,0>
🗎<10164,0>
🗎<10177,0>
🗎<10178,0>
🗎<10195,0>
🗎<10232,0>
🗎<10236,0>
🗎<9157,0>
🗎<9159,0>
🗎<9160,0>
🗎<9161,0>
🗎<9162,0>
🗎<9163,0>
🗎<9165,0>
🗎<9166,0>
🗎<9168,0>
🗎<9170,0>
🗎<9216,0>
🗎<9230,0>
🗎<9231,0>
🗎<9284,0>
🗎<9288,0>
🗎<9290,0>
🗎<9291,0>
🗎<9293,0>
🗎<9300,0>
🗎<9301,0>
🗎<9302,0>
🗎<9303,0>
🗎<9304,0>
🗎<9309,0>
🗎<9310,0>
🗎<9311,0>
🗎<9312,0>
🗎<9315,0>
🗎<9316,0>
🗎<9317,0>
🗎<9318,0>
🗎<9321,0>
🗎<9322,0>
🗎<9327,0>
🗎<9331,0>
🗎<9332,0>
🗎<9333,0>
🗎<9334,0>
🗎<9340,0>
🗎<9341,0>
🗎<9342,0>
🗎<9344,0>
🗎<9375,0>
🗎<9380,0>
🗎<9381,0>
🗎<9382,0>
🗎<9393,0>
🗎<9394,0>
🗎<9395,0>
🗎<9403,0>
🗎<9410,0>
🗎<9411,0>
🗎<9414,0>
🗎<9415,0>
🗎<9416,0>
🗎<9417,0>
🗎<9446,0>
🗎<9449,0>
🗎<9455,0>
🗎<9456,0>
🗎<9457,0>
🗎<9472,0>
🗎<9533,0>
🗎<9624,0>
🗎<9625,0>
🗎<9626,0>
🗎<9627,0>
🗎<9628,0>
🗎<9629,0>
🗎<9701,0>
🗎<9704,0>
🗎<9754,0>
🗎<9756,0>
🗎<9758,0>
🗎<9760,0>
🗎<9762,0>
🗎<9765,0>
🗎<9766,0>
🗎<9769,0>
🗎<9771,0>
🗎<9772,0>
🗎<9783,0>
🗎<9785,0>
🗎<9786,0>
🗎<9787,0>
🗎<9788,0>
🗎<9789,0>
🗎<9790,0>
🗎<9791,0>
🗎<9792,0>
🗎<9793,0>
🗎<9794,0>
🗎<9795,0>
🗎<9796,0>
🗎<9797,0>
🗎<9798,0>
🗎<9799,0>
🗎<9800,0>
🗎<9801,0>
🗎<9802,0>
🗎<9803,0>
🗎<9804,0>
🗎<9805,0>
🗎<9806,0>
🗎<9807,0>
🗎<9808,0>
🗎<9809,0>
🗎<9810,0>
🗎<9811,0>
🗎<9812,0>
🗎<9813,0>
🗎<9830,0>
🗎<9831,0>
🗎<9843,0>
🗎<9844,0>
🗎<9845,0>
🗎<9852,0>
🗎<9888,0>
🗎<9891,0>
🗎<9892,0>
🗎<9903,0>
🗎<9907,0>
🗎<9908,0>
🗎<9909,0>
🗎<9910,0>
🗎<9911,0>


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