Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ModuleName is the name of the module ModuleName = "asset" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey is the module name router key RouterKey = ModuleName // QuerierRoute to be used for querierer msgs QuerierRoute = ModuleName )
View Source
const ( TypeAssetCreateMsg = "asset_create" TypeAssetUpdateMsg = "asset_update" TypeAssetDeleteMsg = "asset_delete" )
Variables ¶
View Source
var (
ErrNameDoesNotExist = sdkerrors.Register(ModuleName, 1, "Asset does not exist")
)
View Source
var ModuleCdc = codec.New()
ModuleCdc is the codec for the module
Functions ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on the Amino codec
Types ¶
type Asset ¶
type Asset struct {
UUID string `json:"uuid"`
Hash []byte `json:"hash"`
Creator sdk.AccAddress `json:"creator"`
Status bool `json:"status"`
Rate int64 `json:""`
}
func NewAssetFromMsgCreate ¶
func NewAssetFromMsgUpdate ¶
type MsgCreate ¶
type MsgCreate struct {
Creator sdk.AccAddress `json:"creator"`
Hash []byte `json:"hash"`
UUID string `json:"uuid"`
Status bool `json:"status"`
Rate int64 `json:"rate"`
}
func NewMsgCreate ¶
func (MsgCreate) GetSignBytes ¶
func (MsgCreate) GetSigners ¶
func (msg MsgCreate) GetSigners() []sdk.AccAddress
func (MsgCreate) ValidateBasic ¶
ValidateBasic Implements Msg
type MsgDelete ¶
type MsgDelete struct {
Owner sdk.AccAddress `json:"owner"`
UUID string `json:"uuid"`
}
func NewMsgDelete ¶
func NewMsgDelete(owner sdk.AccAddress, uuid string) MsgDelete
func (MsgDelete) GetSignBytes ¶
func (MsgDelete) GetSigners ¶
func (msg MsgDelete) GetSigners() []sdk.AccAddress
func (MsgDelete) ValidateBasic ¶
type MsgUpdate ¶
type MsgUpdate struct {
Creator sdk.AccAddress `json:"creator"`
Hash []byte `json:"hash"`
UUID string `json:"uuid"`
Status bool `json:"status"`
Rate int64 `json:"rate"`
}
func NewMsgUpdate ¶
func (MsgUpdate) GetSignBytes ¶
func (MsgUpdate) GetSigners ¶
func (msg MsgUpdate) GetSigners() []sdk.AccAddress
func (MsgUpdate) ValidateBasic ¶
type QueryResNames ¶
type QueryResNames []string
QueryResNames Queries Result Payload for a names query
type QueryResResolve ¶
type QueryResResolve struct {
Value string `json:"value"`
}
QueryResResolve Queries Result Payload for a resolve query
Click to show internal directories.
Click to hide internal directories.