Documentation ¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) DeleteWhois(ctx sdk.Context, name string)
- func (k Keeper) GetNamesIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetOwner(ctx sdk.Context, name string) sdk.AccAddress
- func (k Keeper) GetPrice(ctx sdk.Context, name string) sdk.Coins
- func (k Keeper) GetWhois(ctx sdk.Context, name string) types.Whois
- func (k Keeper) HasOwner(ctx sdk.Context, name string) bool
- func (k Keeper) IsNamePresent(ctx sdk.Context, name string) bool
- func (k Keeper) ResolveName(ctx sdk.Context, name string) string
- func (k Keeper) SetName(ctx sdk.Context, name string, value string)
- func (k Keeper) SetOwner(ctx sdk.Context, name string, owner sdk.AccAddress)
- func (k Keeper) SetPrice(ctx sdk.Context, name string, price sdk.Coins)
- func (k Keeper) SetWhois(ctx sdk.Context, name string, whois types.Whois)
Constants ¶
View Source
const ( QueryResolve = "resolve" QueryWhois = "whois" QueryNames = "names" )
query endpoints supported by the nameservice Querier
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Keeper ¶
Keeper maintains the link to storage and exposes getter/setter methods for the various parts of the state machine
func (Keeper) DeleteWhois ¶
Deletes the entire Whois metadata struct for a name
func (Keeper) GetNamesIterator ¶
Get an iterator over all names in which the keys are the names and the values are the whois
func (Keeper) IsNamePresent ¶
Check if the name is present in the store or not
func (Keeper) ResolveName ¶
ResolveName - returns the string that the name resolves to
Click to show internal directories.
Click to hide internal directories.