Documentation
¶
Index ¶
- Constants
- Variables
- func ErrKeyAlreadyExists(codespace sdk.CodespaceType) sdk.Error
- func ErrKeyDoesNotExist(codespace sdk.CodespaceType) sdk.Error
- func RegisterCodec(cdc *codec.Codec)
- type BLZValue
- type MsgBLZCreate
- type MsgBLZDelete
- type MsgBLZHas
- type MsgBLZKeys
- type MsgBLZRead
- type MsgBLZUpdate
- type QueryResultHas
- type QueryResultKeys
- type QueryResultRead
Constants ¶
const ( DefaultCodespace sdk.CodespaceType = ModuleName CodeKeyDoesNotExist sdk.CodeType = 101 CodeKeyAlreadyExists sdk.CodeType = 102 )
DefaultCodespace is the Module Name
const ( // module name ModuleName = "crud" // StoreKey to be used when creating the KVStore StoreKey = ModuleName )
const RouterKey = ModuleName
Variables ¶
var ModuleCdc = codec.New()
Functions ¶
func ErrKeyAlreadyExists ¶
func ErrKeyAlreadyExists(codespace sdk.CodespaceType) sdk.Error
ErrNameDoesNotExist is the error for name not existing
func ErrKeyDoesNotExist ¶
func ErrKeyDoesNotExist(codespace sdk.CodespaceType) sdk.Error
ErrNameDoesNotExist is the error for name not existing
func RegisterCodec ¶
Types ¶
type BLZValue ¶
type BLZValue struct { Value string `json:"value"` Owner sdk.AccAddress `json:"owner"` }
func NewBLZValue ¶
func NewBLZValue() BLZValue
type MsgBLZCreate ¶
type MsgBLZCreate struct { UUID string Key string Value string Owner sdk.AccAddress }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Create
func NewMsgBLZCreate ¶
func NewMsgBLZCreate(UUID string, key string, value string, owner sdk.AccAddress) MsgBLZCreate
func (MsgBLZCreate) GetSignBytes ¶
func (msg MsgBLZCreate) GetSignBytes() []byte
func (MsgBLZCreate) GetSigners ¶
func (msg MsgBLZCreate) GetSigners() []sdk.AccAddress
func (MsgBLZCreate) Route ¶
func (msg MsgBLZCreate) Route() string
func (MsgBLZCreate) Type ¶
func (msg MsgBLZCreate) Type() string
func (MsgBLZCreate) ValidateBasic ¶
func (msg MsgBLZCreate) ValidateBasic() sdk.Error
type MsgBLZDelete ¶
type MsgBLZDelete struct { UUID string Key string Owner sdk.AccAddress }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Delete
func NewMsgBLZDelete ¶
func NewMsgBLZDelete(UUID string, key string, owner sdk.AccAddress) MsgBLZDelete
func (MsgBLZDelete) GetSignBytes ¶
func (msg MsgBLZDelete) GetSignBytes() []byte
func (MsgBLZDelete) GetSigners ¶
func (msg MsgBLZDelete) GetSigners() []sdk.AccAddress
func (MsgBLZDelete) Route ¶
func (msg MsgBLZDelete) Route() string
func (MsgBLZDelete) Type ¶
func (msg MsgBLZDelete) Type() string
func (MsgBLZDelete) ValidateBasic ¶
func (msg MsgBLZDelete) ValidateBasic() sdk.Error
type MsgBLZHas ¶
type MsgBLZHas struct { UUID string Key string Owner sdk.AccAddress }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Has
func NewMsgBLZHas ¶
func NewMsgBLZHas(UUID string, key string, owner sdk.AccAddress) MsgBLZHas
func (MsgBLZHas) GetSignBytes ¶
func (MsgBLZHas) GetSigners ¶
func (msg MsgBLZHas) GetSigners() []sdk.AccAddress
func (MsgBLZHas) ValidateBasic ¶
type MsgBLZKeys ¶
type MsgBLZKeys struct { UUID string Owner sdk.AccAddress }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Keys
func NewMsgBLZKeys ¶
func NewMsgBLZKeys(UUID string, owner sdk.AccAddress) MsgBLZKeys
func (MsgBLZKeys) GetSignBytes ¶
func (msg MsgBLZKeys) GetSignBytes() []byte
func (MsgBLZKeys) GetSigners ¶
func (msg MsgBLZKeys) GetSigners() []sdk.AccAddress
func (MsgBLZKeys) Route ¶
func (msg MsgBLZKeys) Route() string
func (MsgBLZKeys) Type ¶
func (msg MsgBLZKeys) Type() string
func (MsgBLZKeys) ValidateBasic ¶
func (msg MsgBLZKeys) ValidateBasic() sdk.Error
type MsgBLZRead ¶
type MsgBLZRead struct { UUID string Key string Owner sdk.AccAddress }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Read
func NewMsgBLZRead ¶
func NewMsgBLZRead(UUID string, key string, owner sdk.AccAddress) MsgBLZRead
func (MsgBLZRead) GetSignBytes ¶
func (msg MsgBLZRead) GetSignBytes() []byte
func (MsgBLZRead) GetSigners ¶
func (msg MsgBLZRead) GetSigners() []sdk.AccAddress
func (MsgBLZRead) Route ¶
func (msg MsgBLZRead) Route() string
func (MsgBLZRead) Type ¶
func (msg MsgBLZRead) Type() string
func (MsgBLZRead) ValidateBasic ¶
func (msg MsgBLZRead) ValidateBasic() sdk.Error
type MsgBLZUpdate ¶
type MsgBLZUpdate struct { UUID string Key string Value string Owner sdk.AccAddress }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Update
func NewMsgBLZUpdate ¶
func NewMsgBLZUpdate(UUID string, key string, value string, owner sdk.AccAddress) MsgBLZUpdate
func (MsgBLZUpdate) GetSignBytes ¶
func (msg MsgBLZUpdate) GetSignBytes() []byte
func (MsgBLZUpdate) GetSigners ¶
func (msg MsgBLZUpdate) GetSigners() []sdk.AccAddress
func (MsgBLZUpdate) Route ¶
func (msg MsgBLZUpdate) Route() string
func (MsgBLZUpdate) Type ¶
func (msg MsgBLZUpdate) Type() string
func (MsgBLZUpdate) ValidateBasic ¶
func (msg MsgBLZUpdate) ValidateBasic() sdk.Error