Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2023 Changes in this version + const AttributeKeyValidator + const AttributeKeyWithdrawAddress + const AttributeValueCategory + const CodeAccAddressFromBech32Failed + const CodeBadDistribution + const CodeDisabledWithdrawRewards + const CodeEmptyDelegationDistInfo + const CodeEmptyDelegationVoteValidator + const CodeEmptyProposalRecipient + const CodeEmptyValidatorDistInfo + const CodeInvalidDistributionType + const CodeInvalidProposalAmount + const CodeInvalidRoute + const CodeNilDelegatorAddr + const CodeNilValidatorAddr + const CodeNilWithdrawAddr + const CodeNoValidatorCommission + const CodeNotSupportDistributionProposal + const CodeNotSupportRewardTruncatePrecisionProposal + const CodeNotSupportWithdrawDelegationRewards + const CodeNotSupportWithdrawRewardEnabledProposal + const CodeOutOfRangeRewardTruncatePrecision + const CodeProposerMustBeValidator + const CodeSendCoinsFromModuleToAccountFailed + const CodeSetWithdrawAddrDisabled + const CodeUnknownDistributionCommunityPoolProposaType + const CodeUnknownDistributionMsgType + const CodeUnknownDistributionParamType + const CodeUnknownDistributionQueryType + const CodeValAddressFromBech32 + const CodeWithdrawAddrInBlacklist + const CodeWithdrawValidatorCommissionFailed + const CodeWithdrawValidatorRewardsAndCommissionFailed + const CodeZeroDelegationShares + const DefaultCodespace + const DefaultParamspace + const DistributionTypeOffChain + const DistributionTypeOnChain + const EventTypeCommission + const EventTypeProposerReward + const EventTypeRewards + const EventTypeSetWithdrawAddress + const EventTypeWithdrawCommission + const EventTypeWithdrawRewards + const ModuleName + const ParamCommunityTax + const ParamDistributionType + const ParamRewardTruncatePrecision + const ParamWithdrawAddrEnabled + const ParamWithdrawRewardEnabled + const ProposalTypeChangeDistributionType + const ProposalTypeCommunityPoolSpend + const ProposalTypeRewardTruncatePrecision + const ProposalTypeWithdrawRewardEnabled + const QuerierRoute + const QueryCommunityPool + const QueryDelegationRewards + const QueryDelegatorTotalRewards + const QueryDelegatorValidators + const QueryParams + const QueryValidatorCommission + const QueryValidatorOutstandingRewards + const QueryWithdrawAddr + const RouterKey + const ShortUseByCli + const StoreKey + var DelegatorStartingInfoPrefix = []byte + var DelegatorWithdrawAddrPrefix = []byte + var FeePoolKey = []byte + var ModuleCdc *codec.Codec + var ParamStoreKeyCommunityTax = []byte("communitytax") + var ParamStoreKeyDistributionType = []byte("distributiontype") + var ParamStoreKeyRewardTruncatePrecision = []byte("rewardtruncateprecision") + var ParamStoreKeyWithdrawAddrEnabled = []byte("withdrawaddrenabled") + var ParamStoreKeyWithdrawRewardEnabled = []byte("withdrawrewardenabled") + var ProposerKey = []byte + var ValidatorAccumulatedCommissionPrefix = []byte + var ValidatorCurrentRewardsPrefix = []byte + var ValidatorHistoricalRewardsPrefix = []byte + var ValidatorOutstandingRewardsPrefix = []byte + func ErrBadDistribution() sdk.Error + func ErrCodeDisabledWithdrawRewards() sdk.Error + func ErrCodeEmptyDelegationDistInfo() sdk.Error + func ErrCodeEmptyDelegationVoteValidator() sdk.Error + func ErrCodeEmptyValidatorDistInfo() sdk.Error + func ErrCodeNotSupportDistributionProposal() sdk.Error + func ErrCodeNotSupportWithdrawDelegationRewards() sdk.Error + func ErrCodeProposerMustBeValidator() sdk.Error + func ErrCodeRewardTruncatePrecision() sdk.Error + func ErrCodeZeroDelegationShares() sdk.Error + func ErrEmptyProposalRecipient() sdk.Error + func ErrInvalidDistributionType() sdk.Error + func ErrInvalidProposalAmount() sdk.Error + func ErrNilDelegatorAddr() sdk.Error + func ErrNilValidatorAddr() sdk.Error + func ErrNilWithdrawAddr() sdk.Error + func ErrNoValidatorCommission() sdk.Error + func ErrSendCoinsFromModuleToAccountFailed() sdk.Error + func ErrSetWithdrawAddrDisabled() sdk.Error + func ErrUnknownDistributionCommunityPoolProposaType() sdk.Error + func ErrUnknownDistributionMsgType() sdk.Error + func ErrUnknownDistributionParamType() sdk.Error + func ErrUnknownDistributionQueryType() sdk.Error + func ErrWithdrawAddrInblacklist() sdk.Error + func ErrWithdrawValidatorCommissionFailed() sdk.Error + func GetDelegatorStartingInfoAddresses(key []byte) (valAddr sdk.ValAddress, delAddr sdk.AccAddress) + func GetDelegatorStartingInfoKey(v sdk.ValAddress, d sdk.AccAddress) []byte + func GetDelegatorWithdrawAddrKey(delAddr sdk.AccAddress) []byte + func GetDelegatorWithdrawInfoAddress(key []byte) (delAddr sdk.AccAddress) + func GetValidatorAccumulatedCommissionAddress(key []byte) (valAddr sdk.ValAddress) + func GetValidatorAccumulatedCommissionKey(v sdk.ValAddress) []byte + func GetValidatorCurrentRewardsAddress(key []byte) (valAddr sdk.ValAddress) + func GetValidatorCurrentRewardsKey(v sdk.ValAddress) []byte + func GetValidatorHistoricalRewardsAddressPeriod(key []byte) (valAddr sdk.ValAddress, period uint64) + func GetValidatorHistoricalRewardsKey(v sdk.ValAddress, k uint64) []byte + func GetValidatorHistoricalRewardsPrefix(v sdk.ValAddress) []byte + func GetValidatorOutstandingRewardsAddress(key []byte) (valAddr sdk.ValAddress) + func GetValidatorOutstandingRewardsKey(valAddr sdk.ValAddress) []byte + func ParamKeyTable() params.KeyTable + func RegisterCodec(cdc *codec.Codec) + func ValidateGenesis(gs GenesisState) error + type ChangeDistributionTypeProposal struct + Description string + Title string + Type uint32 + func NewChangeDistributionTypeProposal(title, description string, distrType uint32) ChangeDistributionTypeProposal + func (cdtp ChangeDistributionTypeProposal) GetDescription() string + func (cdtp ChangeDistributionTypeProposal) GetTitle() string + func (cdtp ChangeDistributionTypeProposal) ProposalRoute() string + func (cdtp ChangeDistributionTypeProposal) ProposalType() string + func (cdtp ChangeDistributionTypeProposal) String() string + func (cdtp ChangeDistributionTypeProposal) ValidateBasic() error + type CommunityPoolSpendProposal struct + Amount sdk.SysCoins + Description string + Recipient sdk.AccAddress + Title string + func NewCommunityPoolSpendProposal(title, description string, recipient sdk.AccAddress, amount sdk.SysCoins) CommunityPoolSpendProposal + func (csp CommunityPoolSpendProposal) GetDescription() string + func (csp CommunityPoolSpendProposal) GetTitle() string + func (csp CommunityPoolSpendProposal) ProposalRoute() string + func (csp CommunityPoolSpendProposal) ProposalType() string + func (csp CommunityPoolSpendProposal) String() string + func (csp CommunityPoolSpendProposal) ValidateBasic() error + type DelegationDelegatorReward struct + Reward sdk.DecCoins + ValidatorAddress sdk.ValAddress + func NewDelegationDelegatorReward(valAddr sdk.ValAddress, reward sdk.DecCoins) DelegationDelegatorReward + type DelegatorStartingInfo struct + Height uint64 + PreviousPeriod uint64 + Stake sdk.Dec + func NewDelegatorStartingInfo(previousPeriod uint64, stake sdk.Dec, height uint64) DelegatorStartingInfo + type DelegatorWithdrawInfo struct + DelegatorAddress sdk.AccAddress + WithdrawAddress sdk.AccAddress + type FeePool struct + CommunityPool sdk.SysCoins + func InitialFeePool() FeePool + func (f FeePool) ValidateGenesis() error + type GenesisState struct + DelegatorWithdrawInfos []DelegatorWithdrawInfo + FeePool FeePool + Params Params + PreviousProposer sdk.ConsAddress + ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord + func DefaultGenesisState() GenesisState + func NewGenesisState(params Params, feePool FeePool, dwis []DelegatorWithdrawInfo, ...) GenesisState + type GovKeeper interface + CheckMsgSubmitProposal func(ctx sdk.Context, msg govtypes.MsgSubmitProposal) sdk.Error + GetDepositParams func(ctx sdk.Context) govtypes.DepositParams + GetVotingParams func(ctx sdk.Context) govtypes.VotingParams + type MsgSetWithdrawAddress struct + DelegatorAddress sdk.AccAddress + WithdrawAddress sdk.AccAddress + func NewMsgSetWithdrawAddress(delAddr, withdrawAddr sdk.AccAddress) MsgSetWithdrawAddress + func (msg MsgSetWithdrawAddress) GetSignBytes() []byte + func (msg MsgSetWithdrawAddress) GetSigners() []sdk.AccAddress + func (msg MsgSetWithdrawAddress) Route() string + func (msg MsgSetWithdrawAddress) Type() string + func (msg MsgSetWithdrawAddress) ValidateBasic() sdk.Error + type MsgWithdrawDelegatorAllRewards struct + DelegatorAddress sdk.AccAddress + func NewMsgWithdrawDelegatorAllRewards(delAddr sdk.AccAddress) MsgWithdrawDelegatorAllRewards + func (msg MsgWithdrawDelegatorAllRewards) GetSignBytes() []byte + func (msg MsgWithdrawDelegatorAllRewards) GetSigners() []sdk.AccAddress + func (msg MsgWithdrawDelegatorAllRewards) Route() string + func (msg MsgWithdrawDelegatorAllRewards) Type() string + func (msg MsgWithdrawDelegatorAllRewards) ValidateBasic() error + type MsgWithdrawDelegatorReward struct + DelegatorAddress sdk.AccAddress + ValidatorAddress sdk.ValAddress + func NewMsgWithdrawDelegatorReward(delAddr sdk.AccAddress, valAddr sdk.ValAddress) MsgWithdrawDelegatorReward + func (msg MsgWithdrawDelegatorReward) GetSignBytes() []byte + func (msg MsgWithdrawDelegatorReward) GetSigners() []sdk.AccAddress + func (msg MsgWithdrawDelegatorReward) Route() string + func (msg MsgWithdrawDelegatorReward) Type() string + func (msg MsgWithdrawDelegatorReward) ValidateBasic() error + type MsgWithdrawValidatorCommission struct + ValidatorAddress sdk.ValAddress + func NewMsgWithdrawValidatorCommission(valAddr sdk.ValAddress) MsgWithdrawValidatorCommission + func (msg MsgWithdrawValidatorCommission) GetSignBytes() []byte + func (msg MsgWithdrawValidatorCommission) GetSigners() []sdk.AccAddress + func (msg MsgWithdrawValidatorCommission) Route() string + func (msg MsgWithdrawValidatorCommission) Type() string + func (msg MsgWithdrawValidatorCommission) ValidateBasic() sdk.Error + type Params struct + CommunityTax sdk.Dec + DistributionType uint32 + RewardTruncatePrecision int64 + WithdrawAddrEnabled bool + WithdrawRewardEnabled bool + func DefaultParams() Params + func NewParams(communityTax sdk.Dec, withdrawAddrEnabled bool, distributionType uint32, ...) Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) MarshalYAML() (interface{}, error) + func (p Params) String() string + func (p Params) ValidateBasic() error + type QueryDelegationRewardsParams struct + DelegatorAddress sdk.AccAddress + ValidatorAddress sdk.ValAddress + func NewQueryDelegationRewardsParams(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) QueryDelegationRewardsParams + type QueryDelegatorParams struct + DelegatorAddress sdk.AccAddress + func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams + type QueryDelegatorTotalRewardsResponse struct + Rewards []DelegationDelegatorReward + Total sdk.DecCoins + func NewQueryDelegatorTotalRewardsResponse(rewards []DelegationDelegatorReward, total sdk.DecCoins) QueryDelegatorTotalRewardsResponse + func (res QueryDelegatorTotalRewardsResponse) String() string + type QueryDelegatorWithdrawAddrParams struct + DelegatorAddress sdk.AccAddress + func NewQueryDelegatorWithdrawAddrParams(delegatorAddr sdk.AccAddress) QueryDelegatorWithdrawAddrParams + type QueryValidatorCommissionParams struct + ValidatorAddress sdk.ValAddress + func NewQueryValidatorCommissionParams(validatorAddr sdk.ValAddress) QueryValidatorCommissionParams + type QueryValidatorOutstandingRewardsParams struct + ValidatorAddress sdk.ValAddress + func NewQueryValidatorOutstandingRewardsParams(validatorAddr sdk.ValAddress) QueryValidatorOutstandingRewardsParams + type RewardTruncatePrecisionProposal struct + Description string + Precision int64 + Title string + func NewRewardTruncatePrecisionProposal(title, description string, precision int64) RewardTruncatePrecisionProposal + func (proposal RewardTruncatePrecisionProposal) GetDescription() string + func (proposal RewardTruncatePrecisionProposal) GetTitle() string + func (proposal RewardTruncatePrecisionProposal) ProposalRoute() string + func (proposal RewardTruncatePrecisionProposal) ProposalType() string + func (proposal RewardTruncatePrecisionProposal) String() string + func (proposal RewardTruncatePrecisionProposal) ValidateBasic() error + type StakingHooks interface + AfterDelegationModified func(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + AfterValidatorCreated func(ctx sdk.Context, valAddr sdk.ValAddress) + AfterValidatorRemoved func(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) + BeforeDelegationCreated func(ctx sdk.Context, delAddr sdk.AccAddress, valAddrs []sdk.ValAddress) + BeforeDelegationSharesModified func(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) + BeforeValidatorSlashed func(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) + type StakingKeeper interface + Delegator func(ctx sdk.Context, delAddr sdk.AccAddress) stakingexported.DelegatorI + GetLastTotalPower func(ctx sdk.Context) sdk.Int + GetLastValidatorPower func(ctx sdk.Context, valAddr sdk.ValAddress) int64 + IsValidator func(ctx sdk.Context, addr sdk.AccAddress) bool + IterateBondedValidatorsByPower func(sdk.Context, ...) + IterateLastValidators func(sdk.Context, ...) + IterateValidators func(sdk.Context, ...) + Jail func(sdk.Context, sdk.ConsAddress) + MaxValidators func(sdk.Context) uint16 + ParamsConsensusType func(ctx sdk.Context) (consensusType common.ConsensusType) + Unjail func(sdk.Context, sdk.ConsAddress) + Validator func(sdk.Context, sdk.ValAddress) stakingexported.ValidatorI + ValidatorByConsAddr func(sdk.Context, sdk.ConsAddress) stakingexported.ValidatorI + type SupplyKeeper interface + GetModuleAccount func(ctx sdk.Context, name string) supplyexported.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + SendCoinsFromModuleToModule func(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error + SetModuleAccount func(sdk.Context, supplyexported.ModuleAccountI) + type ValidatorAccumulatedCommission = sdk.SysCoins + func InitialValidatorAccumulatedCommission() ValidatorAccumulatedCommission + type ValidatorAccumulatedCommissionRecord struct + Accumulated ValidatorAccumulatedCommission + ValidatorAddress sdk.ValAddress + type ValidatorCurrentRewards struct + Period uint64 + Rewards sdk.SysCoins + func NewValidatorCurrentRewards(rewards sdk.SysCoins, period uint64) ValidatorCurrentRewards + type ValidatorHistoricalRewards struct + CumulativeRewardRatio sdk.SysCoins + ReferenceCount uint16 + func NewValidatorHistoricalRewards(cumulativeRewardRatio sdk.SysCoins, referenceCount uint16) ValidatorHistoricalRewards + type ValidatorOutstandingRewards = sdk.SysCoins + type WithdrawRewardEnabledProposal struct + Description string + Enabled bool + Title string + func NewWithdrawRewardEnabledProposal(title, description string, enable bool) WithdrawRewardEnabledProposal + func (proposal WithdrawRewardEnabledProposal) GetDescription() string + func (proposal WithdrawRewardEnabledProposal) GetTitle() string + func (proposal WithdrawRewardEnabledProposal) ProposalRoute() string + func (proposal WithdrawRewardEnabledProposal) ProposalType() string + func (proposal WithdrawRewardEnabledProposal) String() string + func (proposal WithdrawRewardEnabledProposal) ValidateBasic() error