Smart Contracts (Testnet)

Module: first_game_room
back to overview
first_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.>",
  "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": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "NotTokenContract": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "OnlyAccount": []
    },
    {
      "WrongTokenID": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    }
  ]
}
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": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "NotTokenContract": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "OnlyAccount": []
    },
    {
      "WrongTokenID": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    }
  ]
}
Return
None

Parameters
{
  "potential_participant": "<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": []
    }
  ]
}
Return
[
  "<AccountAddress>"
]

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": []
    }
  ]
}
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": []
    }
  ]
}
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
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "data": {
    "should_enroll": "<UInt16>",
    "user_id": "<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": []
    }
  ]
}
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": []
    }
  ]
}
Return
None
No instances found.
Address


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