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) GetTransfer(ctx sdk.Context, name string) types.Transfer
- 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) SetTransfer(ctx sdk.Context, transfer types.Transfer)
- func (k Keeper) SetWhois(ctx sdk.Context, name string, whois types.Whois)
Constants ¶
const ( QueryResolve = "resolve" QueryWhois = "whois" QueryNames = "names" QueryTransfers = "transfers" QueryTransfer = "transfer" )
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 NewKeeper ¶
func NewKeeper(coinKeeper bank.Keeper, pKey sdk.StoreKey, storeKey sdk.StoreKey, cdc *codec.Codec) Keeper
NewKeeper creates new instances of the nameservice Keeper
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) GetTransfer ¶
~~~~~~~~~~~~~~~ added for PoP ~~~~~~~~~~~~~~~~~~~~~~ Gets the entire Whois metadata struct for a name
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
func (Keeper) SetTransfer ¶
Sets the entire Whois metadata struct for a name