keeper

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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

func NewQuerier(k Keeper) sdk.Querier

Types

type Keeper

type Keeper struct {
	CoinKeeper    bank.Keeper
	AccountKeeper auth.AccountKeeper
	SupplyKeeper  supply.Keeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(coinKeeper bank.Keeper, accountKeeper auth.AccountKeeper, supplyKeeper supply.Keeper, cdc *codec.Codec, key sdk.StoreKey, paramspace types.ParamSubspace, feeCollectorName string) Keeper

func (Keeper) AddressCredits

func (k Keeper) AddressCredits(ctx sdk.Context) (res sdk.Int)

AddressCredits

func (Keeper) AddressRegistrationFee

func (k Keeper) AddressRegistrationFee(ctx sdk.Context) (res sdk.Coins)

AddressRegistrationFee

func (Keeper) AfterFirstNameCreated

func (k Keeper) AfterFirstNameCreated(ctx sdk.Context, address sdk.AccAddress) error

func (Keeper) AfterLastNameRemoved

func (k Keeper) AfterLastNameRemoved(ctx sdk.Context, address sdk.AccAddress) error

func (Keeper) DeleteExpiredNameInfo

func (k Keeper) DeleteExpiredNameInfo(ctx sdk.Context, nameInfo types.NameInfo) error

func (Keeper) DeleteNameInfo

func (k Keeper) DeleteNameInfo(ctx sdk.Context, name string)

func (Keeper) DeleteNameInfoStatusMap

func (k Keeper) DeleteNameInfoStatusMap(ctx sdk.Context, owner sdk.AccAddress, name string)

func (Keeper) ExpiredNameInfoQueueIterator

func (keeper Keeper) ExpiredNameInfoQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator

func (Keeper) GetAddress

func (k Keeper) GetAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string) (string, error)

func (Keeper) GetAddressCreditsIterator

func (k Keeper) GetAddressCreditsIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetAddressIterator

func (k Keeper) GetAddressIterator(ctx sdk.Context, address sdk.AccAddress) sdk.Iterator

Returns an iterator through users blockchain addresses

func (Keeper) GetAllAddressesIterator

func (k Keeper) GetAllAddressesIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetCredits

func (k Keeper) GetCredits(ctx sdk.Context, address sdk.AccAddress) sdk.Int

func (Keeper) GetNameInfo

func (k Keeper) GetNameInfo(ctx sdk.Context, name string) (types.NameInfo, bool)

func (Keeper) GetNamesByAddressCount

func (k Keeper) GetNamesByAddressCount(ctx sdk.Context, address sdk.AccAddress) int

func (Keeper) GetNamesByAddressIterator

func (k Keeper) GetNamesByAddressIterator(ctx sdk.Context, address sdk.AccAddress) sdk.Iterator

func (Keeper) GetNamesIterator

func (k Keeper) GetNamesIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams returns the total set of hra parameters.

func (Keeper) GetPrice

func (k Keeper) GetPrice(ctx sdk.Context, name string) (sdk.Coins, error)

func (Keeper) GetRegisteredBlockchainIdIterator

func (k Keeper) GetRegisteredBlockchainIdIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetRegisteredBlockchainIds

func (k Keeper) GetRegisteredBlockchainIds(ctx sdk.Context) []string

func (Keeper) HandleBuyName

func (k Keeper) HandleBuyName(ctx sdk.Context, name string, buyer sdk.AccAddress) error

func (Keeper) HandleDeleteName

func (k Keeper) HandleDeleteName(ctx sdk.Context, name string, owner sdk.AccAddress) error

func (Keeper) HandleRegisterAddress

func (k Keeper) HandleRegisterAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string, blockchainAddress string) error

func (Keeper) HandleRegisterName

func (k Keeper) HandleRegisterName(ctx sdk.Context, name string, owner sdk.AccAddress) error

func (Keeper) HandleRemoveAddress

func (k Keeper) HandleRemoveAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string) error

func (Keeper) HandleRemoveAllAddresses

func (k Keeper) HandleRemoveAllAddresses(ctx sdk.Context, address sdk.AccAddress) error

func (Keeper) HandleRenewName

func (k Keeper) HandleRenewName(ctx sdk.Context, name string, owner sdk.AccAddress) error

func (Keeper) HandleSetPrice

