Versions in this module Expand all Collapse all v0 v0.50.9 Jul 10, 2024 Changes in this version + func NewMsgServerImpl(keeper Keeper) types.MsgServer + type Hooks struct + func (h Hooks) AfterDelegationModified(_ context.Context, _ sdk.AccAddress, _ 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(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error + func (h Hooks) AfterValidatorCreated(ctx context.Context, valAddr sdk.ValAddress) error + func (h Hooks) AfterValidatorRemoved(ctx context.Context, consAddr sdk.ConsAddress, _ sdk.ValAddress) error + func (h Hooks) BeforeDelegationCreated(_ context.Context, _ sdk.AccAddress, _ sdk.ValAddress) error + func (h Hooks) BeforeDelegationRemoved(_ context.Context, _ sdk.AccAddress, _ sdk.ValAddress) error + func (h Hooks) BeforeDelegationSharesModified(_ context.Context, _ sdk.AccAddress, _ sdk.ValAddress) error + func (h Hooks) BeforeValidatorModified(_ context.Context, _ sdk.ValAddress) error + func (h Hooks) BeforeValidatorSlashed(_ context.Context, _ sdk.ValAddress, _ sdkmath.LegacyDec) error + type Keeper struct + func NewKeeper(cdc codec.BinaryCodec, legacyAmino *codec.LegacyAmino, ...) Keeper + func (k Keeper) AddPubkey(ctx context.Context, pubkey cryptotypes.PubKey) error + func (k Keeper) DeleteMissedBlockBitmap(ctx context.Context, addr sdk.ConsAddress) error + func (k Keeper) DowntimeJailDuration(ctx context.Context) (time.Duration, error) + func (k Keeper) GetAuthority() string + func (k Keeper) GetMissedBlockBitmapValue(ctx context.Context, addr sdk.ConsAddress, index int64) (bool, error) + func (k Keeper) GetParams(ctx context.Context) (params types.Params, err error) + func (k Keeper) GetPubkey(ctx context.Context, a cryptotypes.Address) (cryptotypes.PubKey, error) + func (k Keeper) GetValidatorMissedBlocks(ctx context.Context, addr sdk.ConsAddress) ([]types.MissedBlock, error) + func (k Keeper) GetValidatorSigningInfo(ctx context.Context, address sdk.ConsAddress) (types.ValidatorSigningInfo, error) + func (k Keeper) HandleValidatorSignature(ctx context.Context, addr cryptotypes.Address, power int64, ...) error + func (k Keeper) HasValidatorSigningInfo(ctx context.Context, consAddr sdk.ConsAddress) bool + func (k Keeper) Hooks() Hooks + func (k Keeper) IsTombstoned(ctx context.Context, consAddr sdk.ConsAddress) bool + func (k Keeper) IterateMissedBlockBitmap(ctx context.Context, addr sdk.ConsAddress, ...) error + func (k Keeper) IterateValidatorSigningInfos(ctx context.Context, ...) error + func (k Keeper) Jail(ctx context.Context, consAddr sdk.ConsAddress) error + func (k Keeper) JailUntil(ctx context.Context, consAddr sdk.ConsAddress, jailTime time.Time) error + func (k Keeper) Logger(ctx context.Context) log.Logger + func (k Keeper) MinSignedPerWindow(ctx context.Context) (int64, error) + func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) + func (k Keeper) SetMissedBlockBitmapValue(ctx context.Context, addr sdk.ConsAddress, index int64, missed bool) error + func (k Keeper) SetParams(ctx context.Context, params types.Params) error + func (k Keeper) SetValidatorSigningInfo(ctx context.Context, address sdk.ConsAddress, info types.ValidatorSigningInfo) error + func (k Keeper) SignedBlocksWindow(ctx context.Context) (int64, error) + func (k Keeper) SigningInfo(ctx context.Context, req *types.QuerySigningInfoRequest) (*types.QuerySigningInfoResponse, error) + func (k Keeper) SigningInfos(ctx context.Context, req *types.QuerySigningInfosRequest) (*types.QuerySigningInfosResponse, error) + func (k Keeper) Slash(ctx context.Context, consAddr sdk.ConsAddress, fraction sdkmath.LegacyDec, ...) error + func (k Keeper) SlashFractionDoubleSign(ctx context.Context) (sdkmath.LegacyDec, error) + func (k Keeper) SlashFractionDowntime(ctx context.Context) (sdkmath.LegacyDec, error) + func (k Keeper) SlashWithInfractionReason(ctx context.Context, consAddr sdk.ConsAddress, fraction sdkmath.LegacyDec, ...) error + func (k Keeper) Tombstone(ctx context.Context, consAddr sdk.ConsAddress) error + func (k Keeper) Unjail(ctx context.Context, validatorAddr sdk.ValAddress) error + func (keeper Keeper) ExportGenesis(ctx sdk.Context) (data *types.GenesisState) + func (keeper Keeper) InitGenesis(ctx sdk.Context, stakingKeeper types.StakingKeeper, data *types.GenesisState) + type Migrator struct + func NewMigrator(keeper Keeper, ss exported.Subspace) Migrator + func (m Migrator) Migrate1to2(ctx sdk.Context) error + func (m Migrator) Migrate2to3(ctx sdk.Context) error + func (m Migrator) Migrate3to4(ctx sdk.Context) error + type Querier struct + func NewQuerier(keeper Keeper) Querier