# RewardsHelper
# Overview
The Helper functions for Rewards.
# settings
contract ISettings settings
Initialize this contract.
# initialize
function initialize(contract ISettings _settings) external
# setSettings
Update setting state.
function setSettings(contract ISettings _settings) external
Name | Type | Description |
---|---|---|
_settings | contract ISettings | ISettings contract |
Apply a list of stakers' StakeChanges, call applyStakeChange one by one.
# batchApplyStakeChange
function batchApplyStakeChange(address indexer, address[] stakers) public
# batchClaim
function batchClaim(address delegator, address[] indexers) public
# batchCollectAndDistributeRewards
function batchCollectAndDistributeRewards(address indexer, uint256 batchSize) public
# indexerCatchup
function indexerCatchup(address indexer) public
# batchCollectWithPool
function batchCollectWithPool(address indexer, bytes32[] deployments) public
# getPendingStakers
function getPendingStakers(address indexer) public view returns (address[])
# getRewardsAddTable
function getRewardsAddTable(address indexer, uint256 startEra, uint256 length) public view returns (uint256[])
# getRewardsRemoveTable
function getRewardsRemoveTable(address indexer, uint256 startEra, uint256 length) public view returns (uint256[])