Events Rewards
Reward Lifecycle
Event Reward Structure
Type Definition
type EventRewardType = {
eventRewardId: string; // Unique identifier for the event reward
name: string; // Display name of the reward
resolutionType: QuestEventRewardResolutionType; // Type of resolution (e.g., based on rank or other criteria)
resolutionValueRange: ResolutionValueType; // Range of leaderboard ranks eligible for the reward
rewardId: string; // Unique identifier for the reward entity
reward: EventGiveResourcesReward | EventGiveAssetsReward; // Reward details (e.g., resources or assets)
rewardHandlerArgs: EventGiveResourcesRewardHandler | EventGiveAssetsRewardHandler; // Backend handling configuration
eventId: string; // ID of the associated event
createdAt: Date; // Timestamp when the reward was created
updatedAt: Date; // Timestamp when the reward was last updated
};Key Fields Explained
Example Configuration
Fetching Reward Allocations
Hook Implementation
Allocation Type Definition
Example Allocation Data
Claiming Rewards
Implementation Example
Best Practices
Last updated