keeper

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

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

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,

	dclauthKeeper types.DclauthKeeper,
) *Keeper

func (Keeper) GetAllVendorInfo

func (k Keeper) GetAllVendorInfo(ctx sdk.Context) (list []types.VendorInfo)

GetAllVendorInfo returns all vendorInfo.

func (Keeper) GetVendorInfo

func (k Keeper) GetVendorInfo(
	ctx sdk.Context,
	vendorID int32,
) (val types.VendorInfo, found bool)

GetVendorInfo returns a vendorInfo from its index.

func (Keeper) Logger

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

func (Keeper) RemoveVendorInfo

func (k Keeper) RemoveVendorInfo(
	ctx sdk.Context,
	vendorID int32,
)

RemoveVendorInfo removes a vendorInfo from the store.

func (Keeper) SetVendorInfo

func (k Keeper) SetVendorInfo(ctx sdk.Context, vendorInfo types.VendorInfo)

SetVendorInfo set a specific vendorInfo in the store from its index.

Jump to

Keyboard shortcuts

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