keeper

package
v0.45.5 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 7 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 defines the class module Keeper

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	key sdk.StoreKey,
) Keeper

NewKeeper returns a class keeper

func (Keeper) DeleteID

func (k Keeper) DeleteID(ctx sdk.Context, id string)

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *token.ClassGenesisState

func (Keeper) HasID

func (k Keeper) HasID(ctx sdk.Context, id string) bool

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, data *token.ClassGenesisState)

func (Keeper) NewID

func (k Keeper) NewID(ctx sdk.Context) string

NewID returns a brand new ID.

Jump to

Keyboard shortcuts

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