keeper

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: GPL-3.0 Imports: 21 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 chainmanager MsgServer interface for the provided Keeper.

func NewQueryServer

func NewQueryServer(k *Keeper) types.QueryServer

NewQueryServer creates a new querier for chainmanager clients.

Types

type Keeper

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

Keeper stores all chainmanager related data

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService store.KVStoreService,
	authority string,
) Keeper

NewKeeper create new keeper

func (*Keeper) EndBlocker

func (k *Keeper) EndBlocker(ctx context.Context) ([]abci.ValidatorUpdate, error)

EndBlocker called at the end of every block

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState

ExportGenesis returns a GenesisState for chainmanager.

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns x/chainmanager module's authority

func (Keeper) GetParams

func (k Keeper) GetParams(ctx context.Context) (types.Params, error)

GetParams gets the chainmanager module's parameters.

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx context.Context, data *types.GenesisState)

InitGenesis sets chainmanager information for genesis.

func (Keeper) Logger

func (k Keeper) Logger(ctx context.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) SetParams

func (k Keeper) SetParams(ctx context.Context, params types.Params) error

SetParams sets the chainmanager module's parameters.

Jump to

Keyboard shortcuts

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