Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 Changes in this version + const AttributeKeyValidator + const AttributeKeyWithdrawAddress + const AttributeValueCategory + const DefaultParamspace + const EventTypeCommission + const EventTypeProposerReward + const EventTypeRewards + const EventTypeSetWithdrawAddress + const EventTypeWithdrawCommission + const EventTypeWithdrawRewards + const ModuleName + const ProposalTypeCommunityPoolSpend + const QuerierRoute + const QueryCommunityPool + const QueryDelegationRewards + const QueryDelegatorTotalRewards + const QueryDelegatorValidators + const QueryParams + const QueryValidatorCommission + const QueryValidatorOutstandingRewards + const QueryValidatorSlashes + const QueryWithdrawAddr + const RouterKey + const StoreKey + const TypeMsgFundCommunityPool + var DelegatorStartingInfoPrefix = []byte + var DelegatorWithdrawAddrPrefix = []byte + var ErrBadDistribution = sdkerrors.Register(ModuleName, 8, "community pool does not have sufficient coins to distribute") + var ErrEmptyDelegationDistInfo = sdkerrors.Register(ModuleName, 4, "no delegation distribution info") + var ErrEmptyDelegatorAddr = sdkerrors.Register(ModuleName, 1, "delegator address is empty") + var ErrEmptyProposalRecipient = sdkerrors.Register(ModuleName, 10, "invalid community pool spend proposal recipient") + var ErrEmptyValidatorAddr = sdkerrors.Register(ModuleName, 3, "validator address is empty") + var ErrEmptyWithdrawAddr = sdkerrors.Register(ModuleName, 2, "withdraw address is empty") + var ErrInvalidProposalAmount = sdkerrors.Register(ModuleName, 9, "invalid community pool spend proposal amount") + var ErrNoDelegationExists = sdkerrors.Register(ModuleName, 12, "delegation does not exist") + var ErrNoValidatorCommission = sdkerrors.Register(ModuleName, 6, "no validator commission to withdraw") + var ErrNoValidatorDistInfo = sdkerrors.Register(ModuleName, 5, "no validator distribution info") + var ErrNoValidatorExists = sdkerrors.Register(ModuleName, 11, "validator does not exist") + var ErrSetWithdrawAddrDisabled = sdkerrors.Register(ModuleName, 7, "set withdraw address disabled") + var FeePoolKey = []byte + var ModuleCdc *codec.Codec + var ParamStoreKeyBaseProposerReward = []byte("baseproposerreward") + var ParamStoreKeyBonusProposerReward = []byte("bonusproposerreward") + var ParamStoreKeyCommunityTax = []byte("communitytax") + var ParamStoreKeyWithdrawAddrEnabled = []byte("withdrawaddrenabled") + var ProposerKey = []byte + var ValidatorAccumulatedCommissionPrefix = []byte + var ValidatorCurrentRewardsPrefix = []byte + var ValidatorHistoricalRewardsPrefix = []byte + var ValidatorOutstandingRewardsPrefix = []byte + var ValidatorSlashEventPrefix = []byte + 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 GetValidatorSlashEventAddressHeight(key []byte) (valAddr sdk.ValAddress, height uint64) + func GetValidatorSlashEventKey(v sdk.ValAddress, height, period uint64) []byte + func GetValidatorSlashEventKeyPrefix(v sdk.ValAddress, height uint64) []byte + func GetValidatorSlashEventPrefix(v sdk.ValAddress) []byte + func ParamKeyTable() params.KeyTable + func RegisterCodec(cdc *codec.Codec) + func ValidateGenesis(gs GenesisState) error + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authexported.Account + type CommunityPoolSpendProposal struct + Amount sdk.Coins + Description string + Recipient sdk.AccAddress + Title string + func NewCommunityPoolSpendProposal(title, description string, recipient sdk.AccAddress, amount sdk.Coins) 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 DelegatorStartingInfoRecord struct + DelegatorAddress sdk.AccAddress + StartingInfo DelegatorStartingInfo + ValidatorAddress sdk.ValAddress + type DelegatorWithdrawInfo struct + DelegatorAddress sdk.AccAddress + WithdrawAddress sdk.AccAddress + type FeePool struct + CommunityPool sdk.DecCoins + func InitialFeePool() FeePool + func (f FeePool) ValidateGenesis() error + type GenesisState struct + DelegatorStartingInfos []DelegatorStartingInfoRecord + DelegatorWithdrawInfos []DelegatorWithdrawInfo + FeePool FeePool + OutstandingRewards []ValidatorOutstandingRewardsRecord + Params Params + PreviousProposer sdk.ConsAddress + ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord + ValidatorCurrentRewards []ValidatorCurrentRewardsRecord + ValidatorHistoricalRewards []ValidatorHistoricalRewardsRecord + ValidatorSlashEvents []ValidatorSlashEventRecord + func DefaultGenesisState() GenesisState + func NewGenesisState(params Params, fp FeePool, dwis []DelegatorWithdrawInfo, pp sdk.ConsAddress, ...) GenesisState + type MsgFundCommunityPool struct + Amount sdk.Coins + Depositor sdk.AccAddress + func NewMsgFundCommunityPool(amount sdk.Coins, depositor sdk.AccAddress) MsgFundCommunityPool + func (msg MsgFundCommunityPool) GetSignBytes() []byte + func (msg MsgFundCommunityPool) GetSigners() []sdk.AccAddress + func (msg MsgFundCommunityPool) Route() string + func (msg MsgFundCommunityPool) Type() string + func (msg MsgFundCommunityPool) ValidateBasic() error + 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() 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() error + type Params struct + BaseProposerReward sdk.Dec + BonusProposerReward sdk.Dec + CommunityTax sdk.Dec + WithdrawAddrEnabled bool + func DefaultParams() Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + 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 QueryValidatorSlashesParams struct + EndingHeight uint64 + StartingHeight uint64 + ValidatorAddress sdk.ValAddress + func NewQueryValidatorSlashesParams(validatorAddr sdk.ValAddress, startingHeight uint64, endingHeight uint64) QueryValidatorSlashesParams + 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, valAddr 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 + Delegation func(sdk.Context, sdk.AccAddress, sdk.ValAddress) stakingexported.DelegationI + GetAllSDKDelegations func(ctx sdk.Context) []staking.Delegation + GetLastTotalPower func(ctx sdk.Context) sdk.Int + GetLastValidatorPower func(ctx sdk.Context, valAddr sdk.ValAddress) int64 + IterateBondedValidatorsByPower func(sdk.Context, ...) + IterateDelegations func(ctx sdk.Context, delegator sdk.AccAddress, ...) + IterateLastValidators func(sdk.Context, ...) + IterateValidators func(sdk.Context, ...) + Jail func(sdk.Context, sdk.ConsAddress) + MaxValidators func(sdk.Context) uint16 + Slash func(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec) + 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.DecCoins + func InitialValidatorAccumulatedCommission() ValidatorAccumulatedCommission + type ValidatorAccumulatedCommissionRecord struct + Accumulated ValidatorAccumulatedCommission + ValidatorAddress sdk.ValAddress + type ValidatorCurrentRewards struct + Period uint64 + Rewards sdk.DecCoins + func NewValidatorCurrentRewards(rewards sdk.DecCoins, period uint64) ValidatorCurrentRewards + type ValidatorCurrentRewardsRecord struct + Rewards ValidatorCurrentRewards + ValidatorAddress sdk.ValAddress + type ValidatorHistoricalRewards struct + CumulativeRewardRatio sdk.DecCoins + ReferenceCount uint16 + func NewValidatorHistoricalRewards(cumulativeRewardRatio sdk.DecCoins, referenceCount uint16) ValidatorHistoricalRewards + type ValidatorHistoricalRewardsRecord struct + Period uint64 + Rewards ValidatorHistoricalRewards + ValidatorAddress sdk.ValAddress + type ValidatorOutstandingRewards = sdk.DecCoins + type ValidatorOutstandingRewardsRecord struct + OutstandingRewards sdk.DecCoins + ValidatorAddress sdk.ValAddress + type ValidatorSlashEvent struct + Fraction sdk.Dec + ValidatorPeriod uint64 + func NewValidatorSlashEvent(validatorPeriod uint64, fraction sdk.Dec) ValidatorSlashEvent + func (vs ValidatorSlashEvent) String() string + type ValidatorSlashEventRecord struct + Event ValidatorSlashEvent + Height uint64 + Period uint64 + ValidatorAddress sdk.ValAddress + type ValidatorSlashEvents []ValidatorSlashEvent + func (vs ValidatorSlashEvents) String() string