Smart Contracts (Testnet)

Module: first_game_room
back to overview
first_game_room
Methods: 7
Instances: 1
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.>",
  "id": "<UInt32>",
  "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": []
    }
  ]
}
Event
None
Methods

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "potential_participant": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "potential_winner": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
{
  "balance": "<String of size at most 74 containing an unsigned integer.>",
  "contract_address": {
    "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.>",
  "id": "<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
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "JoinBeforeStartError": []
    },
    {
      "JoinAfterEndError": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "InvalidWinner": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
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": []
    }
  ]
}
Return
None
Address
🗎<8555,0>


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