Documentation ¶
Index ¶
- func AddActivationTxBalanceTransfer(c StatsCollector, tx *types.Transaction, amount *big.Int)
- func AddBurnTxBurntCoins(c StatsCollector, addr common.Address, tx *types.Transaction)
- func AddFeeBurntCoins(c StatsCollector, addr common.Address, feeAmount *big.Int, burntRate float32, ...)
- func AddFinalCommitteeReward(c StatsCollector, addr common.Address, balance *big.Int, stake *big.Int)
- func AddFlipsReward(c StatsCollector, addr common.Address, balance *big.Int, stake *big.Int, ...)
- func AddFoundationPayout(c StatsCollector, addr common.Address, balance *big.Int)
- func AddInvitationsReward(c StatsCollector, addr common.Address, balance *big.Int, stake *big.Int, ...)
- func AddInviteBurntCoins(c StatsCollector, addr common.Address, amount *big.Int, tx *types.Transaction)
- func AddKillInviteeTxStakeTransfer(c StatsCollector, tx *types.Transaction, amount *big.Int)
- func AddKillTxStakeTransfer(c StatsCollector, tx *types.Transaction, amount *big.Int)
- func AddKilledBurntCoins(c StatsCollector, addr common.Address, amount *big.Int)
- func AddMintedCoins(c StatsCollector, amount *big.Int)
- func AddPenaltyBurntCoins(c StatsCollector, addr common.Address, amount *big.Int)
- func AddProposerReward(c StatsCollector, addr common.Address, balance *big.Int, stake *big.Int)
- func AddReportedFlipsReward(c StatsCollector, addr common.Address, flipIdx int, balance *big.Int, ...)
- func AddValidationReward(c StatsCollector, addr common.Address, age uint16, balance *big.Int, ...)
- func AddZeroWalletFund(c StatsCollector, addr common.Address, balance *big.Int)
- func AfterAddStake(c StatsCollector, addr common.Address, amount *big.Int, ...)
- func AfterSubPenalty(c StatsCollector, addr common.Address, amount *big.Int, ...)
- func BeforeClearPenalty(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func BeforeSetPenalty(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func BeginCommitteeRewardBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func BeginDustClearingBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func BeginEpochPenaltyResetBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func BeginEpochRewardBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func BeginFailedValidationBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func BeginPenaltyBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func BeginProposerRewardBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func BeginTxBalanceUpdate(c StatsCollector, tx *types.Transaction, appState *appstate.AppState)
- func BeginVerifiedStakeTransferBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
- func CompleteBalanceUpdate(c StatsCollector, appState *appstate.AppState)
- func SetCommitteeRewardShare(c StatsCollector, amount *big.Int)
- func SetMinScoreForInvite(c StatsCollector, score float32)
- func SetTotalFlipsReward(c StatsCollector, amount *big.Int, share *big.Int)
- func SetTotalFoundationPayouts(c StatsCollector, amount *big.Int)
- func SetTotalInvitationsReward(c StatsCollector, amount *big.Int, share *big.Int)
- func SetTotalReward(c StatsCollector, amount *big.Int)
- func SetTotalValidationReward(c StatsCollector, amount *big.Int, share *big.Int)
- func SetTotalZeroWalletFund(c StatsCollector, amount *big.Int)
- func SetValidation(c StatsCollector, validation *statsTypes.ValidationStats)
- func SetValidationResults(c StatsCollector, validationResults *types.ValidationResults)
- type StatsCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddActivationTxBalanceTransfer ¶
func AddActivationTxBalanceTransfer(c StatsCollector, tx *types.Transaction, amount *big.Int)
func AddBurnTxBurntCoins ¶
func AddBurnTxBurntCoins(c StatsCollector, addr common.Address, tx *types.Transaction)
func AddFeeBurntCoins ¶
func AddFeeBurntCoins(c StatsCollector, addr common.Address, feeAmount *big.Int, burntRate float32, tx *types.Transaction)
func AddFinalCommitteeReward ¶
func AddFlipsReward ¶
func AddFlipsReward(c StatsCollector, addr common.Address, balance *big.Int, stake *big.Int, flipsToReward []*types.FlipToReward)
func AddFoundationPayout ¶
func AddFoundationPayout(c StatsCollector, addr common.Address, balance *big.Int)
func AddInvitationsReward ¶
func AddInviteBurntCoins ¶
func AddInviteBurntCoins(c StatsCollector, addr common.Address, amount *big.Int, tx *types.Transaction)
func AddKillInviteeTxStakeTransfer ¶
func AddKillInviteeTxStakeTransfer(c StatsCollector, tx *types.Transaction, amount *big.Int)
func AddKillTxStakeTransfer ¶
func AddKillTxStakeTransfer(c StatsCollector, tx *types.Transaction, amount *big.Int)
func AddKilledBurntCoins ¶
func AddKilledBurntCoins(c StatsCollector, addr common.Address, amount *big.Int)
func AddMintedCoins ¶
func AddMintedCoins(c StatsCollector, amount *big.Int)
func AddPenaltyBurntCoins ¶
func AddPenaltyBurntCoins(c StatsCollector, addr common.Address, amount *big.Int)
func AddProposerReward ¶
func AddReportedFlipsReward ¶ added in v0.22.0
func AddValidationReward ¶
func AddZeroWalletFund ¶
func AddZeroWalletFund(c StatsCollector, addr common.Address, balance *big.Int)
func AfterAddStake ¶
func AfterSubPenalty ¶
func BeforeClearPenalty ¶
func BeforeClearPenalty(c StatsCollector, addr common.Address, appState *appstate.AppState)
func BeforeSetPenalty ¶
func BeforeSetPenalty(c StatsCollector, addr common.Address, appState *appstate.AppState)
func BeginCommitteeRewardBalanceUpdate ¶ added in v0.20.0
func BeginCommitteeRewardBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
func BeginDustClearingBalanceUpdate ¶ added in v0.20.0
func BeginDustClearingBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
func BeginEpochPenaltyResetBalanceUpdate ¶ added in v0.20.0
func BeginEpochPenaltyResetBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
func BeginEpochRewardBalanceUpdate ¶ added in v0.20.0
func BeginEpochRewardBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
func BeginFailedValidationBalanceUpdate ¶ added in v0.20.0
func BeginFailedValidationBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
func BeginPenaltyBalanceUpdate ¶ added in v0.20.0
func BeginPenaltyBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
func BeginProposerRewardBalanceUpdate ¶ added in v0.20.0
func BeginProposerRewardBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
func BeginTxBalanceUpdate ¶ added in v0.20.0
func BeginTxBalanceUpdate(c StatsCollector, tx *types.Transaction, appState *appstate.AppState)
func BeginVerifiedStakeTransferBalanceUpdate ¶ added in v0.20.0
func BeginVerifiedStakeTransferBalanceUpdate(c StatsCollector, addr common.Address, appState *appstate.AppState)
func CompleteBalanceUpdate ¶ added in v0.20.0
func CompleteBalanceUpdate(c StatsCollector, appState *appstate.AppState)
func SetCommitteeRewardShare ¶ added in v0.20.0
func SetCommitteeRewardShare(c StatsCollector, amount *big.Int)
func SetMinScoreForInvite ¶
func SetMinScoreForInvite(c StatsCollector, score float32)
func SetTotalFlipsReward ¶
func SetTotalFlipsReward(c StatsCollector, amount *big.Int, share *big.Int)
func SetTotalFoundationPayouts ¶
func SetTotalFoundationPayouts(c StatsCollector, amount *big.Int)
func SetTotalInvitationsReward ¶
func SetTotalInvitationsReward(c StatsCollector, amount *big.Int, share *big.Int)
func SetTotalReward ¶
func SetTotalReward(c StatsCollector, amount *big.Int)
func SetTotalValidationReward ¶
func SetTotalValidationReward(c StatsCollector, amount *big.Int, share *big.Int)
func SetTotalZeroWalletFund ¶
func SetTotalZeroWalletFund(c StatsCollector, amount *big.Int)
func SetValidation ¶
func SetValidation(c StatsCollector, validation *statsTypes.ValidationStats)
func SetValidationResults ¶ added in v0.20.0
func SetValidationResults(c StatsCollector, validationResults *types.ValidationResults)
Types ¶
type StatsCollector ¶
type StatsCollector interface { EnableCollecting() CompleteCollecting() SetValidation(validation *statsTypes.ValidationStats) SetMinScoreForInvite(score float32) SetValidationResults(authors *types.ValidationResults) SetTotalReward(amount *big.Int) SetTotalValidationReward(amount *big.Int, share *big.Int) SetTotalFlipsReward(amount *big.Int, share *big.Int) SetTotalInvitationsReward(amount *big.Int, share *big.Int) SetTotalFoundationPayouts(amount *big.Int) SetTotalZeroWalletFund(amount *big.Int) AddValidationReward(addr common.Address, age uint16, balance *big.Int, stake *big.Int) AddFlipsReward(addr common.Address, balance *big.Int, stake *big.Int, flipsToReward []*types.FlipToReward) AddReportedFlipsReward(addr common.Address, flipIdx int, balance *big.Int, stake *big.Int) AddInvitationsReward(addr common.Address, balance *big.Int, stake *big.Int, age uint16, txHash *common.Hash, isSavedInviteWinner bool) AddFoundationPayout(addr common.Address, balance *big.Int) AddZeroWalletFund(addr common.Address, balance *big.Int) AddProposerReward(addr common.Address, balance *big.Int, stake *big.Int) AddFinalCommitteeReward(addr common.Address, balance *big.Int, stake *big.Int) AfterSubPenalty(addr common.Address, amount *big.Int, appState *appstate.AppState) BeforeClearPenalty(addr common.Address, appState *appstate.AppState) BeforeSetPenalty(addr common.Address, appState *appstate.AppState) AddMintedCoins(amount *big.Int) AddPenaltyBurntCoins(addr common.Address, amount *big.Int) AddInviteBurntCoins(addr common.Address, amount *big.Int, tx *types.Transaction) AddFeeBurntCoins(addr common.Address, feeAmount *big.Int, burntRate float32, tx *types.Transaction) AddKilledBurntCoins(addr common.Address, amount *big.Int) AddBurnTxBurntCoins(addr common.Address, tx *types.Transaction) AfterAddStake(addr common.Address, amount *big.Int, appState *appstate.AppState) AddActivationTxBalanceTransfer(tx *types.Transaction, amount *big.Int) AddKillTxStakeTransfer(tx *types.Transaction, amount *big.Int) AddKillInviteeTxStakeTransfer(tx *types.Transaction, amount *big.Int) BeginVerifiedStakeTransferBalanceUpdate(addr common.Address, appState *appstate.AppState) BeginTxBalanceUpdate(tx *types.Transaction, appState *appstate.AppState) BeginProposerRewardBalanceUpdate(addr common.Address, appState *appstate.AppState) BeginCommitteeRewardBalanceUpdate(addr common.Address, appState *appstate.AppState) BeginEpochRewardBalanceUpdate(addr common.Address, appState *appstate.AppState) BeginFailedValidationBalanceUpdate(addr common.Address, appState *appstate.AppState) BeginPenaltyBalanceUpdate(addr common.Address, appState *appstate.AppState) BeginEpochPenaltyResetBalanceUpdate(addr common.Address, appState *appstate.AppState) BeginDustClearingBalanceUpdate(addr common.Address, appState *appstate.AppState) CompleteBalanceUpdate(appState *appstate.AppState) }
func NewStatsCollector ¶
func NewStatsCollector() StatsCollector
Click to show internal directories.
Click to hide internal directories.