keeper

package
v0.6.23 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

func ResolveHNSTLD

func ResolveHNSTLD(options ...types.DNSOption) ([]*types.DNSRecord, error)

ResolveHNSTLD resolves a HNS TLD record

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,

) *Keeper

func (Keeper) GetAllSLDRecord

func (k Keeper) GetAllSLDRecord(ctx sdk.Context) (list []types.SLDRecord)

GetAllSLDRecord returns all sLDRecord

func (Keeper) GetAllTLDRecord

func (k Keeper) GetAllTLDRecord(ctx sdk.Context) (list []types.TLDRecord)

GetAllTLDRecord returns all tLDRecord

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetSLDRecord

func (k Keeper) GetSLDRecord(
	ctx sdk.Context,
	index string,

) (val types.SLDRecord, found bool)

GetSLDRecord returns a sLDRecord from its index

func (Keeper) GetTLDRecord

func (k Keeper) GetTLDRecord(
	ctx sdk.Context,
	index string,

) (val types.TLDRecord, found bool)

GetTLDRecord returns a tLDRecord from its index

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveSLDRecord

func (k Keeper) RemoveSLDRecord(
	ctx sdk.Context,
	index string,

)

RemoveSLDRecord removes a sLDRecord from the store

func (Keeper) RemoveTLDRecord

func (k Keeper) RemoveTLDRecord(
	ctx sdk.Context,
	index string,

)

RemoveTLDRecord removes a tLDRecord from the store

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetSLDRecord

func (k Keeper) SetSLDRecord(ctx sdk.Context, sLDRecord types.SLDRecord)

SetSLDRecord set a specific sLDRecord in the store from its index

func (Keeper) SetTLDRecord

func (k Keeper) SetTLDRecord(ctx sdk.Context, tLDRecord types.TLDRecord)

SetTLDRecord set a specific tLDRecord in the store from its index

Jump to

Keyboard shortcuts

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