Documentation ¶
Index ¶
- type Tracker
- func (t *Tracker) ApplyEpoch(epoch iotago.EpochIndex, committee *account.Accounts) error
- func (t *Tracker) ClearCandidates()
- func (t *Tracker) DelegatorReward(validatorID iotago.AccountID, delegatedAmount iotago.BaseToken, ...) (delegatorReward iotago.Mana, firstRewardEpoch iotago.EpochIndex, ...)
- func (t *Tracker) EligibleValidatorCandidates(epoch iotago.EpochIndex) (ds.Set[iotago.AccountID], error)
- func (t *Tracker) Export(writer io.WriteSeeker, targetSlotIndex iotago.SlotIndex) error
- func (t *Tracker) Import(reader io.ReadSeeker) error
- func (t *Tracker) LoadCommitteeForEpoch(epoch iotago.EpochIndex) (committee *account.Accounts, exists bool)
- func (t *Tracker) PoolRewardsForAccount(accountID iotago.AccountID) (poolRewardsForAccount iotago.Mana, exists bool, err error)
- func (t *Tracker) RewardsRoot(epoch iotago.EpochIndex) (iotago.Identifier, error)
- func (t *Tracker) TrackCandidateBlock(block *blocks.Block)
- func (t *Tracker) TrackValidationBlock(block *blocks.Block)
- func (t *Tracker) ValidatorCandidates(epoch iotago.EpochIndex) (ds.Set[iotago.AccountID], error)
- func (t *Tracker) ValidatorReward(validatorID iotago.AccountID, stakingFeature *iotago.StakingFeature, ...) (validatorReward iotago.Mana, firstRewardEpoch iotago.EpochIndex, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
func NewTracker ¶
func NewTracker( rewardsStorePerEpochFunc func(epoch iotago.EpochIndex) (kvstore.KVStore, error), poolStatsStore *epochstore.Store[*model.PoolsStats], committeeStore *epochstore.Store[*account.Accounts], committeeCandidatesInEpochFunc func(epoch iotago.EpochIndex) (*kvstore.TypedStore[iotago.AccountID, iotago.SlotIndex], error), validatorPerformancesFunc func(slot iotago.SlotIndex) (*slotstore.Store[iotago.AccountID, *model.ValidatorPerformance], error), latestAppliedEpoch iotago.EpochIndex, apiProvider iotago.APIProvider, errHandler func(error), logger log.Logger, ) *Tracker
func (*Tracker) ApplyEpoch ¶
ApplyEpoch calculates and stores pool stats and rewards for the given epoch.
func (*Tracker) ClearCandidates ¶
func (t *Tracker) ClearCandidates()
func (*Tracker) DelegatorReward ¶
func (t *Tracker) DelegatorReward(validatorID iotago.AccountID, delegatedAmount iotago.BaseToken, epochStart iotago.EpochIndex, epochEnd iotago.EpochIndex, claimingEpoch iotago.EpochIndex) (delegatorReward iotago.Mana, firstRewardEpoch iotago.EpochIndex, lastRewardEpoch iotago.EpochIndex, err error)
func (*Tracker) EligibleValidatorCandidates ¶
func (t *Tracker) EligibleValidatorCandidates(epoch iotago.EpochIndex) (ds.Set[iotago.AccountID], error)
EligibleValidatorCandidates returns the eligible validator candidates registered in the given epoch for the next epoch.
func (*Tracker) LoadCommitteeForEpoch ¶
func (*Tracker) PoolRewardsForAccount ¶
func (*Tracker) RewardsRoot ¶
func (t *Tracker) RewardsRoot(epoch iotago.EpochIndex) (iotago.Identifier, error)
func (*Tracker) TrackCandidateBlock ¶
func (*Tracker) TrackValidationBlock ¶
func (*Tracker) ValidatorCandidates ¶
ValidatorCandidates returns the eligible validator candidates registered in the given epoch for the next epoch.
func (*Tracker) ValidatorReward ¶
func (t *Tracker) ValidatorReward(validatorID iotago.AccountID, stakingFeature *iotago.StakingFeature, claimingEpoch iotago.EpochIndex) (validatorReward iotago.Mana, firstRewardEpoch iotago.EpochIndex, lastRewardEpoch iotago.EpochIndex, err error)
Click to show internal directories.
Click to hide internal directories.