keeper

package
v0.48.86 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

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 {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey, authority string) Keeper

func (*Keeper) Get

func (k *Keeper) Get(ctx sdk.Context) (*tmproto.ConsensusParams, error)

Get gets the consensus parameters

func (*Keeper) GetAuthority

func (k *Keeper) GetAuthority() string

func (*Keeper) Has

func (k *Keeper) Has(ctx sdk.Context) bool

func (*Keeper) Set

func (k *Keeper) Set(ctx sdk.Context, cp *tmproto.ConsensusParams)

Set sets the consensus parameters

type Querier

type Querier struct {
	Keeper
}

Querier is used as Keeper will have duplicate methods if used directly, and gRPC names take precedence over keeper

func NewQuerier

func NewQuerier(keeper Keeper) Querier

NewQuerier constructor for the Querier struct

func (Querier) Params

Params queries params of consensus module

Jump to

Keyboard shortcuts

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