keeper

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 16 modules, 27 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl added in v1.2.0

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the record MsgServer interface for the provided Keeper.

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