keeper

package
v0.0.0-...-5f99aa8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.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) 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,
	storeService store.KVStoreService,
	logger log.Logger,
	authority string,

) Keeper

func (Keeper) GetAllAnswer

func (k Keeper) GetAllAnswer(ctx context.Context) (list []types.Answer)

GetAllAnswer returns all answer

func (Keeper) GetAllQuestion

func (k Keeper) GetAllQuestion(ctx context.Context) (list []types.Question)

GetAllQuestion returns all question

func (Keeper) GetAnswer

func (k Keeper) GetAnswer(
	ctx context.Context,
	index string,

) (val types.Answer, found bool)

GetAnswer returns a answer from its index

func (Keeper) GetAnswers

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetParams

func (k Keeper) GetParams(ctx context.Context) (params types.Params)

GetParams get all parameters as types.Params

func (Keeper) GetQuestion

func (k Keeper) GetQuestion(
	ctx context.Context,
	index string,

) (val types.Question, found bool)

GetQuestion returns a question from its index

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) Params

func (Keeper) RemoveAnswer

func (k Keeper) RemoveAnswer(
	ctx context.Context,
	index string,

)

RemoveAnswer removes a answer from the store

func (Keeper) RemoveQuestion

func (k Keeper) RemoveQuestion(
	ctx context.Context,
	index string,

)

RemoveQuestion removes a question from the store

func (Keeper) SetAnswer

func (k Keeper) SetAnswer(ctx context.Context, answer types.Answer)

SetAnswer set a specific answer in the store from its index

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetQuestion

func (k Keeper) SetQuestion(ctx context.Context, question types.Question)

SetQuestion set a specific question in the store from its index

Jump to

Keyboard shortcuts

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