Module ccd_contract
Module Info
Module Name ccd_contract
Module Reference 9b0937e290
Deployed in block 22,604,701
Deployed in tx 9335
Age 60 days
Sender Panenka FC
Methods 10
Instances 57
Module Usage
Module Schema
Initialization

Parameters
{
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "entry_fee": "<Amount in microCCD>",
  "entry_limit": "<UInt32>",
  "game_room_end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "id": "<String>",
  "number_of_runnerups": "<UInt32>",
  "prize": "<Amount in microCCD>",
  "runnerup_prize": "<Amount in microCCD>",
  "start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeEntryStartError": []
    },
    {
      "JoinAfterEntryEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    },
    {
      "WinnerNotPaidOutYet": []
    },
    {
      "TooManyRunnerUps": []
    },
    {
      "RunnerUpsAlreadyPaid": []
    },
    {
      "InvalidRunnerUp": []
    },
    {
      "AlreadyPaidUserInRunnerUps": []
    },
    {
      "WinnerCannotBeRunnerUp": []
    },
    {
      "UserNotInGameRoom": []
    },
    {
      "InvalidEntryStartTime": []
    },
    {
      "InvalidEntryEndTime": []
    },
    {
      "InvalidPrizeAmount": []
    },
    {
      "InvalidGameRoomEndTime": []
    },
    {
      "InvalidEntryLimit": []
    }
  ]
}
Event
{
  "Enum": [
    {
      "JoinGameRoom": [
        {
          "game_room_id": "<String>",
          "lineup": "<String>",
          "team_name": "<String>",
          "user_name": "<String>",
          "wallet_address": "<AccountAddress>"
        }
      ]
    },
    {
      "ProcessPayout": [
        {
          "game_room_id": "<String>",
          "prize": "<Amount in microCCD>",
          "wallet_address": "<AccountAddress>"
        }
      ]
    },
    {
      "ProcessRunnerUpPayout": [
        {
          "game_room_id": "<String>",
          "prize": "<Amount in microCCD>",
          "wallet_address": "<AccountAddress>"
        }
      ]
    },
    {
      "LineupUpdated": [
        {
          "updated_lineup": "<String>",
          "wallet_address": "<AccountAddress>"
        }
      ]
    }
  ]
}
Methods

Parameters
{
  "end": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        ]
      }
    ]
  },
  "entry_fee": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Amount in microCCD>"
        ]
      }
    ]
  },
  "entry_limit": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<UInt32>"
        ]
      }
    ]
  },
  "game_room_end": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        ]
      }
    ]
  },
  "id": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<String>"
        ]
      }
    ]
  },
  "number_of_runnerups": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<UInt32>"
        ]
      }
    ]
  },
  "prize": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Amount in microCCD>"
        ]
      }
    ]
  },
  "runnerup_prize": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Amount in microCCD>"
        ]
      }
    ]
  },
  "start": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        ]
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeEntryStartError": []
    },
    {
      "JoinAfterEntryEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    },
    {
      "WinnerNotPaidOutYet": []
    },
    {
      "TooManyRunnerUps": []
    },
    {
      "RunnerUpsAlreadyPaid": []
    },
    {
      "InvalidRunnerUp": []
    },
    {
      "AlreadyPaidUserInRunnerUps": []
    },
    {
      "WinnerCannotBeRunnerUp": []
    },
    {
      "UserNotInGameRoom": []
    },
    {
      "InvalidEntryStartTime": []
    },
    {
      "InvalidEntryEndTime": []
    },
    {
      "InvalidPrizeAmount": []
    },
    {
      "InvalidGameRoomEndTime": []
    },
    {
      "InvalidEntryLimit": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
None

Parameters
{
  "game_room_id": "<String>",
  "lineup": "<String>",
  "team_name": "<String>",
  "user_name": "<String>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeEntryStartError": []
    },
    {
      "JoinAfterEntryEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    },
    {
      "WinnerNotPaidOutYet": []
    },
    {
      "TooManyRunnerUps": []
    },
    {
      "RunnerUpsAlreadyPaid": []
    },
    {
      "InvalidRunnerUp": []
    },
    {
      "AlreadyPaidUserInRunnerUps": []
    },
    {
      "WinnerCannotBeRunnerUp": []
    },
    {
      "UserNotInGameRoom": []
    },
    {
      "InvalidEntryStartTime": []
    },
    {
      "InvalidEntryEndTime": []
    },
    {
      "InvalidPrizeAmount": []
    },
    {
      "InvalidGameRoomEndTime": []
    },
    {
      "InvalidEntryLimit": []
    }
  ]
}
Return
None

Parameters
{
  "updated_lineup": "<String>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeEntryStartError": []
    },
    {
      "JoinAfterEntryEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    },
    {
      "WinnerNotPaidOutYet": []
    },
    {
      "TooManyRunnerUps": []
    },
    {
      "RunnerUpsAlreadyPaid": []
    },
    {
      "InvalidRunnerUp": []
    },
    {
      "AlreadyPaidUserInRunnerUps": []
    },
    {
      "WinnerCannotBeRunnerUp": []
    },
    {
      "UserNotInGameRoom": []
    },
    {
      "InvalidEntryStartTime": []
    },
    {
      "InvalidEntryEndTime": []
    },
    {
      "InvalidPrizeAmount": []
    },
    {
      "InvalidGameRoomEndTime": []
    },
    {
      "InvalidEntryLimit": []
    }
  ]
}
Return
None

