Versions in this module Expand all Collapse all v0 v0.1.17 Jun 13, 2023 Changes in this version + func AllInvariants(k Keeper) sdk.Invariant + func CanWithdrawInvariant(k Keeper) sdk.Invariant + func HandleCommunityPoolSpendProposal(ctx sdk.Context, k Keeper, p *types.CommunityPoolSpendProposal) error + func ModuleAccountInvariant(k Keeper) sdk.Invariant + func NewMsgServerImpl(keeper Keeper) types.MsgServer + func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier + func NonNegativeOutstandingInvariant(k Keeper) sdk.Invariant + func ReferenceCountInvariant(k Keeper) sdk.Invariant + func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper) + type Hooks struct + func (h Hooks) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (h Hooks) AfterValidatorBeginUnbonding(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress) error + func (h Hooks) AfterValidatorBonded(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress) error + func (h Hooks) AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress) error + func (h Hooks) AfterValidatorRemoved(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) error + func (h Hooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (h Hooks) BeforeDelegationRemoved(_ sdk.Context, _ sdk.AccAddress, _ sdk.ValAddress) error + func (h Hooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (h Hooks) BeforeTokenizeShareRecordRemoved(ctx sdk.Context, recordId uint64) error + func (h Hooks) BeforeValidatorModified(_ sdk.Context, _ sdk.ValAddress) error + func (h Hooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec) error + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, key storetypes.StoreKey, paramSpace paramtypes.Subspace, ...) Keeper + func (k Keeper) AllocateTokens(ctx sdk.Context, sumPreviousPrecommitPower, totalPreviousPower int64, ...) + func (k Keeper) AllocateTokensToValidator(ctx sdk.Context, val sdkstaking.ValidatorI, tokens sdk.DecCoins) + func (k Keeper) CalculateDelegationRewards(ctx sdk.Context, val sdkstaking.ValidatorI, del sdkstaking.DelegationI, ...) (rewards sdk.DecCoins) + func (k Keeper) CommunityPool(c context.Context, req *types.QueryCommunityPoolRequest) (*types.QueryCommunityPoolResponse, error) + func (k Keeper) DelegationRewards(c context.Context, req *sdkdistr.QueryDelegationRewardsRequest) (*sdkdistr.QueryDelegationRewardsResponse, error) + func (k Keeper) DelegationTotalRewards(c context.Context, req *types.QueryDelegationTotalRewardsRequest) (*types.QueryDelegationTotalRewardsResponse, error) + func (k Keeper) DelegatorValidators(c context.Context, req *types.QueryDelegatorValidatorsRequest) (*types.QueryDelegatorValidatorsResponse, error) + func (k Keeper) DelegatorWithdrawAddress(c context.Context, req *types.QueryDelegatorWithdrawAddressRequest) (*types.QueryDelegatorWithdrawAddressResponse, error) + func (k Keeper) DeleteAllValidatorHistoricalRewards(ctx sdk.Context) + func (k Keeper) DeleteAllValidatorSlashEvents(ctx sdk.Context) + func (k Keeper) DeleteDelegatorStartingInfo(ctx sdk.Context, val sdk.ValAddress, del sdk.AccAddress) + func (k Keeper) DeleteDelegatorWithdrawAddr(ctx sdk.Context, delAddr, withdrawAddr sdk.AccAddress) + func (k Keeper) DeleteValidatorAccumulatedCommission(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) DeleteValidatorCurrentRewards(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) DeleteValidatorHistoricalReward(ctx sdk.Context, val sdk.ValAddress, period uint64) + func (k Keeper) DeleteValidatorHistoricalRewards(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) DeleteValidatorOutstandingRewards(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) DeleteValidatorSlashEvents(ctx sdk.Context, val sdk.ValAddress) + func (k Keeper) DistributeFromFeePool(ctx sdk.Context, amount sdk.Coins, receiveAddr sdk.AccAddress) error + func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState + func (k Keeper) FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error + func (k Keeper) GetBaseProposerReward(ctx sdk.Context) (percent sdk.Dec) + func (k Keeper) GetBonusProposerReward(ctx sdk.Context) (percent sdk.Dec) + func (k Keeper) GetCommunityTax(ctx sdk.Context) (percent sdk.Dec) + func (k Keeper) GetDelegatorStartingInfo(ctx sdk.Context, val sdk.ValAddress, del sdk.AccAddress) (period types.DelegatorStartingInfo) + func (k Keeper) GetDelegatorWithdrawAddr(ctx sdk.Context, delAddr sdk.AccAddress) sdk.AccAddress + func (k Keeper) GetDistributionAccount(ctx sdk.Context) authtypes.ModuleAccountI + func (k Keeper) GetFeePool(ctx sdk.Context) (feePool types.FeePool) + func (k Keeper) GetFeePoolCommunityCoins(ctx sdk.Context) sdk.DecCoins + func (k Keeper) GetParams(clientCtx sdk.Context) (params types.Params) + func (k Keeper) GetPreviousProposerConsAddr(ctx sdk.Context) sdk.ConsAddress + func (k Keeper) GetTotalRewards(ctx sdk.Context) (totalRewards sdk.DecCoins) + func (k Keeper) GetValidatorAccumulatedCommission(ctx sdk.Context, val sdk.ValAddress) (commission types.ValidatorAccumulatedCommission) + func (k Keeper) GetValidatorCurrentRewards(ctx sdk.Context, val sdk.ValAddress) (rewards types.ValidatorCurrentRewards) + func (k Keeper) GetValidatorHistoricalReferenceCount(ctx sdk.Context) (count uint64) + func (k Keeper) GetValidatorHistoricalRewards(ctx sdk.Context, val sdk.ValAddress, period uint64) (rewards types.ValidatorHistoricalRewards) + func (k Keeper) GetValidatorOutstandingRewards(ctx sdk.Context, val sdk.ValAddress) (rewards types.ValidatorOutstandingRewards) + func (k Keeper) GetValidatorOutstandingRewardsCoins(ctx sdk.Context, val sdk.ValAddress) sdk.DecCoins + func (k Keeper) GetValidatorSlashEvent(ctx sdk.Context, val sdk.ValAddress, height, period uint64) (event types.ValidatorSlashEvent, found bool) + func (k Keeper) GetWithdrawAddrEnabled(ctx sdk.Context) (enabled bool) + func (k Keeper) HasDelegatorStartingInfo(ctx sdk.Context, val sdk.ValAddress, del sdk.AccAddress) bool + func (k Keeper) Hooks() Hooks + func (k Keeper) IncrementValidatorPeriod(ctx sdk.Context, val sdkstaking.ValidatorI) uint64 + func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState) + func (k Keeper) IterateDelegatorStartingInfos(ctx sdk.Context, ...) + func (k Keeper) IterateDelegatorWithdrawAddrs(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorAccumulatedCommissions(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorCurrentRewards(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorHistoricalRewards(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorOutstandingRewards(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorSlashEvents(ctx sdk.Context, ...) + func (k Keeper) IterateValidatorSlashEventsBetween(ctx sdk.Context, val sdk.ValAddress, startingHeight uint64, ...) + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Keeper) SetDelegatorStartingInfo(ctx sdk.Context, val sdk.ValAddress, del sdk.AccAddress, ...) + func (k Keeper) SetDelegatorWithdrawAddr(ctx sdk.Context, delAddr, withdrawAddr sdk.AccAddress) + func (k Keeper) SetFeePool(ctx sdk.Context, feePool types.FeePool) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetPreviousProposerConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress) + func (k Keeper) SetValidatorAccumulatedCommission(ctx sdk.Context, val sdk.ValAddress, ...) + func (k Keeper) SetValidatorCurrentRewards(ctx sdk.Context, val sdk.ValAddress, rewards types.ValidatorCurrentRewards) + func (k Keeper) SetValidatorHistoricalRewards(ctx sdk.Context, val sdk.ValAddress, period uint64, ...) + func (k Keeper) SetValidatorOutstandingRewards(ctx sdk.Context, val sdk.ValAddress, rewards types.ValidatorOutstandingRewards) + func (k Keeper) SetValidatorSlashEvent(ctx sdk.Context, val sdk.ValAddress, height, period uint64, ...) + func (k Keeper) SetWithdrawAddr(ctx sdk.Context, delegatorAddr sdk.AccAddress, withdrawAddr sdk.AccAddress) error + func (k Keeper) TokenizeShareRecordReward(c context.Context, req *types.QueryTokenizeShareRecordRewardRequest) (*types.QueryTokenizeShareRecordRewardResponse, error) + func (k Keeper) ValidatorCommission(c context.Context, req *types.QueryValidatorCommissionRequest) (*types.QueryValidatorCommissionResponse, error) + func (k Keeper) ValidatorOutstandingRewards(c context.Context, req *types.QueryValidatorOutstandingRewardsRequest) (*types.QueryValidatorOutstandingRewardsResponse, error) + func (k Keeper) ValidatorSlashes(c context.Context, req *types.QueryValidatorSlashesRequest) (*types.QueryValidatorSlashesResponse, error) + func (k Keeper) WithdrawAllTokenizeShareRecordReward(ctx sdk.Context, ownerAddr sdk.AccAddress) (sdk.Coins, error) + func (k Keeper) WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error) + func (k Keeper) WithdrawSingleShareRecordReward(ctx sdk.Context, recordId uint64) error + func (k Keeper) WithdrawTokenizeShareRecordReward(ctx sdk.Context, ownerAddr sdk.AccAddress, recordId uint64) (sdk.Coins, error) + func (k Keeper) WithdrawValidatorCommission(ctx sdk.Context, valAddr sdk.ValAddress) (sdk.Coins, error) + type Migrator struct + func NewMigrator(keeper Keeper) Migrator + func (m Migrator) Migrate1to2(ctx sdk.Context) error + type SdkMsgHandler interface + func NewSdkMsgHandlerWrapper(handler types.MsgServer) SdkMsgHandler