Documentation ¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- func RemovePrefixFromHash(key []byte, prefix []byte) (hash []byte)
- type Keeper
- func (k Keeper) CreateParticipant(ctx sdk.Context, participant types.Participante)
- func (k Keeper) CreateValidator(ctx sdk.Context, validator types.Validate)
- func (k Keeper) DeleteQuiz(ctx sdk.Context, quizId uint)
- func (k Keeper) GetPartById(ctx sdk.Context, quizId string, partWallet string) (types.Participante, error)
- func (k Keeper) GetPartIteratorByQuizId(ctx sdk.Context, quizId string) sdk.Iterator
- func (k Keeper) GetQuiz(ctx sdk.Context, quizId string) (types.Quiz, error)
- func (k Keeper) GetQuizIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetQuizStatus(ctx sdk.Context, quizId string) (types.QuizStatus, error)
- func (k Keeper) GetValidById(ctx sdk.Context, quizId string, validWallet string) (types.Validate, error)
- func (k Keeper) GetValidIteratorByQuizId(ctx sdk.Context, quizId string) sdk.Iterator
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetQuiz(ctx sdk.Context, quiz types.Quiz)
- func (k Keeper) SetQuizStatus(ctx sdk.Context, quizStatus types.QuizStatus)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for quizes clients.
func RemovePrefixFromHash ¶
Types ¶
type Keeper ¶
Keeper of the quizes store
func (Keeper) CreateParticipant ¶
func (k Keeper) CreateParticipant(ctx sdk.Context, participant types.Participante)
create Participant
func (Keeper) CreateValidator ¶
func (Keeper) DeleteQuiz ¶
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 (Keeper) GetQuizStatus ¶
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 (Keeper) SetQuizStatus ¶
func (k Keeper) SetQuizStatus(ctx sdk.Context, quizStatus types.QuizStatus)
Click to show internal directories.
Click to hide internal directories.