Parameters
{
  "potential_winner": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeEntryStartError": []
    },
    {
      "JoinAfterEntryEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    },
    {
      "WinnerNotPaidOutYet": []
    },
    {
      "TooManyRunnerUps": []
    },
    {
      "RunnerUpsAlreadyPaid": []
    },
    {
      "InvalidRunnerUp": []
    },
    {
      "AlreadyPaidUserInRunnerUps": []
    },
    {
      "WinnerCannotBeRunnerUp": []
    },
    {
      "UserNotInGameRoom": []
    },
    {
      "InvalidEntryStartTime": []
    },
    {
      "InvalidEntryEndTime": []
    },
    {
      "InvalidPrizeAmount": []
    },
    {
      "InvalidGameRoomEndTime": []
    },
    {
      "InvalidEntryLimit": []
    }
  ]
}
Return
None

Parameters
{
  "runner_ups": [
    "<AccountAddress>"
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeEntryStartError": []
    },
    {
      "JoinAfterEntryEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    },
    {
      "WinnerNotPaidOutYet": []
    },
    {
      "TooManyRunnerUps": []
    },
    {
      "RunnerUpsAlreadyPaid": []
    },
    {
      "InvalidRunnerUp": []
    },
    {
      "AlreadyPaidUserInRunnerUps": []
    },
    {
      "WinnerCannotBeRunnerUp": []
    },
    {
      "UserNotInGameRoom": []
    },
    {
      "InvalidEntryStartTime": []
    },
    {
      "InvalidEntryEndTime": []
    },
    {
      "InvalidPrizeAmount": []
    },
    {
      "InvalidGameRoomEndTime": []
    },
    {
      "InvalidEntryLimit": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeEntryStartError": []
    },
    {
      "JoinAfterEntryEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    },
    {
      "WinnerNotPaidOutYet": []
    },
    {
      "TooManyRunnerUps": []
    },
    {
      "RunnerUpsAlreadyPaid": []
    },
    {
      "InvalidRunnerUp": []
    },
    {
      "AlreadyPaidUserInRunnerUps": []
    },
    {
      "WinnerCannotBeRunnerUp": []
    },
    {
      "UserNotInGameRoom": []
    },
    {
      "InvalidEntryStartTime": []
    },
    {
      "InvalidEntryEndTime": []
    },
    {
      "InvalidPrizeAmount": []
    },
    {
      "InvalidGameRoomEndTime": []
    },
    {
      "InvalidEntryLimit": []
    }
  ]
}
Return
{
  "balance": "<Amount in microCCD>",
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "entry_fee": "<Amount in microCCD>",
  "entry_limit": "<UInt32>",
  "id": "<String>",
  "number_of_runnerups": "<UInt32>",
  "paid_runnerups_count": "<UInt32>",
  "participants_count": "<UInt32>",
  "prize": "<Amount in microCCD>",
  "runnerup_prize": "<Amount in microCCD>",
  "start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "winner": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  }
}

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

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

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "Unauthorized": []
    },
    {
      "ParticipantsAlreadyJoined": []
    },
    {
      "InvokeContractError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "AlreadyJoinedGameRoomError": []
    },
    {
      "MaxEntryReached": []
    },
    {
      "AmountLessThanEntryFee": []
    },
    {
      "ContractOwnerDenied": []
    },
    {
      "JoinBeforeEntryStartError": []
    },
    {
      "JoinAfterEntryEndError": []
    },
    {
      "PayoutAfterWinnerAnnounced": []
    },
    {
      "PayoutBeforeGameRoomEndError": []
    },
    {
      "InvalidWinner": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "AmountNotUpToPrize": []
    },
    {
      "WrongGameRoom": []
    },
    {
      "WinnerNotPaidOutYet": []
    },
    {
      "TooManyRunnerUps": []
    },
    {
      "RunnerUpsAlreadyPaid": []
    },
    {
      "InvalidRunnerUp": []
    },
    {
      "AlreadyPaidUserInRunnerUps": []
    },
    {
      "WinnerCannotBeRunnerUp": []
    },
    {
      "UserNotInGameRoom": []
    },
    {
      "InvalidEntryStartTime": []
    },
    {
      "InvalidEntryEndTime": []
    },
    {
      "InvalidPrizeAmount": []
    },
    {
      "InvalidGameRoomEndTime": []
    },
    {
      "InvalidEntryLimit": []
    }
  ]
}
Return
None