func (k Keeper) HandleSetPrice(ctx sdk.Context, name string, owner sdk.AccAddress, price sdk.Coins) error

func (Keeper) HandleTransferName

func (k Keeper) HandleTransferName(ctx sdk.Context, name string, owner sdk.AccAddress, newOwner sdk.AccAddress) error

func (Keeper) InsertExpiredNameInfoQueue

func (keeper Keeper) InsertExpiredNameInfoQueue(ctx sdk.Context, name string, endTime time.Time)

func (Keeper) IsBlockchainIdRegistered

func (k Keeper) IsBlockchainIdRegistered(ctx sdk.Context, blockchainId string) bool

func (Keeper) IsNameRegistered

func (k Keeper) IsNameRegistered(ctx sdk.Context, name string) bool

func (Keeper) IterateAddressCredits

func (k Keeper) IterateAddressCredits(ctx sdk.Context, cb func(address sdk.AccAddress, credits sdk.Int) (stop bool))

func (Keeper) IterateAllBlockchainAddressInfos

func (k Keeper) IterateAllBlockchainAddressInfos(ctx sdk.Context, cb func(blockchainAddressRecord types.BlockchainAddressRecordInfo) (stop bool))

func (Keeper) IterateBlockchainAddressInfos

func (k Keeper) IterateBlockchainAddressInfos(ctx sdk.Context, address sdk.AccAddress, cb func(blockchainAddress types.BlockchainAddressInfo) (stop bool))

func (Keeper) IterateExpiredNameInfoQueue

func (k Keeper) IterateExpiredNameInfoQueue(ctx sdk.Context, endTime time.Time, cb func(name string) (stop bool))

func (Keeper) IterateRegisteredBlockchainIds

func (k Keeper) IterateRegisteredBlockchainIds(ctx sdk.Context, cb func(blockchainId string) (stop bool))

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) NameInfoDuration

func (k Keeper) NameInfoDuration(ctx sdk.Context) (res time.Duration)

NameInfoDuration

func (Keeper) NameInfoMaxDuration

func (k Keeper) NameInfoMaxDuration(ctx sdk.Context) (res time.Duration)

NameInfoDuration

func (Keeper) NameInfoRegistrationFee

func (k Keeper) NameInfoRegistrationFee(ctx sdk.Context) (res sdk.Coins)

NameInfoRegistrationFee

func (Keeper) NameInfoRenewalFee

func (k Keeper) NameInfoRenewalFee(ctx sdk.Context) (res sdk.Coins)

NameInfoRenewalFee

func (Keeper) OwnsAnyName

func (k Keeper) OwnsAnyName(ctx sdk.Context, owner sdk.AccAddress) bool

func (Keeper) RegisterName

func (k Keeper) RegisterName(ctx sdk.Context, name string, owner sdk.AccAddress)

func (Keeper) RemoveAddress

func (k Keeper) RemoveAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string)

func (Keeper) RemoveAllAddresses

func (k Keeper) RemoveAllAddresses(ctx sdk.Context, address sdk.AccAddress)

func (Keeper) RemoveFromExpiredNameInfoQueue

func (keeper Keeper) RemoveFromExpiredNameInfoQueue(ctx sdk.Context, name string, endTime time.Time)

func (Keeper) RemoveRegisteredBlockchainId

func (k Keeper) RemoveRegisteredBlockchainId(ctx sdk.Context, blockchainId string)

func (Keeper) SetAddress

func (k Keeper) SetAddress(ctx sdk.Context, address sdk.AccAddress, blockchainId string, index string, blockchainAddress string)

func (Keeper) SetCredits

func (k Keeper) SetCredits(ctx sdk.Context, address sdk.AccAddress, credits sdk.Int)

func (*Keeper) SetHooks

func (k *Keeper) SetHooks(sh types.NameHooks) *Keeper

func (Keeper) SetNameInfo

func (k Keeper) SetNameInfo(ctx sdk.Context, name string, nameInfo types.NameInfo)

func (Keeper) SetNameInfoStatusMap

func (k Keeper) SetNameInfoStatusMap(ctx sdk.Context, owner sdk.AccAddress, name string)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the hra parameters to the param space.

func (Keeper) SetRegisteredBlockchainId

func (k Keeper) SetRegisteredBlockchainId(ctx sdk.Context, blockchainId string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL