keeper

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	slashingkeeper.Keeper
	// contains filtered or unexported fields
}

Keeper define a slashing keeper

func NewKeeper

func NewKeeper(slashingKeeper slashingkeeper.Keeper, nodeKeeper types.NodeKeeper) Keeper

NewKeeper creates a slashing keeper

func (Keeper) HandleUnjail

func (k Keeper) HandleUnjail(ctx sdk.Context, msg types.MsgUnjailValidator) error

HandleUnjail handles ths unjail msg

func (Keeper) HandleValidatorSignature

func (k Keeper) HandleValidatorSignature(ctx sdk.Context, addr crypto.Address, power int64, signed bool)

HandleValidatorSignature handles a validator signature, must be called once per validator per block. Block all subsequent logic if this validator has been removed.

Jump to

Keyboard shortcuts

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