Documentation ¶
Index ¶
Constants ¶
const ( DefaultCodespace sdk.CodespaceType = ModuleName CodeNameDoesNotExist sdk.CodeType = 101 )
DefaultCodespace is the Module Hayt
const ( // ModuleName is the name of the module ModuleName = "haytservice" // StoreKey to be used when creating the KVStore StoreKey = ModuleName )
const RouterKey = ModuleName // this was defined in your key.go file
RouterKey is the module name router key
Variables ¶
var MinHaytPrice = sdk.Coins{sdk.NewInt64Coin("verotoken", 1)}
MinHaytPrice is Initial Starting Price for a Hayt that was never previously owned
var ModuleCdc = codec.New()
ModuleCdc is the codec for the module
Functions ¶
func ErrNameDoesNotExist ¶
func ErrNameDoesNotExist(codespace sdk.CodespaceType) sdk.Error
ErrNameDoesNotExist is the error for name not existing
func RegisterCodec ¶
RegisterCodec registers concrete types on the Amino codec
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type GenesisState ¶
type GenesisState struct {
WhoisRecords []Whois `json:"whois_records"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
func NewGenesisState ¶
func NewGenesisState(whoIsRecords []Whois) GenesisState
type MsgBuyHayt ¶
type MsgBuyHayt struct { Hayt string `json:"hayt"` Bid sdk.Coins `json:"bid"` Buyer sdk.AccAddress `json:"buyer"` HaytOwnerName string `json:"haytownername"` }
MsgBuyHayt defines the BuyHayt message
func NewMsgBuyHayt ¶
func NewMsgBuyHayt(hayt string, bid sdk.Coins, buyer sdk.AccAddress, haytownername string) MsgBuyHayt
NewMsgBuyHayt is the constructor function for MsgBuyHayt
func (MsgBuyHayt) GetSignBytes ¶
func (msg MsgBuyHayt) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgBuyHayt) GetSigners ¶
func (msg MsgBuyHayt) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgBuyHayt) Route ¶
func (msg MsgBuyHayt) Route() string
Route should return the name of the module
func (MsgBuyHayt) ValidateBasic ¶
func (msg MsgBuyHayt) ValidateBasic() sdk.Error
ValidateBasic runs stateless checks on the message
type MsgDeleteHayt ¶
type MsgDeleteHayt struct { Hayt string `json:"hayt"` Owner sdk.AccAddress `json:"owner"` HaytOwnerName string `json:"haytownername"` }
MsgDeleteHayt defines a DeleteHayt message
func NewMsgDeleteHayt ¶
func NewMsgDeleteHayt(hayt string, owner sdk.AccAddress, haytownername string) MsgDeleteHayt
NewMsgDeleteHayt is a constructor function for MsgDeleteHayt
func (MsgDeleteHayt) GetSignBytes ¶
func (msg MsgDeleteHayt) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgDeleteHayt) GetSigners ¶
func (msg MsgDeleteHayt) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgDeleteHayt) Route ¶
func (msg MsgDeleteHayt) Route() string
Route should return the name of the module
func (MsgDeleteHayt) ValidateBasic ¶
func (msg MsgDeleteHayt) ValidateBasic() sdk.Error
ValidateBasic runs stateless checks on the message
type MsgSetHayt ¶
type MsgSetHayt struct { Hayt string `json:"hayt"` Value string `json:"value"` Owner sdk.AccAddress `json:"owner"` HaytOwnerName string `json:"haytownername"` }
MsgSetHayt defines a SetHayt message
func NewMsgSetHayt ¶
func NewMsgSetHayt(hayt string, value string, owner sdk.AccAddress, haytownername string) MsgSetHayt
NewMsgSetHayt is a constructor function for MsgSetHayt
func (MsgSetHayt) GetSignBytes ¶
func (msg MsgSetHayt) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgSetHayt) GetSigners ¶
func (msg MsgSetHayt) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (MsgSetHayt) Route ¶
func (msg MsgSetHayt) Route() string
// Route should return the name of the module func (msg MsgSetName) Route() string { return RouterKey }
Route should return the name of the module
func (MsgSetHayt) ValidateBasic ¶
func (msg MsgSetHayt) ValidateBasic() sdk.Error
ValidateBasic runs stateless checks on the message
type QueryResHayts ¶
type QueryResHayts []string
QueryResHayts Queries Result Payload for a names query
type QueryResResolve ¶
type QueryResResolve struct {
Value string `json:"value"`
}
QueryResResolve Queries Result Payload for a resolve query