keeper

package
v0.0.0-...-42f099e Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAskIDBytes

func GetAskIDBytes(id uint64) []byte

GetAskIDBytes returns the byte representation of the ID

func GetAskIDFromBytes

func GetAskIDFromBytes(bz []byte) uint64

GetAskIDFromBytes returns ID in uint64 format from a byte array

func GetReplyIDBytes

func GetReplyIDBytes(id uint64) []byte

GetReplyIDBytes returns the byte representation of the ID

func GetReplyIDFromBytes

func GetReplyIDFromBytes(bz []byte) uint64

GetReplyIDFromBytes returns ID in uint64 format from a byte array

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,

	ganymedeKeeper types.GanymedeKeeper,
) *Keeper

func (Keeper) AppendAsk

func (k Keeper) AppendAsk(
	ctx sdk.Context,
	ask types.Ask,
) uint64

AppendAsk appends a ask in the store with a new id and update the count

func (Keeper) AppendReply

func (k Keeper) AppendReply(
	ctx sdk.Context,
	reply types.Reply,
) uint64

AppendReply appends a reply in the store with a new id and update the count

func (Keeper) Ask

func (Keeper) AskAll

func (Keeper) GetAllAsk

func (k Keeper) GetAllAsk(ctx sdk.Context) (list []types.Ask)

GetAllAsk returns all ask

func (k Keeper) GetAllAskLinks(ctx sdk.Context)

GetAllUsers returns all users

func (Keeper) GetAllReply

func (k Keeper) GetAllReply(ctx sdk.Context) (list []types.Reply)

GetAllReply returns all reply

func (k Keeper) GetAllReplyLinks(ctx sdk.Context)

GetAllUsers returns all users

func (Keeper) GetAsk

func (k Keeper) GetAsk(ctx sdk.Context, id uint64) (val types.Ask, found bool)

GetAsk returns a ask from its id

func (Keeper) GetAskByKey

func (k Keeper) GetAskByKey(ctx sdk.Context, key []byte) (val types.Ask, found bool)

GetAsk returns a ask from its id

func (Keeper) GetAskCount

func (k Keeper) GetAskCount(ctx sdk.Context) uint64

GetAskCount get the total number of ask

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetReply

func (k Keeper) GetReply(ctx sdk.Context, id uint64) (val types.Reply, found bool)

GetReply returns a reply from its id

func (Keeper) GetReplyByKey

func (k Keeper) GetReplyByKey(ctx sdk.Context, key []byte) (val types.Reply, found bool)

GetReply returns a reply from its id

func (Keeper) GetReplyCount

func (k Keeper) GetReplyCount(ctx sdk.Context) uint64

GetReplyCount get the total number of reply

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveAsk

func (k Keeper) RemoveAsk(ctx sdk.Context, id uint64)

RemoveAsk removes a ask from the store

func (Keeper) RemoveReply

func (k Keeper) RemoveReply(ctx sdk.Context, id uint64)

RemoveReply removes a reply from the store

func (Keeper) Reply

func (Keeper) ReplyAll

func (Keeper) SetAsk

func (k Keeper) SetAsk(ctx sdk.Context, ask types.Ask)

SetAsk set a specific ask in the store

func (Keeper) SetAskCount

func (k Keeper) SetAskCount(ctx sdk.Context, count uint64)

SetAskCount set the total number of ask

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetReply

func (k Keeper) SetReply(ctx sdk.Context, reply types.Reply)

SetReply set a specific reply in the store

func (Keeper) SetReplyCount

func (k Keeper) SetReplyCount(ctx sdk.Context, count uint64)

SetReplyCount set the total number of reply

Jump to

Keyboard shortcuts

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