Documentation ¶
Index ¶
- func GetBitcannaidIDBytes(id uint64) []byte
- func GetBitcannaidIDFromBytes(bz []byte) uint64
- func GetSupplychainIDBytes(id uint64) []byte
- func GetSupplychainIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendBitcannaid(ctx sdk.Context, bitcannaid types.Bitcannaid) uint64
- func (k Keeper) AppendSupplychain(ctx sdk.Context, supplychain types.Supplychain) uint64
- func (k Keeper) Bitcannaid(c context.Context, req *types.QueryGetBitcannaidRequest) (*types.QueryGetBitcannaidResponse, error)
- func (k Keeper) BitcannaidAll(c context.Context, req *types.QueryAllBitcannaidRequest) (*types.QueryAllBitcannaidResponse, error)
- func (k Keeper) GetAllBitcannaid(ctx sdk.Context) (list []types.Bitcannaid)
- func (k Keeper) GetAllSupplychain(ctx sdk.Context) (list []types.Supplychain)
- func (k Keeper) GetBitcannaid(ctx sdk.Context, id uint64) (val types.Bitcannaid, found bool)
- func (k Keeper) GetBitcannaidCount(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetSupplychain(ctx sdk.Context, id uint64) (val types.Supplychain, found bool)
- func (k Keeper) GetSupplychainCount(ctx sdk.Context) uint64
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveBitcannaid(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveSupplychain(ctx sdk.Context, id uint64)
- func (k Keeper) SetBitcannaid(ctx sdk.Context, bitcannaid types.Bitcannaid)
- func (k Keeper) SetBitcannaidCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSupplychain(ctx sdk.Context, supplychain types.Supplychain)
- func (k Keeper) SetSupplychainCount(ctx sdk.Context, count uint64)
- func (k Keeper) Supplychain(c context.Context, req *types.QueryGetSupplychainRequest) (*types.QueryGetSupplychainResponse, error)
- func (k Keeper) SupplychainAll(c context.Context, req *types.QueryAllSupplychainRequest) (*types.QueryAllSupplychainResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBitcannaidIDBytes ¶
GetBitcannaidIDBytes returns the byte representation of the ID
func GetBitcannaidIDFromBytes ¶
GetBitcannaidIDFromBytes returns ID in uint64 format from a byte array
func GetSupplychainIDBytes ¶
GetSupplychainIDBytes returns the byte representation of the ID
func GetSupplychainIDFromBytes ¶
GetSupplychainIDFromBytes returns ID in uint64 format from a byte array
func NewMsgServerImpl ¶
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 ¶
AppendBitcannaid appends a bitcannaid in the store with a new id and update the count
func (Keeper) AppendSupplychain ¶
AppendSupplychain appends a supplychain in the store with a new id and update the count
func (Keeper) Bitcannaid ¶
func (k Keeper) Bitcannaid(c context.Context, req *types.QueryGetBitcannaidRequest) (*types.QueryGetBitcannaidResponse, error)
func (Keeper) BitcannaidAll ¶
func (k Keeper) BitcannaidAll(c context.Context, req *types.QueryAllBitcannaidRequest) (*types.QueryAllBitcannaidResponse, error)
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 ¶
GetBitcannaid returns a bitcannaid from its id
func (Keeper) GetBitcannaidCount ¶
GetBitcannaidCount get the total number of bitcannaid
func (Keeper) GetSupplychain ¶
GetSupplychain returns a supplychain from its id
func (Keeper) GetSupplychainCount ¶
GetSupplychainCount get the total number of supplychain
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveBitcannaid ¶
RemoveBitcannaid removes a bitcannaid from the store
func (Keeper) RemoveSupplychain ¶
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 ¶
SetBitcannaidCount set the total number of bitcannaid
func (Keeper) SetSupplychain ¶
func (k Keeper) SetSupplychain(ctx sdk.Context, supplychain types.Supplychain)
SetSupplychain set a specific supplychain in the store
func (Keeper) SetSupplychainCount ¶
SetSupplychainCount set the total number of supplychain
func (Keeper) Supplychain ¶
func (k Keeper) Supplychain(c context.Context, req *types.QueryGetSupplychainRequest) (*types.QueryGetSupplychainResponse, error)
func (Keeper) SupplychainAll ¶
func (k Keeper) SupplychainAll(c context.Context, req *types.QueryAllSupplychainRequest) (*types.QueryAllSupplychainResponse, error)