keeper

package
v0.0.0-...-dd98aab Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

Keeper is the keeper.

func NewKeeper

func NewKeeper(storeService store.KVStoreService, authority sdk.AccAddress) Keeper

NewKeeper creates a new keeper.

func (Keeper) AddValidator

func (k Keeper) AddValidator(ctx context.Context, req *v1.MsgAddValidator) (*v1.MsgAddValidatorResponse, error)

AddValidator implements Msg/AddValidator.

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context, _ codec.JSONCodec) (json.RawMessage, error)

ExportGenesis exports genesis state.

func (Keeper) GetPolicy

func (k Keeper) GetPolicy(ctx sdk.Context) (*validatorv1.Policy, error)

GetPolicy gets the validator signing policy.

func (Keeper) HandleSigningInfo

func (k Keeper) HandleSigningInfo(ctx sdk.Context, voteInfo abci.VoteInfo, policy *validatorv1.Policy) error

HandleSigningInfo tracks validator signing info and enforces the policy.

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, _ codec.JSONCodec, data json.RawMessage) error

InitGenesis initializes genesis state.

func (Keeper) Policy

Policy implements the Query/Policy method.

func (Keeper) RemoveValidator

func (k Keeper) RemoveValidator(ctx context.Context, req *v1.MsgRemoveValidator) (*v1.MsgRemoveValidatorResponse, error)

RemoveValidator implements Msg/RemoveValidator.

func (Keeper) UpdatePolicy

func (k Keeper) UpdatePolicy(ctx context.Context, req *v1.MsgUpdatePolicy) (*v1.MsgUpdatePolicyResponse, error)

UpdatePolicy implements Msg/UpdatePolicy.

func (Keeper) UpdateValidator

func (k Keeper) UpdateValidator(ctx context.Context, req *v1.MsgUpdateValidator) (*v1.MsgUpdateValidatorResponse, error)

UpdateValidator implements the Msg/UpdateValidator method.

func (Keeper) Validator

Validator implements the Query/Validator method.

func (Keeper) Validators

Validators implements the Query/Validators method.

Jump to

Keyboard shortcuts

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