Smart Contracts

Module: game_room
back to overview
game_room
Methods: 7
Instances: 0
Initialization

Parameters
{
  "contract": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "entry_fee": "<String of size at most 74 containing an unsigned integer.>",
  "entry_limit": "<UInt32>",
  "id": "<String>",
  "prize": "<String of size at most 74 containing an unsigned integer.>",
  "start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "NotTokenContract": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "OnlyAccount": []
    },
    {
      "WrongTokenID": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "MaxEntryReached": []
    }
  ]
}
Event
{
  "Enum": [
    {
      "JoinGameRoom": [
        {
          "game_room_id": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  "<String>"
                ]
              }
            ]
          },
          "team_id": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  "<String>"
                ]
              }
            ]
          },
          "user_id": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  "<String>"
                ]
              }
            ]
          },
          "wallet_address": "<AccountAddress>"
        }
      ]
    },
    {
      "ProcessPayout": [
        {
          "game_room_id": "<String>",
          "prize": "<String of size at most 74 containing an unsigned integer.>",
          "wallet_address": "<AccountAddress>"
        }
      ]
    }
  ]
}
Methods

Parameters
{
  "contract": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "end": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        ]
      }
    ]
  },
  "entry_fee": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<String of size at most 74 containing an unsigned integer.>"
        ]
      }
    ]
  },
  "entry_limit": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<UInt32>"
        ]
      }
    ]
  },
  "id": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<String>"
        ]
      }
    ]
  },
  "prize": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<String of size at most 74 containing an unsigned integer.>"
        ]
      }
    ]
  },
  "start": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        ]
      }
    ]
  },
  "token_id": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<String with lowercase hex>"
        ]
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "NotTokenContract": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "OnlyAccount": []
    },
    {
      "WrongTokenID": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "MaxEntryReached": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "NotTokenContract": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "OnlyAccount": []
    },
    {
      "WrongTokenID": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "MaxEntryReached": []
    }
  ]
}
Return
None

Parameters
{
  "potential_winner": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "NotTokenContract": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "OnlyAccount": []
    },
    {
      "WrongTokenID": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "MaxEntryReached": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "NotTokenContract": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "OnlyAccount": []
    },
    {
      "WrongTokenID": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "MaxEntryReached": []
    }
  ]
}
Return
{
  "balance": "<String of size at most 74 containing an unsigned integer.>",
  "cis2_contract": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "entry_fee": "<String of size at most 74 containing an unsigned integer.>",
  "entry_limit": "<UInt32>",
  "id": "<String>",
  "participants_count": "<UInt32>",
  "prize": "<String of size at most 74 containing an unsigned integer.>",
  "start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "winner": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  }
}

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

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "data": {
    "game_room_id": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<String>"
          ]
        }
      ]
    },
    "should_enroll": "<Bool>",
    "team_id": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<String>"
          ]
        }
      ]
    },
    "user_id": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<String>"
          ]
        }
      ]
    }
  },
  "from": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "NotTokenContract": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "OnlyAccount": []
    },
    {
      "WrongTokenID": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "MaxEntryReached": []
    }
  ]
}
Return
None

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "NotTokenContract": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "OnlyAccount": []
    },
    {
      "WrongTokenID": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "MaxEntryReached": []
    }
  ]
}
Return
None
Address
🗎<9524,0>


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