Documentation ¶
Index ¶
- func GetCost(tld string) int64
- func GetCostOfName(name string, tld string) (int64, error)
- func GetNameAndTLD(full string) (string, string, error)
- func GetSubdomain(name string) (string, string, bool)
- func GetTLD(name string) (string, error)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RemoveTLD(name string, tld string) (string, error)
- type Keeper
- func (k Keeper) AcceptOneBid(ctx sdk.Context, sender string, name string, bidder string) error
- func (k Keeper) AddBid(ctx sdk.Context, sender string, name string, bid string) error
- func (k Keeper) AllBids(c context.Context, req *types.QueryAllBids) (*types.QueryAllBidsResponse, error)
- func (k Keeper) AllForSale(c context.Context, req *types.QueryAllForSale) (*types.QueryAllForSaleResponse, error)
- func (k Keeper) AllInits(c context.Context, req *types.QueryAllInits) (*types.QueryAllInitsResponse, error)
- func (k Keeper) AllNames(c context.Context, req *types.QueryAllNames) (*types.QueryAllNamesResponse, error)
- func (k Keeper) Bid(c context.Context, req *types.QueryBid) (*types.QueryBidResponse, error)
- func (k Keeper) BuyName(ctx sdk.Context, sender string, nm string) error
- func (k Keeper) CancelOneBid(ctx sdk.Context, sender string, name string) error
- func (k Keeper) CheckExistence(ctx sdk.Context) bool
- func (k Keeper) ForSale(c context.Context, req *types.QueryForSale) (*types.QueryForSaleResponse, error)
- func (k Keeper) GetAllBids(ctx sdk.Context) (list []types.Bids)
- func (k Keeper) GetAllForsale(ctx sdk.Context) (list []types.Forsale)
- func (k Keeper) GetAllInit(ctx sdk.Context) (list []types.Init)
- func (k Keeper) GetAllNames(ctx sdk.Context) (list []types.Names)
- func (k Keeper) GetAllWhois(ctx sdk.Context) (list []types.Whois)
- func (k Keeper) GetBids(ctx sdk.Context, index string) (val types.Bids, found bool)
- func (k Keeper) GetForsale(ctx sdk.Context, name string) (val types.Forsale, found bool)
- func (k Keeper) GetInit(ctx sdk.Context, address string) (val types.Init, found bool)
- func (k Keeper) GetNames(ctx sdk.Context, name string, tld string) (val types.Names, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) GetPrimaryName(ctx sdk.Context, owner string) (val types.Names, found bool)
- func (k Keeper) GetWhois(ctx sdk.Context, index string) (val types.Whois, found bool)
- func (k Keeper) Init(c context.Context, req *types.QueryInit) (*types.QueryInitResponse, error)
- func (k Keeper) ListOwnedNames(goCtx context.Context, req *types.QueryListOwnedNames) (*types.QueryListOwnedNamesResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Name(c context.Context, req *types.QueryName) (*types.QueryNameResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParams) (*types.QueryParamsResponse, error)
- func (k Keeper) PrimaryName(c context.Context, req *types.QueryPrimaryName) (*types.QueryPrimaryNameResponse, error)
- func (k Keeper) RegisterRNSName(ctx sdk.Context, sender string, nm string, data string, years int64, ...) error
- func (k Keeper) RemoveBids(ctx sdk.Context, index string)
- func (k Keeper) RemoveForsale(ctx sdk.Context, name string)
- func (k Keeper) RemoveInit(ctx sdk.Context, address string)
- func (k Keeper) RemoveNames(ctx sdk.Context, name string, tld string)
- func (k Keeper) RemoveWhois(ctx sdk.Context, index string)
- func (k Keeper) Resolve(ctx sdk.Context, name string) (sdk.AccAddress, error)
- func (k Keeper) SetBids(ctx sdk.Context, bids types.Bids)
- func (k Keeper) SetForsale(ctx sdk.Context, forsale types.Forsale)
- func (k Keeper) SetInit(ctx sdk.Context, init types.Init)
- func (k Keeper) SetNames(ctx sdk.Context, names types.Names)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPrimaryName(ctx sdk.Context, owner, name, tld string)
- func (k Keeper) SetWhois(ctx sdk.Context, whois types.Whois)
- func (k Keeper) TransferName(ctx sdk.Context, creator string, receiever string, name string) error
- func (k Keeper) UpdateName(ctx sdk.Context, sender string, nm string, data string) error
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey sdk.StoreKey, ps paramtypes.Subspace, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) AcceptOneBid ¶
func (Keeper) AllBids ¶
func (k Keeper) AllBids(c context.Context, req *types.QueryAllBids) (*types.QueryAllBidsResponse, error)
func (Keeper) AllForSale ¶
func (k Keeper) AllForSale(c context.Context, req *types.QueryAllForSale) (*types.QueryAllForSaleResponse, error)
func (Keeper) AllInits ¶
func (k Keeper) AllInits(c context.Context, req *types.QueryAllInits) (*types.QueryAllInitsResponse, error)
func (Keeper) AllNames ¶
func (k Keeper) AllNames(c context.Context, req *types.QueryAllNames) (*types.QueryAllNamesResponse, error)
func (Keeper) CancelOneBid ¶
func (Keeper) CheckExistence ¶
CheckExistence quickly checks if there are any domains registered
func (Keeper) ForSale ¶
func (k Keeper) ForSale(c context.Context, req *types.QueryForSale) (*types.QueryForSaleResponse, error)
func (Keeper) GetAllBids ¶
GetAllBids returns all bids
func (Keeper) GetAllForsale ¶
GetAllForsale returns all forsale
func (Keeper) GetAllInit ¶
GetAllInit returns all init
func (Keeper) GetAllNames ¶
GetAllNames returns all names
func (Keeper) GetAllWhois ¶
GetAllWhois returns all whois
func (Keeper) GetForsale ¶
GetForsale returns a forsale from its index
func (Keeper) GetPrimaryName ¶ added in v4.1.0
func (Keeper) ListOwnedNames ¶
func (k Keeper) ListOwnedNames(goCtx context.Context, req *types.QueryListOwnedNames) (*types.QueryListOwnedNamesResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParams) (*types.QueryParamsResponse, error)
func (Keeper) PrimaryName ¶ added in v4.1.0
func (k Keeper) PrimaryName(c context.Context, req *types.QueryPrimaryName) (*types.QueryPrimaryNameResponse, error)
func (Keeper) RegisterRNSName ¶ added in v4.1.0
func (Keeper) RemoveBids ¶
RemoveBids removes a bids from the store
func (Keeper) RemoveForsale ¶
RemoveForsale removes a forsale from the store
func (Keeper) RemoveInit ¶
RemoveInit removes a init from the store
func (Keeper) RemoveNames ¶
RemoveNames removes a names from the store
func (Keeper) RemoveWhois ¶
RemoveWhois removes a whois from the store
func (Keeper) SetForsale ¶
SetForsale set a specific forsale in the store from its index
func (Keeper) SetPrimaryName ¶ added in v4.1.0
func (Keeper) TransferName ¶
Source Files ¶
- bids.go
- forsale.go
- grpc_query.go
- grpc_query_bids.go
- grpc_query_forsale.go
- grpc_query_init.go
- grpc_query_list_owned_names.go
- grpc_query_names.go
- grpc_query_params.go
- init.go
- keeper.go
- migrations.go
- msg_server.go
- msg_server_accept_bid.go
- msg_server_add_record.go
- msg_server_bid.go
- msg_server_buy.go
- msg_server_cancel_bid.go
- msg_server_del_record.go
- msg_server_delist.go
- msg_server_init.go
- msg_server_list.go
- msg_server_register.go
- msg_server_transfer.go
- msg_server_update.go
- names.go
- params.go
- utils.go
- whois.go
Click to show internal directories.
Click to hide internal directories.