keeper

package
v0.0.0-...-324de33 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 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, admin sdk.AccAddress) Keeper

NewKeeper creates a new keeper.

func (Keeper) CreateValidator

func (k Keeper) CreateValidator(ctx context.Context, req *v1.MsgCreateValidator) (*v1.MsgCreateValidatorResponse, error)

CreateValidator implements Msg/CreateValidator.

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