package
1.0.15
Repository: https://github.com/netcloth/netcloth-chain.git
Documentation: pkg.go.dev

# Functions

AllInvariants runs all invariants of the distribution module.
CanWithdrawInvariant checks that current rewards can be completely withdrawn.
hogpodge of all sorts of input required for testing.
test input with default values.
gets the addresses from a delegator starting info key.
gets the key for a delegator's starting info.
gets the key for a delegator's withdraw addr.
gets an address from a delegator's withdraw info key.
gets the address from a validator's accumulated commission key.
gets the key for a validator's current commission.
gets the address from a validator's current rewards key.
gets the key for a validator's current rewards.
gets the address & period from a validator's historical rewards key.
gets the key for a validator's historical rewards.
gets the prefix key for a validator's historical rewards.
gets an address from a validator's outstanding rewards key.
gets the outstanding rewards key for a validator.
gets the height from a validator's slash event key.
gets the key for a validator's slash fraction.
gets the prefix key for a validator's slash fraction (ValidatorSlashEventPrefix + height).
gets the prefix key for a validator's slash fractions.
HandleCommunityPoolSpendProposal is a handler for executing a passed community spend proposal.
create a codec used only for testing.
ModuleAccountInvariant checks that the coins held by the distr ModuleAccount is consistent with the sum of validator outstanding rewards.
NewKeeper creates a new distribution Keeper instance.
No description provided by the author
NonNegativeOutstandingInvariant checks that outstanding unwithdrawn fees are never negative.
type declaration for parameters.
ReferenceCountInvariant checks that the number of historical rewards records is correct.
register all distribution invariants.

# Constants

default paramspace for params keeper.

# Variables

key for delegator starting info.
key for delegator withdraw address.
key for global distribution state.
Keys for distribution store Items are stored with the following key: values - 0x00<proposalID_Bytes>: FeePol - 0x01: sdk.ConsAddress - 0x02<valAddr_Bytes>: ValidatorOutstandingRewards - 0x03<accAddr_Bytes>: sdk.AccAddress - 0x04<valAddr_Bytes><accAddr_Bytes>: DelegatorStartingInfo - 0x05<valAddr_Bytes><period_Bytes>: ValidatorHistoricalRewards - 0x06<valAddr_Bytes>: ValidatorCurrentRewards - 0x07<valAddr_Bytes>: ValidatorCurrentRewards - 0x08<valAddr_Bytes><height>: ValidatorSlashEvent.
Keys for distribution store Items are stored with the following key: values - 0x00<proposalID_Bytes>: FeePol - 0x01: sdk.ConsAddress - 0x02<valAddr_Bytes>: ValidatorOutstandingRewards - 0x03<accAddr_Bytes>: sdk.AccAddress - 0x04<valAddr_Bytes><accAddr_Bytes>: DelegatorStartingInfo - 0x05<valAddr_Bytes><period_Bytes>: ValidatorHistoricalRewards - 0x06<valAddr_Bytes>: ValidatorCurrentRewards - 0x07<valAddr_Bytes>: ValidatorCurrentRewards - 0x08<valAddr_Bytes><height>: ValidatorSlashEvent.
Keys for distribution store Items are stored with the following key: values - 0x00<proposalID_Bytes>: FeePol - 0x01: sdk.ConsAddress - 0x02<valAddr_Bytes>: ValidatorOutstandingRewards - 0x03<accAddr_Bytes>: sdk.AccAddress - 0x04<valAddr_Bytes><accAddr_Bytes>: DelegatorStartingInfo - 0x05<valAddr_Bytes><period_Bytes>: ValidatorHistoricalRewards - 0x06<valAddr_Bytes>: ValidatorCurrentRewards - 0x07<valAddr_Bytes>: ValidatorCurrentRewards - 0x08<valAddr_Bytes><height>: ValidatorSlashEvent.
Keys for distribution store Items are stored with the following key: values - 0x00<proposalID_Bytes>: FeePol - 0x01: sdk.ConsAddress - 0x02<valAddr_Bytes>: ValidatorOutstandingRewards - 0x03<accAddr_Bytes>: sdk.AccAddress - 0x04<valAddr_Bytes><accAddr_Bytes>: DelegatorStartingInfo - 0x05<valAddr_Bytes><period_Bytes>: ValidatorHistoricalRewards - 0x06<valAddr_Bytes>: ValidatorCurrentRewards - 0x07<valAddr_Bytes>: ValidatorCurrentRewards - 0x08<valAddr_Bytes><height>: ValidatorSlashEvent.
key for the proposer operator address.
TODO move to common testing package for all modules test addresses.
key for accumulated validator commission.
key for current validator rewards.
key for historical validators rewards / stake.
key for outstanding rewards.
key for validator slash fraction.

# Structs

Wrapper struct.
Keeper of the distribution store.