Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModuleName is the name of the module ModuleName = "profile" // 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 DateFormat = "2006-01-02"
Variables ¶
View Source
var ModuleCdc = codec.New()
ModuleCdc is the codec for the module
Functions ¶
func IsValidAvatar ¶ added in v0.3.0
func IsValidDate ¶
func IsValidGender ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on codec
Types ¶
type MsgSetPrivate ¶
type MsgSetPrivate struct { Owner sdk.AccAddress `json:"owner"` Private []byte `json:"private"` }
MsgSetPrivate defines a SetPrivate message
func NewMsgSetPrivate ¶
func NewMsgSetPrivate(data []byte, owner sdk.AccAddress) MsgSetPrivate
NewMsgSetSettings is a constructor function for MsgSetPrivate
func (MsgSetPrivate) GetSignBytes ¶
func (msg MsgSetPrivate) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgSetPrivate) GetSigners ¶
func (msg MsgSetPrivate) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgSetPrivate) Route ¶
func (msg MsgSetPrivate) Route() string
Route should return the name of the module
func (MsgSetPrivate) ValidateBasic ¶
func (msg MsgSetPrivate) ValidateBasic() error
ValidateBasic runs stateless checks on the message
type MsgSetPublic ¶
type MsgSetPublic struct { Owner sdk.AccAddress `json:"owner"` Public Public `json:"public"` }
MsgSetPrivate defines a SetPrivate message
func NewMsgSetPublic ¶
func NewMsgSetPublic(public Public, owner sdk.AccAddress) MsgSetPublic
NewMsgSetSettings is a constructor function for MsgSetPublic
func (MsgSetPublic) GetSignBytes ¶
func (msg MsgSetPublic) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgSetPublic) GetSigners ¶
func (msg MsgSetPublic) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgSetPublic) Route ¶
func (msg MsgSetPublic) Route() string
Route should return the name of the module
func (MsgSetPublic) ValidateBasic ¶
func (msg MsgSetPublic) ValidateBasic() error
ValidateBasic runs stateless checks on the message
Click to show internal directories.
Click to hide internal directories.