keeper

package
v0.0.0-...-0ddee8d Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 12 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 storetypes.StoreKey,
	ps paramtypes.Subspace,

	identityKeeper types.IdentityKeeper,
) *Keeper

func (Keeper) Game

func (Keeper) GameAll

func (Keeper) GetAllGame

func (k Keeper) GetAllGame(ctx sdk.Context) (list []types.Game)

GetAllGame returns all game

func (Keeper) GetGame

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

) (val types.Game, found bool)

GetGame returns a game from its index

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveGame

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

)

RemoveGame removes a game from the store

func (Keeper) SetGame

func (k Keeper) SetGame(ctx sdk.Context, game types.Game)

SetGame set a specific game in the store from its index

func (Keeper) SetParams

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

SetParams set the params

Jump to

Keyboard shortcuts

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