Smart Contracts (Testnet)

Module: tictactoebet
back to overview
tictactoebet
Methods: 4
Instances: 18
Initialization

Parameters
{
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "game_name": "<String>"
}
Errors
None
Event
None
Methods

Parameters
None
Errors
None
Return
{
  "bets_player_one": [
    [
      "<String>",
      "<Amount in microCCD>"
    ]
  ],
  "bets_player_two": [
    [
      "<String>",
      "<Amount in microCCD>"
    ]
  ],
  "game_name": "<String>",
  "game_state": "<String>",
  "grid": [
    "<UInt8>"
  ],
  "player_one_name": "<String>",
  "player_turn": "<UInt8>",
  "player_two_name": "<String>",
  "stake": "<Amount in microCCD>"
}

Parameters
{
  "player": "<AccountAddress>",
  "position": "<UInt8>"
}
Errors
{
  "Enum": [
    {
      "ParseError": []
    },
    {
      "WaitingForPlayer": []
    },
    {
      "NotAPlayer": []
    },
    {
      "NotYourTurn": []
    },
    {
      "CellTaken": []
    },
    {
      "TransferError": []
    },
    {
      "GameExpired": []
    }
  ]
}
Return
None

Parameters
{
  "name": "<String>",
  "player_to_bet_on": "<UInt8>"
}
Errors
{
  "Enum": [
    {
      "OnlyAccount": []
    },
    {
      "BetTooLate": []
    },
    {
      "BetClosed": []
    },
    {
      "AlreadyBet": []
    },
    {
      "InvalidParameter": []
    },
    {
      "ParseError": []
    }
  ]
}
Return
None

Parameters
{
  "name": "<String>"
}
Errors
{
  "Enum": [
    {
      "OnlyAccount": []
    },
    {
      "LobbyFull": []
    },
    {
      "AlreadyAPlayer": []
    },
    {
      "MissingParameter": []
    },
    {
      "ParseError": []
    }
  ]
}
Return
None


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