package
0.0.0-20220620005849-a315113d9162
Repository: https://github.com/mycodeku/transtionhelper.git
Documentation: pkg.go.dev

# Functions

get raw genesis raw message for testing.
DefaultParams returns default distribution parameters.
GetDelegatorStartingInfoAddresses creates the addresses from a delegator starting info key.
GetDelegatorStartingInfoKey creates the key for a delegator's starting info.
GetDelegatorWithdrawAddrKey creates the key for a delegator's withdraw addr.
GetDelegatorWithdrawInfoAddress creates an address from a delegator's withdraw info key.
GetValidatorAccumulatedCommissionAddress creates the address from a validator's accumulated commission key.
GetValidatorAccumulatedCommissionKey creates the key for a validator's current commission.
GetValidatorCurrentRewardsAddress creates the address from a validator's current rewards key.
GetValidatorCurrentRewardsKey creates the key for a validator's current rewards.
GetValidatorHistoricalRewardsAddressPeriod creates the address & period from a validator's historical rewards key.
GetValidatorHistoricalRewardsKey creates the key for a validator's historical rewards.
GetValidatorHistoricalRewardsPrefix creates the prefix key for a validator's historical rewards.
GetValidatorOutstandingRewardsAddress creates an address from a validator's outstanding rewards key.
GetValidatorOutstandingRewardsKey creates the outstanding rewards key for a validator.
GetValidatorSlashEventAddressHeight creates the height from a validator's slash event key.
GetValidatorSlashEventKey creates the key for a validator's slash fraction.
GetValidatorSlashEventKeyPrefix creates the prefix key for a validator's slash fraction (ValidatorSlashEventPrefix + height).
GetValidatorSlashEventPrefix creates the prefix key for a validator's slash fractions.
zero fee pool.
return the initial accumulated commission (zero).
NewCommunityPoolSpendProposal creates a new community pool spend proposal.nolint:interfacer.
NewDelegationDelegatorReward constructs a DelegationDelegatorReward.nolint:interfacer.
create a new DelegatorStartingInfo.
nolint:interfacer.
No description provided by the author
NewMsgFundCommunityPool returns a new MsgFundCommunityPool with a sender and a funding amount.
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.
ParamKeyTable returns the parameter key table.
No description provided by the author
RegisterLegacyAminoCodec registers the necessary x/distribution interfaces and concrete types on the provided LegacyAmino codec.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
ValidateGenesis validates the genesis state of distribution genesis input.

# Constants

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.
ModuleName is the module name constant used in many places.
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.
distribution message types.
distribution message types.
distribution message types.
distribution message types.

# Variables

key for delegator starting info.
key for delegator withdraw address.
x/distribution module sentinel errors.
x/distribution module sentinel errors.
x/distribution module sentinel errors.
x/distribution module sentinel errors.
x/distribution module sentinel errors.
x/distribution module sentinel errors.
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
x/distribution module sentinel errors.
x/distribution module sentinel errors.
x/distribution module sentinel errors.
x/distribution module sentinel errors.
x/distribution module sentinel errors.
x/distribution module sentinel errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
key for global distribution state.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
key for the proposer operator address.
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

CommunityPoolSpendProposal details a proposal for use of community funds, together with how many coins are proposed to be spent, and to which recipient account.
CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal with a deposit.
DelegationDelegatorReward represents the properties of a delegator's delegation reward.
DelegatorStartingInfo represents the starting info for a delegator reward period.
DelegatorStartingInfoRecord used for import / export via genesis json.
DelegatorWithdrawInfo is the address for where distributions rewards are withdrawn to by default this struct is only used at genesis to feed in default withdraw addresses.
FeePool is the global fee pool for distribution.
GenesisState defines the distribution module's genesis state.
MsgFundCommunityPool allows an account to directly fund the community pool.
MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
MsgSetWithdrawAddress sets the withdraw address for a delegator (or validator self-delegation).
MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type.
MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator from a single validator.
MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.
MsgWithdrawValidatorCommission withdraws the full commission to the validator address.
MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.
Params defines the set of params for the distribution module.
QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC method.
QueryCommunityPoolResponse is the response type for the Query/CommunityPool RPC method.
params for query 'custom/distr/delegation_rewards'.
QueryDelegationRewardsRequest is the request type for the Query/DelegationRewards RPC method.
QueryDelegationRewardsResponse is the response type for the Query/DelegationRewards RPC method.
QueryDelegationTotalRewardsRequest is the request type for the Query/DelegationTotalRewards RPC method.
QueryDelegationTotalRewardsResponse is the response type for the Query/DelegationTotalRewards RPC method.
params for query 'custom/distr/delegator_total_rewards' and 'custom/distr/delegator_validators'.
QueryDelegatorTotalRewardsResponse defines the properties of QueryDelegatorTotalRewards query's response.
QueryDelegatorValidatorsRequest is the request type for the Query/DelegatorValidators RPC method.
QueryDelegatorValidatorsResponse is the response type for the Query/DelegatorValidators RPC method.
QueryDelegatorWithdrawAddressRequest is the request type for the Query/DelegatorWithdrawAddress RPC method.
QueryDelegatorWithdrawAddressResponse is the response type for the Query/DelegatorWithdrawAddress RPC method.
params for query 'custom/distr/withdraw_addr'.
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
params for query 'custom/distr/validator_commission'.
QueryValidatorCommissionRequest is the request type for the Query/ValidatorCommission RPC method.
QueryValidatorCommissionResponse is the response type for the Query/ValidatorCommission RPC method.
params for query 'custom/distr/validator_outstanding_rewards'.
QueryValidatorOutstandingRewardsRequest is the request type for the Query/ValidatorOutstandingRewards RPC method.
QueryValidatorOutstandingRewardsResponse is the response type for the Query/ValidatorOutstandingRewards RPC method.
params for query 'custom/distr/validator_slashes'.
QueryValidatorSlashesRequest is the request type for the Query/ValidatorSlashes RPC method.
QueryValidatorSlashesResponse is the response type for the Query/ValidatorSlashes RPC method.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
ValidatorAccumulatedCommission represents accumulated commission for a validator kept as a running counter, can be withdrawn at any time.
ValidatorAccumulatedCommissionRecord is used for import / export via genesis json.
ValidatorCurrentRewards represents 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.
ValidatorCurrentRewardsRecord is used for import / export via genesis json.
ValidatorHistoricalRewards represents historical rewards for a validator.
ValidatorHistoricalRewardsRecord is used for import / export via genesis json.
ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards for a validator inexpensive to track, allows simple sanity checks.
ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
ValidatorSlashEvent represents a validator slash event.
ValidatorSlashEventRecord is used for import / export via genesis json.
ValidatorSlashEvents is a collection of ValidatorSlashEvent messages.

# Interfaces

AccountKeeper defines the expected account keeper used for simulations (noalias).
BankKeeper defines the expected interface needed to retrieve account balances.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
StakingHooks event hooks for staking validator object (noalias).
StakingKeeper expected staking keeper (noalias).