Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CustomIsmKey(index uint32) []byte
- func DefaultIsmKey(origin uint32) []byte
- func MustPackAbstractIsm(ism AbstractIsm) *codectypes.Any
- func PackAbstractIsm(ism AbstractIsm) (*codectypes.Any, error)
- 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 AbstractIsm
- type CustomIsm
- func (*CustomIsm) Descriptor() ([]byte, []int)
- func (m *CustomIsm) GetAbstractIsm() *types.Any
- func (m *CustomIsm) GetIndex() uint32
- func (m *CustomIsm) Marshal() (dAtA []byte, err error)
- func (m *CustomIsm) MarshalTo(dAtA []byte) (int, error)
- func (m *CustomIsm) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CustomIsm) ProtoMessage()
- func (m *CustomIsm) Reset()
- func (m *CustomIsm) Size() (n int)
- func (m *CustomIsm) String() string
- func (m *CustomIsm) Unmarshal(dAtA []byte) error
- func (m *CustomIsm) XXX_DiscardUnknown()
- func (m *CustomIsm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomIsm) XXX_Merge(src proto.Message)
- func (m *CustomIsm) XXX_Size() int
- func (m *CustomIsm) XXX_Unmarshal(b []byte) error
- type DefaultIsm
- func (*DefaultIsm) Descriptor() ([]byte, []int)
- func (m *DefaultIsm) GetAbstractIsm() *types.Any
- func (m *DefaultIsm) GetOrigin() uint32
- func (m *DefaultIsm) Marshal() (dAtA []byte, err error)
- func (m *DefaultIsm) MarshalTo(dAtA []byte) (int, error)
- func (m *DefaultIsm) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DefaultIsm) ProtoMessage()
- func (m *DefaultIsm) Reset()
- func (m *DefaultIsm) Size() (n int)
- func (m *DefaultIsm) String() string
- func (m *DefaultIsm) Unmarshal(dAtA []byte) error
- func (m *DefaultIsm) XXX_DiscardUnknown()
- func (m *DefaultIsm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DefaultIsm) XXX_Merge(src proto.Message)
- func (m *DefaultIsm) XXX_Size() int
- func (m *DefaultIsm) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCustomIsm() []CustomIsm
- func (m *GenesisState) GetDefaultIsm() []DefaultIsm
- 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 MsgClient
- type MsgCreateIsm
- func (*MsgCreateIsm) Descriptor() ([]byte, []int)
- func (m MsgCreateIsm) GetSigners() []sdk.AccAddress
- func (m *MsgCreateIsm) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateIsm) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateIsm) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateIsm) ProtoMessage()
- func (m *MsgCreateIsm) Reset()
- func (m *MsgCreateIsm) Size() (n int)
- func (m *MsgCreateIsm) String() string
- func (m *MsgCreateIsm) Unmarshal(dAtA []byte) error
- func (m MsgCreateIsm) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m MsgCreateIsm) ValidateBasic() error
- func (m *MsgCreateIsm) XXX_DiscardUnknown()
- func (m *MsgCreateIsm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateIsm) XXX_Merge(src proto.Message)
- func (m *MsgCreateIsm) XXX_Size() int
- func (m *MsgCreateIsm) XXX_Unmarshal(b []byte) error
- type MsgCreateIsmResponse
- func (*MsgCreateIsmResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateIsmResponse) GetIsmId() uint32
- func (m *MsgCreateIsmResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateIsmResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateIsmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateIsmResponse) ProtoMessage()
- func (m *MsgCreateIsmResponse) Reset()
- func (m *MsgCreateIsmResponse) Size() (n int)
- func (m *MsgCreateIsmResponse) String() string
- func (m *MsgCreateIsmResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateIsmResponse) XXX_DiscardUnknown()
- func (m *MsgCreateIsmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateIsmResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateIsmResponse) XXX_Size() int
- func (m *MsgCreateIsmResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetDefaultIsm
- func (*MsgSetDefaultIsm) Descriptor() ([]byte, []int)
- func (m MsgSetDefaultIsm) GetSigners() []sdk.AccAddress
- func (m *MsgSetDefaultIsm) Marshal() (dAtA []byte, err error)
- func (m *MsgSetDefaultIsm) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetDefaultIsm) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetDefaultIsm) ProtoMessage()
- func (m *MsgSetDefaultIsm) Reset()
- func (m *MsgSetDefaultIsm) Size() (n int)
- func (m *MsgSetDefaultIsm) String() string
- func (m *MsgSetDefaultIsm) Unmarshal(dAtA []byte) error
- func (m MsgSetDefaultIsm) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m MsgSetDefaultIsm) ValidateBasic() error
- func (m *MsgSetDefaultIsm) XXX_DiscardUnknown()
- func (m *MsgSetDefaultIsm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetDefaultIsm) XXX_Merge(src proto.Message)
- func (m *MsgSetDefaultIsm) XXX_Size() int
- func (m *MsgSetDefaultIsm) XXX_Unmarshal(b []byte) error
- type MsgSetDefaultIsmResponse
- func (*MsgSetDefaultIsmResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetDefaultIsmResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetDefaultIsmResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetDefaultIsmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetDefaultIsmResponse) ProtoMessage()
- func (m *MsgSetDefaultIsmResponse) Reset()
- func (m *MsgSetDefaultIsmResponse) Size() (n int)
- func (m *MsgSetDefaultIsmResponse) String() string
- func (m *MsgSetDefaultIsmResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetDefaultIsmResponse) XXX_DiscardUnknown()
- func (m *MsgSetDefaultIsmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetDefaultIsmResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetDefaultIsmResponse) XXX_Size() int
- func (m *MsgSetDefaultIsmResponse) XXX_Unmarshal(b []byte) error
- type QueryAllCustomIsmsRequest
- func (*QueryAllCustomIsmsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllCustomIsmsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllCustomIsmsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllCustomIsmsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllCustomIsmsRequest) ProtoMessage()
- func (m *QueryAllCustomIsmsRequest) Reset()
- func (m *QueryAllCustomIsmsRequest) Size() (n int)
- func (m *QueryAllCustomIsmsRequest) String() string
- func (m *QueryAllCustomIsmsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllCustomIsmsRequest) XXX_DiscardUnknown()
- func (m *QueryAllCustomIsmsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllCustomIsmsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllCustomIsmsRequest) XXX_Size() int
- func (m *QueryAllCustomIsmsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllCustomIsmsResponse
- func (*QueryAllCustomIsmsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllCustomIsmsResponse) GetCustomIsms() []*CustomIsm
- func (m *QueryAllCustomIsmsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllCustomIsmsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllCustomIsmsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllCustomIsmsResponse) ProtoMessage()
- func (m *QueryAllCustomIsmsResponse) Reset()
- func (m *QueryAllCustomIsmsResponse) Size() (n int)
- func (m *QueryAllCustomIsmsResponse) String() string
- func (m *QueryAllCustomIsmsResponse) Unmarshal(dAtA []byte) error
- func (r QueryAllCustomIsmsResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryAllCustomIsmsResponse) XXX_DiscardUnknown()
- func (m *QueryAllCustomIsmsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllCustomIsmsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllCustomIsmsResponse) XXX_Size() int
- func (m *QueryAllCustomIsmsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllDefaultIsmsRequest
- func (*QueryAllDefaultIsmsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllDefaultIsmsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDefaultIsmsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDefaultIsmsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllDefaultIsmsRequest) ProtoMessage()
- func (m *QueryAllDefaultIsmsRequest) Reset()
- func (m *QueryAllDefaultIsmsRequest) Size() (n int)
- func (m *QueryAllDefaultIsmsRequest) String() string
- func (m *QueryAllDefaultIsmsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllDefaultIsmsRequest) XXX_DiscardUnknown()
- func (m *QueryAllDefaultIsmsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDefaultIsmsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllDefaultIsmsRequest) XXX_Size() int
- func (m *QueryAllDefaultIsmsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllDefaultIsmsResponse
- func (*QueryAllDefaultIsmsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllDefaultIsmsResponse) GetDefaultIsms() []*DefaultIsm
- func (m *QueryAllDefaultIsmsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllDefaultIsmsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllDefaultIsmsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllDefaultIsmsResponse) ProtoMessage()
- func (m *QueryAllDefaultIsmsResponse) Reset()
- func (m *QueryAllDefaultIsmsResponse) Size() (n int)
- func (m *QueryAllDefaultIsmsResponse) String() string
- func (m *QueryAllDefaultIsmsResponse) Unmarshal(dAtA []byte) error
- func (r QueryAllDefaultIsmsResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryAllDefaultIsmsResponse) XXX_DiscardUnknown()
- func (m *QueryAllDefaultIsmsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllDefaultIsmsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllDefaultIsmsResponse) XXX_Size() int
- func (m *QueryAllDefaultIsmsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCustomIsmRequest
- func (*QueryCustomIsmRequest) Descriptor() ([]byte, []int)
- func (m *QueryCustomIsmRequest) GetIsmId() uint32
- func (m *QueryCustomIsmRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCustomIsmRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCustomIsmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCustomIsmRequest) ProtoMessage()
- func (m *QueryCustomIsmRequest) Reset()
- func (m *QueryCustomIsmRequest) Size() (n int)
- func (m *QueryCustomIsmRequest) String() string
- func (m *QueryCustomIsmRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCustomIsmRequest) XXX_DiscardUnknown()
- func (m *QueryCustomIsmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCustomIsmRequest) XXX_Merge(src proto.Message)
- func (m *QueryCustomIsmRequest) XXX_Size() int
- func (m *QueryCustomIsmRequest) XXX_Unmarshal(b []byte) error
- type QueryCustomIsmResponse
- func (*QueryCustomIsmResponse) Descriptor() ([]byte, []int)
- func (m *QueryCustomIsmResponse) GetCustomIsm() *types.Any
- func (m *QueryCustomIsmResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCustomIsmResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCustomIsmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCustomIsmResponse) ProtoMessage()
- func (m *QueryCustomIsmResponse) Reset()
- func (m *QueryCustomIsmResponse) Size() (n int)
- func (m *QueryCustomIsmResponse) String() string
- func (m *QueryCustomIsmResponse) Unmarshal(dAtA []byte) error
- func (r QueryCustomIsmResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryCustomIsmResponse) XXX_DiscardUnknown()
- func (m *QueryCustomIsmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCustomIsmResponse) XXX_Merge(src proto.Message)
- func (m *QueryCustomIsmResponse) XXX_Size() int
- func (m *QueryCustomIsmResponse) XXX_Unmarshal(b []byte) error
- type QueryOriginsDefaultIsmRequest
- func (*QueryOriginsDefaultIsmRequest) Descriptor() ([]byte, []int)
- func (m *QueryOriginsDefaultIsmRequest) GetOrigin() uint32
- func (m *QueryOriginsDefaultIsmRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOriginsDefaultIsmRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOriginsDefaultIsmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOriginsDefaultIsmRequest) ProtoMessage()
- func (m *QueryOriginsDefaultIsmRequest) Reset()
- func (m *QueryOriginsDefaultIsmRequest) Size() (n int)
- func (m *QueryOriginsDefaultIsmRequest) String() string
- func (m *QueryOriginsDefaultIsmRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOriginsDefaultIsmRequest) XXX_DiscardUnknown()
- func (m *QueryOriginsDefaultIsmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOriginsDefaultIsmRequest) XXX_Merge(src proto.Message)
- func (m *QueryOriginsDefaultIsmRequest) XXX_Size() int
- func (m *QueryOriginsDefaultIsmRequest) XXX_Unmarshal(b []byte) error
- type QueryOriginsDefaultIsmResponse
- func (*QueryOriginsDefaultIsmResponse) Descriptor() ([]byte, []int)
- func (m *QueryOriginsDefaultIsmResponse) GetDefaultIsm() *types.Any
- func (m *QueryOriginsDefaultIsmResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOriginsDefaultIsmResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOriginsDefaultIsmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOriginsDefaultIsmResponse) ProtoMessage()
- func (m *QueryOriginsDefaultIsmResponse) Reset()
- func (m *QueryOriginsDefaultIsmResponse) Size() (n int)
- func (m *QueryOriginsDefaultIsmResponse) String() string
- func (m *QueryOriginsDefaultIsmResponse) Unmarshal(dAtA []byte) error
- func (r QueryOriginsDefaultIsmResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryOriginsDefaultIsmResponse) XXX_DiscardUnknown()
- func (m *QueryOriginsDefaultIsmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOriginsDefaultIsmResponse) XXX_Merge(src proto.Message)
- func (m *QueryOriginsDefaultIsmResponse) XXX_Size() int
- func (m *QueryOriginsDefaultIsmResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllCustomIsms(ctx context.Context, req *QueryAllCustomIsmsRequest) (*QueryAllCustomIsmsResponse, error)
- func (*UnimplementedQueryServer) AllDefaultIsms(ctx context.Context, req *QueryAllDefaultIsmsRequest) (*QueryAllDefaultIsmsResponse, error)
- func (*UnimplementedQueryServer) CustomIsm(ctx context.Context, req *QueryCustomIsmRequest) (*QueryCustomIsmResponse, error)
- func (*UnimplementedQueryServer) OriginsDefaultIsm(ctx context.Context, req *QueryOriginsDefaultIsmRequest) (*QueryOriginsDefaultIsmResponse, error)
Constants ¶
const ( EventTypeSetDefaultIsm = "set_default_ism" EventTypeCreateCustomIsm = "create_custom_ism" )
Hyperlane ISM event types
const ( AttributeKeyOrigin = "origin" AttributeKeyIndex = "index" AttributeKeyThreshold = "threshold" AttributeKeyValidator = "validator" )
Hyperlane ISM attribute keys
const ( // ModuleName for the hyperlane mailbox ModuleName = "hyperlane-ism" // StoreKey is the store key string for hyperlane mailbox StoreKey = ModuleName KeyOriginsDefaultIsm = "defaultIsm" KeyCustomIsm = "customIsm" KeyNextCustomIsmIndex = "nextCustomIsmIndex" )
Variables ¶
var ( ErrInvalid = sdkerrors.Register(ModuleName, 1, "invalid") ErrInvalidOriginIsm = sdkerrors.Register(ModuleName, 2, "no ism found for origin") ErrInvalidIsmSet = sdkerrors.Register(ModuleName, 3, "invalid ism set") ErrInvalidValSet = sdkerrors.Register(ModuleName, 4, "invalid val set") ErrInvalidThreshold = sdkerrors.Register(ModuleName, 5, "invalid threshold") ErrPackAny = sdkerrors.Register(ModuleName, 6, "failed packing ism to any") ErrUnpackAny = sdkerrors.Register(ModuleName, 7, "failed unpacking ism from any") ErrVerifyMerkleProof = sdkerrors.Register(ModuleName, 8, "verify merkle proof failed") ErrVerifyValidatorSignatures = sdkerrors.Register(ModuleName, 9, "verify validator signatures failed") )
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 ( ErrInvalidLengthIsm = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIsm = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIsm = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func CustomIsmKey ¶
func DefaultIsmKey ¶
func MustPackAbstractIsm ¶
func MustPackAbstractIsm(ism AbstractIsm) *codectypes.Any
func PackAbstractIsm ¶
func PackAbstractIsm(ism AbstractIsm) (*codectypes.Any, error)
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 AbstractIsm ¶
type AbstractIsm interface { proto.Message Validate() error Verify(metadata []byte, message []byte) (bool, error) DefaultIsmEvent(origin uint32) sdk.Event CustomIsmEvent(index uint32) sdk.Event }
func MustUnpackAbstractIsm ¶
func MustUnpackAbstractIsm(any *codectypes.Any) AbstractIsm
func UnpackAbstractIsm ¶
func UnpackAbstractIsm(any *codectypes.Any) (AbstractIsm, error)
type CustomIsm ¶
type CustomIsm struct { Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` AbstractIsm *types.Any `protobuf:"bytes,2,opt,name=abstract_ism,json=abstractIsm,proto3" json:"abstract_ism,omitempty"` }
Hyperlane's custom ISM
func (*CustomIsm) Descriptor ¶
func (*CustomIsm) GetAbstractIsm ¶
func (*CustomIsm) MarshalToSizedBuffer ¶
func (*CustomIsm) ProtoMessage ¶
func (*CustomIsm) ProtoMessage()
func (*CustomIsm) XXX_DiscardUnknown ¶
func (m *CustomIsm) XXX_DiscardUnknown()
func (*CustomIsm) XXX_Marshal ¶
func (*CustomIsm) XXX_Unmarshal ¶
type DefaultIsm ¶
type DefaultIsm struct { Origin uint32 `protobuf:"varint,1,opt,name=origin,proto3" json:"origin,omitempty"` AbstractIsm *types.Any `protobuf:"bytes,2,opt,name=abstract_ism,json=abstractIsm,proto3" json:"abstract_ism,omitempty"` }
Hyperlane's default ISM
func (*DefaultIsm) Descriptor ¶
func (*DefaultIsm) Descriptor() ([]byte, []int)
func (*DefaultIsm) GetAbstractIsm ¶
func (m *DefaultIsm) GetAbstractIsm() *types.Any
func (*DefaultIsm) GetOrigin ¶
func (m *DefaultIsm) GetOrigin() uint32
func (*DefaultIsm) Marshal ¶
func (m *DefaultIsm) Marshal() (dAtA []byte, err error)
func (*DefaultIsm) MarshalToSizedBuffer ¶
func (m *DefaultIsm) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DefaultIsm) ProtoMessage ¶
func (*DefaultIsm) ProtoMessage()
func (*DefaultIsm) Reset ¶
func (m *DefaultIsm) Reset()
func (*DefaultIsm) Size ¶
func (m *DefaultIsm) Size() (n int)
func (*DefaultIsm) String ¶
func (m *DefaultIsm) String() string
func (*DefaultIsm) Unmarshal ¶
func (m *DefaultIsm) Unmarshal(dAtA []byte) error
func (*DefaultIsm) XXX_DiscardUnknown ¶
func (m *DefaultIsm) XXX_DiscardUnknown()
func (*DefaultIsm) XXX_Marshal ¶
func (m *DefaultIsm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DefaultIsm) XXX_Merge ¶
func (m *DefaultIsm) XXX_Merge(src proto.Message)
func (*DefaultIsm) XXX_Size ¶
func (m *DefaultIsm) XXX_Size() int
func (*DefaultIsm) XXX_Unmarshal ¶
func (m *DefaultIsm) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // Genesis default ISM DefaultIsm []DefaultIsm `protobuf:"bytes,1,rep,name=default_ism,json=defaultIsm,proto3" json:"default_ism"` // Custom Isms CustomIsm []CustomIsm `protobuf:"bytes,2,rep,name=custom_ism,json=customIsm,proto3" json:"custom_ism"` }
Hyperlane ISM's keeper genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetCustomIsm ¶
func (m *GenesisState) GetCustomIsm() []CustomIsm
func (*GenesisState) GetDefaultIsm ¶
func (m *GenesisState) GetDefaultIsm() []DefaultIsm
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 MsgClient ¶
type MsgClient interface { // Create a custom ISM CreateIsm(ctx context.Context, in *MsgCreateIsm, opts ...grpc.CallOption) (*MsgCreateIsmResponse, error) // SetDefaultIsm defines a rpc handler method for MsgSetDefaultIsm. SetDefaultIsm(ctx context.Context, in *MsgSetDefaultIsm, opts ...grpc.CallOption) (*MsgSetDefaultIsmResponse, 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 MsgCreateIsm ¶
type MsgCreateIsm struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` Ism *types.Any `protobuf:"bytes,2,opt,name=ism,proto3" json:"ism,omitempty"` }
MsgCreateIsm defines the request type to create a hyperlane ISM
func NewMsgCreateIsm ¶
func NewMsgCreateIsm(signer string, ism *codectypes.Any) *MsgCreateIsm
NewMsgCreateIsm creates a new MsgCreateIsm instance
func (*MsgCreateIsm) Descriptor ¶
func (*MsgCreateIsm) Descriptor() ([]byte, []int)
func (MsgCreateIsm) GetSigners ¶
func (m MsgCreateIsm) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgCreateIsm) Marshal ¶
func (m *MsgCreateIsm) Marshal() (dAtA []byte, err error)
func (*MsgCreateIsm) MarshalToSizedBuffer ¶
func (m *MsgCreateIsm) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateIsm) ProtoMessage ¶
func (*MsgCreateIsm) ProtoMessage()
func (*MsgCreateIsm) Reset ¶
func (m *MsgCreateIsm) Reset()
func (*MsgCreateIsm) Size ¶
func (m *MsgCreateIsm) Size() (n int)
func (*MsgCreateIsm) String ¶
func (m *MsgCreateIsm) String() string
func (*MsgCreateIsm) Unmarshal ¶
func (m *MsgCreateIsm) Unmarshal(dAtA []byte) error
func (MsgCreateIsm) UnpackInterfaces ¶
func (m MsgCreateIsm) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (MsgCreateIsm) ValidateBasic ¶
func (m MsgCreateIsm) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgCreateIsm) XXX_DiscardUnknown ¶
func (m *MsgCreateIsm) XXX_DiscardUnknown()
func (*MsgCreateIsm) XXX_Marshal ¶
func (m *MsgCreateIsm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateIsm) XXX_Merge ¶
func (m *MsgCreateIsm) XXX_Merge(src proto.Message)
func (*MsgCreateIsm) XXX_Size ¶
func (m *MsgCreateIsm) XXX_Size() int
func (*MsgCreateIsm) XXX_Unmarshal ¶
func (m *MsgCreateIsm) XXX_Unmarshal(b []byte) error
type MsgCreateIsmResponse ¶
type MsgCreateIsmResponse struct { // The unique ID assigned to the newly created ISM IsmId uint32 `protobuf:"varint,1,opt,name=ism_id,json=ismId,proto3" json:"ism_id,omitempty"` }
MsgCreateIsmResponse deines the MsgCreateIsm response type
func (*MsgCreateIsmResponse) Descriptor ¶
func (*MsgCreateIsmResponse) Descriptor() ([]byte, []int)
func (*MsgCreateIsmResponse) GetIsmId ¶
func (m *MsgCreateIsmResponse) GetIsmId() uint32
func (*MsgCreateIsmResponse) Marshal ¶
func (m *MsgCreateIsmResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateIsmResponse) MarshalTo ¶
func (m *MsgCreateIsmResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateIsmResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateIsmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateIsmResponse) ProtoMessage ¶
func (*MsgCreateIsmResponse) ProtoMessage()
func (*MsgCreateIsmResponse) Reset ¶
func (m *MsgCreateIsmResponse) Reset()
func (*MsgCreateIsmResponse) Size ¶
func (m *MsgCreateIsmResponse) Size() (n int)
func (*MsgCreateIsmResponse) String ¶
func (m *MsgCreateIsmResponse) String() string
func (*MsgCreateIsmResponse) Unmarshal ¶
func (m *MsgCreateIsmResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateIsmResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateIsmResponse) XXX_DiscardUnknown()
func (*MsgCreateIsmResponse) XXX_Marshal ¶
func (m *MsgCreateIsmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateIsmResponse) XXX_Merge ¶
func (m *MsgCreateIsmResponse) XXX_Merge(src proto.Message)
func (*MsgCreateIsmResponse) XXX_Size ¶
func (m *MsgCreateIsmResponse) XXX_Size() int
func (*MsgCreateIsmResponse) XXX_Unmarshal ¶
func (m *MsgCreateIsmResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Create a custom ISM CreateIsm(context.Context, *MsgCreateIsm) (*MsgCreateIsmResponse, error) // SetDefaultIsm defines a rpc handler method for MsgSetDefaultIsm. SetDefaultIsm(context.Context, *MsgSetDefaultIsm) (*MsgSetDefaultIsmResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetDefaultIsm ¶
type MsgSetDefaultIsm struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` Isms []*DefaultIsm `protobuf:"bytes,2,rep,name=isms,proto3" json:"isms,omitempty"` }
MsgSetDefaultIsm defines the request type for the SetDefaultIsm rpc.
func NewMsgSetDefaultIsm ¶
func NewMsgSetDefaultIsm(signer string, isms []*DefaultIsm) *MsgSetDefaultIsm
NewMsgSetDefaultIsm creates a new MsgSetDefaultIsm instance
func (*MsgSetDefaultIsm) Descriptor ¶
func (*MsgSetDefaultIsm) Descriptor() ([]byte, []int)
func (MsgSetDefaultIsm) GetSigners ¶
func (m MsgSetDefaultIsm) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgSetDefaultIsm) Marshal ¶
func (m *MsgSetDefaultIsm) Marshal() (dAtA []byte, err error)
func (*MsgSetDefaultIsm) MarshalToSizedBuffer ¶
func (m *MsgSetDefaultIsm) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetDefaultIsm) ProtoMessage ¶
func (*MsgSetDefaultIsm) ProtoMessage()
func (*MsgSetDefaultIsm) Reset ¶
func (m *MsgSetDefaultIsm) Reset()
func (*MsgSetDefaultIsm) Size ¶
func (m *MsgSetDefaultIsm) Size() (n int)
func (*MsgSetDefaultIsm) String ¶
func (m *MsgSetDefaultIsm) String() string
func (*MsgSetDefaultIsm) Unmarshal ¶
func (m *MsgSetDefaultIsm) Unmarshal(dAtA []byte) error
func (MsgSetDefaultIsm) UnpackInterfaces ¶
func (m MsgSetDefaultIsm) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (MsgSetDefaultIsm) ValidateBasic ¶
func (m MsgSetDefaultIsm) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgSetDefaultIsm) XXX_DiscardUnknown ¶
func (m *MsgSetDefaultIsm) XXX_DiscardUnknown()
func (*MsgSetDefaultIsm) XXX_Marshal ¶
func (m *MsgSetDefaultIsm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetDefaultIsm) XXX_Merge ¶
func (m *MsgSetDefaultIsm) XXX_Merge(src proto.Message)
func (*MsgSetDefaultIsm) XXX_Size ¶
func (m *MsgSetDefaultIsm) XXX_Size() int
func (*MsgSetDefaultIsm) XXX_Unmarshal ¶
func (m *MsgSetDefaultIsm) XXX_Unmarshal(b []byte) error
type MsgSetDefaultIsmResponse ¶
type MsgSetDefaultIsmResponse struct{}
MsgSetDefaultIsmResponse defines the Msg/SetDefaultIsm response type
func (*MsgSetDefaultIsmResponse) Descriptor ¶
func (*MsgSetDefaultIsmResponse) Descriptor() ([]byte, []int)
func (*MsgSetDefaultIsmResponse) Marshal ¶
func (m *MsgSetDefaultIsmResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetDefaultIsmResponse) MarshalTo ¶
func (m *MsgSetDefaultIsmResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetDefaultIsmResponse) MarshalToSizedBuffer ¶
func (m *MsgSetDefaultIsmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetDefaultIsmResponse) ProtoMessage ¶
func (*MsgSetDefaultIsmResponse) ProtoMessage()
func (*MsgSetDefaultIsmResponse) Reset ¶
func (m *MsgSetDefaultIsmResponse) Reset()
func (*MsgSetDefaultIsmResponse) Size ¶
func (m *MsgSetDefaultIsmResponse) Size() (n int)
func (*MsgSetDefaultIsmResponse) String ¶
func (m *MsgSetDefaultIsmResponse) String() string
func (*MsgSetDefaultIsmResponse) Unmarshal ¶
func (m *MsgSetDefaultIsmResponse) Unmarshal(dAtA []byte) error
func (*MsgSetDefaultIsmResponse) XXX_DiscardUnknown ¶
func (m *MsgSetDefaultIsmResponse) XXX_DiscardUnknown()
func (*MsgSetDefaultIsmResponse) XXX_Marshal ¶
func (m *MsgSetDefaultIsmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetDefaultIsmResponse) XXX_Merge ¶
func (m *MsgSetDefaultIsmResponse) XXX_Merge(src proto.Message)
func (*MsgSetDefaultIsmResponse) XXX_Size ¶
func (m *MsgSetDefaultIsmResponse) XXX_Size() int
func (*MsgSetDefaultIsmResponse) XXX_Unmarshal ¶
func (m *MsgSetDefaultIsmResponse) XXX_Unmarshal(b []byte) error
type QueryAllCustomIsmsRequest ¶
type QueryAllCustomIsmsRequest struct{}
QueryAllCustomIsmRequest is the request type for the AllCustomIsms RPC method.
func (*QueryAllCustomIsmsRequest) Descriptor ¶
func (*QueryAllCustomIsmsRequest) Descriptor() ([]byte, []int)
func (*QueryAllCustomIsmsRequest) Marshal ¶
func (m *QueryAllCustomIsmsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllCustomIsmsRequest) MarshalTo ¶
func (m *QueryAllCustomIsmsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllCustomIsmsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllCustomIsmsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllCustomIsmsRequest) ProtoMessage ¶
func (*QueryAllCustomIsmsRequest) ProtoMessage()
func (*QueryAllCustomIsmsRequest) Reset ¶
func (m *QueryAllCustomIsmsRequest) Reset()
func (*QueryAllCustomIsmsRequest) Size ¶
func (m *QueryAllCustomIsmsRequest) Size() (n int)
func (*QueryAllCustomIsmsRequest) String ¶
func (m *QueryAllCustomIsmsRequest) String() string
func (*QueryAllCustomIsmsRequest) Unmarshal ¶
func (m *QueryAllCustomIsmsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllCustomIsmsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllCustomIsmsRequest) XXX_DiscardUnknown()
func (*QueryAllCustomIsmsRequest) XXX_Marshal ¶
func (m *QueryAllCustomIsmsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllCustomIsmsRequest) XXX_Merge ¶
func (m *QueryAllCustomIsmsRequest) XXX_Merge(src proto.Message)
func (*QueryAllCustomIsmsRequest) XXX_Size ¶
func (m *QueryAllCustomIsmsRequest) XXX_Size() int
func (*QueryAllCustomIsmsRequest) XXX_Unmarshal ¶
func (m *QueryAllCustomIsmsRequest) XXX_Unmarshal(b []byte) error
type QueryAllCustomIsmsResponse ¶
type QueryAllCustomIsmsResponse struct {
CustomIsms []*CustomIsm `protobuf:"bytes,1,rep,name=custom_isms,json=customIsms,proto3" json:"custom_isms,omitempty"`
}
QueryAllCustomIsmResponse is the response type for the AllCustomIsms RPC method.
func (*QueryAllCustomIsmsResponse) Descriptor ¶
func (*QueryAllCustomIsmsResponse) Descriptor() ([]byte, []int)
func (*QueryAllCustomIsmsResponse) GetCustomIsms ¶
func (m *QueryAllCustomIsmsResponse) GetCustomIsms() []*CustomIsm
func (*QueryAllCustomIsmsResponse) Marshal ¶
func (m *QueryAllCustomIsmsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllCustomIsmsResponse) MarshalTo ¶
func (m *QueryAllCustomIsmsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllCustomIsmsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllCustomIsmsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllCustomIsmsResponse) ProtoMessage ¶
func (*QueryAllCustomIsmsResponse) ProtoMessage()
func (*QueryAllCustomIsmsResponse) Reset ¶
func (m *QueryAllCustomIsmsResponse) Reset()
func (*QueryAllCustomIsmsResponse) Size ¶
func (m *QueryAllCustomIsmsResponse) Size() (n int)
func (*QueryAllCustomIsmsResponse) String ¶
func (m *QueryAllCustomIsmsResponse) String() string
func (*QueryAllCustomIsmsResponse) Unmarshal ¶
func (m *QueryAllCustomIsmsResponse) Unmarshal(dAtA []byte) error
func (QueryAllCustomIsmsResponse) UnpackInterfaces ¶
func (r QueryAllCustomIsmsResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (*QueryAllCustomIsmsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllCustomIsmsResponse) XXX_DiscardUnknown()
func (*QueryAllCustomIsmsResponse) XXX_Marshal ¶
func (m *QueryAllCustomIsmsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllCustomIsmsResponse) XXX_Merge ¶
func (m *QueryAllCustomIsmsResponse) XXX_Merge(src proto.Message)
func (*QueryAllCustomIsmsResponse) XXX_Size ¶
func (m *QueryAllCustomIsmsResponse) XXX_Size() int
func (*QueryAllCustomIsmsResponse) XXX_Unmarshal ¶
func (m *QueryAllCustomIsmsResponse) XXX_Unmarshal(b []byte) error
type QueryAllDefaultIsmsRequest ¶
type QueryAllDefaultIsmsRequest struct{}
QueryAllDefaultIsmRequest is the request type for the AllDefaultIsms RPC method.
func (*QueryAllDefaultIsmsRequest) Descriptor ¶
func (*QueryAllDefaultIsmsRequest) Descriptor() ([]byte, []int)
func (*QueryAllDefaultIsmsRequest) Marshal ¶
func (m *QueryAllDefaultIsmsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllDefaultIsmsRequest) MarshalTo ¶
func (m *QueryAllDefaultIsmsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDefaultIsmsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllDefaultIsmsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDefaultIsmsRequest) ProtoMessage ¶
func (*QueryAllDefaultIsmsRequest) ProtoMessage()
func (*QueryAllDefaultIsmsRequest) Reset ¶
func (m *QueryAllDefaultIsmsRequest) Reset()
func (*QueryAllDefaultIsmsRequest) Size ¶
func (m *QueryAllDefaultIsmsRequest) Size() (n int)
func (*QueryAllDefaultIsmsRequest) String ¶
func (m *QueryAllDefaultIsmsRequest) String() string
func (*QueryAllDefaultIsmsRequest) Unmarshal ¶
func (m *QueryAllDefaultIsmsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllDefaultIsmsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllDefaultIsmsRequest) XXX_DiscardUnknown()
func (*QueryAllDefaultIsmsRequest) XXX_Marshal ¶
func (m *QueryAllDefaultIsmsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDefaultIsmsRequest) XXX_Merge ¶
func (m *QueryAllDefaultIsmsRequest) XXX_Merge(src proto.Message)
func (*QueryAllDefaultIsmsRequest) XXX_Size ¶
func (m *QueryAllDefaultIsmsRequest) XXX_Size() int
func (*QueryAllDefaultIsmsRequest) XXX_Unmarshal ¶
func (m *QueryAllDefaultIsmsRequest) XXX_Unmarshal(b []byte) error
type QueryAllDefaultIsmsResponse ¶
type QueryAllDefaultIsmsResponse struct {
DefaultIsms []*DefaultIsm `protobuf:"bytes,1,rep,name=default_isms,json=defaultIsms,proto3" json:"default_isms,omitempty"`
}
QueryAllDefaultIsmResponse is the response type for the AllDefaultIsms RPC method.
func (*QueryAllDefaultIsmsResponse) Descriptor ¶
func (*QueryAllDefaultIsmsResponse) Descriptor() ([]byte, []int)
func (*QueryAllDefaultIsmsResponse) GetDefaultIsms ¶
func (m *QueryAllDefaultIsmsResponse) GetDefaultIsms() []*DefaultIsm
func (*QueryAllDefaultIsmsResponse) Marshal ¶
func (m *QueryAllDefaultIsmsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllDefaultIsmsResponse) MarshalTo ¶
func (m *QueryAllDefaultIsmsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllDefaultIsmsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllDefaultIsmsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllDefaultIsmsResponse) ProtoMessage ¶
func (*QueryAllDefaultIsmsResponse) ProtoMessage()
func (*QueryAllDefaultIsmsResponse) Reset ¶
func (m *QueryAllDefaultIsmsResponse) Reset()
func (*QueryAllDefaultIsmsResponse) Size ¶
func (m *QueryAllDefaultIsmsResponse) Size() (n int)
func (*QueryAllDefaultIsmsResponse) String ¶
func (m *QueryAllDefaultIsmsResponse) String() string
func (*QueryAllDefaultIsmsResponse) Unmarshal ¶
func (m *QueryAllDefaultIsmsResponse) Unmarshal(dAtA []byte) error
func (QueryAllDefaultIsmsResponse) UnpackInterfaces ¶
func (r QueryAllDefaultIsmsResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (*QueryAllDefaultIsmsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllDefaultIsmsResponse) XXX_DiscardUnknown()
func (*QueryAllDefaultIsmsResponse) XXX_Marshal ¶
func (m *QueryAllDefaultIsmsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllDefaultIsmsResponse) XXX_Merge ¶
func (m *QueryAllDefaultIsmsResponse) XXX_Merge(src proto.Message)
func (*QueryAllDefaultIsmsResponse) XXX_Size ¶
func (m *QueryAllDefaultIsmsResponse) XXX_Size() int
func (*QueryAllDefaultIsmsResponse) XXX_Unmarshal ¶
func (m *QueryAllDefaultIsmsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Get current default multisig ISM for an origin OriginsDefaultIsm(ctx context.Context, in *QueryOriginsDefaultIsmRequest, opts ...grpc.CallOption) (*QueryOriginsDefaultIsmResponse, error) // Get all current default multisig ISMs AllDefaultIsms(ctx context.Context, in *QueryAllDefaultIsmsRequest, opts ...grpc.CallOption) (*QueryAllDefaultIsmsResponse, error) // Get custom ISM CustomIsm(ctx context.Context, in *QueryCustomIsmRequest, opts ...grpc.CallOption) (*QueryCustomIsmResponse, error) // Get all custom ISMs AllCustomIsms(ctx context.Context, in *QueryAllCustomIsmsRequest, opts ...grpc.CallOption) (*QueryAllCustomIsmsResponse, 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 QueryCustomIsmRequest ¶
type QueryCustomIsmRequest struct {
IsmId uint32 `protobuf:"varint,1,opt,name=ism_id,json=ismId,proto3" json:"ism_id,omitempty"`
}
QueryCustomIsmRequest is the request type for the CustomIsm RPC method.
func (*QueryCustomIsmRequest) Descriptor ¶
func (*QueryCustomIsmRequest) Descriptor() ([]byte, []int)
func (*QueryCustomIsmRequest) GetIsmId ¶
func (m *QueryCustomIsmRequest) GetIsmId() uint32
func (*QueryCustomIsmRequest) Marshal ¶
func (m *QueryCustomIsmRequest) Marshal() (dAtA []byte, err error)
func (*QueryCustomIsmRequest) MarshalTo ¶
func (m *QueryCustomIsmRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCustomIsmRequest) MarshalToSizedBuffer ¶
func (m *QueryCustomIsmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCustomIsmRequest) ProtoMessage ¶
func (*QueryCustomIsmRequest) ProtoMessage()
func (*QueryCustomIsmRequest) Reset ¶
func (m *QueryCustomIsmRequest) Reset()
func (*QueryCustomIsmRequest) Size ¶
func (m *QueryCustomIsmRequest) Size() (n int)
func (*QueryCustomIsmRequest) String ¶
func (m *QueryCustomIsmRequest) String() string
func (*QueryCustomIsmRequest) Unmarshal ¶
func (m *QueryCustomIsmRequest) Unmarshal(dAtA []byte) error
func (*QueryCustomIsmRequest) XXX_DiscardUnknown ¶
func (m *QueryCustomIsmRequest) XXX_DiscardUnknown()
func (*QueryCustomIsmRequest) XXX_Marshal ¶
func (m *QueryCustomIsmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCustomIsmRequest) XXX_Merge ¶
func (m *QueryCustomIsmRequest) XXX_Merge(src proto.Message)
func (*QueryCustomIsmRequest) XXX_Size ¶
func (m *QueryCustomIsmRequest) XXX_Size() int
func (*QueryCustomIsmRequest) XXX_Unmarshal ¶
func (m *QueryCustomIsmRequest) XXX_Unmarshal(b []byte) error
type QueryCustomIsmResponse ¶
type QueryCustomIsmResponse struct {
CustomIsm *types.Any `protobuf:"bytes,1,opt,name=custom_ism,json=customIsm,proto3" json:"custom_ism,omitempty"`
}
QueryCustomIsmResponse is the response type for the CustomIsm RPC method.
func (*QueryCustomIsmResponse) Descriptor ¶
func (*QueryCustomIsmResponse) Descriptor() ([]byte, []int)
func (*QueryCustomIsmResponse) GetCustomIsm ¶
func (m *QueryCustomIsmResponse) GetCustomIsm() *types.Any
func (*QueryCustomIsmResponse) Marshal ¶
func (m *QueryCustomIsmResponse) Marshal() (dAtA []byte, err error)
func (*QueryCustomIsmResponse) MarshalTo ¶
func (m *QueryCustomIsmResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCustomIsmResponse) MarshalToSizedBuffer ¶
func (m *QueryCustomIsmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCustomIsmResponse) ProtoMessage ¶
func (*QueryCustomIsmResponse) ProtoMessage()
func (*QueryCustomIsmResponse) Reset ¶
func (m *QueryCustomIsmResponse) Reset()
func (*QueryCustomIsmResponse) Size ¶
func (m *QueryCustomIsmResponse) Size() (n int)
func (*QueryCustomIsmResponse) String ¶
func (m *QueryCustomIsmResponse) String() string
func (*QueryCustomIsmResponse) Unmarshal ¶
func (m *QueryCustomIsmResponse) Unmarshal(dAtA []byte) error
func (QueryCustomIsmResponse) UnpackInterfaces ¶
func (r QueryCustomIsmResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (*QueryCustomIsmResponse) XXX_DiscardUnknown ¶
func (m *QueryCustomIsmResponse) XXX_DiscardUnknown()
func (*QueryCustomIsmResponse) XXX_Marshal ¶
func (m *QueryCustomIsmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCustomIsmResponse) XXX_Merge ¶
func (m *QueryCustomIsmResponse) XXX_Merge(src proto.Message)
func (*QueryCustomIsmResponse) XXX_Size ¶
func (m *QueryCustomIsmResponse) XXX_Size() int
func (*QueryCustomIsmResponse) XXX_Unmarshal ¶
func (m *QueryCustomIsmResponse) XXX_Unmarshal(b []byte) error
type QueryOriginsDefaultIsmRequest ¶
type QueryOriginsDefaultIsmRequest struct {
Origin uint32 `protobuf:"varint,1,opt,name=origin,proto3" json:"origin,omitempty"`
}
QueryDefaultIsmRequest is the request type for the DefaultIsm RPC method.
func (*QueryOriginsDefaultIsmRequest) Descriptor ¶
func (*QueryOriginsDefaultIsmRequest) Descriptor() ([]byte, []int)
func (*QueryOriginsDefaultIsmRequest) GetOrigin ¶
func (m *QueryOriginsDefaultIsmRequest) GetOrigin() uint32
func (*QueryOriginsDefaultIsmRequest) Marshal ¶
func (m *QueryOriginsDefaultIsmRequest) Marshal() (dAtA []byte, err error)
func (*QueryOriginsDefaultIsmRequest) MarshalTo ¶
func (m *QueryOriginsDefaultIsmRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOriginsDefaultIsmRequest) MarshalToSizedBuffer ¶
func (m *QueryOriginsDefaultIsmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOriginsDefaultIsmRequest) ProtoMessage ¶
func (*QueryOriginsDefaultIsmRequest) ProtoMessage()
func (*QueryOriginsDefaultIsmRequest) Reset ¶
func (m *QueryOriginsDefaultIsmRequest) Reset()
func (*QueryOriginsDefaultIsmRequest) Size ¶
func (m *QueryOriginsDefaultIsmRequest) Size() (n int)
func (*QueryOriginsDefaultIsmRequest) String ¶
func (m *QueryOriginsDefaultIsmRequest) String() string
func (*QueryOriginsDefaultIsmRequest) Unmarshal ¶
func (m *QueryOriginsDefaultIsmRequest) Unmarshal(dAtA []byte) error
func (*QueryOriginsDefaultIsmRequest) XXX_DiscardUnknown ¶
func (m *QueryOriginsDefaultIsmRequest) XXX_DiscardUnknown()
func (*QueryOriginsDefaultIsmRequest) XXX_Marshal ¶
func (m *QueryOriginsDefaultIsmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOriginsDefaultIsmRequest) XXX_Merge ¶
func (m *QueryOriginsDefaultIsmRequest) XXX_Merge(src proto.Message)
func (*QueryOriginsDefaultIsmRequest) XXX_Size ¶
func (m *QueryOriginsDefaultIsmRequest) XXX_Size() int
func (*QueryOriginsDefaultIsmRequest) XXX_Unmarshal ¶
func (m *QueryOriginsDefaultIsmRequest) XXX_Unmarshal(b []byte) error
type QueryOriginsDefaultIsmResponse ¶
type QueryOriginsDefaultIsmResponse struct {
DefaultIsm *types.Any `protobuf:"bytes,1,opt,name=default_ism,json=defaultIsm,proto3" json:"default_ism,omitempty"`
}
QueryDefaultIsmResponse is the response type for the DefaultIsm RPC method.
func (*QueryOriginsDefaultIsmResponse) Descriptor ¶
func (*QueryOriginsDefaultIsmResponse) Descriptor() ([]byte, []int)
func (*QueryOriginsDefaultIsmResponse) GetDefaultIsm ¶
func (m *QueryOriginsDefaultIsmResponse) GetDefaultIsm() *types.Any
func (*QueryOriginsDefaultIsmResponse) Marshal ¶
func (m *QueryOriginsDefaultIsmResponse) Marshal() (dAtA []byte, err error)
func (*QueryOriginsDefaultIsmResponse) MarshalTo ¶
func (m *QueryOriginsDefaultIsmResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOriginsDefaultIsmResponse) MarshalToSizedBuffer ¶
func (m *QueryOriginsDefaultIsmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOriginsDefaultIsmResponse) ProtoMessage ¶
func (*QueryOriginsDefaultIsmResponse) ProtoMessage()
func (*QueryOriginsDefaultIsmResponse) Reset ¶
func (m *QueryOriginsDefaultIsmResponse) Reset()
func (*QueryOriginsDefaultIsmResponse) Size ¶
func (m *QueryOriginsDefaultIsmResponse) Size() (n int)
func (*QueryOriginsDefaultIsmResponse) String ¶
func (m *QueryOriginsDefaultIsmResponse) String() string
func (*QueryOriginsDefaultIsmResponse) Unmarshal ¶
func (m *QueryOriginsDefaultIsmResponse) Unmarshal(dAtA []byte) error
func (QueryOriginsDefaultIsmResponse) UnpackInterfaces ¶
func (r QueryOriginsDefaultIsmResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (*QueryOriginsDefaultIsmResponse) XXX_DiscardUnknown ¶
func (m *QueryOriginsDefaultIsmResponse) XXX_DiscardUnknown()
func (*QueryOriginsDefaultIsmResponse) XXX_Marshal ¶
func (m *QueryOriginsDefaultIsmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOriginsDefaultIsmResponse) XXX_Merge ¶
func (m *QueryOriginsDefaultIsmResponse) XXX_Merge(src proto.Message)
func (*QueryOriginsDefaultIsmResponse) XXX_Size ¶
func (m *QueryOriginsDefaultIsmResponse) XXX_Size() int
func (*QueryOriginsDefaultIsmResponse) XXX_Unmarshal ¶
func (m *QueryOriginsDefaultIsmResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Get current default multisig ISM for an origin OriginsDefaultIsm(context.Context, *QueryOriginsDefaultIsmRequest) (*QueryOriginsDefaultIsmResponse, error) // Get all current default multisig ISMs AllDefaultIsms(context.Context, *QueryAllDefaultIsmsRequest) (*QueryAllDefaultIsmsResponse, error) // Get custom ISM CustomIsm(context.Context, *QueryCustomIsmRequest) (*QueryCustomIsmResponse, error) // Get all custom ISMs AllCustomIsms(context.Context, *QueryAllCustomIsmsRequest) (*QueryAllCustomIsmsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateIsm ¶
func (*UnimplementedMsgServer) CreateIsm(ctx context.Context, req *MsgCreateIsm) (*MsgCreateIsmResponse, error)
func (*UnimplementedMsgServer) SetDefaultIsm ¶
func (*UnimplementedMsgServer) SetDefaultIsm(ctx context.Context, req *MsgSetDefaultIsm) (*MsgSetDefaultIsmResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllCustomIsms ¶
func (*UnimplementedQueryServer) AllCustomIsms(ctx context.Context, req *QueryAllCustomIsmsRequest) (*QueryAllCustomIsmsResponse, error)
func (*UnimplementedQueryServer) AllDefaultIsms ¶
func (*UnimplementedQueryServer) AllDefaultIsms(ctx context.Context, req *QueryAllDefaultIsmsRequest) (*QueryAllDefaultIsmsResponse, error)
func (*UnimplementedQueryServer) CustomIsm ¶
func (*UnimplementedQueryServer) CustomIsm(ctx context.Context, req *QueryCustomIsmRequest) (*QueryCustomIsmResponse, error)
func (*UnimplementedQueryServer) OriginsDefaultIsm ¶
func (*UnimplementedQueryServer) OriginsDefaultIsm(ctx context.Context, req *QueryOriginsDefaultIsmRequest) (*QueryOriginsDefaultIsmResponse, error)