keeper

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) service.MsgServer

NewMsgServerImpl returns an implementation of the module MsgServer interface.

func NewQueryServerImpl added in v0.8.10

func NewQueryServerImpl(k Keeper) service.QueryServer

NewQueryServerImpl returns an implementation of the module QueryServer.

Types

type Keeper

type Keeper struct {

	// state management
	CollSchema collections.Schema
	Params     collections.Item[service.Params]
	Records    collections.Map[string, service.Record]
	// contains filtered or unexported fields
}

Keeper defines the module's keeper.

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, addressCodec address.Codec, storeService storetypes.KVStoreService, identityKeeper service.IdentityKeeper,
	bankKeeper service.BankKeeper, groupKeeper service.GroupKeeper,
	authority string,
) Keeper

NewKeeper creates a new Keeper instance

func (*Keeper) ExportGenesis added in v0.8.10

func (k *Keeper) ExportGenesis(ctx context.Context) (*service.GenesisState, error)

ExportGenesis exports the module state to a genesis state.

func (Keeper) GetAuthority added in v0.8.10

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (*Keeper) InitGenesis added in v0.8.10

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

InitGenesis initializes the module state from a genesis state.

type Migrator added in v0.8.10

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

Migrator is a struct for handling in-place state migrations.

func NewMigrator added in v0.8.10

func NewMigrator(k Keeper) Migrator

NewMigrator returns Migrator instance for the state migration.

Jump to

Keyboard shortcuts

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