Smart Contracts

Module: ccd_contract
back to overview
ccd_contract
Methods: 7
Instances: 62
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>
🗎<9525,0>
🗎<9526,0>
🗎<9527,0>
🗎<9529,0>
🗎<9530,0>
🗎<9531,0>
🗎<9532,0>
🗎<9533,0>
🗎<9534,0>
🗎<9535,0>
🗎<9536,0>
🗎<9537,0>
🗎<9538,0>
🗎<9539,0>
🗎<9540,0>
🗎<9542,0>
🗎<9543,0>
🗎<9544,0>
🗎<9546,0>
🗎<9547,0>
🗎<9548,0>
🗎<9549,0>
🗎<9550,0>
🗎<9551,0>
🗎<9552,0>
🗎<9553,0>
🗎<9554,0>
🗎<9555,0>
🗎<9556,0>
🗎<9557,0>
🗎<9558,0>
🗎<9559,0>
🗎<9560,0>
🗎<9561,0>
🗎<9562,0>
🗎<9564,0>
🗎<9565,0>
🗎<9566,0>
🗎<9567,0>
🗎<9568,0>
🗎<9569,0>
🗎<9570,0>
🗎<9572,0>
🗎<9573,0>
🗎<9574,0>
🗎<9575,0>
🗎<9576,0>
🗎<9577,0>
🗎<9578,0>
🗎<9579,0>
🗎<9580,0>
🗎<9581,0>
🗎<9582,0>
🗎<9583,0>
🗎<9584,0>
🗎<9585,0>
🗎<9586,0>
🗎<9587,0>
🗎<9588,0>
🗎<9589,0>
🗎<9590,0>
🗎<9591,0>
🗎<9592,0>
🗎<9593,0>
🗎<9594,0>
🗎<9595,0>
🗎<9596,0>
🗎<9597,0>
🗎<9598,0>
🗎<9599,0>
🗎<9600,0>
🗎<9601,0>
🗎<9602,0>
🗎<9603,0>
🗎<9647,0>
🗎<9648,0>
🗎<9649,0>
🗎<9650,0>
🗎<9651,0>
🗎<9652,0>
🗎<9653,0>
🗎<9654,0>
🗎<9655,0>
🗎<9656,0>
🗎<9659,0>
🗎<9660,0>
🗎<9662,0>
🗎<9663,0>
🗎<9664,0>
🗎<9665,0>
🗎<9666,0>
🗎<9667,0>
🗎<9668,0>
🗎<9679,0>
🗎<9684,0>
🗎<9685,0>
🗎<9686,0>
🗎<9687,0>
🗎<9688,0>
🗎<9689,0>
🗎<9690,0>
🗎<9691,0>
🗎<9692,0>
🗎<9697,0>
🗎<9698,0>
🗎<9699,0>
🗎<9700,0>
🗎<9701,0>
🗎<9702,0>
🗎<9703,0>
🗎<9704,0>
🗎<9705,0>
🗎<9708,0>
🗎<9709,0>
🗎<9710,0>
🗎<9711,0>
🗎<9712,0>
🗎<9713,0>
🗎<9714,0>
🗎<9716,0>
🗎<9717,0>
🗎<9718,0>
🗎<9719,0>
🗎<9720,0>
🗎<9721,0>
🗎<9722,0>
🗎<9723,0>
🗎<9733,0>
🗎<9734,0>
🗎<9735,0>
🗎<9736,0>
🗎<9737,0>
🗎<9738,0>
🗎<9739,0>


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