Versions in this module Expand all Collapse all v0 v0.2.0 Nov 8, 2019 Changes in this version + const AttributeKeyValidator + const AttributeKeyWithdrawAddress + const AttributeValueCategory + const EventTypeCommission + const EventTypeProposerReward + const EventTypeRewards + const EventTypeSetWithdrawAddress + const EventTypeWithdrawCommission + const EventTypeWithdrawRewards + const ModuleName + const ParamBaseProposerReward + const ParamBonusProposerReward + const ParamCommunityTax + const ParamWithdrawAddrEnabled + 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 + var ModuleCdc *codec.Codec + func ErrBadDistribution(codespace sdk.CodespaceType) sdk.Error + func ErrEmptyProposalRecipient(codespace sdk.CodespaceType) sdk.Error + func ErrInvalidProposalAmount(codespace sdk.CodespaceType) sdk.Error + func ErrNilDelegatorAddr(codespace sdk.CodespaceType) sdk.Error + func ErrNilValidatorAddr(codespace sdk.CodespaceType) sdk.Error + func ErrNilWithdrawAddr(codespace sdk.CodespaceType) sdk.Error + func ErrNoDelegationDistInfo(codespace sdk.CodespaceType) sdk.Error + func ErrNoValidatorCommission(codespace sdk.CodespaceType) sdk.Error + func ErrNoValidatorDistInfo(codespace sdk.CodespaceType) sdk.Error + func ErrSetWithdrawAddrDisabled(codespace sdk.CodespaceType) sdk.Error + func RegisterCodec(cdc *codec.Codec) + func ValidateGenesis(data GenesisState) error + type CodeType = sdk.CodeType + const CodeInvalidInput + const CodeNoDistributionInfo + const CodeNoValidatorCommission + const CodeSetWithdrawAddrDisabled + const DefaultCodespace + type CommunityPoolSpendProposal struct + Amount sdk.Tokens + Description string + Recipient sdk.AccAddress + Title string + func NewCommunityPoolSpendProposal(title, description string, recipient sdk.AccAddress, amount sdk.Tokens) 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() sdk.Error + type DelegationDelegatorReward struct + Reward sdk.DecTokens + ValidatorAddress sdk.ValAddress + func NewDelegationDelegatorReward(valAddr sdk.ValAddress, reward sdk.DecTokens) 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.DecTokens + func InitialFeePool() FeePool + func (f FeePool) ValidateGenesis() error + type GenesisState struct + BaseProposerReward sdk.Dec + BonusProposerReward sdk.Dec + CommunityTax sdk.Dec + DelegatorStartingInfos []DelegatorStartingInfoRecord + DelegatorWithdrawInfos []DelegatorWithdrawInfo + FeePool FeePool + OutstandingRewards []ValidatorOutstandingRewardsRecord + PreviousProposer sdk.ConsAddress + ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord + ValidatorCurrentRewards []ValidatorCurrentRewardsRecord + ValidatorHistoricalRewards []ValidatorHistoricalRewardsRecord + ValidatorSlashEvents []ValidatorSlashEventRecord + WithdrawAddrEnabled bool + func DefaultGenesisState() GenesisState + func NewGenesisState(feePool FeePool, communityTax, baseProposerReward, bonusProposerReward sdk.Dec, ...) GenesisState + 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 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() sdk.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 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.DecTokens + func NewQueryDelegatorTotalRewardsResponse(rewards []DelegationDelegatorReward, total sdk.DecTokens) 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 + SendTokensFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) sdk.Error + SendTokensFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) sdk.Error + SendTokensFromModuleToModule func(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Tokens) sdk.Error + SetModuleAccount func(sdk.Context, supplyexported.ModuleAccountI) + type ValidatorAccumulatedCommission = sdk.DecTokens + func InitialValidatorAccumulatedCommission() ValidatorAccumulatedCommission + type ValidatorAccumulatedCommissionRecord struct + Accumulated ValidatorAccumulatedCommission + ValidatorAddress sdk.ValAddress + type ValidatorCurrentRewards struct + Period uint64 + Rewards sdk.DecTokens + func NewValidatorCurrentRewards(rewards sdk.DecTokens, period uint64) ValidatorCurrentRewards + type ValidatorCurrentRewardsRecord struct + Rewards ValidatorCurrentRewards + ValidatorAddress sdk.ValAddress + type ValidatorHistoricalRewards struct + CumulativeRewardRatio sdk.DecTokens + ReferenceCount uint16 + func NewValidatorHistoricalRewards(cumulativeRewardRatio sdk.DecTokens, referenceCount uint16) ValidatorHistoricalRewards + type ValidatorHistoricalRewardsRecord struct + Period uint64 + Rewards ValidatorHistoricalRewards + ValidatorAddress sdk.ValAddress + type ValidatorOutstandingRewards = sdk.DecTokens + type ValidatorOutstandingRewardsRecord struct + OutstandingRewards sdk.DecTokens + 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