keeper

package
v0.2.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

NewKeeper creates a new staking Keeper instance

Index

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) Jail

Jail performs no-op

func (Keeper) Slash

Slash a validator for an infraction committed at a known height. Since this module implements pseudo-staking, Slash performs no-op

func (Keeper) SlashWithInfractionReason

func (k Keeper) SlashWithInfractionReason(context.Context, sdk.ConsAddress, int64, int64, math.LegacyDec, types.Infraction) (math.Int, error)

SlashWithInfractionReason performs no-op

func (Keeper) Unjail

Unjail performs no-op

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL