Skip to main content

RewardsController Events

7 events registered.

NameDeprecated
accountLinked
balanceUpdated
campaignOptedIn
leaderboardPositionInvalidated
pointsEventsUpdated
portfolioPositionInvalidated
rewardClaimed

RewardsController:accountLinked​

Source: app/core/Engine/controllers/rewards-controller/types.ts:2914

Event emitted when an account is linked to a subscription

Payload signature:

[
{
subscriptionId: string;
account: CaipAccountId;
},
]

RewardsController:balanceUpdated​

Source: app/core/Engine/controllers/rewards-controller/types.ts:2940

Event emitted when balance data should be invalidated

Payload signature:

[
{
seasonId: string;
subscriptionId: string;
},
]

RewardsController:campaignOptedIn​

Source: app/core/Engine/controllers/rewards-controller/types.ts:2967

Event emitted when a user opts into a campaign, invalidating any cached participant status so hooks can refetch fresh data.

Payload signature:

[
{
campaignId: string;
subscriptionId: string;
},
]

RewardsController:leaderboardPositionInvalidated​

Source: app/core/Engine/controllers/rewards-controller/types.ts:2981

Event emitted when a user opts into a campaign, invalidating the cached leaderboard position so hooks can refetch fresh data.

Payload signature:

[
{
campaignId: string;
subscriptionId: string;
},
]

RewardsController:pointsEventsUpdated​

Source: app/core/Engine/controllers/rewards-controller/types.ts:2953

Event emitted when points events should be invalidated

Payload signature:

[
{
seasonId: string;
subscriptionId: string;
},
]

RewardsController:portfolioPositionInvalidated​

Source: app/core/Engine/controllers/rewards-controller/types.ts:2995

Event emitted when a user opts into a campaign, invalidating the cached portfolio so hooks can refetch fresh data.

Payload signature:

[
{
campaignId: string;
subscriptionId: string;
},
]

RewardsController:rewardClaimed​

Source: app/core/Engine/controllers/rewards-controller/types.ts:2927

Event emitted when a reward is claimed

Payload signature:

[
{
rewardId: string;
subscriptionId: string;
},
]