keeper

package
v0.0.0-...-1ebabd0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

NewQuerier creates a new querier for quizes clients.

func RemovePrefixFromHash

func RemovePrefixFromHash(key []byte, prefix []byte) (hash []byte)

Types

type Keeper

type Keeper struct {
	CoinKeeper bank.Keeper
	// contains filtered or unexported fields
}

Keeper of the quizes store

func NewKeeper

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

NewKeeper creates a scavenge keeper

func (Keeper) CreateParticipant

func (k Keeper) CreateParticipant(ctx sdk.Context, participant types.Participante)

create Participant

func (Keeper) CreateValidator

func (k Keeper) CreateValidator(ctx sdk.Context, validator types.Validate)

func (Keeper) DeleteQuiz

func (k Keeper) DeleteQuiz(ctx sdk.Context, quizId uint)

DeleteQuiz deletes a Quiz

func (Keeper) GetPartById

func (k Keeper) GetPartById(ctx sdk.Context, quizId string, partWallet string) (types.Participante, error)

GetValidById returns the validator information by id

func (Keeper) GetPartIteratorByQuizId

func (k Keeper) GetPartIteratorByQuizId(ctx sdk.Context, quizId string) sdk.Iterator

func (Keeper) GetQuiz

func (k Keeper) GetQuiz(ctx sdk.Context, quizId string) (types.Quiz, error)

GetQuiz returns the quiz information

func (Keeper) GetQuizIterator

func (k Keeper) GetQuizIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetQuizStatus

func (k Keeper) GetQuizStatus(ctx sdk.Context, quizId string) (types.QuizStatus, error)

func (Keeper) GetValidById

func (k Keeper) GetValidById(ctx sdk.Context, quizId string, validWallet string) (types.Validate, error)

GetValidById returns the validator information by id

func (Keeper) GetValidIteratorByQuizId

func (k Keeper) GetValidIteratorByQuizId(ctx sdk.Context, quizId string) sdk.Iterator

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) SetQuiz

func (k Keeper) SetQuiz(ctx sdk.Context, quiz types.Quiz)

Create Quiz

func (Keeper) SetQuizStatus

func (k Keeper) SetQuizStatus(ctx sdk.Context, quizStatus types.QuizStatus)

Jump to

Keyboard shortcuts

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