types

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySelfDomainPrefix uint8 = iota
	KeyLocalDNSIDPrefix
	KeyClientDomainPrefix
	KeyDomainChannelPrefix
)
View Source
const (
	TypeRegisterChannelDomain   string = "register_channel_domain"
	TypeDomainAssociationCreate string = "domain_association_create"
)
View Source
const (
	// StoreKey to be used when creating the KVStore
	StoreKey = "ibc-dns-client"
)

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
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

func KeyPrefixBytes(prefix uint8) []byte

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

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

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

Route implements sdk.Msg

func (*MsgDomainAssociationCreate) Size

func (m *MsgDomainAssociationCreate) Size() (n int)

func (*MsgDomainAssociationCreate) String

func (m *MsgDomainAssociationCreate) String() string

func (MsgDomainAssociationCreate) Type

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 (*MsgDomainAssociationCreateResponse) Size

func (*MsgDomainAssociationCreateResponse) 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 (*MsgDomainAssociationCreateResponse) XXX_Size

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) Route

func (MsgRegisterDomain) Route() string

Route implements sdk.Msg

func (*MsgRegisterDomain) Size

func (m *MsgRegisterDomain) Size() (n int)

func (*MsgRegisterDomain) String

func (m *MsgRegisterDomain) String() string

func (MsgRegisterDomain) Type

func (MsgRegisterDomain) Type() string

Type implements sdk.Msg

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

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) RegisterDomain

Jump to

Keyboard shortcuts

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