Documentation ¶
Index ¶
- Constants
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) AddressCredits(ctx sdk.Context) (res sdk.Int)
- func (k Keeper) AddressRegistrationFee(ctx sdk.Context) (res sdk.Coins)
- func (k Keeper) AfterFirstNameCreated(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) AfterLastNameRemoved(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) DeleteExpiredNameInfo(ctx sdk.Context, nameInfo types.NameInfo) error
- func (k Keeper) DeleteNameInfo(ctx sdk.Context, name string)
- func (k Keeper) DeleteNameInfoStatusMap(ctx sdk.Context, owner sdk.AccAddress, name string)
- func (keeper Keeper) ExpiredNameInfoQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator
- func (k Keeper) GetAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string) (string, error)
- func (k Keeper) GetAddressCreditsIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetAddressIterator(ctx sdk.Context, address sdk.AccAddress) sdk.Iterator
- func (k Keeper) GetAllAddressesIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetCredits(ctx sdk.Context, address sdk.AccAddress) sdk.Int
- func (k Keeper) GetNameInfo(ctx sdk.Context, name string) (types.NameInfo, bool)
- func (k Keeper) GetNamesByAddressCount(ctx sdk.Context, address sdk.AccAddress) int
- func (k Keeper) GetNamesByAddressIterator(ctx sdk.Context, address sdk.AccAddress) sdk.Iterator
- func (k Keeper) GetNamesIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPrice(ctx sdk.Context, name string) (sdk.Coins, error)
- func (k Keeper) GetRegisteredBlockchainIdIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetRegisteredBlockchainIds(ctx sdk.Context) []string
- func (k Keeper) HandleBuyName(ctx sdk.Context, name string, buyer sdk.AccAddress) error
- func (k Keeper) HandleDeleteName(ctx sdk.Context, name string, owner sdk.AccAddress) error
- func (k Keeper) HandleRegisterAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string, ...) error
- func (k Keeper) HandleRegisterName(ctx sdk.Context, name string, owner sdk.AccAddress) error
- func (k Keeper) HandleRemoveAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string) error
- func (k Keeper) HandleRemoveAllAddresses(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) HandleRenewName(ctx sdk.Context, name string, owner sdk.AccAddress) error
- func (k Keeper) HandleSetPrice(ctx sdk.Context, name string, owner sdk.AccAddress, price sdk.Coins) error
- func (k Keeper) HandleTransferName(ctx sdk.Context, name string, owner sdk.AccAddress, newOwner sdk.AccAddress) error
- func (keeper Keeper) InsertExpiredNameInfoQueue(ctx sdk.Context, name string, endTime time.Time)
- func (k Keeper) IsBlockchainIdRegistered(ctx sdk.Context, blockchainId string) bool
- func (k Keeper) IsNameRegistered(ctx sdk.Context, name string) bool
- func (k Keeper) IterateAddressCredits(ctx sdk.Context, cb func(address sdk.AccAddress, credits sdk.Int) (stop bool))
- func (k Keeper) IterateAllBlockchainAddressInfos(ctx sdk.Context, ...)
- func (k Keeper) IterateBlockchainAddressInfos(ctx sdk.Context, address sdk.AccAddress, ...)
- func (k Keeper) IterateExpiredNameInfoQueue(ctx sdk.Context, endTime time.Time, cb func(name string) (stop bool))
- func (k Keeper) IterateRegisteredBlockchainIds(ctx sdk.Context, cb func(blockchainId string) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NameInfoDuration(ctx sdk.Context) (res time.Duration)
- func (k Keeper) NameInfoMaxDuration(ctx sdk.Context) (res time.Duration)
- func (k Keeper) NameInfoRegistrationFee(ctx sdk.Context) (res sdk.Coins)
- func (k Keeper) NameInfoRenewalFee(ctx sdk.Context) (res sdk.Coins)
- func (k Keeper) OwnsAnyName(ctx sdk.Context, owner sdk.AccAddress) bool
- func (k Keeper) RegisterName(ctx sdk.Context, name string, owner sdk.AccAddress)
- func (k Keeper) RemoveAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string)
- func (k Keeper) RemoveAllAddresses(ctx sdk.Context, address sdk.AccAddress)
- func (keeper Keeper) RemoveFromExpiredNameInfoQueue(ctx sdk.Context, name string, endTime time.Time)
- func (k Keeper) RemoveRegisteredBlockchainId(ctx sdk.Context, blockchainId string)
- func (k Keeper) SetAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string, ...)
- func (k Keeper) SetCredits(ctx sdk.Context, address sdk.AccAddress, credits sdk.Int)
- func (k *Keeper) SetHooks(sh types.NameHooks) *Keeper
- func (k Keeper) SetNameInfo(ctx sdk.Context, name string, nameInfo types.NameInfo)
- func (k Keeper) SetNameInfoStatusMap(ctx sdk.Context, owner sdk.AccAddress, name string)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetRegisteredBlockchainId(ctx sdk.Context, blockchainId string)
Constants ¶
View Source
const ( QueryName = "resolve" QueryAddressNames = "names" QueryNameAddress = "address" QueryAddressNameInfos = "name-infos" QueryRegisteredBlockchainIds = "registered-blockchain-ids" QueryAddressCredits = "address-credits" QueryBlockchainAddresses = "blockchain-addresses" QueryParameters = "parameters" QueryModule = "module" )
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
Types ¶
type Keeper ¶
type Keeper struct { CoinKeeper bank.Keeper AccountKeeper auth.AccountKeeper SupplyKeeper supply.Keeper // contains filtered or unexported fields }
func (Keeper) AddressCredits ¶
AddressCredits
func (Keeper) AddressRegistrationFee ¶
AddressRegistrationFee
func (Keeper) AfterFirstNameCreated ¶
func (Keeper) AfterLastNameRemoved ¶
func (Keeper) DeleteExpiredNameInfo ¶
func (Keeper) DeleteNameInfoStatusMap ¶
func (Keeper) ExpiredNameInfoQueueIterator ¶
func (Keeper) GetAddress ¶
func (Keeper) GetAddressCreditsIterator ¶
func (Keeper) GetAddressIterator ¶
Returns an iterator through users blockchain addresses
func (Keeper) GetAllAddressesIterator ¶
func (Keeper) GetCredits ¶
func (Keeper) GetNameInfo ¶
func (Keeper) GetNamesByAddressCount ¶
func (Keeper) GetNamesByAddressIterator ¶
func (Keeper) GetRegisteredBlockchainIdIterator ¶
func (Keeper) GetRegisteredBlockchainIds ¶
func (Keeper) HandleBuyName ¶
func (Keeper) HandleDeleteName ¶
func (Keeper) HandleRegisterAddress ¶
func (Keeper) HandleRegisterName ¶
func (Keeper) HandleRemoveAddress ¶
func (Keeper) HandleRemoveAllAddresses ¶
func (Keeper) HandleRenewName ¶
func (Keeper) HandleSetPrice ¶
func (Keeper) HandleTransferName ¶
func (k Keeper) HandleTransferName(ctx sdk.Context, name string, owner sdk.AccAddress, newOwner sdk.AccAddress) error
func (Keeper) InsertExpiredNameInfoQueue ¶
func (Keeper) IsBlockchainIdRegistered ¶
func (Keeper) IsNameRegistered ¶
func (Keeper) IterateAddressCredits ¶
func (Keeper) IterateAllBlockchainAddressInfos ¶
func (Keeper) IterateBlockchainAddressInfos ¶
func (k Keeper) IterateBlockchainAddressInfos(ctx sdk.Context, address sdk.AccAddress, cb func(blockchainAddress types.BlockchainAddressInfo) (stop bool))
func (Keeper) IterateExpiredNameInfoQueue ¶
func (Keeper) IterateRegisteredBlockchainIds ¶
func (Keeper) NameInfoDuration ¶
NameInfoDuration
func (Keeper) NameInfoMaxDuration ¶
NameInfoDuration
func (Keeper) NameInfoRegistrationFee ¶
NameInfoRegistrationFee
func (Keeper) NameInfoRenewalFee ¶
NameInfoRenewalFee
func (Keeper) OwnsAnyName ¶
func (Keeper) RegisterName ¶
func (Keeper) RemoveAddress ¶
func (Keeper) RemoveAllAddresses ¶
func (k Keeper) RemoveAllAddresses(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) RemoveFromExpiredNameInfoQueue ¶
func (Keeper) RemoveRegisteredBlockchainId ¶
func (Keeper) SetAddress ¶
func (Keeper) SetCredits ¶
func (Keeper) SetNameInfo ¶
func (Keeper) SetNameInfoStatusMap ¶
Click to show internal directories.
Click to hide internal directories.