Smart Contracts (Testnet)

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

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

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

Parameters
{
  "name": "<String>",
  "player_to_bet_on": {
    "Enum": [
      {
        "One": []
      },
      {
        "Two": []
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "OnlyAccount": []
    },
    {
      "BetTooLate": []
    },
    {
      "BetClosed": []
    },
    {
      "AlreadyBet": []
    },
    {
      "MissingParameter": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
{
  "bet_state": {
    "Enum": [
      {
        "Open": []
      },
      {
        "Closed": []
      }
    ]
  },
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "gamblers": [
    {
      "account": "<AccountAddress>",
      "amount": "<Amount in microCCD>",
      "bet_on": {
        "Enum": [
          {
            "One": []
          },
          {
            "Two": []
          }
        ]
      },
      "name": "<String>"
    }
  ],
  "game_name": "<String>",
  "game_state": {
    "Enum": [
      {
        "WaitingForPlayers": []
      },
      {
        "Ready": []
      },
      {
        "InProgress": []
      },
      {
        "Finished": []
      }
    ]
  },
  "players": [
    {
      "account": "<AccountAddress>",
      "amount": "<Amount in microCCD>",
      "name": "<String>",
      "position": {
        "Enum": [
          {
            "One": []
          },
          {
            "Two": []
          }
        ]
      }
    }
  ]
}

Parameters
None
Errors
None
Return
"<Amount in microCCD>"


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