Documentation ¶
Index ¶
Constants ¶
const ( // module name ModuleName = "nameservice" // StoreKey to be used when creating the KVStore StoreKey = ModuleName )
const RouterKey = ModuleName // this was defined in your key.go file
Variables ¶
var MinNamePrice = sdk.Coins{sdk.NewInt64Coin("nametoken", 1)}
Initial Starting Price for a name that was never previously owned
var ModuleCdc = codec.New()
Functions ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on the Amino codec
Types ¶
type MsgBuyName ¶
type MsgBuyName struct { Name string `json:"name"` Bid sdk.Coins `json:"bid"` Buyer sdk.AccAddress `json:"buyer"` }
MsgBuyName defines the BuyName message
func NewMsgBuyName ¶
func NewMsgBuyName(name string, bid sdk.Coins, buyer sdk.AccAddress) MsgBuyName
NewMsgBuyName is the constructor function for MsgBuyName
func (MsgBuyName) GetSignBytes ¶
func (msg MsgBuyName) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgBuyName) GetSigners ¶
func (msg MsgBuyName) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgBuyName) Route ¶
func (msg MsgBuyName) Route() string
Route should return the name of the module
func (MsgBuyName) ValidateBasic ¶
func (msg MsgBuyName) ValidateBasic() sdk.Error
ValidateBasic runs stateless checks on the message
type MsgCreateUser ¶
type MsgCreateUser struct {
PubKeyBech32 string `json:"pub_bech32"`
}
func NewMsgCreateUser ¶
func NewMsgCreateUser(pubKeyBech32 string) MsgCreateUser
func (MsgCreateUser) GetSignBytes ¶
func (msg MsgCreateUser) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCreateUser) GetSigners ¶
func (msg MsgCreateUser) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgCreateUser) Route ¶
func (msg MsgCreateUser) Route() string
Route should return the name of the module
func (MsgCreateUser) ValidateBasic ¶
func (msg MsgCreateUser) ValidateBasic() sdk.Error
ValidateBasic runs stateless checks on the message
type MsgSend ¶
type MsgSend struct { FromAddress sdk.AccAddress `json:"from_address" yaml:"from_address"` ToAddress sdk.AccAddress `json:"to_address" yaml:"to_address"` Amount sdk.Coins `json:"amount" yaml:"amount"` }
func NewMsgSend ¶
func NewMsgSend(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) MsgSend
NewMsgSend - construct arbitrary multi-in, multi-out send msg.
func (MsgSend) GetSigners ¶
func (msg MsgSend) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (MsgSend) ValidateBasic ¶
ValidateBasic Implements Msg.
type MsgSetName ¶
type MsgSetName struct { Name string `json:"name"` Value string `json:"value"` Owner sdk.AccAddress `json:"owner"` }
MsgSetName defines a SetName message
func NewMsgSetName ¶
func NewMsgSetName(name string, value string, owner sdk.AccAddress) MsgSetName
NewMsgSetName is a constructor function for MsgSetName
func (MsgSetName) GetSignBytes ¶
func (msg MsgSetName) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgSetName) GetSigners ¶
func (msg MsgSetName) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgSetName) Route ¶
func (msg MsgSetName) Route() string
Route should return the name of the module
func (MsgSetName) ValidateBasic ¶
func (msg MsgSetName) ValidateBasic() sdk.Error
ValidateBasic runs stateless checks on the message
type QueryResResolve ¶
type QueryResResolve struct {
Value string `json:"value"`
}
Query Result Payload for a resolve query