Interface for GNSTriggerRewards facet (inherits types and also contains functions, events, and custom errors)
Initializes parameters for trigger rewards facet
Name | Type | Description |
---|---|---|
Updates the blocks after which a trigger times out
Name | Type | Description |
---|---|---|
Distributes GNS rewards to oracles for a specific trigger
Claims pending GNS trigger rewards for the caller
Returns current triggerTimeoutBlocks value
Checks if an order is active (exists and has not timed out)
Returns the pending GNS trigger rewards for an oracle
Emitted when timeoutBlocks is updated
Emitted when trigger rewards are distributed for a specific order
Emitted when pending GNS trigger rewards are claimed by an oracle
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_timeoutBlocks
uint16
blocks after which a trigger times out
_timeoutBlocks
uint16
blocks after which a trigger times out
_rewardGns
uint256
total GNS reward to be distributed among oracles
_oracle
address
address of the oracle
_orderBlock
uint256
block number of the order
_oracle
address
address of the oracle
timeoutBlocks
uint16
blocks after which a trigger times out
rewardsPerOracleGns
uint256
reward in GNS distributed per oracle
oraclesCount
uint256
number of oracles rewarded
oracle
address
address of the oracle
rewardsGns
uint256
GNS rewards claimed