Skip to main content
Interface for GNSTriggerRewards facet (inherits types and also contains functions, events, and custom errors)

initializeTriggerRewards

Initializes parameters for trigger rewards facet

Parameters

updateTriggerTimeoutBlocks

Updates the blocks after which a trigger times out

Parameters

distributeTriggerReward

Distributes GNS rewards to oracles for a specific trigger

Parameters

claimPendingTriggerRewards

Claims pending GNS trigger rewards for the caller

Parameters

getTriggerTimeoutBlocks

Returns current triggerTimeoutBlocks value

hasActiveOrder

Checks if an order is active (exists and has not timed out)

Parameters

getTriggerPendingRewardsGns

Returns the pending GNS trigger rewards for an oracle

Parameters

TriggerTimeoutBlocksUpdated

Emitted when timeoutBlocks is updated

Parameters

TriggerRewarded

Emitted when trigger rewards are distributed for a specific order

Parameters

TriggerRewardsClaimed

Emitted when pending GNS trigger rewards are claimed by an oracle

Parameters

TimeoutBlocksZero

NoPendingTriggerRewards