# Functions
get raw genesis raw message for testing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
zero fee pool.
return the initial accumulated commission (zero).
NewCommunityPoolSpendProposal creates a new community pool spned proposal.
NewDelegationDelegatorReward constructs a DelegationDelegatorReward.
create a new DelegatorStartingInfo.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
creates a new instance of QueryDelegationRewardsParams.
creates a new instance of QueryDelegationRewardsParams.
NewQueryDelegatorTotalRewardsResponse constructs a QueryDelegatorTotalRewardsResponse.
NewQueryDelegatorWithdrawAddrParams creates a new instance of QueryDelegatorWithdrawAddrParams.
creates a new instance of QueryValidatorCommissionParams.
creates a new instance of QueryValidatorOutstandingRewardsParams.
creates a new instance of QueryValidatorSlashesParams.
create a new ValidatorCurrentRewards.
create a new ValidatorHistoricalRewards.
create a new ValidatorSlashEvent.
Register concrete types on codec codec.
ValidateGenesis validates the genesis state of distribution genesis input.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ModuleName is the module name constant used in many places.
querier keys.
querier keys.
querier keys.
querier keys.
ProposalTypeCommunityPoolSpend defines the type for a CommunityPoolSpendProposal.
QuerierRoute is the querier route for distribution.
querier keys.
querier keys.
querier keys.
querier keys.
querier keys.
querier keys.
querier keys.
querier keys.
querier keys.
RouterKey is the message route for distribution.
StoreKey is the store key string for distribution.
# Variables
Distribution module event types.
Distribution module event types.
Distribution module event types.
Distribution module event types.
Distribution module event types.
Distribution module event types.
Distribution module event types.
Distribution module event types.
Distribution module event types.
generic sealed codec to be used throughout module.
# Structs
CommunityPoolSpendProposal spends from the community pool.
DelegationDelegatorReward defines the properties of a delegator's delegation reward.
starting info for a delegator reward period tracks the previous validator period, the delegation's amount of staking token, and the creation height (to check later on if any slashes have occurred) NOTE that even though validators are slashed to whole staking tokens, the delegators within the validator may be left with less than a full token, thus sdk.Dec is used.
used for import / export via genesis json.
the address for where distributions rewards are withdrawn to by default this struct is only used at genesis to feed in default withdraw addresses.
global fee pool for distribution.
GenesisState - all distribution state that must be provided at genesis.
msg struct for changing the withdraw address for a delegator (or validator self-delegation).
msg struct for delegation withdraw from a single validator.
msg struct for validator withdraw.
params for query 'custom/distr/delegation_rewards'.
params for query 'custom/distr/delegator_total_rewards' and 'custom/distr/delegator_validators'.
QueryDelegatorTotalRewardsResponse defines the properties of QueryDelegatorTotalRewards query's response.
params for query 'custom/distr/withdraw_addr'.
params for query 'custom/distr/validator_commission'.
params for query 'custom/distr/validator_outstanding_rewards'.
params for query 'custom/distr/validator_slashes'.
used for import / export via genesis json.
current rewards and current period for a validator kept as a running counter and incremented each block as long as the validator's tokens remain constant.
used for import / export via genesis json.
historical rewards for a validator height is implicit within the store key cumulative reward ratio is the sum from the zeroeth period until this period of rewards / tokens, per the spec The reference count indicates the number of objects which might need to reference this historical entry at any point.
used for import / export via genesis json.
used for import/export via genesis json.
validator slash event height is implicit within the store key needed to calculate appropriate amounts of staking token for delegations which withdraw after a slash has occurred.
used for import / export via genesis json.
# Interfaces
StakingHooks event hooks for staking validator object (noalias).
StakingKeeper expected staking keeper (noalias).
SupplyKeeper defines the expected supply Keeper (noalias).
# Type aliases
No description provided by the author
accumulated commission for a validator kept as a running counter, can be withdrawn at any time.
outstanding (un-withdrawn) rewards for a validator inexpensive to track, allows simple sanity checks.
ValidatorSlashEvents is a collection of ValidatorSlashEvent.