Documentation
¶
Index ¶
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) Codec() codec.BinaryMarshaler
- func (k Keeper) CreateDomainAssociationResultPacketData(ctx sdk.Context, status uint32, ...) (srcPacket *channeltypes.Packet, dstPacket *channeltypes.Packet, err error)
- func (k Keeper) ForwardLookupDomain(ctx sdk.Context, name string) (*servertypes.DomainChannelInfo, error)
- func (k Keeper) GetLocalDNSID(ctx sdk.Context, name string) (*types.LocalDNSID, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) QueryDomain(ctx sdk.Context, req types.QueryDomainRequest) (*types.QueryDomainResponse, error)
- func (k Keeper) QueryDomains(ctx sdk.Context) (*types.QueryDomainsResponse, error)
- func (k Keeper) ReceiveDomainAssociationCreatePacketData(ctx sdk.Context, packet channeltypes.Packet, ...) (ack servertypes.DomainAssociationCreatePacketAcknowledgement, completed bool)
- func (k Keeper) ReceivePacketRegisterDomain(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) ReverseLookupDomain(ctx sdk.Context, port, channel string) (string, error)
- func (k Keeper) SendDomainAssociationResultPacketData(ctx sdk.Context, status uint32, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
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 ¶
GetLocalDNSID returns a local DNS-ID corresponding to given name
func (Keeper) QueryDomain ¶
func (k Keeper) QueryDomain(ctx sdk.Context, req types.QueryDomainRequest) (*types.QueryDomainResponse, error)
QueryDomain returns a domain info corresponding to a given name
func (Keeper) QueryDomains ¶
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 ¶
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