keeper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 7 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 regulator clients.

Types

type Keeper

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

Keeper of the issuer store

func NewKeeper

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

NewKeeper creates a issuer keeper

func (Keeper) Get

func (k Keeper) Get(ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn) (i interface{}, found bool)

Get gets an item from the store by bytes

func (Keeper) GetAll

func (k Keeper) GetAll(ctx sdk.Context, prefix []byte, unmarshal UnmarshalFn) (i []interface{})

GetAll values from with a prefix from the store

func (Keeper) GetRegulator

func (k Keeper) GetRegulator(ctx sdk.Context, key []byte) (types.Regulator, bool)

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) Set

func (k Keeper) Set(ctx sdk.Context, key []byte, prefix []byte, i interface{})

Set sets a value in the db with a prefixed key

func (Keeper) SetRegulator

func (k Keeper) SetRegulator(ctx sdk.Context, key []byte, reg types.Regulator)

func (Keeper) UnmarshalRegulator

func (k Keeper) UnmarshalRegulator(value []byte) (interface{}, bool)

type UnmarshalFn

type UnmarshalFn func(value []byte) (interface{}, bool)

UnmarshalFn is a generic function to unmarshal bytes

Jump to

Keyboard shortcuts

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