asset

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryAsset = "asset"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(k Keeper) sdk.Handler

func NewQuerier added in v0.2.2

func NewQuerier(k Keeper, cdc *amino.Codec) sdk.Querier

func RegisterCodec

func RegisterCodec(cdc *amino.Codec) *amino.Codec

RegisterWire registers messages into the amino.codec

Types

type Keeper

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

Keeper data type

func NewKeeper

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

NewKeeper - Returns the Keeper

func (Keeper) CreateAsset

func (k Keeper) CreateAsset(ctx sdk.Context, msg msg.MsgCreate) (types.Asset, error)

----------------------------------------------------------

func (Keeper) DeleteAsset

func (k Keeper) DeleteAsset(ctx sdk.Context, msg msg.MsgDelete) (types.Asset, error)

func (Keeper) RetrieveAsset

func (k Keeper) RetrieveAsset(ctx sdk.Context, params QueryAssetParams) (types.Asset, error)

func (Keeper) UpdateAsset

func (k Keeper) UpdateAsset(ctx sdk.Context, msg msg.MsgUpdate) (types.Asset, error)

type QueryAssetParams added in v0.2.2

type QueryAssetParams struct {
	UUID string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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