Revealer
Revealer
Inherits: AccessControl, IRevealer
Manages the revelation of cards from multiple games
Only addresses with the REVEALER_ROLE can call the revealBatch function
State Variables
REVEALER_ROLE
Revealer role hash
Functions
constructor
Initializes the contract and grants the default admin role to the deployer
revealCard
Reveals a card
Emits CardRevealed event
Parameters
Name
Type
Description
_card
RevealedCard
The details of the revealed card
revealCardBatch
Reveals multiple cards from a single or different games
Emits CardRevealed event
Parameters
Name
Type
Description
_cards
RevealedCard[]
The details of the revealed cards
initialize
Initializes a game
Emits GameInitialized event
Parameters
Name
Type
Description
_data
InitializeGame
The details of the game
initializeBatch
Initializes multiple games
Emits GameInitialized event
Parameters
Name
Type
Description
_data
InitializeGame[]
The details of multiple games
Last updated