IBoss

Git Source

Inherits: VRFV2WrapperConsumerBaseInterface

Functions

attackBoss

function attackBoss(uint256 charId_) external;

claimRewards

function claimRewards(uint256 charId_, uint256 roundId_) external returns (uint256 itemId_);

previewRewards

function previewRewards(uint256 charId_, uint256 roundId_) external view returns (uint256 itemId_);

nextRound

function nextRound() external;

Events

RoundStarted

event RoundStarted(uint256 indexed roundId, uint256 timestamp);

BossAttacked

event BossAttacked(uint256 indexed roundId, uint256 indexed charId);

RewardClaimed

event RewardClaimed(uint256 indexed roundId, uint256 indexed charId, uint256 itemId);

RandomWordsFulfilled

event RandomWordsFulfilled(uint256 indexed roundId, uint256 seed);

Errors

RoundNotOverError

error RoundNotOverError(uint256 roundId_);

AlreadyAttackedError

error AlreadyAttackedError(uint256 charId_, uint256 roundId_);

AlreadyClaimedError

error AlreadyClaimedError(uint256 charId_, uint256 roundId_);

NotCharOwnerError

error NotCharOwnerError(uint256 charId_, address sender_);

Structs

Round

struct Round {
    bool attacked;
    bool claimed;
}