keeper

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBitcannaidIDBytes

func GetBitcannaidIDBytes(id uint64) []byte

GetBitcannaidIDBytes returns the byte representation of the ID

func GetBitcannaidIDFromBytes

func GetBitcannaidIDFromBytes(bz []byte) uint64

GetBitcannaidIDFromBytes returns ID in uint64 format from a byte array

func GetSupplychainIDBytes

func GetSupplychainIDBytes(id uint64) []byte

GetSupplychainIDBytes returns the byte representation of the ID

func GetSupplychainIDFromBytes

func GetSupplychainIDFromBytes(bz []byte) uint64

GetSupplychainIDFromBytes returns ID in uint64 format from a byte array

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,
	ps paramtypes.Subspace,
) *Keeper

func (Keeper) AppendBitcannaid

func (k Keeper) AppendBitcannaid(
	ctx sdk.Context,
	bitcannaid types.Bitcannaid,
) uint64

AppendBitcannaid appends a bitcannaid in the store with a new id and update the count

func (Keeper) AppendSupplychain

func (k Keeper) AppendSupplychain(
	ctx sdk.Context,
	supplychain types.Supplychain,
) uint64

AppendSupplychain appends a supplychain in the store with a new id and update the count

func (Keeper) GetAllBitcannaid

func (k Keeper) GetAllBitcannaid(ctx sdk.Context) (list []types.Bitcannaid)

GetAllBitcannaid returns all bitcannaid

func (Keeper) GetAllSupplychain

func (k Keeper) GetAllSupplychain(ctx sdk.Context) (list []types.Supplychain)

GetAllSupplychain returns all supplychain

func (Keeper) GetBitcannaid

func (k Keeper) GetBitcannaid(ctx sdk.Context, id uint64) (val types.Bitcannaid, found bool)

GetBitcannaid returns a bitcannaid from its id

func (Keeper) GetBitcannaidCount

func (k Keeper) GetBitcannaidCount(ctx sdk.Context) uint64

GetBitcannaidCount get the total number of bitcannaid

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetSupplychain

func (k Keeper) GetSupplychain(ctx sdk.Context, id uint64) (val types.Supplychain, found bool)

GetSupplychain returns a supplychain from its id

func (Keeper) GetSupplychainCount

func (k Keeper) GetSupplychainCount(ctx sdk.Context) uint64

GetSupplychainCount get the total number of supplychain

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveBitcannaid

func (k Keeper) RemoveBitcannaid(ctx sdk.Context, id uint64)

RemoveBitcannaid removes a bitcannaid from the store

func (Keeper) RemoveSupplychain

func (k Keeper) RemoveSupplychain(ctx sdk.Context, id uint64)

RemoveSupplychain removes a supplychain from the store

func (Keeper) SetBitcannaid

func (k Keeper) SetBitcannaid(ctx sdk.Context, bitcannaid types.Bitcannaid)

SetBitcannaid set a specific bitcannaid in the store

func (Keeper) SetBitcannaidCount

func (k Keeper) SetBitcannaidCount(ctx sdk.Context, count uint64)

SetBitcannaidCount set the total number of bitcannaid

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetSupplychain

func (k Keeper) SetSupplychain(ctx sdk.Context, supplychain types.Supplychain)

SetSupplychain set a specific supplychain in the store

func (Keeper) SetSupplychainCount

func (k Keeper) SetSupplychainCount(ctx sdk.Context, count uint64)

SetSupplychainCount set the total number of supplychain

Jump to

Keyboard shortcuts

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