keeper

package
v3.0.0-...-4448f67 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 15 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 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,
	memKey sdk.StoreKey,

) *Keeper

func (Keeper) CreateRandomNumber

func (k Keeper) CreateRandomNumber(ctx sdk.Context, msg *types.MsgCreateRandom) error

func (Keeper) GetAllRandomval

func (k Keeper) GetAllRandomval(ctx sdk.Context) (list []types.Randomval)

GetAllRandomval returns all randomval

func (Keeper) GetAllUserval

func (k Keeper) GetAllUserval(ctx sdk.Context) (list []types.Userval)

GetAllUserval returns all userval

func (Keeper) GetRandomval

func (k Keeper) GetRandomval(
	ctx sdk.Context,
	index string,

) (val types.Randomval, found bool)

GetRandomval returns a randomval from its index

func (Keeper) GetUserval

func (k Keeper) GetUserval(
	ctx sdk.Context,
	index string,

) (val types.Userval, found bool)

GetUserval returns a userval from its index

func (Keeper) Logger

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

func (Keeper) RemoveRandomval

func (k Keeper) RemoveRandomval(
	ctx sdk.Context,
	index string,

)

RemoveRandomval removes a randomval from the store

func (Keeper) RemoveUserval

func (k Keeper) RemoveUserval(
	ctx sdk.Context,
	index string,

)

RemoveUserval removes a userval from the store

func (Keeper) SetRandomval

func (k Keeper) SetRandomval(ctx sdk.Context, randomval types.Randomval)

SetRandomval set a specific randomval in the store from its index

func (Keeper) SetUserval

func (k Keeper) SetUserval(ctx sdk.Context, userval types.Userval)

SetUserval set a specific userval in the store from its index

func (Keeper) VerifyRandomNumber

func (k Keeper) VerifyRandomNumber(ctx sdk.Context, req *types.QueryVerifyValuesRequest) (string, error)

type Migrator

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

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

func NewMigrator

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

Jump to

Keyboard shortcuts

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