Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func MailboxDeliveredKey(id string) []byte
- func MailboxIMTKey() []byte
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MessageDelivered
- func (*MessageDelivered) Descriptor() ([]byte, []int)
- func (m *MessageDelivered) Marshal() (dAtA []byte, err error)
- func (m *MessageDelivered) MarshalTo(dAtA []byte) (int, error)
- func (m *MessageDelivered) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MessageDelivered) ProtoMessage()
- func (m *MessageDelivered) Reset()
- func (m *MessageDelivered) Size() (n int)
- func (m *MessageDelivered) String() string
- func (m *MessageDelivered) Unmarshal(dAtA []byte) error
- func (m *MessageDelivered) XXX_DiscardUnknown()
- func (m *MessageDelivered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MessageDelivered) XXX_Merge(src proto.Message)
- func (m *MessageDelivered) XXX_Size() int
- func (m *MessageDelivered) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDispatch
- func (*MsgDispatch) Descriptor() ([]byte, []int)
- func (m MsgDispatch) GetSigners() []sdk.AccAddress
- func (m *MsgDispatch) Marshal() (dAtA []byte, err error)
- func (m *MsgDispatch) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDispatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDispatch) ProtoMessage()
- func (m *MsgDispatch) Reset()
- func (m *MsgDispatch) Size() (n int)
- func (m *MsgDispatch) String() string
- func (m *MsgDispatch) Unmarshal(dAtA []byte) error
- func (m MsgDispatch) ValidateBasic() error
- func (m *MsgDispatch) XXX_DiscardUnknown()
- func (m *MsgDispatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDispatch) XXX_Merge(src proto.Message)
- func (m *MsgDispatch) XXX_Size() int
- func (m *MsgDispatch) XXX_Unmarshal(b []byte) error
- type MsgDispatchResponse
- func (*MsgDispatchResponse) Descriptor() ([]byte, []int)
- func (m *MsgDispatchResponse) GetMessageId() string
- func (m *MsgDispatchResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDispatchResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDispatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDispatchResponse) ProtoMessage()
- func (m *MsgDispatchResponse) Reset()
- func (m *MsgDispatchResponse) Size() (n int)
- func (m *MsgDispatchResponse) String() string
- func (m *MsgDispatchResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDispatchResponse) XXX_DiscardUnknown()
- func (m *MsgDispatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDispatchResponse) XXX_Merge(src proto.Message)
- func (m *MsgDispatchResponse) XXX_Size() int
- func (m *MsgDispatchResponse) XXX_Unmarshal(b []byte) error
- type MsgProcess
- func (*MsgProcess) Descriptor() ([]byte, []int)
- func (m MsgProcess) GetSigners() []sdk.AccAddress
- func (m *MsgProcess) Marshal() (dAtA []byte, err error)
- func (m *MsgProcess) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProcess) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProcess) ProtoMessage()
- func (m *MsgProcess) Reset()
- func (m *MsgProcess) Size() (n int)
- func (m *MsgProcess) String() string
- func (m *MsgProcess) Unmarshal(dAtA []byte) error
- func (m MsgProcess) ValidateBasic() error
- func (m *MsgProcess) XXX_DiscardUnknown()
- func (m *MsgProcess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProcess) XXX_Merge(src proto.Message)
- func (m *MsgProcess) XXX_Size() int
- func (m *MsgProcess) XXX_Unmarshal(b []byte) error
- type MsgProcessResponse
- func (*MsgProcessResponse) Descriptor() ([]byte, []int)
- func (m *MsgProcessResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgProcessResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProcessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProcessResponse) ProtoMessage()
- func (m *MsgProcessResponse) Reset()
- func (m *MsgProcessResponse) Size() (n int)
- func (m *MsgProcessResponse) String() string
- func (m *MsgProcessResponse) Unmarshal(dAtA []byte) error
- func (m *MsgProcessResponse) XXX_DiscardUnknown()
- func (m *MsgProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProcessResponse) XXX_Merge(src proto.Message)
- func (m *MsgProcessResponse) XXX_Size() int
- func (m *MsgProcessResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryCurrentTreeMetadataRequest
- func (*QueryCurrentTreeMetadataRequest) Descriptor() ([]byte, []int)
- func (m *QueryCurrentTreeMetadataRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCurrentTreeMetadataRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCurrentTreeMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCurrentTreeMetadataRequest) ProtoMessage()
- func (m *QueryCurrentTreeMetadataRequest) Reset()
- func (m *QueryCurrentTreeMetadataRequest) Size() (n int)
- func (m *QueryCurrentTreeMetadataRequest) String() string
- func (m *QueryCurrentTreeMetadataRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCurrentTreeMetadataRequest) XXX_DiscardUnknown()
- func (m *QueryCurrentTreeMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCurrentTreeMetadataRequest) XXX_Merge(src proto.Message)
- func (m *QueryCurrentTreeMetadataRequest) XXX_Size() int
- func (m *QueryCurrentTreeMetadataRequest) XXX_Unmarshal(b []byte) error
- type QueryCurrentTreeMetadataResponse
- func (*QueryCurrentTreeMetadataResponse) Descriptor() ([]byte, []int)
- func (m *QueryCurrentTreeMetadataResponse) GetCount() uint32
- func (m *QueryCurrentTreeMetadataResponse) GetRoot() []byte
- func (m *QueryCurrentTreeMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCurrentTreeMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCurrentTreeMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCurrentTreeMetadataResponse) ProtoMessage()
- func (m *QueryCurrentTreeMetadataResponse) Reset()
- func (m *QueryCurrentTreeMetadataResponse) Size() (n int)
- func (m *QueryCurrentTreeMetadataResponse) String() string
- func (m *QueryCurrentTreeMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCurrentTreeMetadataResponse) XXX_DiscardUnknown()
- func (m *QueryCurrentTreeMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCurrentTreeMetadataResponse) XXX_Merge(src proto.Message)
- func (m *QueryCurrentTreeMetadataResponse) XXX_Size() int
- func (m *QueryCurrentTreeMetadataResponse) XXX_Unmarshal(b []byte) error
- type QueryCurrentTreeRequest
- func (*QueryCurrentTreeRequest) Descriptor() ([]byte, []int)
- func (m *QueryCurrentTreeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCurrentTreeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCurrentTreeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCurrentTreeRequest) ProtoMessage()
- func (m *QueryCurrentTreeRequest) Reset()
- func (m *QueryCurrentTreeRequest) Size() (n int)
- func (m *QueryCurrentTreeRequest) String() string
- func (m *QueryCurrentTreeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCurrentTreeRequest) XXX_DiscardUnknown()
- func (m *QueryCurrentTreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCurrentTreeRequest) XXX_Merge(src proto.Message)
- func (m *QueryCurrentTreeRequest) XXX_Size() int
- func (m *QueryCurrentTreeRequest) XXX_Unmarshal(b []byte) error
- type QueryCurrentTreeResponse
- func (*QueryCurrentTreeResponse) Descriptor() ([]byte, []int)
- func (m *QueryCurrentTreeResponse) GetBranches() [][]byte
- func (m *QueryCurrentTreeResponse) GetCount() uint32
- func (m *QueryCurrentTreeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCurrentTreeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCurrentTreeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCurrentTreeResponse) ProtoMessage()
- func (m *QueryCurrentTreeResponse) Reset()
- func (m *QueryCurrentTreeResponse) Size() (n int)
- func (m *QueryCurrentTreeResponse) String() string
- func (m *QueryCurrentTreeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCurrentTreeResponse) XXX_DiscardUnknown()
- func (m *QueryCurrentTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCurrentTreeResponse) XXX_Merge(src proto.Message)
- func (m *QueryCurrentTreeResponse) XXX_Size() int
- func (m *QueryCurrentTreeResponse) XXX_Unmarshal(b []byte) error
- type QueryDomainRequest
- func (*QueryDomainRequest) Descriptor() ([]byte, []int)
- func (m *QueryDomainRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDomainRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDomainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDomainRequest) ProtoMessage()
- func (m *QueryDomainRequest) Reset()
- func (m *QueryDomainRequest) Size() (n int)
- func (m *QueryDomainRequest) String() string
- func (m *QueryDomainRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDomainRequest) XXX_DiscardUnknown()
- func (m *QueryDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDomainRequest) XXX_Merge(src proto.Message)
- func (m *QueryDomainRequest) XXX_Size() int
- func (m *QueryDomainRequest) XXX_Unmarshal(b []byte) error
- type QueryDomainResponse
- func (*QueryDomainResponse) Descriptor() ([]byte, []int)
- func (m *QueryDomainResponse) GetDomain() uint32
- func (m *QueryDomainResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDomainResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDomainResponse) ProtoMessage()
- func (m *QueryDomainResponse) Reset()
- func (m *QueryDomainResponse) Size() (n int)
- func (m *QueryDomainResponse) String() string
- func (m *QueryDomainResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDomainResponse) XXX_DiscardUnknown()
- func (m *QueryDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDomainResponse) XXX_Merge(src proto.Message)
- func (m *QueryDomainResponse) XXX_Size() int
- func (m *QueryDomainResponse) XXX_Unmarshal(b []byte) error
- type QueryMsgDeliveredRequest
- func (*QueryMsgDeliveredRequest) Descriptor() ([]byte, []int)
- func (m *QueryMsgDeliveredRequest) GetMessageId() []byte
- func (m *QueryMsgDeliveredRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMsgDeliveredRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMsgDeliveredRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMsgDeliveredRequest) ProtoMessage()
- func (m *QueryMsgDeliveredRequest) Reset()
- func (m *QueryMsgDeliveredRequest) Size() (n int)
- func (m *QueryMsgDeliveredRequest) String() string
- func (m *QueryMsgDeliveredRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMsgDeliveredRequest) XXX_DiscardUnknown()
- func (m *QueryMsgDeliveredRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMsgDeliveredRequest) XXX_Merge(src proto.Message)
- func (m *QueryMsgDeliveredRequest) XXX_Size() int
- func (m *QueryMsgDeliveredRequest) XXX_Unmarshal(b []byte) error
- type QueryMsgDeliveredResponse
- func (*QueryMsgDeliveredResponse) Descriptor() ([]byte, []int)
- func (m *QueryMsgDeliveredResponse) GetDelivered() bool
- func (m *QueryMsgDeliveredResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMsgDeliveredResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMsgDeliveredResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMsgDeliveredResponse) ProtoMessage()
- func (m *QueryMsgDeliveredResponse) Reset()
- func (m *QueryMsgDeliveredResponse) Size() (n int)
- func (m *QueryMsgDeliveredResponse) String() string
- func (m *QueryMsgDeliveredResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMsgDeliveredResponse) XXX_DiscardUnknown()
- func (m *QueryMsgDeliveredResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMsgDeliveredResponse) XXX_Merge(src proto.Message)
- func (m *QueryMsgDeliveredResponse) XXX_Size() int
- func (m *QueryMsgDeliveredResponse) XXX_Unmarshal(b []byte) error
- type QueryRecipientsIsmIdRequest
- func (*QueryRecipientsIsmIdRequest) Descriptor() ([]byte, []int)
- func (m *QueryRecipientsIsmIdRequest) GetRecipient() []byte
- func (m *QueryRecipientsIsmIdRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRecipientsIsmIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRecipientsIsmIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRecipientsIsmIdRequest) ProtoMessage()
- func (m *QueryRecipientsIsmIdRequest) Reset()
- func (m *QueryRecipientsIsmIdRequest) Size() (n int)
- func (m *QueryRecipientsIsmIdRequest) String() string
- func (m *QueryRecipientsIsmIdRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRecipientsIsmIdRequest) XXX_DiscardUnknown()
- func (m *QueryRecipientsIsmIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRecipientsIsmIdRequest) XXX_Merge(src proto.Message)
- func (m *QueryRecipientsIsmIdRequest) XXX_Size() int
- func (m *QueryRecipientsIsmIdRequest) XXX_Unmarshal(b []byte) error
- type QueryRecipientsIsmIdResponse
- func (*QueryRecipientsIsmIdResponse) Descriptor() ([]byte, []int)
- func (m *QueryRecipientsIsmIdResponse) GetIsmId() uint32
- func (m *QueryRecipientsIsmIdResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRecipientsIsmIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRecipientsIsmIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRecipientsIsmIdResponse) ProtoMessage()
- func (m *QueryRecipientsIsmIdResponse) Reset()
- func (m *QueryRecipientsIsmIdResponse) Size() (n int)
- func (m *QueryRecipientsIsmIdResponse) String() string
- func (m *QueryRecipientsIsmIdResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRecipientsIsmIdResponse) XXX_DiscardUnknown()
- func (m *QueryRecipientsIsmIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRecipientsIsmIdResponse) XXX_Merge(src proto.Message)
- func (m *QueryRecipientsIsmIdResponse) XXX_Size() int
- func (m *QueryRecipientsIsmIdResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Tree
- func (*Tree) Descriptor() ([]byte, []int)
- func (m *Tree) Marshal() (dAtA []byte, err error)
- func (m *Tree) MarshalTo(dAtA []byte) (int, error)
- func (m *Tree) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Tree) ProtoMessage()
- func (m *Tree) Reset()
- func (m *Tree) Size() (n int)
- func (m *Tree) String() string
- func (m *Tree) Unmarshal(dAtA []byte) error
- func (m *Tree) XXX_DiscardUnknown()
- func (m *Tree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tree) XXX_Merge(src proto.Message)
- func (m *Tree) XXX_Size() int
- func (m *Tree) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CurrentTree(ctx context.Context, req *QueryCurrentTreeRequest) (*QueryCurrentTreeResponse, error)
- func (*UnimplementedQueryServer) CurrentTreeMetadata(ctx context.Context, req *QueryCurrentTreeMetadataRequest) (*QueryCurrentTreeMetadataResponse, error)
- func (*UnimplementedQueryServer) Domain(ctx context.Context, req *QueryDomainRequest) (*QueryDomainResponse, error)
- func (*UnimplementedQueryServer) MsgDelivered(ctx context.Context, req *QueryMsgDeliveredRequest) (*QueryMsgDeliveredResponse, error)
- func (*UnimplementedQueryServer) RecipientsIsmId(ctx context.Context, req *QueryRecipientsIsmIdRequest) (*QueryRecipientsIsmIdResponse, error)
Constants ¶
const ( EventTypeDispatch = "dispatch" EventTypeDispatchId = "dispatch_id" EventTypeProcess = "process" EventTypeProcessId = "process_id" )
Hyperlane Mailbox event types
const ( AttributeKeyDestination = "destination" AttributeKeyDestinationDomain = "destination" AttributeKeyHyperlaneMessage = "hyperlanemessage" AttributeKeyID = "id" AttributeKeyMessage = "message" AttributeKeyNonce = "nonce" AttributeKeyOrigin = "origin" AttributeKeyRecipientAddress = "recipient" AttributeKeySender = "sender" AttributeKeyVersion = "version" )
Hyperlane Mailbox attribute keys
const ( // ModuleName for the hyperlane mailbox ModuleName = "hyperlane-mailbox" // StoreKey is the store key string for hyperlane mailbox StoreKey = ModuleName KeyMailboxIMT = "imt" KeyMailboxDelivered = "delivered" )
Variables ¶
var ( ErrInvalid = sdkerrors.Register(ModuleName, 1, "invalid") ErrMsgTooLong = sdkerrors.Register(ModuleName, 2, "msg too long") ErrMsgInvalidVersion = sdkerrors.Register(ModuleName, 3, "invalid version") ErrMsgInvalidDomain = sdkerrors.Register(ModuleName, 4, "invalid domain") ErrMsgDelivered = sdkerrors.Register(ModuleName, 5, "message delivered") ErrMsgVerificationFailed = sdkerrors.Register(ModuleName, 6, "message verification failed") ErrMsgHandling = sdkerrors.Register(ModuleName, 7, "message failed during handle") ErrMsgDispatchInvalidSender = sdkerrors.Register(ModuleName, 8, "invalid sender in msg dispatch") ErrMsgDispatchInvalidDomain = sdkerrors.Register(ModuleName, 9, "invalid domain in msg dispatch") ErrMsgDispatchInvalidRecipient = sdkerrors.Register(ModuleName, 10, "invalid recipient in msg dispatch") ErrMsgDispatchInvalidMsgBody = sdkerrors.Register(ModuleName, 11, "invalid msg body in msg dispatch") ErrMsgProcessInvalidSender = sdkerrors.Register(ModuleName, 12, "invalid sender in msg process") ErrMsgProcessInvalidMetadata = sdkerrors.Register(ModuleName, 13, "invalid metadata in msg process") ErrMsgProcessInvalidMessage = sdkerrors.Register(ModuleName, 14, "invalid message in msg process") ErrInvalidRecipient = sdkerrors.Register(ModuleName, 15, "invalid recipient") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
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 DomainKey = []byte{0x1}
Functions ¶
func MailboxDeliveredKey ¶
func MailboxIMTKey ¶
func MailboxIMTKey() []byte
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the hyperlane mailbox implementations and interfaces.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { // Each genesis tree entry Tree Tree `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree"` // Each message that has been delivered DeliveredMessages []*MessageDelivered `protobuf:"bytes,2,rep,name=delivered_messages,json=deliveredMessages,proto3" json:"delivered_messages,omitempty"` // The domain of this chain module, assigned by hyperlane Domain uint32 `protobuf:"varint,3,opt,name=domain,proto3" json:"domain,omitempty"` }
Hyperlane mailbox's keeper genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MessageDelivered ¶
type MessageDelivered struct { // Message id (hash) Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` }
Mailbox delivered message
func (*MessageDelivered) Descriptor ¶
func (*MessageDelivered) Descriptor() ([]byte, []int)
func (*MessageDelivered) Marshal ¶
func (m *MessageDelivered) Marshal() (dAtA []byte, err error)
func (*MessageDelivered) MarshalToSizedBuffer ¶
func (m *MessageDelivered) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MessageDelivered) ProtoMessage ¶
func (*MessageDelivered) ProtoMessage()
func (*MessageDelivered) Reset ¶
func (m *MessageDelivered) Reset()
func (*MessageDelivered) Size ¶
func (m *MessageDelivered) Size() (n int)
func (*MessageDelivered) String ¶
func (m *MessageDelivered) String() string
func (*MessageDelivered) Unmarshal ¶
func (m *MessageDelivered) Unmarshal(dAtA []byte) error
func (*MessageDelivered) XXX_DiscardUnknown ¶
func (m *MessageDelivered) XXX_DiscardUnknown()
func (*MessageDelivered) XXX_Marshal ¶
func (m *MessageDelivered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MessageDelivered) XXX_Merge ¶
func (m *MessageDelivered) XXX_Merge(src proto.Message)
func (*MessageDelivered) XXX_Size ¶
func (m *MessageDelivered) XXX_Size() int
func (*MessageDelivered) XXX_Unmarshal ¶
func (m *MessageDelivered) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Dispatch sends interchain messages Dispatch(ctx context.Context, in *MsgDispatch, opts ...grpc.CallOption) (*MsgDispatchResponse, error) // Process delivers interchain messages Process(ctx context.Context, in *MsgProcess, opts ...grpc.CallOption) (*MsgProcessResponse, 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 MsgDispatch ¶
type MsgDispatch struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` DestinationDomain uint32 `protobuf:"varint,2,opt,name=destination_domain,json=destinationDomain,proto3" json:"destination_domain,omitempty"` RecipientAddress string `protobuf:"bytes,3,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` MessageBody string `protobuf:"bytes,4,opt,name=message_body,json=messageBody,proto3" json:"message_body,omitempty"` }
MsgDispatch defines the request type for the Dispatch rpc.
func NewMsgDispatch ¶
func NewMsgDispatch(sender string, destinationDomain uint32, recipientAddress string, messageBody string) *MsgDispatch
NewMsgDispatch creates a new MsgStoreCode instance
func (*MsgDispatch) Descriptor ¶
func (*MsgDispatch) Descriptor() ([]byte, []int)
func (MsgDispatch) GetSigners ¶
func (m MsgDispatch) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgDispatch) Marshal ¶
func (m *MsgDispatch) Marshal() (dAtA []byte, err error)
func (*MsgDispatch) MarshalToSizedBuffer ¶
func (m *MsgDispatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDispatch) ProtoMessage ¶
func (*MsgDispatch) ProtoMessage()
func (*MsgDispatch) Reset ¶
func (m *MsgDispatch) Reset()
func (*MsgDispatch) Size ¶
func (m *MsgDispatch) Size() (n int)
func (*MsgDispatch) String ¶
func (m *MsgDispatch) String() string
func (*MsgDispatch) Unmarshal ¶
func (m *MsgDispatch) Unmarshal(dAtA []byte) error
func (MsgDispatch) ValidateBasic ¶
func (m MsgDispatch) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgDispatch) XXX_DiscardUnknown ¶
func (m *MsgDispatch) XXX_DiscardUnknown()
func (*MsgDispatch) XXX_Marshal ¶
func (m *MsgDispatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDispatch) XXX_Merge ¶
func (m *MsgDispatch) XXX_Merge(src proto.Message)
func (*MsgDispatch) XXX_Size ¶
func (m *MsgDispatch) XXX_Size() int
func (*MsgDispatch) XXX_Unmarshal ¶
func (m *MsgDispatch) XXX_Unmarshal(b []byte) error
type MsgDispatchResponse ¶
type MsgDispatchResponse struct {
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
}
MsgDispatchResponse defines the Dispatch response type.
func (*MsgDispatchResponse) Descriptor ¶
func (*MsgDispatchResponse) Descriptor() ([]byte, []int)
func (*MsgDispatchResponse) GetMessageId ¶
func (m *MsgDispatchResponse) GetMessageId() string
func (*MsgDispatchResponse) Marshal ¶
func (m *MsgDispatchResponse) Marshal() (dAtA []byte, err error)
func (*MsgDispatchResponse) MarshalTo ¶
func (m *MsgDispatchResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDispatchResponse) MarshalToSizedBuffer ¶
func (m *MsgDispatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDispatchResponse) ProtoMessage ¶
func (*MsgDispatchResponse) ProtoMessage()
func (*MsgDispatchResponse) Reset ¶
func (m *MsgDispatchResponse) Reset()
func (*MsgDispatchResponse) Size ¶
func (m *MsgDispatchResponse) Size() (n int)
func (*MsgDispatchResponse) String ¶
func (m *MsgDispatchResponse) String() string
func (*MsgDispatchResponse) Unmarshal ¶
func (m *MsgDispatchResponse) Unmarshal(dAtA []byte) error
func (*MsgDispatchResponse) XXX_DiscardUnknown ¶
func (m *MsgDispatchResponse) XXX_DiscardUnknown()
func (*MsgDispatchResponse) XXX_Marshal ¶
func (m *MsgDispatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDispatchResponse) XXX_Merge ¶
func (m *MsgDispatchResponse) XXX_Merge(src proto.Message)
func (*MsgDispatchResponse) XXX_Size ¶
func (m *MsgDispatchResponse) XXX_Size() int
func (*MsgDispatchResponse) XXX_Unmarshal ¶
func (m *MsgDispatchResponse) XXX_Unmarshal(b []byte) error
type MsgProcess ¶
type MsgProcess struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` }
MsgProcess defines the request type for the Process rpc.
func NewMsgProcess ¶
func NewMsgProcess(sender sdk.AccAddress, metadata string, message string) *MsgProcess
NewMsgProcess creates a new NewMsgProcess instance
func (*MsgProcess) Descriptor ¶
func (*MsgProcess) Descriptor() ([]byte, []int)
func (MsgProcess) GetSigners ¶
func (m MsgProcess) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgProcess) Marshal ¶
func (m *MsgProcess) Marshal() (dAtA []byte, err error)
func (*MsgProcess) MarshalToSizedBuffer ¶
func (m *MsgProcess) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProcess) ProtoMessage ¶
func (*MsgProcess) ProtoMessage()
func (*MsgProcess) Reset ¶
func (m *MsgProcess) Reset()
func (*MsgProcess) Size ¶
func (m *MsgProcess) Size() (n int)
func (*MsgProcess) String ¶
func (m *MsgProcess) String() string
func (*MsgProcess) Unmarshal ¶
func (m *MsgProcess) Unmarshal(dAtA []byte) error
func (MsgProcess) ValidateBasic ¶
func (m MsgProcess) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgProcess) XXX_DiscardUnknown ¶
func (m *MsgProcess) XXX_DiscardUnknown()
func (*MsgProcess) XXX_Marshal ¶
func (m *MsgProcess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProcess) XXX_Merge ¶
func (m *MsgProcess) XXX_Merge(src proto.Message)
func (*MsgProcess) XXX_Size ¶
func (m *MsgProcess) XXX_Size() int
func (*MsgProcess) XXX_Unmarshal ¶
func (m *MsgProcess) XXX_Unmarshal(b []byte) error
type MsgProcessResponse ¶
type MsgProcessResponse struct{}
MsgProcessResponse defines the Process response type.
func (*MsgProcessResponse) Descriptor ¶
func (*MsgProcessResponse) Descriptor() ([]byte, []int)
func (*MsgProcessResponse) Marshal ¶
func (m *MsgProcessResponse) Marshal() (dAtA []byte, err error)
func (*MsgProcessResponse) MarshalTo ¶
func (m *MsgProcessResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgProcessResponse) MarshalToSizedBuffer ¶
func (m *MsgProcessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProcessResponse) ProtoMessage ¶
func (*MsgProcessResponse) ProtoMessage()
func (*MsgProcessResponse) Reset ¶
func (m *MsgProcessResponse) Reset()
func (*MsgProcessResponse) Size ¶
func (m *MsgProcessResponse) Size() (n int)
func (*MsgProcessResponse) String ¶
func (m *MsgProcessResponse) String() string
func (*MsgProcessResponse) Unmarshal ¶
func (m *MsgProcessResponse) Unmarshal(dAtA []byte) error
func (*MsgProcessResponse) XXX_DiscardUnknown ¶
func (m *MsgProcessResponse) XXX_DiscardUnknown()
func (*MsgProcessResponse) XXX_Marshal ¶
func (m *MsgProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProcessResponse) XXX_Merge ¶
func (m *MsgProcessResponse) XXX_Merge(src proto.Message)
func (*MsgProcessResponse) XXX_Size ¶
func (m *MsgProcessResponse) XXX_Size() int
func (*MsgProcessResponse) XXX_Unmarshal ¶
func (m *MsgProcessResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Dispatch sends interchain messages Dispatch(context.Context, *MsgDispatch) (*MsgDispatchResponse, error) // Process delivers interchain messages Process(context.Context, *MsgProcess) (*MsgProcessResponse, error) }
MsgServer is the server API for Msg service.
type QueryClient ¶
type QueryClient interface { // Get current tree metadata CurrentTreeMetadata(ctx context.Context, in *QueryCurrentTreeMetadataRequest, opts ...grpc.CallOption) (*QueryCurrentTreeMetadataResponse, error) // Get domain Domain(ctx context.Context, in *QueryDomainRequest, opts ...grpc.CallOption) (*QueryDomainResponse, error) // Get current tree CurrentTree(ctx context.Context, in *QueryCurrentTreeRequest, opts ...grpc.CallOption) (*QueryCurrentTreeResponse, error) // Check if message was delivered MsgDelivered(ctx context.Context, in *QueryMsgDeliveredRequest, opts ...grpc.CallOption) (*QueryMsgDeliveredResponse, error) // Query ISM ID from recipient RecipientsIsmId(ctx context.Context, in *QueryRecipientsIsmIdRequest, opts ...grpc.CallOption) (*QueryRecipientsIsmIdResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryCurrentTreeMetadataRequest ¶
type QueryCurrentTreeMetadataRequest struct{}
QueryCurrentTreeMetadataRequest is the request type for the Query/Tree metadata RPC method.
func (*QueryCurrentTreeMetadataRequest) Descriptor ¶
func (*QueryCurrentTreeMetadataRequest) Descriptor() ([]byte, []int)
func (*QueryCurrentTreeMetadataRequest) Marshal ¶
func (m *QueryCurrentTreeMetadataRequest) Marshal() (dAtA []byte, err error)
func (*QueryCurrentTreeMetadataRequest) MarshalTo ¶
func (m *QueryCurrentTreeMetadataRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCurrentTreeMetadataRequest) MarshalToSizedBuffer ¶
func (m *QueryCurrentTreeMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCurrentTreeMetadataRequest) ProtoMessage ¶
func (*QueryCurrentTreeMetadataRequest) ProtoMessage()
func (*QueryCurrentTreeMetadataRequest) Reset ¶
func (m *QueryCurrentTreeMetadataRequest) Reset()
func (*QueryCurrentTreeMetadataRequest) Size ¶
func (m *QueryCurrentTreeMetadataRequest) Size() (n int)
func (*QueryCurrentTreeMetadataRequest) String ¶
func (m *QueryCurrentTreeMetadataRequest) String() string
func (*QueryCurrentTreeMetadataRequest) Unmarshal ¶
func (m *QueryCurrentTreeMetadataRequest) Unmarshal(dAtA []byte) error
func (*QueryCurrentTreeMetadataRequest) XXX_DiscardUnknown ¶
func (m *QueryCurrentTreeMetadataRequest) XXX_DiscardUnknown()
func (*QueryCurrentTreeMetadataRequest) XXX_Marshal ¶
func (m *QueryCurrentTreeMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCurrentTreeMetadataRequest) XXX_Merge ¶
func (m *QueryCurrentTreeMetadataRequest) XXX_Merge(src proto.Message)
func (*QueryCurrentTreeMetadataRequest) XXX_Size ¶
func (m *QueryCurrentTreeMetadataRequest) XXX_Size() int
func (*QueryCurrentTreeMetadataRequest) XXX_Unmarshal ¶
func (m *QueryCurrentTreeMetadataRequest) XXX_Unmarshal(b []byte) error
type QueryCurrentTreeMetadataResponse ¶
type QueryCurrentTreeMetadataResponse struct { Root []byte `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` }
QueryCurrentTreeResponseResponse is the response type for the Query/Tree metadata RPC method.
func (*QueryCurrentTreeMetadataResponse) Descriptor ¶
func (*QueryCurrentTreeMetadataResponse) Descriptor() ([]byte, []int)
func (*QueryCurrentTreeMetadataResponse) GetCount ¶
func (m *QueryCurrentTreeMetadataResponse) GetCount() uint32
func (*QueryCurrentTreeMetadataResponse) GetRoot ¶
func (m *QueryCurrentTreeMetadataResponse) GetRoot() []byte
func (*QueryCurrentTreeMetadataResponse) Marshal ¶
func (m *QueryCurrentTreeMetadataResponse) Marshal() (dAtA []byte, err error)
func (*QueryCurrentTreeMetadataResponse) MarshalTo ¶
func (m *QueryCurrentTreeMetadataResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCurrentTreeMetadataResponse) MarshalToSizedBuffer ¶
func (m *QueryCurrentTreeMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCurrentTreeMetadataResponse) ProtoMessage ¶
func (*QueryCurrentTreeMetadataResponse) ProtoMessage()
func (*QueryCurrentTreeMetadataResponse) Reset ¶
func (m *QueryCurrentTreeMetadataResponse) Reset()
func (*QueryCurrentTreeMetadataResponse) Size ¶
func (m *QueryCurrentTreeMetadataResponse) Size() (n int)
func (*QueryCurrentTreeMetadataResponse) String ¶
func (m *QueryCurrentTreeMetadataResponse) String() string
func (*QueryCurrentTreeMetadataResponse) Unmarshal ¶
func (m *QueryCurrentTreeMetadataResponse) Unmarshal(dAtA []byte) error
func (*QueryCurrentTreeMetadataResponse) XXX_DiscardUnknown ¶
func (m *QueryCurrentTreeMetadataResponse) XXX_DiscardUnknown()
func (*QueryCurrentTreeMetadataResponse) XXX_Marshal ¶
func (m *QueryCurrentTreeMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCurrentTreeMetadataResponse) XXX_Merge ¶
func (m *QueryCurrentTreeMetadataResponse) XXX_Merge(src proto.Message)
func (*QueryCurrentTreeMetadataResponse) XXX_Size ¶
func (m *QueryCurrentTreeMetadataResponse) XXX_Size() int
func (*QueryCurrentTreeMetadataResponse) XXX_Unmarshal ¶
func (m *QueryCurrentTreeMetadataResponse) XXX_Unmarshal(b []byte) error
type QueryCurrentTreeRequest ¶
type QueryCurrentTreeRequest struct{}
QueryCurrentTreeRequest is the request type for the Query/Tree RPC method
func (*QueryCurrentTreeRequest) Descriptor ¶
func (*QueryCurrentTreeRequest) Descriptor() ([]byte, []int)
func (*QueryCurrentTreeRequest) Marshal ¶
func (m *QueryCurrentTreeRequest) Marshal() (dAtA []byte, err error)
func (*QueryCurrentTreeRequest) MarshalTo ¶
func (m *QueryCurrentTreeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCurrentTreeRequest) MarshalToSizedBuffer ¶
func (m *QueryCurrentTreeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCurrentTreeRequest) ProtoMessage ¶
func (*QueryCurrentTreeRequest) ProtoMessage()
func (*QueryCurrentTreeRequest) Reset ¶
func (m *QueryCurrentTreeRequest) Reset()
func (*QueryCurrentTreeRequest) Size ¶
func (m *QueryCurrentTreeRequest) Size() (n int)
func (*QueryCurrentTreeRequest) String ¶
func (m *QueryCurrentTreeRequest) String() string
func (*QueryCurrentTreeRequest) Unmarshal ¶
func (m *QueryCurrentTreeRequest) Unmarshal(dAtA []byte) error
func (*QueryCurrentTreeRequest) XXX_DiscardUnknown ¶
func (m *QueryCurrentTreeRequest) XXX_DiscardUnknown()
func (*QueryCurrentTreeRequest) XXX_Marshal ¶
func (m *QueryCurrentTreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCurrentTreeRequest) XXX_Merge ¶
func (m *QueryCurrentTreeRequest) XXX_Merge(src proto.Message)
func (*QueryCurrentTreeRequest) XXX_Size ¶
func (m *QueryCurrentTreeRequest) XXX_Size() int
func (*QueryCurrentTreeRequest) XXX_Unmarshal ¶
func (m *QueryCurrentTreeRequest) XXX_Unmarshal(b []byte) error
type QueryCurrentTreeResponse ¶
type QueryCurrentTreeResponse struct { Branches [][]byte `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` }
QueryCurrentTreeResponse is the response type for the Query/Tree RPC method
func (*QueryCurrentTreeResponse) Descriptor ¶
func (*QueryCurrentTreeResponse) Descriptor() ([]byte, []int)
func (*QueryCurrentTreeResponse) GetBranches ¶
func (m *QueryCurrentTreeResponse) GetBranches() [][]byte
func (*QueryCurrentTreeResponse) GetCount ¶
func (m *QueryCurrentTreeResponse) GetCount() uint32
func (*QueryCurrentTreeResponse) Marshal ¶
func (m *QueryCurrentTreeResponse) Marshal() (dAtA []byte, err error)
func (*QueryCurrentTreeResponse) MarshalTo ¶
func (m *QueryCurrentTreeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCurrentTreeResponse) MarshalToSizedBuffer ¶
func (m *QueryCurrentTreeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCurrentTreeResponse) ProtoMessage ¶
func (*QueryCurrentTreeResponse) ProtoMessage()
func (*QueryCurrentTreeResponse) Reset ¶
func (m *QueryCurrentTreeResponse) Reset()
func (*QueryCurrentTreeResponse) Size ¶
func (m *QueryCurrentTreeResponse) Size() (n int)
func (*QueryCurrentTreeResponse) String ¶
func (m *QueryCurrentTreeResponse) String() string
func (*QueryCurrentTreeResponse) Unmarshal ¶
func (m *QueryCurrentTreeResponse) Unmarshal(dAtA []byte) error
func (*QueryCurrentTreeResponse) XXX_DiscardUnknown ¶
func (m *QueryCurrentTreeResponse) XXX_DiscardUnknown()
func (*QueryCurrentTreeResponse) XXX_Marshal ¶
func (m *QueryCurrentTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCurrentTreeResponse) XXX_Merge ¶
func (m *QueryCurrentTreeResponse) XXX_Merge(src proto.Message)
func (*QueryCurrentTreeResponse) XXX_Size ¶
func (m *QueryCurrentTreeResponse) XXX_Size() int
func (*QueryCurrentTreeResponse) XXX_Unmarshal ¶
func (m *QueryCurrentTreeResponse) XXX_Unmarshal(b []byte) error
type QueryDomainRequest ¶
type QueryDomainRequest struct{}
QueryDomain is the request type for the Query/Domain RPC method.
func (*QueryDomainRequest) Descriptor ¶
func (*QueryDomainRequest) Descriptor() ([]byte, []int)
func (*QueryDomainRequest) Marshal ¶
func (m *QueryDomainRequest) Marshal() (dAtA []byte, err error)
func (*QueryDomainRequest) MarshalTo ¶
func (m *QueryDomainRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDomainRequest) MarshalToSizedBuffer ¶
func (m *QueryDomainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDomainRequest) ProtoMessage ¶
func (*QueryDomainRequest) ProtoMessage()
func (*QueryDomainRequest) Reset ¶
func (m *QueryDomainRequest) Reset()
func (*QueryDomainRequest) Size ¶
func (m *QueryDomainRequest) Size() (n int)
func (*QueryDomainRequest) String ¶
func (m *QueryDomainRequest) String() string
func (*QueryDomainRequest) Unmarshal ¶
func (m *QueryDomainRequest) Unmarshal(dAtA []byte) error
func (*QueryDomainRequest) XXX_DiscardUnknown ¶
func (m *QueryDomainRequest) XXX_DiscardUnknown()
func (*QueryDomainRequest) XXX_Marshal ¶
func (m *QueryDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDomainRequest) XXX_Merge ¶
func (m *QueryDomainRequest) XXX_Merge(src proto.Message)
func (*QueryDomainRequest) XXX_Size ¶
func (m *QueryDomainRequest) XXX_Size() int
func (*QueryDomainRequest) XXX_Unmarshal ¶
func (m *QueryDomainRequest) XXX_Unmarshal(b []byte) error
type QueryDomainResponse ¶
type QueryDomainResponse struct {
Domain uint32 `protobuf:"varint,1,opt,name=domain,proto3" json:"domain,omitempty"`
}
QueryDomainResponse is the response type for the Query/Domain RPC method.
func (*QueryDomainResponse) Descriptor ¶
func (*QueryDomainResponse) Descriptor() ([]byte, []int)
func (*QueryDomainResponse) GetDomain ¶
func (m *QueryDomainResponse) GetDomain() uint32
func (*QueryDomainResponse) Marshal ¶
func (m *QueryDomainResponse) Marshal() (dAtA []byte, err error)
func (*QueryDomainResponse) MarshalTo ¶
func (m *QueryDomainResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDomainResponse) MarshalToSizedBuffer ¶
func (m *QueryDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDomainResponse) ProtoMessage ¶
func (*QueryDomainResponse) ProtoMessage()
func (*QueryDomainResponse) Reset ¶
func (m *QueryDomainResponse) Reset()
func (*QueryDomainResponse) Size ¶
func (m *QueryDomainResponse) Size() (n int)
func (*QueryDomainResponse) String ¶
func (m *QueryDomainResponse) String() string
func (*QueryDomainResponse) Unmarshal ¶
func (m *QueryDomainResponse) Unmarshal(dAtA []byte) error
func (*QueryDomainResponse) XXX_DiscardUnknown ¶
func (m *QueryDomainResponse) XXX_DiscardUnknown()
func (*QueryDomainResponse) XXX_Marshal ¶
func (m *QueryDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDomainResponse) XXX_Merge ¶
func (m *QueryDomainResponse) XXX_Merge(src proto.Message)
func (*QueryDomainResponse) XXX_Size ¶
func (m *QueryDomainResponse) XXX_Size() int
func (*QueryDomainResponse) XXX_Unmarshal ¶
func (m *QueryDomainResponse) XXX_Unmarshal(b []byte) error
type QueryMsgDeliveredRequest ¶
type QueryMsgDeliveredRequest struct {
MessageId []byte `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
}
QueryMsgDeliveredRequest is the request type to check if message was delivered
func (*QueryMsgDeliveredRequest) Descriptor ¶
func (*QueryMsgDeliveredRequest) Descriptor() ([]byte, []int)
func (*QueryMsgDeliveredRequest) GetMessageId ¶
func (m *QueryMsgDeliveredRequest) GetMessageId() []byte
func (*QueryMsgDeliveredRequest) Marshal ¶
func (m *QueryMsgDeliveredRequest) Marshal() (dAtA []byte, err error)
func (*QueryMsgDeliveredRequest) MarshalTo ¶
func (m *QueryMsgDeliveredRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMsgDeliveredRequest) MarshalToSizedBuffer ¶
func (m *QueryMsgDeliveredRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMsgDeliveredRequest) ProtoMessage ¶
func (*QueryMsgDeliveredRequest) ProtoMessage()
func (*QueryMsgDeliveredRequest) Reset ¶
func (m *QueryMsgDeliveredRequest) Reset()
func (*QueryMsgDeliveredRequest) Size ¶
func (m *QueryMsgDeliveredRequest) Size() (n int)
func (*QueryMsgDeliveredRequest) String ¶
func (m *QueryMsgDeliveredRequest) String() string
func (*QueryMsgDeliveredRequest) Unmarshal ¶
func (m *QueryMsgDeliveredRequest) Unmarshal(dAtA []byte) error
func (*QueryMsgDeliveredRequest) XXX_DiscardUnknown ¶
func (m *QueryMsgDeliveredRequest) XXX_DiscardUnknown()
func (*QueryMsgDeliveredRequest) XXX_Marshal ¶
func (m *QueryMsgDeliveredRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMsgDeliveredRequest) XXX_Merge ¶
func (m *QueryMsgDeliveredRequest) XXX_Merge(src proto.Message)
func (*QueryMsgDeliveredRequest) XXX_Size ¶
func (m *QueryMsgDeliveredRequest) XXX_Size() int
func (*QueryMsgDeliveredRequest) XXX_Unmarshal ¶
func (m *QueryMsgDeliveredRequest) XXX_Unmarshal(b []byte) error
type QueryMsgDeliveredResponse ¶
type QueryMsgDeliveredResponse struct {
Delivered bool `protobuf:"varint,1,opt,name=delivered,proto3" json:"delivered,omitempty"`
}
QueryMsgDeliveredResponse is the response type if message was delivered
func (*QueryMsgDeliveredResponse) Descriptor ¶
func (*QueryMsgDeliveredResponse) Descriptor() ([]byte, []int)
func (*QueryMsgDeliveredResponse) GetDelivered ¶
func (m *QueryMsgDeliveredResponse) GetDelivered() bool
func (*QueryMsgDeliveredResponse) Marshal ¶
func (m *QueryMsgDeliveredResponse) Marshal() (dAtA []byte, err error)
func (*QueryMsgDeliveredResponse) MarshalTo ¶
func (m *QueryMsgDeliveredResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMsgDeliveredResponse) MarshalToSizedBuffer ¶
func (m *QueryMsgDeliveredResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMsgDeliveredResponse) ProtoMessage ¶
func (*QueryMsgDeliveredResponse) ProtoMessage()
func (*QueryMsgDeliveredResponse) Reset ¶
func (m *QueryMsgDeliveredResponse) Reset()
func (*QueryMsgDeliveredResponse) Size ¶
func (m *QueryMsgDeliveredResponse) Size() (n int)
func (*QueryMsgDeliveredResponse) String ¶
func (m *QueryMsgDeliveredResponse) String() string
func (*QueryMsgDeliveredResponse) Unmarshal ¶
func (m *QueryMsgDeliveredResponse) Unmarshal(dAtA []byte) error
func (*QueryMsgDeliveredResponse) XXX_DiscardUnknown ¶
func (m *QueryMsgDeliveredResponse) XXX_DiscardUnknown()
func (*QueryMsgDeliveredResponse) XXX_Marshal ¶
func (m *QueryMsgDeliveredResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMsgDeliveredResponse) XXX_Merge ¶
func (m *QueryMsgDeliveredResponse) XXX_Merge(src proto.Message)
func (*QueryMsgDeliveredResponse) XXX_Size ¶
func (m *QueryMsgDeliveredResponse) XXX_Size() int
func (*QueryMsgDeliveredResponse) XXX_Unmarshal ¶
func (m *QueryMsgDeliveredResponse) XXX_Unmarshal(b []byte) error
type QueryRecipientsIsmIdRequest ¶
type QueryRecipientsIsmIdRequest struct {
Recipient []byte `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
}
QueryRecipientsIsmIdRequest is the request type to get the ISM ID
func (*QueryRecipientsIsmIdRequest) Descriptor ¶
func (*QueryRecipientsIsmIdRequest) Descriptor() ([]byte, []int)
func (*QueryRecipientsIsmIdRequest) GetRecipient ¶
func (m *QueryRecipientsIsmIdRequest) GetRecipient() []byte
func (*QueryRecipientsIsmIdRequest) Marshal ¶
func (m *QueryRecipientsIsmIdRequest) Marshal() (dAtA []byte, err error)
func (*QueryRecipientsIsmIdRequest) MarshalTo ¶
func (m *QueryRecipientsIsmIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRecipientsIsmIdRequest) MarshalToSizedBuffer ¶
func (m *QueryRecipientsIsmIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRecipientsIsmIdRequest) ProtoMessage ¶
func (*QueryRecipientsIsmIdRequest) ProtoMessage()
func (*QueryRecipientsIsmIdRequest) Reset ¶
func (m *QueryRecipientsIsmIdRequest) Reset()
func (*QueryRecipientsIsmIdRequest) Size ¶
func (m *QueryRecipientsIsmIdRequest) Size() (n int)
func (*QueryRecipientsIsmIdRequest) String ¶
func (m *QueryRecipientsIsmIdRequest) String() string
func (*QueryRecipientsIsmIdRequest) Unmarshal ¶
func (m *QueryRecipientsIsmIdRequest) Unmarshal(dAtA []byte) error
func (*QueryRecipientsIsmIdRequest) XXX_DiscardUnknown ¶
func (m *QueryRecipientsIsmIdRequest) XXX_DiscardUnknown()
func (*QueryRecipientsIsmIdRequest) XXX_Marshal ¶
func (m *QueryRecipientsIsmIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRecipientsIsmIdRequest) XXX_Merge ¶
func (m *QueryRecipientsIsmIdRequest) XXX_Merge(src proto.Message)
func (*QueryRecipientsIsmIdRequest) XXX_Size ¶
func (m *QueryRecipientsIsmIdRequest) XXX_Size() int
func (*QueryRecipientsIsmIdRequest) XXX_Unmarshal ¶
func (m *QueryRecipientsIsmIdRequest) XXX_Unmarshal(b []byte) error
type QueryRecipientsIsmIdResponse ¶
type QueryRecipientsIsmIdResponse struct {
IsmId uint32 `protobuf:"varint,1,opt,name=ism_id,json=ismId,proto3" json:"ism_id,omitempty"`
}
QueryRecipientsIsmIdResponse is the response type containing the ISM ID
func (*QueryRecipientsIsmIdResponse) Descriptor ¶
func (*QueryRecipientsIsmIdResponse) Descriptor() ([]byte, []int)
func (*QueryRecipientsIsmIdResponse) GetIsmId ¶
func (m *QueryRecipientsIsmIdResponse) GetIsmId() uint32
func (*QueryRecipientsIsmIdResponse) Marshal ¶
func (m *QueryRecipientsIsmIdResponse) Marshal() (dAtA []byte, err error)
func (*QueryRecipientsIsmIdResponse) MarshalTo ¶
func (m *QueryRecipientsIsmIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRecipientsIsmIdResponse) MarshalToSizedBuffer ¶
func (m *QueryRecipientsIsmIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRecipientsIsmIdResponse) ProtoMessage ¶
func (*QueryRecipientsIsmIdResponse) ProtoMessage()
func (*QueryRecipientsIsmIdResponse) Reset ¶
func (m *QueryRecipientsIsmIdResponse) Reset()
func (*QueryRecipientsIsmIdResponse) Size ¶
func (m *QueryRecipientsIsmIdResponse) Size() (n int)
func (*QueryRecipientsIsmIdResponse) String ¶
func (m *QueryRecipientsIsmIdResponse) String() string
func (*QueryRecipientsIsmIdResponse) Unmarshal ¶
func (m *QueryRecipientsIsmIdResponse) Unmarshal(dAtA []byte) error
func (*QueryRecipientsIsmIdResponse) XXX_DiscardUnknown ¶
func (m *QueryRecipientsIsmIdResponse) XXX_DiscardUnknown()
func (*QueryRecipientsIsmIdResponse) XXX_Marshal ¶
func (m *QueryRecipientsIsmIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRecipientsIsmIdResponse) XXX_Merge ¶
func (m *QueryRecipientsIsmIdResponse) XXX_Merge(src proto.Message)
func (*QueryRecipientsIsmIdResponse) XXX_Size ¶
func (m *QueryRecipientsIsmIdResponse) XXX_Size() int
func (*QueryRecipientsIsmIdResponse) XXX_Unmarshal ¶
func (m *QueryRecipientsIsmIdResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Get current tree metadata CurrentTreeMetadata(context.Context, *QueryCurrentTreeMetadataRequest) (*QueryCurrentTreeMetadataResponse, error) // Get domain Domain(context.Context, *QueryDomainRequest) (*QueryDomainResponse, error) // Get current tree CurrentTree(context.Context, *QueryCurrentTreeRequest) (*QueryCurrentTreeResponse, error) // Check if message was delivered MsgDelivered(context.Context, *QueryMsgDeliveredRequest) (*QueryMsgDeliveredResponse, error) // Query ISM ID from recipient RecipientsIsmId(context.Context, *QueryRecipientsIsmIdRequest) (*QueryRecipientsIsmIdResponse, error) }
QueryServer is the server API for Query service.
type Tree ¶
type Tree struct { // Count of items inserted to tree Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // Each item inserted Branch [][]byte `protobuf:"bytes,2,rep,name=branch,proto3" json:"branch,omitempty"` }
Hyperlane's tree
func (*Tree) Descriptor ¶
func (*Tree) ProtoMessage ¶
func (*Tree) ProtoMessage()
func (*Tree) XXX_DiscardUnknown ¶
func (m *Tree) XXX_DiscardUnknown()
func (*Tree) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Dispatch ¶
func (*UnimplementedMsgServer) Dispatch(ctx context.Context, req *MsgDispatch) (*MsgDispatchResponse, error)
func (*UnimplementedMsgServer) Process ¶
func (*UnimplementedMsgServer) Process(ctx context.Context, req *MsgProcess) (*MsgProcessResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) CurrentTree ¶
func (*UnimplementedQueryServer) CurrentTree(ctx context.Context, req *QueryCurrentTreeRequest) (*QueryCurrentTreeResponse, error)
func (*UnimplementedQueryServer) CurrentTreeMetadata ¶
func (*UnimplementedQueryServer) CurrentTreeMetadata(ctx context.Context, req *QueryCurrentTreeMetadataRequest) (*QueryCurrentTreeMetadataResponse, error)
func (*UnimplementedQueryServer) Domain ¶
func (*UnimplementedQueryServer) Domain(ctx context.Context, req *QueryDomainRequest) (*QueryDomainResponse, error)
func (*UnimplementedQueryServer) MsgDelivered ¶
func (*UnimplementedQueryServer) MsgDelivered(ctx context.Context, req *QueryMsgDeliveredRequest) (*QueryMsgDeliveredResponse, error)
func (*UnimplementedQueryServer) RecipientsIsmId ¶
func (*UnimplementedQueryServer) RecipientsIsmId(ctx context.Context, req *QueryRecipientsIsmIdRequest) (*QueryRecipientsIsmIdResponse, error)