RankifyInstanceRequirementsFacet#
Facet handling game requirements and conditions for Rankify instances
Notice
Implements functionality for setting and checking join requirements for games, utilizing the LibCoinVending library for configuration management
RequirementsConfigured#
event RequirementsConfigured(uint256 gameId, struct LibCoinVending.ConfigPosition config)
setJoinRequirements#
function setJoinRequirements(uint256 gameId, struct LibCoinVending.ConfigPosition config) public
Input | Type | Description |
---|---|---|
gameId |
uint256 |
The ID of the game. |
config |
struct LibCoinVending.ConfigPosition |
The configuration position for the join requirements. |
Notice
Sets the join requirements for a specific game. Only the game creator can call this function. The game must be in the pre-registration stage.
getJoinRequirements#
function getJoinRequirements(uint256 gameId) public view returns (struct LibCoinVending.ConditionReturn)
Input | Type | Description |
---|---|---|
gameId |
uint256 |
The ID of the game. |
Output | ||
0 |
struct LibCoinVending.ConditionReturn |
The join requirements as a LibCoinVending.ConditionReturn struct. |
Notice
Retrieves the join requirements for a specific game.
getJoinRequirementsByToken#
function getJoinRequirementsByToken(uint256 gameId, address contractAddress, uint256 contractId, enum LibCoinVending.ContractTypes contractType) public view returns (struct LibCoinVending.ContractCondition)
Input | Type | Description |
---|---|---|
gameId |
uint256 |
The ID of the game. |
contractAddress |
address |
The address of the contract. |
contractId |
uint256 |
The ID of the contract. |
contractType |
enum LibCoinVending.ContractTypes |
The type of the contract. |
Output | ||
0 |
struct LibCoinVending.ContractCondition |
The join requirements for the specified token. |
Notice
Retrieves the join requirements for a specific token in a game.