Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModuleName is the name of the module ModuleName = "pdv" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierRoute to be used for querierer msgs QuerierRoute = ModuleName )
View Source
const ( // DefaultParamspace for params keeper DefaultParamspace = ModuleName )
Variables ¶
View Source
var ModuleCdc = codec.New()
ModuleCdc is the codec for the module
View Source
var ParamCerberusAddressKey = []byte("ParamCerberusAddress")
ParamCerberusAddressKey is store's key for CerberusAddress
Functions ¶
func ParamKeyTable ¶ added in v1.0.0
ParamKeyTable type declaration for parameters
func RegisterCodec ¶
RegisterCodec registers concrete types on codec
Types ¶
type MsgCreatePDV ¶
type MsgCreatePDV struct { Owner sdk.AccAddress `json:"owner"` ID uint64 `json:"id"` }
MsgCreatePDV defines a CreatePDV message
func NewMsgCreatePDV ¶
func NewMsgCreatePDV(owner sdk.AccAddress, id uint64) MsgCreatePDV
NewMsgCreatePDV is a constructor function for MsgCreatePDV
func (MsgCreatePDV) GetSignBytes ¶
func (msg MsgCreatePDV) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCreatePDV) GetSigners ¶
func (msg MsgCreatePDV) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgCreatePDV) Route ¶
func (msg MsgCreatePDV) Route() string
Route should return the name of the module
func (MsgCreatePDV) ValidateBasic ¶
func (msg MsgCreatePDV) ValidateBasic() error
ValidateBasic runs stateless checks on the message
Click to show internal directories.
Click to hide internal directories.