Documentation ¶
Index ¶
- Constants
- Variables
- func KeyClientDomain(dnsID types.LocalDNSID, domainName string) []byte
- func KeyDomainChannel(dnsID types.LocalDNSID, domainName, port string) []byte
- func KeyLocalDNSID(dnsID types.LocalDNSID, domain string) []byte
- func KeyPrefixBytes(prefix uint8) []byte
- func KeySelfDomain(dnsID types.LocalDNSID) []byte
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type MsgClient
- type MsgDomainAssociationCreate
- func (*MsgDomainAssociationCreate) Descriptor() ([]byte, []int)
- func (msg MsgDomainAssociationCreate) GetSignBytes() []byte
- func (msg MsgDomainAssociationCreate) GetSigners() []sdk.AccAddress
- func (m *MsgDomainAssociationCreate) Marshal() (dAtA []byte, err error)
- func (m *MsgDomainAssociationCreate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDomainAssociationCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDomainAssociationCreate) ProtoMessage()
- func (m *MsgDomainAssociationCreate) Reset()
- func (MsgDomainAssociationCreate) Route() string
- func (m *MsgDomainAssociationCreate) Size() (n int)
- func (m *MsgDomainAssociationCreate) String() string
- func (MsgDomainAssociationCreate) Type() string
- func (m *MsgDomainAssociationCreate) Unmarshal(dAtA []byte) error
- func (msg MsgDomainAssociationCreate) ValidateBasic() error
- func (m *MsgDomainAssociationCreate) XXX_DiscardUnknown()
- func (m *MsgDomainAssociationCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDomainAssociationCreate) XXX_Merge(src proto.Message)
- func (m *MsgDomainAssociationCreate) XXX_Size() int
- func (m *MsgDomainAssociationCreate) XXX_Unmarshal(b []byte) error
- type MsgDomainAssociationCreateResponse
- func (*MsgDomainAssociationCreateResponse) Descriptor() ([]byte, []int)
- func (m *MsgDomainAssociationCreateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDomainAssociationCreateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDomainAssociationCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDomainAssociationCreateResponse) ProtoMessage()
- func (m *MsgDomainAssociationCreateResponse) Reset()
- func (m *MsgDomainAssociationCreateResponse) Size() (n int)
- func (m *MsgDomainAssociationCreateResponse) String() string
- func (m *MsgDomainAssociationCreateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDomainAssociationCreateResponse) XXX_DiscardUnknown()
- func (m *MsgDomainAssociationCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDomainAssociationCreateResponse) XXX_Merge(src proto.Message)
- func (m *MsgDomainAssociationCreateResponse) XXX_Size() int
- func (m *MsgDomainAssociationCreateResponse) XXX_Unmarshal(b []byte) error
- type MsgRegisterDomain
- func (*MsgRegisterDomain) Descriptor() ([]byte, []int)
- func (msg MsgRegisterDomain) GetSignBytes() []byte
- func (msg MsgRegisterDomain) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterDomain) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterDomain) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterDomain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterDomain) ProtoMessage()
- func (m *MsgRegisterDomain) Reset()
- func (MsgRegisterDomain) Route() string
- func (m *MsgRegisterDomain) Size() (n int)
- func (m *MsgRegisterDomain) String() string
- func (MsgRegisterDomain) Type() string
- func (m *MsgRegisterDomain) Unmarshal(dAtA []byte) error
- func (msg MsgRegisterDomain) ValidateBasic() error
- func (m *MsgRegisterDomain) XXX_DiscardUnknown()
- func (m *MsgRegisterDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterDomain) XXX_Merge(src proto.Message)
- func (m *MsgRegisterDomain) XXX_Size() int
- func (m *MsgRegisterDomain) XXX_Unmarshal(b []byte) error
- type MsgRegisterDomainResponse
- func (*MsgRegisterDomainResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterDomainResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterDomainResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterDomainResponse) ProtoMessage()
- func (m *MsgRegisterDomainResponse) Reset()
- func (m *MsgRegisterDomainResponse) Size() (n int)
- func (m *MsgRegisterDomainResponse) String() string
- func (m *MsgRegisterDomainResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterDomainResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterDomainResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterDomainResponse) XXX_Size() int
- func (m *MsgRegisterDomainResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type UnimplementedMsgServer
Constants ¶
const ( KeySelfDomainPrefix uint8 = iota KeyLocalDNSIDPrefix KeyClientDomainPrefix KeyDomainChannelPrefix )
const ( TypeRegisterChannelDomain string = "register_channel_domain" TypeDomainAssociationCreate string = "domain_association_create" )
const (
// StoreKey to be used when creating the KVStore
StoreKey = "ibc-dns-client"
)
Variables ¶
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/ibc-transfer module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding. // // The actual codec used for serialization should be provided to x/ibc-transfer and // defined at the application level. ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) )
Functions ¶
func KeyClientDomain ¶
func KeyClientDomain(dnsID types.LocalDNSID, domainName string) []byte
clientID => domain name
func KeyDomainChannel ¶
func KeyDomainChannel(dnsID types.LocalDNSID, domainName, port string) []byte
domain:port => channel
func KeyLocalDNSID ¶
func KeyLocalDNSID(dnsID types.LocalDNSID, domain string) []byte
func KeyPrefixBytes ¶
KeyPrefixBytes return the key prefix bytes from a URL string format
func KeySelfDomain ¶
func KeySelfDomain(dnsID types.LocalDNSID) []byte
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the ibc transfer module interfaces to protobuf Any.
func RegisterMsgServer ¶
Types ¶
type MsgClient ¶
type MsgClient interface { RegisterDomain(ctx context.Context, in *MsgRegisterDomain, opts ...grpc.CallOption) (*MsgRegisterDomainResponse, error) DomainAssociationCreate(ctx context.Context, in *MsgDomainAssociationCreate, opts ...grpc.CallOption) (*MsgDomainAssociationCreateResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgDomainAssociationCreate ¶
type MsgDomainAssociationCreate struct { Sender []byte `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` DnsId types.LocalDNSID `protobuf:"bytes,2,opt,name=dns_id,json=dnsId,proto3" json:"dns_id"` SrcClient types.ClientDomain `protobuf:"bytes,3,opt,name=src_client,json=srcClient,proto3" json:"src_client"` DstClient types.ClientDomain `protobuf:"bytes,4,opt,name=dst_client,json=dstClient,proto3" json:"dst_client"` }
func (*MsgDomainAssociationCreate) Descriptor ¶
func (*MsgDomainAssociationCreate) Descriptor() ([]byte, []int)
func (MsgDomainAssociationCreate) GetSignBytes ¶
func (msg MsgDomainAssociationCreate) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgDomainAssociationCreate) GetSigners ¶
func (msg MsgDomainAssociationCreate) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgDomainAssociationCreate) Marshal ¶
func (m *MsgDomainAssociationCreate) Marshal() (dAtA []byte, err error)
func (*MsgDomainAssociationCreate) MarshalTo ¶
func (m *MsgDomainAssociationCreate) MarshalTo(dAtA []byte) (int, error)
func (*MsgDomainAssociationCreate) MarshalToSizedBuffer ¶
func (m *MsgDomainAssociationCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDomainAssociationCreate) ProtoMessage ¶
func (*MsgDomainAssociationCreate) ProtoMessage()
func (*MsgDomainAssociationCreate) Reset ¶
func (m *MsgDomainAssociationCreate) Reset()
func (MsgDomainAssociationCreate) Route ¶
func (MsgDomainAssociationCreate) Route() string
Route implements sdk.Msg
func (*MsgDomainAssociationCreate) Size ¶
func (m *MsgDomainAssociationCreate) Size() (n int)
func (*MsgDomainAssociationCreate) String ¶
func (m *MsgDomainAssociationCreate) String() string
func (MsgDomainAssociationCreate) Type ¶
func (MsgDomainAssociationCreate) Type() string
Type implements sdk.Msg
func (*MsgDomainAssociationCreate) Unmarshal ¶
func (m *MsgDomainAssociationCreate) Unmarshal(dAtA []byte) error
func (MsgDomainAssociationCreate) ValidateBasic ¶
func (msg MsgDomainAssociationCreate) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgDomainAssociationCreate) XXX_DiscardUnknown ¶
func (m *MsgDomainAssociationCreate) XXX_DiscardUnknown()
func (*MsgDomainAssociationCreate) XXX_Marshal ¶
func (m *MsgDomainAssociationCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDomainAssociationCreate) XXX_Merge ¶
func (m *MsgDomainAssociationCreate) XXX_Merge(src proto.Message)
func (*MsgDomainAssociationCreate) XXX_Size ¶
func (m *MsgDomainAssociationCreate) XXX_Size() int
func (*MsgDomainAssociationCreate) XXX_Unmarshal ¶
func (m *MsgDomainAssociationCreate) XXX_Unmarshal(b []byte) error
type MsgDomainAssociationCreateResponse ¶
type MsgDomainAssociationCreateResponse struct { }
func (*MsgDomainAssociationCreateResponse) Descriptor ¶
func (*MsgDomainAssociationCreateResponse) Descriptor() ([]byte, []int)
func (*MsgDomainAssociationCreateResponse) Marshal ¶
func (m *MsgDomainAssociationCreateResponse) Marshal() (dAtA []byte, err error)
func (*MsgDomainAssociationCreateResponse) MarshalTo ¶
func (m *MsgDomainAssociationCreateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDomainAssociationCreateResponse) MarshalToSizedBuffer ¶
func (m *MsgDomainAssociationCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDomainAssociationCreateResponse) ProtoMessage ¶
func (*MsgDomainAssociationCreateResponse) ProtoMessage()
func (*MsgDomainAssociationCreateResponse) Reset ¶
func (m *MsgDomainAssociationCreateResponse) Reset()
func (*MsgDomainAssociationCreateResponse) Size ¶
func (m *MsgDomainAssociationCreateResponse) Size() (n int)
func (*MsgDomainAssociationCreateResponse) String ¶
func (m *MsgDomainAssociationCreateResponse) String() string
func (*MsgDomainAssociationCreateResponse) Unmarshal ¶
func (m *MsgDomainAssociationCreateResponse) Unmarshal(dAtA []byte) error
func (*MsgDomainAssociationCreateResponse) XXX_DiscardUnknown ¶
func (m *MsgDomainAssociationCreateResponse) XXX_DiscardUnknown()
func (*MsgDomainAssociationCreateResponse) XXX_Marshal ¶
func (m *MsgDomainAssociationCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDomainAssociationCreateResponse) XXX_Merge ¶
func (m *MsgDomainAssociationCreateResponse) XXX_Merge(src proto.Message)
func (*MsgDomainAssociationCreateResponse) XXX_Size ¶
func (m *MsgDomainAssociationCreateResponse) XXX_Size() int
func (*MsgDomainAssociationCreateResponse) XXX_Unmarshal ¶
func (m *MsgDomainAssociationCreateResponse) XXX_Unmarshal(b []byte) error
type MsgRegisterDomain ¶
type MsgRegisterDomain struct { // the port on which the packet will be sent SourcePort string `protobuf:"bytes,1,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty" yaml:"source_port"` // the channel by which the packet will be sent SourceChannel string `protobuf:"bytes,2,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty" yaml:"source_channel"` Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` Sender []byte `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"` }
func (*MsgRegisterDomain) Descriptor ¶
func (*MsgRegisterDomain) Descriptor() ([]byte, []int)
func (MsgRegisterDomain) GetSignBytes ¶
func (msg MsgRegisterDomain) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgRegisterDomain) GetSigners ¶
func (msg MsgRegisterDomain) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgRegisterDomain) Marshal ¶
func (m *MsgRegisterDomain) Marshal() (dAtA []byte, err error)
func (*MsgRegisterDomain) MarshalTo ¶
func (m *MsgRegisterDomain) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterDomain) MarshalToSizedBuffer ¶
func (m *MsgRegisterDomain) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterDomain) ProtoMessage ¶
func (*MsgRegisterDomain) ProtoMessage()
func (*MsgRegisterDomain) Reset ¶
func (m *MsgRegisterDomain) Reset()
func (*MsgRegisterDomain) Size ¶
func (m *MsgRegisterDomain) Size() (n int)
func (*MsgRegisterDomain) String ¶
func (m *MsgRegisterDomain) String() string
func (*MsgRegisterDomain) Unmarshal ¶
func (m *MsgRegisterDomain) Unmarshal(dAtA []byte) error
func (MsgRegisterDomain) ValidateBasic ¶
func (msg MsgRegisterDomain) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgRegisterDomain) XXX_DiscardUnknown ¶
func (m *MsgRegisterDomain) XXX_DiscardUnknown()
func (*MsgRegisterDomain) XXX_Marshal ¶
func (m *MsgRegisterDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterDomain) XXX_Merge ¶
func (m *MsgRegisterDomain) XXX_Merge(src proto.Message)
func (*MsgRegisterDomain) XXX_Size ¶
func (m *MsgRegisterDomain) XXX_Size() int
func (*MsgRegisterDomain) XXX_Unmarshal ¶
func (m *MsgRegisterDomain) XXX_Unmarshal(b []byte) error
type MsgRegisterDomainResponse ¶
type MsgRegisterDomainResponse struct { }
func (*MsgRegisterDomainResponse) Descriptor ¶
func (*MsgRegisterDomainResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterDomainResponse) Marshal ¶
func (m *MsgRegisterDomainResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterDomainResponse) MarshalTo ¶
func (m *MsgRegisterDomainResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterDomainResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterDomainResponse) ProtoMessage ¶
func (*MsgRegisterDomainResponse) ProtoMessage()
func (*MsgRegisterDomainResponse) Reset ¶
func (m *MsgRegisterDomainResponse) Reset()
func (*MsgRegisterDomainResponse) Size ¶
func (m *MsgRegisterDomainResponse) Size() (n int)
func (*MsgRegisterDomainResponse) String ¶
func (m *MsgRegisterDomainResponse) String() string
func (*MsgRegisterDomainResponse) Unmarshal ¶
func (m *MsgRegisterDomainResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterDomainResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterDomainResponse) XXX_DiscardUnknown()
func (*MsgRegisterDomainResponse) XXX_Marshal ¶
func (m *MsgRegisterDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterDomainResponse) XXX_Merge ¶
func (m *MsgRegisterDomainResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterDomainResponse) XXX_Size ¶
func (m *MsgRegisterDomainResponse) XXX_Size() int
func (*MsgRegisterDomainResponse) XXX_Unmarshal ¶
func (m *MsgRegisterDomainResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { RegisterDomain(context.Context, *MsgRegisterDomain) (*MsgRegisterDomainResponse, error) DomainAssociationCreate(context.Context, *MsgDomainAssociationCreate) (*MsgDomainAssociationCreateResponse, error) }
MsgServer is the server API for Msg service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) DomainAssociationCreate ¶
func (*UnimplementedMsgServer) DomainAssociationCreate(ctx context.Context, req *MsgDomainAssociationCreate) (*MsgDomainAssociationCreateResponse, error)
func (*UnimplementedMsgServer) RegisterDomain ¶
func (*UnimplementedMsgServer) RegisterDomain(ctx context.Context, req *MsgRegisterDomain) (*MsgRegisterDomainResponse, error)