keeper

package
v0.0.0-...-78eb55b Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

NewQuerier is the module level router for state queries

Types

type Keeper

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

Keeper defines ibc-dns keeper

func NewKeeper

func NewKeeper(
	cdc codec.BinaryMarshaler,
	storeKey sdk.StoreKey,
	channelKeeper types.ChannelKeeper,
	scopedKeeper capabilitykeeper.ScopedKeeper,
) Keeper

NewKeeper creates a new ibc-dns Keeper

func (Keeper) Codec

func (k Keeper) Codec() codec.BinaryMarshaler

func (Keeper) CreateDomainAssociationResultPacketData

func (k Keeper) CreateDomainAssociationResultPacketData(ctx sdk.Context, status uint32, srcClientDomain, dstClientDomain types.ClientDomain) (srcPacket *channeltypes.Packet, dstPacket *channeltypes.Packet, err error)

CreateDomainAssociationResultPacketData creates a packet 'DomainAssociationResultPacketData'

func (Keeper) ForwardLookupDomain

func (k Keeper) ForwardLookupDomain(ctx sdk.Context, name string) (*servertypes.DomainChannelInfo, error)

ForwardLookupDomain returns a local channel info corresponding to given name

func (Keeper) GetLocalDNSID

func (k Keeper) GetLocalDNSID(ctx sdk.Context, name string) (*types.LocalDNSID, error)

GetLocalDNSID returns a local DNS-ID corresponding to given name

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) QueryDomain

QueryDomain returns a domain info corresponding to a given name

func (Keeper) QueryDomains

func (k Keeper) QueryDomains(ctx sdk.Context) (*types.QueryDomainsResponse, error)

QueryDomains returns all domain info

func (Keeper) ReceiveDomainAssociationCreatePacketData

func (k Keeper) ReceiveDomainAssociationCreatePacketData(ctx sdk.Context, packet channeltypes.Packet, data *servertypes.DomainAssociationCreatePacketData) (ack servertypes.DomainAssociationCreatePacketAcknowledgement, completed bool)

ReceiveDomainAssociationCreatePacketData receives a DomainAssociationCreatePacketData to associate domain with client

func (Keeper) ReceivePacketRegisterDomain

func (k Keeper) ReceivePacketRegisterDomain(ctx sdk.Context, packet channeltypes.Packet, data *servertypes.RegisterDomainPacketData) error

ReceivePacketRegisterDomain receives a PacketRegisterDomain to register a new domain record

func (Keeper) ReverseLookupDomain

func (k Keeper) ReverseLookupDomain(ctx sdk.Context, port, channel string) (string, error)

ReverseLookupDomain returns a domain name corresponding to given channel info

func (Keeper) SendDomainAssociationResultPacketData

func (k Keeper) SendDomainAssociationResultPacketData(ctx sdk.Context, status uint32, srcClientDomain, dstClientDomain types.ClientDomain) error

SendDomainAssociationResultPacketData sends a result of the domain association

Jump to

Keyboard shortcuts

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