Documentation ¶
Overview ¶
NewKeeper creates a new staking Keeper instance
Index ¶
- type Keeper
- func (k Keeper) ApplyAndReturnValidatorSetUpdates(context.Context) (updates []abci.ValidatorUpdate, err error)
- func (k Keeper) Jail(context.Context, sdk.ConsAddress) error
- func (k Keeper) Slash(context.Context, sdk.ConsAddress, int64, int64, math.LegacyDec) (math.Int, error)
- func (k Keeper) SlashWithInfractionReason(context.Context, sdk.ConsAddress, int64, int64, math.LegacyDec, ...) (math.Int, error)
- func (k Keeper) Unjail(context.Context, sdk.ConsAddress) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
stakingkeeper.Keeper
}
wrapper staking keeper
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService storetypes.KVStoreService, ak types.AccountKeeper, bk types.BankKeeper, authority string, validatorAddressCodec addresscodec.Codec, consensusAddressCodec addresscodec.Codec, ) Keeper
func (Keeper) ApplyAndReturnValidatorSetUpdates ¶
func (k Keeper) ApplyAndReturnValidatorSetUpdates(context.Context) (updates []abci.ValidatorUpdate, err error)
TODO: apply state changes but does not return validator updates
func (Keeper) Slash ¶
func (k Keeper) Slash(context.Context, sdk.ConsAddress, int64, int64, math.LegacyDec) (math.Int, error)
Slash a validator for an infraction committed at a known height. Since this module implements pseudo-staking, Slash performs no-op
Click to show internal directories.
Click to hide internal directories.