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) Bids(c context.Context, req *types.QueryBidRequest) (*types.QueryBidResponse, error)
- func (k Keeper) BidsAll(c context.Context, req *types.QueryAllBidsRequest) (*types.QueryAllBidsResponse, 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.QueryForsaleRequest) (*types.QueryForsaleResponse, error)
- func (k Keeper) ForsaleAll(c context.Context, req *types.QueryAllForsalesRequest) (*types.QueryAllForsalesResponse, 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) GetWhois(ctx sdk.Context, index string) (val types.Whois, found bool)
- func (k Keeper) Init(c context.Context, req *types.QueryInitRequest) (*types.QueryInitResponse, error)
- func (k Keeper) InitAll(c context.Context, req *types.QueryAllInitsRequest) (*types.QueryAllInitsResponse, error)
- func (k Keeper) ListOwnedNames(goCtx context.Context, req *types.QueryListOwnedNamesRequest) (*types.QueryListOwnedNamesResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Names(c context.Context, req *types.QueryNameRequest) (*types.QueryNameResponse, error)
- func (k Keeper) NamesAll(c context.Context, req *types.QueryAllNamesRequest) (*types.QueryAllNamesResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RegisterName(ctx sdk.Context, sender string, nm string, data string, years string) 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) 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) 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
- func (k Keeper) Whois(c context.Context, req *types.QueryWhoisRequest) (*types.QueryWhoisResponse, error)
- func (k Keeper) WhoisAll(c context.Context, req *types.QueryAllWhoisRequest) (*types.QueryAllWhoisResponse, 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) Bids ¶
func (k Keeper) Bids(c context.Context, req *types.QueryBidRequest) (*types.QueryBidResponse, error)
func (Keeper) BidsAll ¶
func (k Keeper) BidsAll(c context.Context, req *types.QueryAllBidsRequest) (*types.QueryAllBidsResponse, error)
func (Keeper) CancelOneBid ¶
func (Keeper) CheckExistence ¶
quickly checks if there are any domains registered
func (Keeper) Forsale ¶
func (k Keeper) Forsale(c context.Context, req *types.QueryForsaleRequest) (*types.QueryForsaleResponse, error)
func (Keeper) ForsaleAll ¶
func (k Keeper) ForsaleAll(c context.Context, req *types.QueryAllForsalesRequest) (*types.QueryAllForsalesResponse, 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) Init ¶
func (k Keeper) Init(c context.Context, req *types.QueryInitRequest) (*types.QueryInitResponse, error)
func (Keeper) InitAll ¶
func (k Keeper) InitAll(c context.Context, req *types.QueryAllInitsRequest) (*types.QueryAllInitsResponse, error)
func (Keeper) ListOwnedNames ¶
func (k Keeper) ListOwnedNames(goCtx context.Context, req *types.QueryListOwnedNamesRequest) (*types.QueryListOwnedNamesResponse, error)
func (Keeper) Names ¶
func (k Keeper) Names(c context.Context, req *types.QueryNameRequest) (*types.QueryNameResponse, error)
func (Keeper) NamesAll ¶
func (k Keeper) NamesAll(c context.Context, req *types.QueryAllNamesRequest) (*types.QueryAllNamesResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RegisterName ¶
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) TransferName ¶
func (Keeper) UpdateName ¶
func (Keeper) Whois ¶
func (k Keeper) Whois(c context.Context, req *types.QueryWhoisRequest) (*types.QueryWhoisResponse, error)
func (Keeper) WhoisAll ¶
func (k Keeper) WhoisAll(c context.Context, req *types.QueryAllWhoisRequest) (*types.QueryAllWhoisResponse, error)
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
- grpc_query_whois.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.