Versions in this module Expand all Collapse all v0 v0.0.4 Jul 18, 2024 v0.0.3 Jul 18, 2024 Changes in this version + func AllInvariants(k Keeper) sdk.Invariant + func CanWithdrawInvariant(k Keeper) sdk.Invariant + func ModuleAccountInvariant(k Keeper) sdk.Invariant + func NewMsgServerImpl(keeper Keeper) types.MsgServer + 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 context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (h Hooks) AfterUnbondingInitiated(_ context.Context, _ uint64) error + func (h Hooks) AfterValidatorBeginUnbonding(_ context.Context, _ sdk.ConsAddress, _ sdk.ValAddress) error + func (h Hooks) AfterValidatorBonded(_ context.Context, _ sdk.ConsAddress, _ sdk.ValAddress) error + func (h Hooks) AfterValidatorCreated(ctx context.Context, valAddr sdk.ValAddress) error + func (h Hooks) AfterValidatorRemoved(ctx context.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) error + func (h Hooks) BeforeDelegationCreated(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (h Hooks) BeforeDelegationRemoved(_ context.Context, _ sdk.AccAddress, _ sdk.ValAddress) error + func (h Hooks) BeforeDelegationSharesModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error + func (h Hooks) BeforeValidatorModified(_ context.Context, _ sdk.ValAddress) error + func (h Hooks) BeforeValidatorSlashed(ctx context.Context, valAddr sdk.ValAddress, fraction sdkmath.LegacyDec) error + type Keeper struct + FeePool collections.Item[types.FeePool] + Params collections.Item[types.Params] + Schema collections.Schema + func NewKeeper(cdc codec.BinaryCodec, storeService store.KVStoreService, ...) Keeper + func (k Keeper) AllocateTokens(ctx context.Context, totalPreviousPower int64, bondedVotes []abci.VoteInfo) error + func (k Keeper) AllocateTokensToValidator(ctx context.Context, val stakingtypes.ValidatorI, tokens sdk.DecCoins) error + func (k Keeper) CalculateDelegationRewards(ctx context.Context, val stakingtypes.ValidatorI, del stakingtypes.DelegationI, ...) (rewards sdk.DecCoins, err error) + func (k Keeper) DeleteAllValidatorHistoricalRewards(ctx context.Context) + func (k Keeper) DeleteAllValidatorSlashEvents(ctx context.Context) + func (k Keeper) DeleteDelegatorStartingInfo(ctx context.Context, val sdk.ValAddress, del sdk.AccAddress) error + func (k Keeper) DeleteDelegatorWithdrawAddr(ctx context.Context, delAddr, withdrawAddr sdk.AccAddress) error + func (k Keeper) DeleteValidatorAccumulatedCommission(ctx context.Context, val sdk.ValAddress) error + func (k Keeper) DeleteValidatorCurrentRewards(ctx context.Context, val sdk.ValAddress) error + func (k Keeper) DeleteValidatorHistoricalReward(ctx context.Context, val sdk.ValAddress, period uint64) error + func (k Keeper) DeleteValidatorHistoricalRewards(ctx context.Context, val sdk.ValAddress) + func (k Keeper) DeleteValidatorOutstandingRewards(ctx context.Context, val sdk.ValAddress) error + func (k Keeper) DeleteValidatorSlashEvents(ctx context.Context, val sdk.ValAddress) + func (k Keeper) DistributeFromFeePool(ctx context.Context, amount sdk.Coins, receiveAddr sdk.AccAddress) error + func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState + func (k Keeper) FundCommunityPool(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error + func (k Keeper) GetAuthority() string + func (k Keeper) GetCommunityTax(ctx context.Context) (math.LegacyDec, error) + func (k Keeper) GetDelegatorStartingInfo(ctx context.Context, val sdk.ValAddress, del sdk.AccAddress) (period types.DelegatorStartingInfo, err error) + func (k Keeper) GetDelegatorWithdrawAddr(ctx context.Context, delAddr sdk.AccAddress) (sdk.AccAddress, error) + func (k Keeper) GetDistributionAccount(ctx context.Context) sdk.ModuleAccountI + func (k Keeper) GetPreviousProposerConsAddr(ctx context.Context) (sdk.ConsAddress, error) + func (k Keeper) GetTotalRewards(ctx context.Context) (totalRewards sdk.DecCoins) + func (k Keeper) GetValidatorAccumulatedCommission(ctx context.Context, val sdk.ValAddress) (commission types.ValidatorAccumulatedCommission, err error) + func (k Keeper) GetValidatorCurrentRewards(ctx context.Context, val sdk.ValAddress) (rewards types.ValidatorCurrentRewards, err error) + func (k Keeper) GetValidatorHistoricalReferenceCount(ctx context.Context) (count uint64) + func (k Keeper) GetValidatorHistoricalRewards(ctx context.Context, val sdk.ValAddress, period uint64) (rewards types.ValidatorHistoricalRewards, err error) + func (k Keeper) GetValidatorOutstandingRewards(ctx context.Context, val sdk.ValAddress) (rewards types.ValidatorOutstandingRewards, err error) + func (k Keeper) GetValidatorOutstandingRewardsCoins(ctx context.Context, val sdk.ValAddress) (sdk.DecCoins, error) + func (k Keeper) GetValidatorSlashEvent(ctx context.Context, val sdk.ValAddress, height, period uint64) (event types.ValidatorSlashEvent, found bool, err error) + func (k Keeper) GetWithdrawAddrEnabled(ctx context.Context) (enabled bool, err error) + func (k Keeper) HasDelegatorStartingInfo(ctx context.Context, val sdk.ValAddress, del sdk.AccAddress) (bool, error) + func (k Keeper) Hooks() Hooks + func (k Keeper) IncrementValidatorPeriod(ctx context.Context, val stakingtypes.ValidatorI) (uint64, error) + func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState) + func (k Keeper) IterateDelegatorStartingInfos(ctx context.Context, ...) + func (k Keeper) IterateDelegatorWithdrawAddrs(ctx context.Context, handler func(del, addr sdk.AccAddress) (stop bool)) + func (k Keeper) IterateValidatorAccumulatedCommissions(ctx context.Context, ...) + func (k Keeper) IterateValidatorCurrentRewards(ctx context.Context, ...) + func (k Keeper) IterateValidatorHistoricalRewards(ctx context.Context, ...) + func (k Keeper) IterateValidatorOutstandingRewards(ctx context.Context, ...) + func (k Keeper) IterateValidatorSlashEvents(ctx context.Context, ...) + func (k Keeper) IterateValidatorSlashEventsBetween(ctx context.Context, val sdk.ValAddress, startingHeight, endingHeight uint64, ...) + func (k Keeper) Logger(ctx context.Context) log.Logger + func (k Keeper) SetDelegatorStartingInfo(ctx context.Context, val sdk.ValAddress, del sdk.AccAddress, ...) error + func (k Keeper) SetDelegatorWithdrawAddr(ctx context.Context, delAddr, withdrawAddr sdk.AccAddress) error + func (k Keeper) SetPreviousProposerConsAddr(ctx context.Context, consAddr sdk.ConsAddress) error + func (k Keeper) SetValidatorAccumulatedCommission(ctx context.Context, val sdk.ValAddress, ...) error + func (k Keeper) SetValidatorCurrentRewards(ctx context.Context, val sdk.ValAddress, rewards types.ValidatorCurrentRewards) error + func (k Keeper) SetValidatorHistoricalRewards(ctx context.Context, val sdk.ValAddress, period uint64, ...) error + func (k Keeper) SetValidatorOutstandingRewards(ctx context.Context, val sdk.ValAddress, ...) error + func (k Keeper) SetValidatorSlashEvent(ctx context.Context, val sdk.ValAddress, height, period uint64, ...) error + func (k Keeper) SetWithdrawAddr(ctx context.Context, delegatorAddr, withdrawAddr sdk.AccAddress) error + func (k Keeper) WithdrawDelegationRewards(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error) + func (k Keeper) WithdrawValidatorCommission(ctx context.Context, valAddr sdk.ValAddress) (sdk.Coins, error) + type Migrator struct + func NewMigrator(keeper Keeper, legacySubspace exported.Subspace) Migrator + func (m Migrator) Migrate1to2(ctx sdk.Context) error + func (m Migrator) Migrate2to3(ctx sdk.Context) error + type Querier struct + func NewQuerier(keeper Keeper) Querier + func (k Querier) CommunityPool(ctx context.Context, req *types.QueryCommunityPoolRequest) (*types.QueryCommunityPoolResponse, error) + func (k Querier) DelegationRewards(ctx context.Context, req *types.QueryDelegationRewardsRequest) (*types.QueryDelegationRewardsResponse, error) + func (k Querier) DelegationTotalRewards(ctx context.Context, req *types.QueryDelegationTotalRewardsRequest) (*types.QueryDelegationTotalRewardsResponse, error) + func (k Querier) DelegatorValidators(ctx context.Context, req *types.QueryDelegatorValidatorsRequest) (*types.QueryDelegatorValidatorsResponse, error) + func (k Querier) DelegatorWithdrawAddress(ctx context.Context, req *types.QueryDelegatorWithdrawAddressRequest) (*types.QueryDelegatorWithdrawAddressResponse, error) + func (k Querier) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Querier) ValidatorCommission(ctx context.Context, req *types.QueryValidatorCommissionRequest) (*types.QueryValidatorCommissionResponse, error) + func (k Querier) ValidatorDistributionInfo(ctx context.Context, req *types.QueryValidatorDistributionInfoRequest) (*types.QueryValidatorDistributionInfoResponse, error) + func (k Querier) ValidatorOutstandingRewards(ctx context.Context, req *types.QueryValidatorOutstandingRewardsRequest) (*types.QueryValidatorOutstandingRewardsResponse, error) + func (k Querier) ValidatorSlashes(ctx context.Context, req *types.QueryValidatorSlashesRequest) (*types.QueryValidatorSlashesResponse, error)