keeper

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 15 Imported by: 2

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 record MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

NewQuerier creates a querier for record REST endpoints

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper of the record store

func NewKeeper

func NewKeeper(cdc codec.Codec, key storetypes.StoreKey) Keeper

NewKeeper returns a record keeper

func (Keeper) AddRecord

func (k Keeper) AddRecord(ctx sdk.Context, record types.Record) []byte

AddRecord adds a record

func (Keeper) GetIntraTxCounter

func (k Keeper) GetIntraTxCounter(ctx sdk.Context) uint32

GetIntraTxCounter gets the current in-block request operation counter

func (Keeper) GetRecord

func (k Keeper) GetRecord(ctx sdk.Context, recordID []byte) (record types.Record, found bool)

GetRecord retrieves the record by the specified record ID

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) Record

func (Keeper) RecordsIterator

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

RecordsIterator gets all records

func (Keeper) SetIntraTxCounter

func (k Keeper) SetIntraTxCounter(ctx sdk.Context, counter uint32)

SetIntraTxCounter sets the current in-block request counter

Jump to

Keyboard shortcuts

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