Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func MarshalClientState(cdc codec.BinaryCodec, clientStateI exported.ClientState) ([]byte, error)
- func MarshalConsensusState(cdc codec.BinaryCodec, cs exported.ConsensusState) ([]byte, error)
- func MarshalHeader(cdc codec.BinaryCodec, h exported.Header) ([]byte, error)
- func MustMarshalClientState(cdc codec.BinaryCodec, clientState exported.ClientState) []byte
- func MustMarshalConsensusState(cdc codec.BinaryCodec, consensusState exported.ConsensusState) []byte
- func MustMarshalHeader(cdc codec.BinaryCodec, header exported.Header) []byte
- func MustPackConsensusState(consensusState exported.ConsensusState) *codectypes.Any
- func MustUnmarshalClientState(cdc codec.BinaryCodec, bz []byte) exported.ClientState
- func MustUnmarshalConsensusState(cdc codec.BinaryCodec, bz []byte) exported.ConsensusState
- func PackClientState(clientState exported.ClientState) (*codectypes.Any, error)
- func PackConsensusState(consensusState exported.ConsensusState) (*codectypes.Any, error)
- func PackHeader(header exported.Header) (*codectypes.Any, error)
- func ParseChainID(chainID string) uint64
- 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)
- func SetDefaultGenesisState(genesis GenesisState)
- func SetRevisionNumber(chainID string, revision uint64) (string, error)
- func UnmarshalClientState(cdc codec.BinaryCodec, bz []byte) (exported.ClientState, error)
- func UnmarshalConsensusState(cdc codec.BinaryCodec, bz []byte) (exported.ConsensusState, error)
- func UnmarshalHeader(cdc codec.BinaryCodec, bz []byte) (exported.Header, error)
- func UnpackClientState(any *codectypes.Any) (exported.ClientState, error)
- func UnpackConsensusState(any *codectypes.Any) (exported.ConsensusState, error)
- func UnpackHeader(any *codectypes.Any) (exported.Header, error)
- func ValidateClientType(clientType string) error
- type ClientConsensusStates
- func (*ClientConsensusStates) Descriptor() ([]byte, []int)
- func (m *ClientConsensusStates) GetChainName() string
- func (m *ClientConsensusStates) GetConsensusStates() []ConsensusStateWithHeight
- func (m *ClientConsensusStates) Marshal() (dAtA []byte, err error)
- func (m *ClientConsensusStates) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientConsensusStates) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientConsensusStates) ProtoMessage()
- func (m *ClientConsensusStates) Reset()
- func (m *ClientConsensusStates) Size() (n int)
- func (m *ClientConsensusStates) String() string
- func (m *ClientConsensusStates) Unmarshal(dAtA []byte) error
- func (ccs ClientConsensusStates) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *ClientConsensusStates) XXX_DiscardUnknown()
- func (m *ClientConsensusStates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientConsensusStates) XXX_Merge(src proto.Message)
- func (m *ClientConsensusStates) XXX_Size() int
- func (m *ClientConsensusStates) XXX_Unmarshal(b []byte) error
- type ClientsConsensusStates
- func (ccs ClientsConsensusStates) Len() int
- func (ccs ClientsConsensusStates) Less(i, j int) bool
- func (ccs ClientsConsensusStates) Sort() ClientsConsensusStates
- func (ccs ClientsConsensusStates) Swap(i, j int)
- func (ccs ClientsConsensusStates) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- type ConsensusStateWithHeight
- func (*ConsensusStateWithHeight) Descriptor() ([]byte, []int)
- func (m *ConsensusStateWithHeight) GetConsensusState() *types.Any
- func (m *ConsensusStateWithHeight) GetHeight() Height
- func (m *ConsensusStateWithHeight) Marshal() (dAtA []byte, err error)
- func (m *ConsensusStateWithHeight) MarshalTo(dAtA []byte) (int, error)
- func (m *ConsensusStateWithHeight) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConsensusStateWithHeight) ProtoMessage()
- func (m *ConsensusStateWithHeight) Reset()
- func (m *ConsensusStateWithHeight) Size() (n int)
- func (m *ConsensusStateWithHeight) String() string
- func (m *ConsensusStateWithHeight) Unmarshal(dAtA []byte) error
- func (cswh ConsensusStateWithHeight) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *ConsensusStateWithHeight) XXX_DiscardUnknown()
- func (m *ConsensusStateWithHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsensusStateWithHeight) XXX_Merge(src proto.Message)
- func (m *ConsensusStateWithHeight) XXX_Size() int
- func (m *ConsensusStateWithHeight) XXX_Unmarshal(b []byte) error
- type CreateClientProposal
- func (*CreateClientProposal) Descriptor() ([]byte, []int)
- func (cup *CreateClientProposal) GetDescription() string
- func (cup *CreateClientProposal) GetTitle() string
- func (m *CreateClientProposal) Marshal() (dAtA []byte, err error)
- func (m *CreateClientProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateClientProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (cup *CreateClientProposal) ProposalRoute() string
- func (cup *CreateClientProposal) ProposalType() string
- func (*CreateClientProposal) ProtoMessage()
- func (m *CreateClientProposal) Reset()
- func (m *CreateClientProposal) Size() (n int)
- func (m *CreateClientProposal) String() string
- func (m *CreateClientProposal) Unmarshal(dAtA []byte) error
- func (cup CreateClientProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (cup *CreateClientProposal) ValidateBasic() error
- func (m *CreateClientProposal) XXX_DiscardUnknown()
- func (m *CreateClientProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateClientProposal) XXX_Merge(src proto.Message)
- func (m *CreateClientProposal) XXX_Size() int
- func (m *CreateClientProposal) XXX_Unmarshal(b []byte) error
- type GenesisMetadata
- func (*GenesisMetadata) Descriptor() ([]byte, []int)
- func (gm GenesisMetadata) GetKey() []byte
- func (gm GenesisMetadata) GetValue() []byte
- func (m *GenesisMetadata) Marshal() (dAtA []byte, err error)
- func (m *GenesisMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisMetadata) ProtoMessage()
- func (m *GenesisMetadata) Reset()
- func (m *GenesisMetadata) Size() (n int)
- func (m *GenesisMetadata) String() string
- func (m *GenesisMetadata) Unmarshal(dAtA []byte) error
- func (gm GenesisMetadata) Validate() error
- func (m *GenesisMetadata) XXX_DiscardUnknown()
- func (m *GenesisMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisMetadata) XXX_Merge(src proto.Message)
- func (m *GenesisMetadata) XXX_Size() int
- func (m *GenesisMetadata) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetClients() IdentifiedClientStates
- func (m *GenesisState) GetClientsConsensus() ClientsConsensusStates
- func (m *GenesisState) GetClientsMetadata() []IdentifiedGenesisMetadata
- func (m *GenesisState) GetNativeChainName() string
- func (m *GenesisState) GetRelayers() []IdentifiedRelayers
- 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 (gs GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (gs GenesisState) Validate() 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 Height
- func (h Height) Compare(other exported.Height) int64
- func (h Height) Decrement() (decremented exported.Height, success bool)
- func (*Height) Descriptor() ([]byte, []int)
- func (h Height) EQ(other exported.Height) bool
- func (h Height) GT(other exported.Height) bool
- func (h Height) GTE(other exported.Height) bool
- func (h Height) GetRevisionHeight() uint64
- func (h Height) GetRevisionNumber() uint64
- func (h Height) Increment() exported.Height
- func (h Height) IsZero() bool
- func (h Height) LT(other exported.Height) bool
- func (h Height) LTE(other exported.Height) bool
- func (m *Height) Marshal() (dAtA []byte, err error)
- func (m *Height) MarshalTo(dAtA []byte) (int, error)
- func (m *Height) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Height) ProtoMessage()
- func (m *Height) Reset()
- func (m *Height) Size() (n int)
- func (h Height) String() string
- func (m *Height) Unmarshal(dAtA []byte) error
- func (m *Height) XXX_DiscardUnknown()
- func (m *Height) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Height) XXX_Merge(src proto.Message)
- func (m *Height) XXX_Size() int
- func (m *Height) XXX_Unmarshal(b []byte) error
- type IdentifiedClientState
- func (*IdentifiedClientState) Descriptor() ([]byte, []int)
- func (m *IdentifiedClientState) GetChainName() string
- func (m *IdentifiedClientState) GetClientState() *types.Any
- func (m *IdentifiedClientState) Marshal() (dAtA []byte, err error)
- func (m *IdentifiedClientState) MarshalTo(dAtA []byte) (int, error)
- func (m *IdentifiedClientState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IdentifiedClientState) ProtoMessage()
- func (m *IdentifiedClientState) Reset()
- func (m *IdentifiedClientState) Size() (n int)
- func (m *IdentifiedClientState) String() string
- func (m *IdentifiedClientState) Unmarshal(dAtA []byte) error
- func (ics IdentifiedClientState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *IdentifiedClientState) XXX_DiscardUnknown()
- func (m *IdentifiedClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IdentifiedClientState) XXX_Merge(src proto.Message)
- func (m *IdentifiedClientState) XXX_Size() int
- func (m *IdentifiedClientState) XXX_Unmarshal(b []byte) error
- type IdentifiedClientStates
- type IdentifiedGenesisMetadata
- func (*IdentifiedGenesisMetadata) Descriptor() ([]byte, []int)
- func (m *IdentifiedGenesisMetadata) GetChainName() string
- func (m *IdentifiedGenesisMetadata) GetMetadata() []GenesisMetadata
- func (m *IdentifiedGenesisMetadata) Marshal() (dAtA []byte, err error)
- func (m *IdentifiedGenesisMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *IdentifiedGenesisMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IdentifiedGenesisMetadata) ProtoMessage()
- func (m *IdentifiedGenesisMetadata) Reset()
- func (m *IdentifiedGenesisMetadata) Size() (n int)
- func (m *IdentifiedGenesisMetadata) String() string
- func (m *IdentifiedGenesisMetadata) Unmarshal(dAtA []byte) error
- func (m *IdentifiedGenesisMetadata) XXX_DiscardUnknown()
- func (m *IdentifiedGenesisMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IdentifiedGenesisMetadata) XXX_Merge(src proto.Message)
- func (m *IdentifiedGenesisMetadata) XXX_Size() int
- func (m *IdentifiedGenesisMetadata) XXX_Unmarshal(b []byte) error
- type IdentifiedRelayers
- func (*IdentifiedRelayers) Descriptor() ([]byte, []int)
- func (m *IdentifiedRelayers) GetChainName() string
- func (m *IdentifiedRelayers) GetRelayers() []string
- func (m *IdentifiedRelayers) Marshal() (dAtA []byte, err error)
- func (m *IdentifiedRelayers) MarshalTo(dAtA []byte) (int, error)
- func (m *IdentifiedRelayers) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IdentifiedRelayers) ProtoMessage()
- func (m *IdentifiedRelayers) Reset()
- func (m *IdentifiedRelayers) Size() (n int)
- func (m *IdentifiedRelayers) String() string
- func (m *IdentifiedRelayers) Unmarshal(dAtA []byte) error
- func (m *IdentifiedRelayers) XXX_DiscardUnknown()
- func (m *IdentifiedRelayers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IdentifiedRelayers) XXX_Merge(src proto.Message)
- func (m *IdentifiedRelayers) XXX_Size() int
- func (m *IdentifiedRelayers) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateClient
- func (*MsgUpdateClient) Descriptor() ([]byte, []int)
- func (msg MsgUpdateClient) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateClient) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateClient) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateClient) ProtoMessage()
- func (m *MsgUpdateClient) Reset()
- func (m *MsgUpdateClient) Size() (n int)
- func (m *MsgUpdateClient) String() string
- func (m *MsgUpdateClient) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (msg MsgUpdateClient) ValidateBasic() error
- func (m *MsgUpdateClient) XXX_DiscardUnknown()
- func (m *MsgUpdateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateClient) XXX_Merge(src proto.Message)
- func (m *MsgUpdateClient) XXX_Size() int
- func (m *MsgUpdateClient) XXX_Unmarshal(b []byte) error
- type MsgUpdateClientResponse
- func (*MsgUpdateClientResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateClientResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateClientResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateClientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateClientResponse) ProtoMessage()
- func (m *MsgUpdateClientResponse) Reset()
- func (m *MsgUpdateClientResponse) Size() (n int)
- func (m *MsgUpdateClientResponse) String() string
- func (m *MsgUpdateClientResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateClientResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateClientResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateClientResponse) XXX_Size() int
- func (m *MsgUpdateClientResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryClientStateRequest
- func (*QueryClientStateRequest) Descriptor() ([]byte, []int)
- func (m *QueryClientStateRequest) GetChainName() string
- func (m *QueryClientStateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClientStateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClientStateRequest) ProtoMessage()
- func (m *QueryClientStateRequest) Reset()
- func (m *QueryClientStateRequest) Size() (n int)
- func (m *QueryClientStateRequest) String() string
- func (m *QueryClientStateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClientStateRequest) XXX_DiscardUnknown()
- func (m *QueryClientStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClientStateRequest) XXX_Merge(src proto.Message)
- func (m *QueryClientStateRequest) XXX_Size() int
- func (m *QueryClientStateRequest) XXX_Unmarshal(b []byte) error
- type QueryClientStateResponse
- func (*QueryClientStateResponse) Descriptor() ([]byte, []int)
- func (m *QueryClientStateResponse) GetClientState() *types.Any
- func (m *QueryClientStateResponse) GetProof() []byte
- func (m *QueryClientStateResponse) GetProofHeight() Height
- func (m *QueryClientStateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClientStateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClientStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClientStateResponse) ProtoMessage()
- func (m *QueryClientStateResponse) Reset()
- func (m *QueryClientStateResponse) Size() (n int)
- func (m *QueryClientStateResponse) String() string
- func (m *QueryClientStateResponse) Unmarshal(dAtA []byte) error
- func (qcsr QueryClientStateResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryClientStateResponse) XXX_DiscardUnknown()
- func (m *QueryClientStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClientStateResponse) XXX_Merge(src proto.Message)
- func (m *QueryClientStateResponse) XXX_Size() int
- func (m *QueryClientStateResponse) XXX_Unmarshal(b []byte) error
- type QueryClientStatesRequest
- func (*QueryClientStatesRequest) Descriptor() ([]byte, []int)
- func (m *QueryClientStatesRequest) GetPagination() *query.PageRequest
- func (m *QueryClientStatesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClientStatesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClientStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClientStatesRequest) ProtoMessage()
- func (m *QueryClientStatesRequest) Reset()
- func (m *QueryClientStatesRequest) Size() (n int)
- func (m *QueryClientStatesRequest) String() string
- func (m *QueryClientStatesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClientStatesRequest) XXX_DiscardUnknown()
- func (m *QueryClientStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClientStatesRequest) XXX_Merge(src proto.Message)
- func (m *QueryClientStatesRequest) XXX_Size() int
- func (m *QueryClientStatesRequest) XXX_Unmarshal(b []byte) error
- type QueryClientStatesResponse
- func (*QueryClientStatesResponse) Descriptor() ([]byte, []int)
- func (m *QueryClientStatesResponse) GetClientStates() IdentifiedClientStates
- func (m *QueryClientStatesResponse) GetPagination() *query.PageResponse
- func (m *QueryClientStatesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClientStatesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClientStatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClientStatesResponse) ProtoMessage()
- func (m *QueryClientStatesResponse) Reset()
- func (m *QueryClientStatesResponse) Size() (n int)
- func (m *QueryClientStatesResponse) String() string
- func (m *QueryClientStatesResponse) Unmarshal(dAtA []byte) error
- func (qcsr QueryClientStatesResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryClientStatesResponse) XXX_DiscardUnknown()
- func (m *QueryClientStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClientStatesResponse) XXX_Merge(src proto.Message)
- func (m *QueryClientStatesResponse) XXX_Size() int
- func (m *QueryClientStatesResponse) XXX_Unmarshal(b []byte) error
- type QueryConsensusStateRequest
- func (*QueryConsensusStateRequest) Descriptor() ([]byte, []int)
- func (m *QueryConsensusStateRequest) GetChainName() string
- func (m *QueryConsensusStateRequest) GetLatestHeight() bool
- func (m *QueryConsensusStateRequest) GetRevisionHeight() uint64
- func (m *QueryConsensusStateRequest) GetRevisionNumber() uint64
- func (m *QueryConsensusStateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryConsensusStateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsensusStateRequest) ProtoMessage()
- func (m *QueryConsensusStateRequest) Reset()
- func (m *QueryConsensusStateRequest) Size() (n int)
- func (m *QueryConsensusStateRequest) String() string
- func (m *QueryConsensusStateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryConsensusStateRequest) XXX_DiscardUnknown()
- func (m *QueryConsensusStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsensusStateRequest) XXX_Merge(src proto.Message)
- func (m *QueryConsensusStateRequest) XXX_Size() int
- func (m *QueryConsensusStateRequest) XXX_Unmarshal(b []byte) error
- type QueryConsensusStateResponse
- func (*QueryConsensusStateResponse) Descriptor() ([]byte, []int)
- func (m *QueryConsensusStateResponse) GetConsensusState() *types.Any
- func (m *QueryConsensusStateResponse) GetProof() []byte
- func (m *QueryConsensusStateResponse) GetProofHeight() Height
- func (m *QueryConsensusStateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryConsensusStateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsensusStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsensusStateResponse) ProtoMessage()
- func (m *QueryConsensusStateResponse) Reset()
- func (m *QueryConsensusStateResponse) Size() (n int)
- func (m *QueryConsensusStateResponse) String() string
- func (m *QueryConsensusStateResponse) Unmarshal(dAtA []byte) error
- func (qcsr QueryConsensusStateResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryConsensusStateResponse) XXX_DiscardUnknown()
- func (m *QueryConsensusStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsensusStateResponse) XXX_Merge(src proto.Message)
- func (m *QueryConsensusStateResponse) XXX_Size() int
- func (m *QueryConsensusStateResponse) XXX_Unmarshal(b []byte) error
- type QueryConsensusStatesRequest
- func (*QueryConsensusStatesRequest) Descriptor() ([]byte, []int)
- func (m *QueryConsensusStatesRequest) GetChainName() string
- func (m *QueryConsensusStatesRequest) GetPagination() *query.PageRequest
- func (m *QueryConsensusStatesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryConsensusStatesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsensusStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsensusStatesRequest) ProtoMessage()
- func (m *QueryConsensusStatesRequest) Reset()
- func (m *QueryConsensusStatesRequest) Size() (n int)
- func (m *QueryConsensusStatesRequest) String() string
- func (m *QueryConsensusStatesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryConsensusStatesRequest) XXX_DiscardUnknown()
- func (m *QueryConsensusStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsensusStatesRequest) XXX_Merge(src proto.Message)
- func (m *QueryConsensusStatesRequest) XXX_Size() int
- func (m *QueryConsensusStatesRequest) XXX_Unmarshal(b []byte) error
- type QueryConsensusStatesResponse
- func (*QueryConsensusStatesResponse) Descriptor() ([]byte, []int)
- func (m *QueryConsensusStatesResponse) GetConsensusStates() []ConsensusStateWithHeight
- func (m *QueryConsensusStatesResponse) GetPagination() *query.PageResponse
- func (m *QueryConsensusStatesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryConsensusStatesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsensusStatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsensusStatesResponse) ProtoMessage()
- func (m *QueryConsensusStatesResponse) Reset()
- func (m *QueryConsensusStatesResponse) Size() (n int)
- func (m *QueryConsensusStatesResponse) String() string
- func (m *QueryConsensusStatesResponse) Unmarshal(dAtA []byte) error
- func (qcsr QueryConsensusStatesResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryConsensusStatesResponse) XXX_DiscardUnknown()
- func (m *QueryConsensusStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsensusStatesResponse) XXX_Merge(src proto.Message)
- func (m *QueryConsensusStatesResponse) XXX_Size() int
- func (m *QueryConsensusStatesResponse) XXX_Unmarshal(b []byte) error
- type QueryRelayersRequest
- func (*QueryRelayersRequest) Descriptor() ([]byte, []int)
- func (m *QueryRelayersRequest) GetChainName() string
- func (m *QueryRelayersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRelayersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRelayersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRelayersRequest) ProtoMessage()
- func (m *QueryRelayersRequest) Reset()
- func (m *QueryRelayersRequest) Size() (n int)
- func (m *QueryRelayersRequest) String() string
- func (m *QueryRelayersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRelayersRequest) XXX_DiscardUnknown()
- func (m *QueryRelayersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRelayersRequest) XXX_Merge(src proto.Message)
- func (m *QueryRelayersRequest) XXX_Size() int
- func (m *QueryRelayersRequest) XXX_Unmarshal(b []byte) error
- type QueryRelayersResponse
- func (*QueryRelayersResponse) Descriptor() ([]byte, []int)
- func (m *QueryRelayersResponse) GetRelayers() []string
- func (m *QueryRelayersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRelayersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRelayersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRelayersResponse) ProtoMessage()
- func (m *QueryRelayersResponse) Reset()
- func (m *QueryRelayersResponse) Size() (n int)
- func (m *QueryRelayersResponse) String() string
- func (m *QueryRelayersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRelayersResponse) XXX_DiscardUnknown()
- func (m *QueryRelayersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRelayersResponse) XXX_Merge(src proto.Message)
- func (m *QueryRelayersResponse) XXX_Size() int
- func (m *QueryRelayersResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RegisterRelayerProposal
- func (*RegisterRelayerProposal) Descriptor() ([]byte, []int)
- func (rrp *RegisterRelayerProposal) GetDescription() string
- func (rrp *RegisterRelayerProposal) GetTitle() string
- func (m *RegisterRelayerProposal) Marshal() (dAtA []byte, err error)
- func (m *RegisterRelayerProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterRelayerProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (rrp *RegisterRelayerProposal) ProposalRoute() string
- func (rrp *RegisterRelayerProposal) ProposalType() string
- func (*RegisterRelayerProposal) ProtoMessage()
- func (m *RegisterRelayerProposal) Reset()
- func (m *RegisterRelayerProposal) Size() (n int)
- func (m *RegisterRelayerProposal) String() string
- func (m *RegisterRelayerProposal) Unmarshal(dAtA []byte) error
- func (rrp *RegisterRelayerProposal) ValidateBasic() error
- func (m *RegisterRelayerProposal) XXX_DiscardUnknown()
- func (m *RegisterRelayerProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterRelayerProposal) XXX_Merge(src proto.Message)
- func (m *RegisterRelayerProposal) XXX_Size() int
- func (m *RegisterRelayerProposal) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ClientState(ctx context.Context, req *QueryClientStateRequest) (*QueryClientStateResponse, error)
- func (*UnimplementedQueryServer) ClientStates(ctx context.Context, req *QueryClientStatesRequest) (*QueryClientStatesResponse, error)
- func (*UnimplementedQueryServer) ConsensusState(ctx context.Context, req *QueryConsensusStateRequest) (*QueryConsensusStateResponse, error)
- func (*UnimplementedQueryServer) ConsensusStates(ctx context.Context, req *QueryConsensusStatesRequest) (*QueryConsensusStatesResponse, error)
- func (*UnimplementedQueryServer) Relayers(ctx context.Context, req *QueryRelayersRequest) (*QueryRelayersResponse, error)
- type UpgradeClientProposal
- func (*UpgradeClientProposal) Descriptor() ([]byte, []int)
- func (cup *UpgradeClientProposal) GetDescription() string
- func (cup *UpgradeClientProposal) GetTitle() string
- func (m *UpgradeClientProposal) Marshal() (dAtA []byte, err error)
- func (m *UpgradeClientProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpgradeClientProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (cup *UpgradeClientProposal) ProposalRoute() string
- func (cup *UpgradeClientProposal) ProposalType() string
- func (*UpgradeClientProposal) ProtoMessage()
- func (m *UpgradeClientProposal) Reset()
- func (m *UpgradeClientProposal) Size() (n int)
- func (m *UpgradeClientProposal) String() string
- func (m *UpgradeClientProposal) Unmarshal(dAtA []byte) error
- func (cup UpgradeClientProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (cup *UpgradeClientProposal) ValidateBasic() error
- func (m *UpgradeClientProposal) XXX_DiscardUnknown()
- func (m *UpgradeClientProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpgradeClientProposal) XXX_Merge(src proto.Message)
- func (m *UpgradeClientProposal) XXX_Size() int
- func (m *UpgradeClientProposal) XXX_Unmarshal(b []byte) error
Constants ¶
const ( AttributeKeyChainName = "chain_name" AttributeKeyClientType = "client_type" AttributeKeyConsensusHeight = "consensus_height" AttributeKeyHeader = "header" )
TIBC client events
const ( // SubModuleName defines the TIBC client name SubModuleName string = "client" // RouterKey is the message route for TIBC client RouterKey string = SubModuleName // QuerierRoute is the querier route for TIBC client QuerierRoute string = SubModuleName // KeyClientName is the key used to store the chain name in the keeper. KeyClientName = "chainName" // KeyRelayers is the key used to store the relayers address in the keeper. KeyRelayers = "relayers" )
const ( LabelClientType = "client_type" LabelChainName = "chain_name" LabelUpdateType = "update_type" LabelMsgType = "msg_type" )
Prometheus metric labels.
const ( ProposalTypeClientCreate = "CreateClient" ProposalTypeClientUpgrade = "UpgradeClient" ProposalTypeRelayerRegister = "RegisterRelayer" )
const (
TypeMsgUpdateClient string = "update_client"
)
message types for the TIBC client
Variables ¶
var ( ErrInvalidLengthClient = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClient = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClient = fmt.Errorf("proto: unexpected end of group") )
var ( ErrClientExists = sdkerrors.Register(moduleName, 2, "light client already exists") ErrInvalidClient = sdkerrors.Register(moduleName, 3, "light client is invalid") ErrClientNotFound = sdkerrors.Register(moduleName, 4, "light client not found") ErrClientFrozen = sdkerrors.Register(moduleName, 5, "light client is frozen due to misbehaviour") ErrInvalidClientMetadata = sdkerrors.Register(moduleName, 6, "invalid client metadata") ErrConsensusStateNotFound = sdkerrors.Register(moduleName, 7, "consensus state not found") ErrInvalidConsensus = sdkerrors.Register(moduleName, 8, "invalid consensus state") ErrClientTypeNotFound = sdkerrors.Register(moduleName, 9, "client type not found") ErrInvalidClientType = sdkerrors.Register(moduleName, 10, "invalid client type") ErrRootNotFound = sdkerrors.Register(moduleName, 11, "commitment root not found") ErrInvalidHeader = sdkerrors.Register(moduleName, 12, "invalid client header") ErrInvalidMisbehaviour = sdkerrors.Register(moduleName, 13, "invalid light client misbehaviour") ErrFailedClientStateVerification = sdkerrors.Register(moduleName, 14, "client state verification failed") ErrFailedClientConsensusStateVerification = sdkerrors.Register(moduleName, 15, "client consensus state verification failed") ErrFailedConnectionStateVerification = sdkerrors.Register(moduleName, 16, "connection state verification failed") ErrFailedChannelStateVerification = sdkerrors.Register(moduleName, 17, "channel state verification failed") ErrFailedPacketCommitmentVerification = sdkerrors.Register(moduleName, 18, "packet commitment verification failed") ErrFailedPacketAckVerification = sdkerrors.Register(moduleName, 19, "packet acknowledgement verification failed") ErrFailedPacketReceiptVerification = sdkerrors.Register(moduleName, 20, "packet receipt verification failed") ErrFailedNextSeqRecvVerification = sdkerrors.Register(moduleName, 21, "next sequence receive verification failed") ErrSelfConsensusStateNotFound = sdkerrors.Register(moduleName, 22, "self consensus state not found") ErrUpdateClientFailed = sdkerrors.Register(moduleName, 23, "unable to update light client") ErrInvalidUpdateClientProposal = sdkerrors.Register(moduleName, 24, "invalid update client proposal") ErrInvalidUpgradeClient = sdkerrors.Register(moduleName, 25, "invalid client upgrade") ErrRelayerExists = sdkerrors.Register(moduleName, 26, "relayer already exists") ErrClientNotActive = sdkerrors.Register(moduleName, 27, "client is not active") )
TIBC client sentinel errors
var ( EventTypeCreateClientProposal = "create_client_proposal" EventTypeUpdateClient = "update_client" EventTypeUpgradeClientProposal = "upgrade_client_proposal" EventTypeUpdateClientProposal = "update_client_proposal" AttributeValueCategory = fmt.Sprintf("%s_%s", host.ModuleName, SubModuleName) )
TIBC client events vars
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 IsRevisionFormat = regexp.MustCompile(`^.*[^-]-{1}[1-9][0-9]*$`).MatchString
IsRevisionFormat checks if a chainID is in the format required for parsing revisions The chainID must be in the form: `{chainID}-{revision} 24-host may enforce stricter checks on chainID
Functions ¶
func MarshalClientState ¶
func MarshalClientState(cdc codec.BinaryCodec, clientStateI exported.ClientState) ([]byte, error)
MarshalClientState protobuf serializes an ClientState interface
func MarshalConsensusState ¶
func MarshalConsensusState(cdc codec.BinaryCodec, cs exported.ConsensusState) ([]byte, error)
MarshalConsensusState protobuf serializes a ConsensusState interface
func MarshalHeader ¶
MarshalHeader protobuf serializes a Header interface
func MustMarshalClientState ¶
func MustMarshalClientState(cdc codec.BinaryCodec, clientState exported.ClientState) []byte
MustMarshalClientState attempts to encode an ClientState object and returns the raw encoded bytes. It panics on error.
func MustMarshalConsensusState ¶
func MustMarshalConsensusState(cdc codec.BinaryCodec, consensusState exported.ConsensusState) []byte
MustMarshalConsensusState attempts to encode a ConsensusState object and returns the raw encoded bytes. It panics on error.
func MustMarshalHeader ¶
func MustMarshalHeader(cdc codec.BinaryCodec, header exported.Header) []byte
MustMarshalHeader attempts to encode a Header object and returns the raw encoded bytes. It panics on error.
func MustPackConsensusState ¶
func MustPackConsensusState(consensusState exported.ConsensusState) *codectypes.Any
MustPackConsensusState calls PackConsensusState and panics on error.
func MustUnmarshalClientState ¶
func MustUnmarshalClientState(cdc codec.BinaryCodec, bz []byte) exported.ClientState
MustUnmarshalClientState attempts to decode and return an ClientState object from raw encoded bytes. It panics on error.
func MustUnmarshalConsensusState ¶
func MustUnmarshalConsensusState(cdc codec.BinaryCodec, bz []byte) exported.ConsensusState
MustUnmarshalConsensusState attempts to decode and return an ConsensusState object from raw encoded bytes. It panics on error.
func PackClientState ¶
func PackClientState(clientState exported.ClientState) (*codectypes.Any, error)
PackClientState constructs a new Any packed with the given client state value. It returns an error if the client state can't be casted to a protobuf message or if the concrete implemention is not registered to the protobuf codec.
func PackConsensusState ¶
func PackConsensusState(consensusState exported.ConsensusState) (*codectypes.Any, error)
PackConsensusState constructs a new Any packed with the given consensus state value. It returns an error if the consensus state can't be casted to a protobuf message or if the concrete implemention is not registered to the protobuf codec.
func PackHeader ¶
func PackHeader(header exported.Header) (*codectypes.Any, error)
PackHeader constructs a new Any packed with the given header value. It returns an error if the header can't be casted to a protobuf message or if the concrete implemention is not registered to the protobuf codec.
func ParseChainID ¶
ParseChainID is a utility function that returns an revision number from the given ChainID. ParseChainID attempts to parse a chain id in the format: `{chainID}-{revision}` and return the revisionnumber as a uint64. If the chainID is not in the expected format, a default revision value of 0 is returned.
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the client interfaces to protobuf Any.
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)
func SetDefaultGenesisState ¶ added in v0.2.0
func SetDefaultGenesisState(genesis GenesisState)
DefaultGenesisState returns the tibc client submodule's default genesis state.
func SetRevisionNumber ¶
SetRevisionNumber takes a chainID in valid revision format and swaps the revision number in the chainID with the given revision number.
func UnmarshalClientState ¶
func UnmarshalClientState(cdc codec.BinaryCodec, bz []byte) (exported.ClientState, error)
UnmarshalClientState returns an ClientState interface from raw encoded clientState bytes of a Proto-based ClientState type. An error is returned upon decoding failure.
func UnmarshalConsensusState ¶
func UnmarshalConsensusState(cdc codec.BinaryCodec, bz []byte) (exported.ConsensusState, error)
UnmarshalConsensusState returns a ConsensusState interface from raw encoded consensus state bytes of a Proto-based ConsensusState type. An error is returned upon decoding failure.
func UnmarshalHeader ¶
UnmarshalHeader returns a Header interface from raw proto encoded header bytes. An error is returned upon decoding failure.
func UnpackClientState ¶
func UnpackClientState(any *codectypes.Any) (exported.ClientState, error)
UnpackClientState unpacks an Any into a ClientState. It returns an error if the client state can't be unpacked into a ClientState.
func UnpackConsensusState ¶
func UnpackConsensusState(any *codectypes.Any) (exported.ConsensusState, error)
UnpackConsensusState unpacks an Any into a ConsensusState. It returns an error if the consensus state can't be unpacked into a ConsensusState.
func UnpackHeader ¶
func UnpackHeader(any *codectypes.Any) (exported.Header, error)
UnpackHeader unpacks an Any into a Header. It returns an error if the consensus state can't be unpacked into a Header.
func ValidateClientType ¶
ValidateClientType validates the client type. It cannot be blank or empty. It must be a valid client identifier when used with '0' or the maximum uint64 as the sequence.
Types ¶
type ClientConsensusStates ¶
type ClientConsensusStates struct { // client identifier ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // consensus states and their heights associated with the client ConsensusStates []ConsensusStateWithHeight `protobuf:"bytes,2,rep,name=consensus_states,json=consensusStates,proto3" json:"consensus_states"` }
ClientConsensusStates defines all the stored consensus states for a given client.
func NewClientConsensusStates ¶
func NewClientConsensusStates(chainName string, consensusStates []ConsensusStateWithHeight) ClientConsensusStates
NewClientConsensusStates creates a new ClientConsensusStates instance.
func (*ClientConsensusStates) Descriptor ¶
func (*ClientConsensusStates) Descriptor() ([]byte, []int)
func (*ClientConsensusStates) GetChainName ¶
func (m *ClientConsensusStates) GetChainName() string
func (*ClientConsensusStates) GetConsensusStates ¶
func (m *ClientConsensusStates) GetConsensusStates() []ConsensusStateWithHeight
func (*ClientConsensusStates) Marshal ¶
func (m *ClientConsensusStates) Marshal() (dAtA []byte, err error)
func (*ClientConsensusStates) MarshalTo ¶
func (m *ClientConsensusStates) MarshalTo(dAtA []byte) (int, error)
func (*ClientConsensusStates) MarshalToSizedBuffer ¶
func (m *ClientConsensusStates) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientConsensusStates) ProtoMessage ¶
func (*ClientConsensusStates) ProtoMessage()
func (*ClientConsensusStates) Reset ¶
func (m *ClientConsensusStates) Reset()
func (*ClientConsensusStates) Size ¶
func (m *ClientConsensusStates) Size() (n int)
func (*ClientConsensusStates) String ¶
func (m *ClientConsensusStates) String() string
func (*ClientConsensusStates) Unmarshal ¶
func (m *ClientConsensusStates) Unmarshal(dAtA []byte) error
func (ClientConsensusStates) UnpackInterfaces ¶
func (ccs ClientConsensusStates) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*ClientConsensusStates) XXX_DiscardUnknown ¶
func (m *ClientConsensusStates) XXX_DiscardUnknown()
func (*ClientConsensusStates) XXX_Marshal ¶
func (m *ClientConsensusStates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientConsensusStates) XXX_Merge ¶
func (m *ClientConsensusStates) XXX_Merge(src proto.Message)
func (*ClientConsensusStates) XXX_Size ¶
func (m *ClientConsensusStates) XXX_Size() int
func (*ClientConsensusStates) XXX_Unmarshal ¶
func (m *ClientConsensusStates) XXX_Unmarshal(b []byte) error
type ClientsConsensusStates ¶
type ClientsConsensusStates []ClientConsensusStates
ClientsConsensusStates defines a slice of ClientConsensusStates that supports the sort interface
func (ClientsConsensusStates) Len ¶
func (ccs ClientsConsensusStates) Len() int
Len implements sort.Interface
func (ClientsConsensusStates) Less ¶
func (ccs ClientsConsensusStates) Less(i, j int) bool
Less implements sort.Interface
func (ClientsConsensusStates) Sort ¶
func (ccs ClientsConsensusStates) Sort() ClientsConsensusStates
Sort is a helper function to sort the set of ClientsConsensusStates in place
func (ClientsConsensusStates) Swap ¶
func (ccs ClientsConsensusStates) Swap(i, j int)
Swap implements sort.Interface
func (ClientsConsensusStates) UnpackInterfaces ¶
func (ccs ClientsConsensusStates) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
type ConsensusStateWithHeight ¶
type ConsensusStateWithHeight struct { // consensus state height Height Height `protobuf:"bytes,1,opt,name=height,proto3" json:"height"` // consensus state ConsensusState *types.Any `protobuf:"bytes,2,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"` }
ConsensusStateWithHeight defines a consensus state with an additional height field.
func NewConsensusStateWithHeight ¶
func NewConsensusStateWithHeight(height Height, consensusState exported.ConsensusState) ConsensusStateWithHeight
NewConsensusStateWithHeight creates a new ConsensusStateWithHeight instance
func (*ConsensusStateWithHeight) Descriptor ¶
func (*ConsensusStateWithHeight) Descriptor() ([]byte, []int)
func (*ConsensusStateWithHeight) GetConsensusState ¶
func (m *ConsensusStateWithHeight) GetConsensusState() *types.Any
func (*ConsensusStateWithHeight) GetHeight ¶
func (m *ConsensusStateWithHeight) GetHeight() Height
func (*ConsensusStateWithHeight) Marshal ¶
func (m *ConsensusStateWithHeight) Marshal() (dAtA []byte, err error)
func (*ConsensusStateWithHeight) MarshalTo ¶
func (m *ConsensusStateWithHeight) MarshalTo(dAtA []byte) (int, error)
func (*ConsensusStateWithHeight) MarshalToSizedBuffer ¶
func (m *ConsensusStateWithHeight) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsensusStateWithHeight) ProtoMessage ¶
func (*ConsensusStateWithHeight) ProtoMessage()
func (*ConsensusStateWithHeight) Reset ¶
func (m *ConsensusStateWithHeight) Reset()
func (*ConsensusStateWithHeight) Size ¶
func (m *ConsensusStateWithHeight) Size() (n int)
func (*ConsensusStateWithHeight) String ¶
func (m *ConsensusStateWithHeight) String() string
func (*ConsensusStateWithHeight) Unmarshal ¶
func (m *ConsensusStateWithHeight) Unmarshal(dAtA []byte) error
func (ConsensusStateWithHeight) UnpackInterfaces ¶
func (cswh ConsensusStateWithHeight) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
func (*ConsensusStateWithHeight) XXX_DiscardUnknown ¶
func (m *ConsensusStateWithHeight) XXX_DiscardUnknown()
func (*ConsensusStateWithHeight) XXX_Marshal ¶
func (m *ConsensusStateWithHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsensusStateWithHeight) XXX_Merge ¶
func (m *ConsensusStateWithHeight) XXX_Merge(src proto.Message)
func (*ConsensusStateWithHeight) XXX_Size ¶
func (m *ConsensusStateWithHeight) XXX_Size() int
func (*ConsensusStateWithHeight) XXX_Unmarshal ¶
func (m *ConsensusStateWithHeight) XXX_Unmarshal(b []byte) error
type CreateClientProposal ¶
type CreateClientProposal struct { // the title of the update proposal Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // the description of the proposal Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // the client identifier for the client to be updated if the proposal passes ChainName string `protobuf:"bytes,3,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // light client state ClientState *types.Any `protobuf:"bytes,4,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"` // consensus state associated with the client that corresponds to a given // height. ConsensusState *types.Any `protobuf:"bytes,5,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"` }
CreateClientProposal defines a overnance proposal to create an TIBC client
func NewCreateClientProposal ¶
func NewCreateClientProposal(title, description, chainName string, clientState exported.ClientState, consensusState exported.ConsensusState) (*CreateClientProposal, error)
NewCreateClientProposal creates a new creating client proposal.
func (*CreateClientProposal) Descriptor ¶
func (*CreateClientProposal) Descriptor() ([]byte, []int)
func (*CreateClientProposal) GetDescription ¶
func (cup *CreateClientProposal) GetDescription() string
GetDescription returns the description of a client update proposal.
func (*CreateClientProposal) GetTitle ¶
func (cup *CreateClientProposal) GetTitle() string
GetTitle returns the title of a client update proposal.
func (*CreateClientProposal) Marshal ¶
func (m *CreateClientProposal) Marshal() (dAtA []byte, err error)
func (*CreateClientProposal) MarshalTo ¶
func (m *CreateClientProposal) MarshalTo(dAtA []byte) (int, error)
func (*CreateClientProposal) MarshalToSizedBuffer ¶
func (m *CreateClientProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateClientProposal) ProposalRoute ¶
func (cup *CreateClientProposal) ProposalRoute() string
ProposalRoute returns the routing key of a client update proposal.
func (*CreateClientProposal) ProposalType ¶
func (cup *CreateClientProposal) ProposalType() string
ProposalType returns the type of a client update proposal.
func (*CreateClientProposal) ProtoMessage ¶
func (*CreateClientProposal) ProtoMessage()
func (*CreateClientProposal) Reset ¶
func (m *CreateClientProposal) Reset()
func (*CreateClientProposal) Size ¶
func (m *CreateClientProposal) Size() (n int)
func (*CreateClientProposal) String ¶
func (m *CreateClientProposal) String() string
func (*CreateClientProposal) Unmarshal ¶
func (m *CreateClientProposal) Unmarshal(dAtA []byte) error
func (CreateClientProposal) UnpackInterfaces ¶
func (cup CreateClientProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*CreateClientProposal) ValidateBasic ¶
func (cup *CreateClientProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks
func (*CreateClientProposal) XXX_DiscardUnknown ¶
func (m *CreateClientProposal) XXX_DiscardUnknown()
func (*CreateClientProposal) XXX_Marshal ¶
func (m *CreateClientProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateClientProposal) XXX_Merge ¶
func (m *CreateClientProposal) XXX_Merge(src proto.Message)
func (*CreateClientProposal) XXX_Size ¶
func (m *CreateClientProposal) XXX_Size() int
func (*CreateClientProposal) XXX_Unmarshal ¶
func (m *CreateClientProposal) XXX_Unmarshal(b []byte) error
type GenesisMetadata ¶
type GenesisMetadata struct { // store key of metadata without chainName-prefix Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // metadata value Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
GenesisMetadata defines the genesis type for metadata that clients may return with ExportMetadata
func NewGenesisMetadata ¶
func NewGenesisMetadata(key, val []byte) GenesisMetadata
NewGenesisMetadata is a constructor for GenesisMetadata
func (*GenesisMetadata) Descriptor ¶
func (*GenesisMetadata) Descriptor() ([]byte, []int)
func (GenesisMetadata) GetKey ¶
func (gm GenesisMetadata) GetKey() []byte
GetKey returns the key of metadata. Implements exported.GenesisMetadata interface.
func (GenesisMetadata) GetValue ¶
func (gm GenesisMetadata) GetValue() []byte
GetValue returns the value of metadata. Implements exported.GenesisMetadata interface.
func (*GenesisMetadata) Marshal ¶
func (m *GenesisMetadata) Marshal() (dAtA []byte, err error)
func (*GenesisMetadata) MarshalToSizedBuffer ¶
func (m *GenesisMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisMetadata) ProtoMessage ¶
func (*GenesisMetadata) ProtoMessage()
func (*GenesisMetadata) Reset ¶
func (m *GenesisMetadata) Reset()
func (*GenesisMetadata) Size ¶
func (m *GenesisMetadata) Size() (n int)
func (*GenesisMetadata) String ¶
func (m *GenesisMetadata) String() string
func (*GenesisMetadata) Unmarshal ¶
func (m *GenesisMetadata) Unmarshal(dAtA []byte) error
func (GenesisMetadata) Validate ¶
func (gm GenesisMetadata) Validate() error
Validate ensures key and value of metadata are not empty
func (*GenesisMetadata) XXX_DiscardUnknown ¶
func (m *GenesisMetadata) XXX_DiscardUnknown()
func (*GenesisMetadata) XXX_Marshal ¶
func (m *GenesisMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisMetadata) XXX_Merge ¶
func (m *GenesisMetadata) XXX_Merge(src proto.Message)
func (*GenesisMetadata) XXX_Size ¶
func (m *GenesisMetadata) XXX_Size() int
func (*GenesisMetadata) XXX_Unmarshal ¶
func (m *GenesisMetadata) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // client states with their corresponding identifiers Clients IdentifiedClientStates `protobuf:"bytes,1,rep,name=clients,proto3,castrepeated=IdentifiedClientStates" json:"clients"` // consensus states from each client ClientsConsensus ClientsConsensusStates `` /* 135-byte string literal not displayed */ // metadata from each client ClientsMetadata []IdentifiedGenesisMetadata `protobuf:"bytes,3,rep,name=clients_metadata,json=clientsMetadata,proto3" json:"clients_metadata"` // the chain name of the current chain NativeChainName string `protobuf:"bytes,5,opt,name=native_chain_name,json=nativeChainName,proto3" json:"native_chain_name,omitempty"` // IdentifiedRelayer defines a list of authorized relayers for the specified // client. Relayers []IdentifiedRelayers `protobuf:"bytes,6,rep,name=relayers,proto3" json:"relayers"` }
GenesisState defines the tibc client submodule's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns the tibc client submodule's default genesis state.
func NewGenesisState ¶
func NewGenesisState( clients []IdentifiedClientState, clientsConsensus ClientsConsensusStates, clientsMetadata []IdentifiedGenesisMetadata, nativeChainName string, ) GenesisState
NewGenesisState creates a GenesisState instance.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetClients ¶
func (m *GenesisState) GetClients() IdentifiedClientStates
func (*GenesisState) GetClientsConsensus ¶
func (m *GenesisState) GetClientsConsensus() ClientsConsensusStates
func (*GenesisState) GetClientsMetadata ¶
func (m *GenesisState) GetClientsMetadata() []IdentifiedGenesisMetadata
func (*GenesisState) GetNativeChainName ¶
func (m *GenesisState) GetNativeChainName() string
func (*GenesisState) GetRelayers ¶
func (m *GenesisState) GetRelayers() []IdentifiedRelayers
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) UnpackInterfaces ¶
func (gs GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
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 Height ¶
type Height struct { // the revision that the client is currently on RevisionNumber uint64 `` /* 127-byte string literal not displayed */ // the height within the given revision RevisionHeight uint64 `` /* 127-byte string literal not displayed */ }
Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients
Normally the RevisionHeight is incremented at each height while keeping RevisionNumber the same. However some consensus algorithms may choose to reset the height in certain conditions e.g. hard forks, state-machine breaking changes In these cases, the RevisionNumber is incremented so that height continues to be monitonically increasing even as the RevisionHeight gets reset
func GetSelfHeight ¶
GetSelfHeight is a utility function that returns self height given context Revision number is retrieved from ctx.ChainID()
func MustParseHeight ¶
MustParseHeight will attempt to parse a string representation of a height and panic if parsing fails.
func ParseHeight ¶
ParseHeight is a utility function that takes a string representation of the height and returns a Height struct
func ZeroHeight ¶
func ZeroHeight() Height
ZeroHeight is a helper function which returns an uninitialized height.
func (Height) Compare ¶
Compare implements a method to compare two heights. When comparing two heights a, b we can call a.Compare(b) which will return -1 if a < b 0 if a = b 1 if a > b
It first compares based on revision numbers, whichever has the higher revision number is the higher height If revision number is the same, then the revision height is compared
func (Height) Decrement ¶
Decrement will return a new height with the RevisionHeight decremented If the RevisionHeight is already at lowest value (1), then false success flag is returend
func (*Height) Descriptor ¶
func (Height) GetRevisionHeight ¶
GetRevisionHeight returns the revision-height of the height
func (Height) GetRevisionNumber ¶
GetRevisionNumber returns the revision-number of the height
func (Height) Increment ¶
Increment will return a height with the same revision number but an incremented revision height
func (*Height) MarshalToSizedBuffer ¶
func (*Height) ProtoMessage ¶
func (*Height) ProtoMessage()
func (*Height) XXX_DiscardUnknown ¶
func (m *Height) XXX_DiscardUnknown()
func (*Height) XXX_Marshal ¶
func (*Height) XXX_Unmarshal ¶
type IdentifiedClientState ¶
type IdentifiedClientState struct { // client identifier ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // client state ClientState *types.Any `protobuf:"bytes,2,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"` }
IdentifiedClientState defines a client state with an additional client identifier field.
func NewIdentifiedClientState ¶
func NewIdentifiedClientState(chainName string, clientState exported.ClientState) IdentifiedClientState
NewIdentifiedClientState creates a new IdentifiedClientState instance
func (*IdentifiedClientState) Descriptor ¶
func (*IdentifiedClientState) Descriptor() ([]byte, []int)
func (*IdentifiedClientState) GetChainName ¶
func (m *IdentifiedClientState) GetChainName() string
func (*IdentifiedClientState) GetClientState ¶
func (m *IdentifiedClientState) GetClientState() *types.Any
func (*IdentifiedClientState) Marshal ¶
func (m *IdentifiedClientState) Marshal() (dAtA []byte, err error)
func (*IdentifiedClientState) MarshalTo ¶
func (m *IdentifiedClientState) MarshalTo(dAtA []byte) (int, error)
func (*IdentifiedClientState) MarshalToSizedBuffer ¶
func (m *IdentifiedClientState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IdentifiedClientState) ProtoMessage ¶
func (*IdentifiedClientState) ProtoMessage()
func (*IdentifiedClientState) Reset ¶
func (m *IdentifiedClientState) Reset()
func (*IdentifiedClientState) Size ¶
func (m *IdentifiedClientState) Size() (n int)
func (*IdentifiedClientState) String ¶
func (m *IdentifiedClientState) String() string
func (*IdentifiedClientState) Unmarshal ¶
func (m *IdentifiedClientState) Unmarshal(dAtA []byte) error
func (IdentifiedClientState) UnpackInterfaces ¶
func (ics IdentifiedClientState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
func (*IdentifiedClientState) XXX_DiscardUnknown ¶
func (m *IdentifiedClientState) XXX_DiscardUnknown()
func (*IdentifiedClientState) XXX_Marshal ¶
func (m *IdentifiedClientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IdentifiedClientState) XXX_Merge ¶
func (m *IdentifiedClientState) XXX_Merge(src proto.Message)
func (*IdentifiedClientState) XXX_Size ¶
func (m *IdentifiedClientState) XXX_Size() int
func (*IdentifiedClientState) XXX_Unmarshal ¶
func (m *IdentifiedClientState) XXX_Unmarshal(b []byte) error
type IdentifiedClientStates ¶
type IdentifiedClientStates []IdentifiedClientState
IdentifiedClientStates defines a slice of ClientConsensusStates that supports the sort interface
func (IdentifiedClientStates) Len ¶
func (ics IdentifiedClientStates) Len() int
Len implements sort.Interface
func (IdentifiedClientStates) Less ¶
func (ics IdentifiedClientStates) Less(i, j int) bool
Less implements sort.Interface
func (IdentifiedClientStates) Sort ¶
func (ics IdentifiedClientStates) Sort() IdentifiedClientStates
Sort is a helper function to sort the set of IdentifiedClientStates in place
func (IdentifiedClientStates) Swap ¶
func (ics IdentifiedClientStates) Swap(i, j int)
Swap implements sort.Interface
type IdentifiedGenesisMetadata ¶
type IdentifiedGenesisMetadata struct { ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` Metadata []GenesisMetadata `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata"` }
IdentifiedGenesisMetadata has the client metadata with the corresponding chain name.
func NewIdentifiedGenesisMetadata ¶
func NewIdentifiedGenesisMetadata(chainName string, gms []GenesisMetadata) IdentifiedGenesisMetadata
NewIdentifiedGenesisMetadata takes in a client ID and list of genesis metadata for that client and constructs a new IdentifiedGenesisMetadata.
func (*IdentifiedGenesisMetadata) Descriptor ¶
func (*IdentifiedGenesisMetadata) Descriptor() ([]byte, []int)
func (*IdentifiedGenesisMetadata) GetChainName ¶
func (m *IdentifiedGenesisMetadata) GetChainName() string
func (*IdentifiedGenesisMetadata) GetMetadata ¶
func (m *IdentifiedGenesisMetadata) GetMetadata() []GenesisMetadata
func (*IdentifiedGenesisMetadata) Marshal ¶
func (m *IdentifiedGenesisMetadata) Marshal() (dAtA []byte, err error)
func (*IdentifiedGenesisMetadata) MarshalTo ¶
func (m *IdentifiedGenesisMetadata) MarshalTo(dAtA []byte) (int, error)
func (*IdentifiedGenesisMetadata) MarshalToSizedBuffer ¶
func (m *IdentifiedGenesisMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IdentifiedGenesisMetadata) ProtoMessage ¶
func (*IdentifiedGenesisMetadata) ProtoMessage()
func (*IdentifiedGenesisMetadata) Reset ¶
func (m *IdentifiedGenesisMetadata) Reset()
func (*IdentifiedGenesisMetadata) Size ¶
func (m *IdentifiedGenesisMetadata) Size() (n int)
func (*IdentifiedGenesisMetadata) String ¶
func (m *IdentifiedGenesisMetadata) String() string
func (*IdentifiedGenesisMetadata) Unmarshal ¶
func (m *IdentifiedGenesisMetadata) Unmarshal(dAtA []byte) error
func (*IdentifiedGenesisMetadata) XXX_DiscardUnknown ¶
func (m *IdentifiedGenesisMetadata) XXX_DiscardUnknown()
func (*IdentifiedGenesisMetadata) XXX_Marshal ¶
func (m *IdentifiedGenesisMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IdentifiedGenesisMetadata) XXX_Merge ¶
func (m *IdentifiedGenesisMetadata) XXX_Merge(src proto.Message)
func (*IdentifiedGenesisMetadata) XXX_Size ¶
func (m *IdentifiedGenesisMetadata) XXX_Size() int
func (*IdentifiedGenesisMetadata) XXX_Unmarshal ¶
func (m *IdentifiedGenesisMetadata) XXX_Unmarshal(b []byte) error
type IdentifiedRelayers ¶
type IdentifiedRelayers struct { // client identifier ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // authorized relayer list Relayers []string `protobuf:"bytes,2,rep,name=relayers,proto3" json:"relayers,omitempty"` }
IdentifiedRelayer defines a list of authorized relayers for the specified client.
func (*IdentifiedRelayers) Descriptor ¶
func (*IdentifiedRelayers) Descriptor() ([]byte, []int)
func (*IdentifiedRelayers) GetChainName ¶
func (m *IdentifiedRelayers) GetChainName() string
func (*IdentifiedRelayers) GetRelayers ¶
func (m *IdentifiedRelayers) GetRelayers() []string
func (*IdentifiedRelayers) Marshal ¶
func (m *IdentifiedRelayers) Marshal() (dAtA []byte, err error)
func (*IdentifiedRelayers) MarshalTo ¶
func (m *IdentifiedRelayers) MarshalTo(dAtA []byte) (int, error)
func (*IdentifiedRelayers) MarshalToSizedBuffer ¶
func (m *IdentifiedRelayers) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IdentifiedRelayers) ProtoMessage ¶
func (*IdentifiedRelayers) ProtoMessage()
func (*IdentifiedRelayers) Reset ¶
func (m *IdentifiedRelayers) Reset()
func (*IdentifiedRelayers) Size ¶
func (m *IdentifiedRelayers) Size() (n int)
func (*IdentifiedRelayers) String ¶
func (m *IdentifiedRelayers) String() string
func (*IdentifiedRelayers) Unmarshal ¶
func (m *IdentifiedRelayers) Unmarshal(dAtA []byte) error
func (*IdentifiedRelayers) XXX_DiscardUnknown ¶
func (m *IdentifiedRelayers) XXX_DiscardUnknown()
func (*IdentifiedRelayers) XXX_Marshal ¶
func (m *IdentifiedRelayers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IdentifiedRelayers) XXX_Merge ¶
func (m *IdentifiedRelayers) XXX_Merge(src proto.Message)
func (*IdentifiedRelayers) XXX_Size ¶
func (m *IdentifiedRelayers) XXX_Size() int
func (*IdentifiedRelayers) XXX_Unmarshal ¶
func (m *IdentifiedRelayers) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // UpdateClient defines a rpc handler method for MsgUpdateClient. UpdateClient(ctx context.Context, in *MsgUpdateClient, opts ...grpc.CallOption) (*MsgUpdateClientResponse, 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 MsgServer ¶
type MsgServer interface { // UpdateClient defines a rpc handler method for MsgUpdateClient. UpdateClient(context.Context, *MsgUpdateClient) (*MsgUpdateClientResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateClient ¶
type MsgUpdateClient struct { // client unique identifier ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // header to update the light client Header *types.Any `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` // signer address Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"` }
MsgUpdateClient defines an sdk.Msg to update a TIBC client state using the given header.
func NewMsgUpdateClient ¶
func NewMsgUpdateClient(chainName string, header exported.Header, signer sdk.AccAddress) (*MsgUpdateClient, error)
NewMsgUpdateClient creates a new MsgUpdateClient instance
func (*MsgUpdateClient) Descriptor ¶
func (*MsgUpdateClient) Descriptor() ([]byte, []int)
func (MsgUpdateClient) GetSigners ¶
func (msg MsgUpdateClient) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgUpdateClient) Marshal ¶
func (m *MsgUpdateClient) Marshal() (dAtA []byte, err error)
func (*MsgUpdateClient) MarshalToSizedBuffer ¶
func (m *MsgUpdateClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateClient) ProtoMessage ¶
func (*MsgUpdateClient) ProtoMessage()
func (*MsgUpdateClient) Reset ¶
func (m *MsgUpdateClient) Reset()
func (*MsgUpdateClient) Size ¶
func (m *MsgUpdateClient) Size() (n int)
func (*MsgUpdateClient) String ¶
func (m *MsgUpdateClient) String() string
func (*MsgUpdateClient) Unmarshal ¶
func (m *MsgUpdateClient) Unmarshal(dAtA []byte) error
func (MsgUpdateClient) UnpackInterfaces ¶
func (msg MsgUpdateClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (MsgUpdateClient) ValidateBasic ¶
func (msg MsgUpdateClient) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgUpdateClient) XXX_DiscardUnknown ¶
func (m *MsgUpdateClient) XXX_DiscardUnknown()
func (*MsgUpdateClient) XXX_Marshal ¶
func (m *MsgUpdateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateClient) XXX_Merge ¶
func (m *MsgUpdateClient) XXX_Merge(src proto.Message)
func (*MsgUpdateClient) XXX_Size ¶
func (m *MsgUpdateClient) XXX_Size() int
func (*MsgUpdateClient) XXX_Unmarshal ¶
func (m *MsgUpdateClient) XXX_Unmarshal(b []byte) error
type MsgUpdateClientResponse ¶
type MsgUpdateClientResponse struct { }
MsgUpdateClientResponse defines the Msg/UpdateClient response type.
func (*MsgUpdateClientResponse) Descriptor ¶
func (*MsgUpdateClientResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateClientResponse) Marshal ¶
func (m *MsgUpdateClientResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateClientResponse) MarshalTo ¶
func (m *MsgUpdateClientResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateClientResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateClientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateClientResponse) ProtoMessage ¶
func (*MsgUpdateClientResponse) ProtoMessage()
func (*MsgUpdateClientResponse) Reset ¶
func (m *MsgUpdateClientResponse) Reset()
func (*MsgUpdateClientResponse) Size ¶
func (m *MsgUpdateClientResponse) Size() (n int)
func (*MsgUpdateClientResponse) String ¶
func (m *MsgUpdateClientResponse) String() string
func (*MsgUpdateClientResponse) Unmarshal ¶
func (m *MsgUpdateClientResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateClientResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateClientResponse) XXX_DiscardUnknown()
func (*MsgUpdateClientResponse) XXX_Marshal ¶
func (m *MsgUpdateClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateClientResponse) XXX_Merge ¶
func (m *MsgUpdateClientResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateClientResponse) XXX_Size ¶
func (m *MsgUpdateClientResponse) XXX_Size() int
func (*MsgUpdateClientResponse) XXX_Unmarshal ¶
func (m *MsgUpdateClientResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // ClientState queries an TIBC light client. ClientState(ctx context.Context, in *QueryClientStateRequest, opts ...grpc.CallOption) (*QueryClientStateResponse, error) // ClientStates queries all the TIBC light clients of a chain. ClientStates(ctx context.Context, in *QueryClientStatesRequest, opts ...grpc.CallOption) (*QueryClientStatesResponse, error) // ConsensusState queries a consensus state associated with a client state at // a given height. ConsensusState(ctx context.Context, in *QueryConsensusStateRequest, opts ...grpc.CallOption) (*QueryConsensusStateResponse, error) // ConsensusStates queries all the consensus state associated with a given // client. ConsensusStates(ctx context.Context, in *QueryConsensusStatesRequest, opts ...grpc.CallOption) (*QueryConsensusStatesResponse, error) // Relayers queries all the relayers associated with a given // client. Relayers(ctx context.Context, in *QueryRelayersRequest, opts ...grpc.CallOption) (*QueryRelayersResponse, 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 QueryClientStateRequest ¶
type QueryClientStateRequest struct { // client state unique identifier ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` }
QueryClientStateRequest is the request type for the Query/ClientState RPC method
func (*QueryClientStateRequest) Descriptor ¶
func (*QueryClientStateRequest) Descriptor() ([]byte, []int)
func (*QueryClientStateRequest) GetChainName ¶
func (m *QueryClientStateRequest) GetChainName() string
func (*QueryClientStateRequest) Marshal ¶
func (m *QueryClientStateRequest) Marshal() (dAtA []byte, err error)
func (*QueryClientStateRequest) MarshalTo ¶
func (m *QueryClientStateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClientStateRequest) MarshalToSizedBuffer ¶
func (m *QueryClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClientStateRequest) ProtoMessage ¶
func (*QueryClientStateRequest) ProtoMessage()
func (*QueryClientStateRequest) Reset ¶
func (m *QueryClientStateRequest) Reset()
func (*QueryClientStateRequest) Size ¶
func (m *QueryClientStateRequest) Size() (n int)
func (*QueryClientStateRequest) String ¶
func (m *QueryClientStateRequest) String() string
func (*QueryClientStateRequest) Unmarshal ¶
func (m *QueryClientStateRequest) Unmarshal(dAtA []byte) error
func (*QueryClientStateRequest) XXX_DiscardUnknown ¶
func (m *QueryClientStateRequest) XXX_DiscardUnknown()
func (*QueryClientStateRequest) XXX_Marshal ¶
func (m *QueryClientStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClientStateRequest) XXX_Merge ¶
func (m *QueryClientStateRequest) XXX_Merge(src proto.Message)
func (*QueryClientStateRequest) XXX_Size ¶
func (m *QueryClientStateRequest) XXX_Size() int
func (*QueryClientStateRequest) XXX_Unmarshal ¶
func (m *QueryClientStateRequest) XXX_Unmarshal(b []byte) error
type QueryClientStateResponse ¶
type QueryClientStateResponse struct { // client state associated with the request identifier ClientState *types.Any `protobuf:"bytes,1,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"` // merkle proof of existence Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` // height at which the proof was retrieved ProofHeight Height `protobuf:"bytes,3,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height"` }
QueryClientStateResponse is the response type for the Query/ClientState RPC method. Besides the client state, it includes a proof and the height from which the proof was retrieved.
func NewQueryClientStateResponse ¶
func NewQueryClientStateResponse( clientStateAny *codectypes.Any, proof []byte, height Height, ) *QueryClientStateResponse
NewQueryClientStateResponse creates a new QueryClientStateResponse instance.
func (*QueryClientStateResponse) Descriptor ¶
func (*QueryClientStateResponse) Descriptor() ([]byte, []int)
func (*QueryClientStateResponse) GetClientState ¶
func (m *QueryClientStateResponse) GetClientState() *types.Any
func (*QueryClientStateResponse) GetProof ¶
func (m *QueryClientStateResponse) GetProof() []byte
func (*QueryClientStateResponse) GetProofHeight ¶
func (m *QueryClientStateResponse) GetProofHeight() Height
func (*QueryClientStateResponse) Marshal ¶
func (m *QueryClientStateResponse) Marshal() (dAtA []byte, err error)
func (*QueryClientStateResponse) MarshalTo ¶
func (m *QueryClientStateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClientStateResponse) MarshalToSizedBuffer ¶
func (m *QueryClientStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClientStateResponse) ProtoMessage ¶
func (*QueryClientStateResponse) ProtoMessage()
func (*QueryClientStateResponse) Reset ¶
func (m *QueryClientStateResponse) Reset()
func (*QueryClientStateResponse) Size ¶
func (m *QueryClientStateResponse) Size() (n int)
func (*QueryClientStateResponse) String ¶
func (m *QueryClientStateResponse) String() string
func (*QueryClientStateResponse) Unmarshal ¶
func (m *QueryClientStateResponse) Unmarshal(dAtA []byte) error
func (QueryClientStateResponse) UnpackInterfaces ¶
func (qcsr QueryClientStateResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
func (*QueryClientStateResponse) XXX_DiscardUnknown ¶
func (m *QueryClientStateResponse) XXX_DiscardUnknown()
func (*QueryClientStateResponse) XXX_Marshal ¶
func (m *QueryClientStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClientStateResponse) XXX_Merge ¶
func (m *QueryClientStateResponse) XXX_Merge(src proto.Message)
func (*QueryClientStateResponse) XXX_Size ¶
func (m *QueryClientStateResponse) XXX_Size() int
func (*QueryClientStateResponse) XXX_Unmarshal ¶
func (m *QueryClientStateResponse) XXX_Unmarshal(b []byte) error
type QueryClientStatesRequest ¶
type QueryClientStatesRequest struct { // pagination request Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClientStatesRequest is the request type for the Query/ClientStates RPC method
func (*QueryClientStatesRequest) Descriptor ¶
func (*QueryClientStatesRequest) Descriptor() ([]byte, []int)
func (*QueryClientStatesRequest) GetPagination ¶
func (m *QueryClientStatesRequest) GetPagination() *query.PageRequest
func (*QueryClientStatesRequest) Marshal ¶
func (m *QueryClientStatesRequest) Marshal() (dAtA []byte, err error)
func (*QueryClientStatesRequest) MarshalTo ¶
func (m *QueryClientStatesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClientStatesRequest) MarshalToSizedBuffer ¶
func (m *QueryClientStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClientStatesRequest) ProtoMessage ¶
func (*QueryClientStatesRequest) ProtoMessage()
func (*QueryClientStatesRequest) Reset ¶
func (m *QueryClientStatesRequest) Reset()
func (*QueryClientStatesRequest) Size ¶
func (m *QueryClientStatesRequest) Size() (n int)
func (*QueryClientStatesRequest) String ¶
func (m *QueryClientStatesRequest) String() string
func (*QueryClientStatesRequest) Unmarshal ¶
func (m *QueryClientStatesRequest) Unmarshal(dAtA []byte) error
func (*QueryClientStatesRequest) XXX_DiscardUnknown ¶
func (m *QueryClientStatesRequest) XXX_DiscardUnknown()
func (*QueryClientStatesRequest) XXX_Marshal ¶
func (m *QueryClientStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClientStatesRequest) XXX_Merge ¶
func (m *QueryClientStatesRequest) XXX_Merge(src proto.Message)
func (*QueryClientStatesRequest) XXX_Size ¶
func (m *QueryClientStatesRequest) XXX_Size() int
func (*QueryClientStatesRequest) XXX_Unmarshal ¶
func (m *QueryClientStatesRequest) XXX_Unmarshal(b []byte) error
type QueryClientStatesResponse ¶
type QueryClientStatesResponse struct { // list of stored ClientStates of the chain. ClientStates IdentifiedClientStates `protobuf:"bytes,1,rep,name=client_states,json=clientStates,proto3,castrepeated=IdentifiedClientStates" json:"client_states"` // pagination response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClientStatesResponse is the response type for the Query/ClientStates RPC method.
func (*QueryClientStatesResponse) Descriptor ¶
func (*QueryClientStatesResponse) Descriptor() ([]byte, []int)
func (*QueryClientStatesResponse) GetClientStates ¶
func (m *QueryClientStatesResponse) GetClientStates() IdentifiedClientStates
func (*QueryClientStatesResponse) GetPagination ¶
func (m *QueryClientStatesResponse) GetPagination() *query.PageResponse
func (*QueryClientStatesResponse) Marshal ¶
func (m *QueryClientStatesResponse) Marshal() (dAtA []byte, err error)
func (*QueryClientStatesResponse) MarshalTo ¶
func (m *QueryClientStatesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClientStatesResponse) MarshalToSizedBuffer ¶
func (m *QueryClientStatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClientStatesResponse) ProtoMessage ¶
func (*QueryClientStatesResponse) ProtoMessage()
func (*QueryClientStatesResponse) Reset ¶
func (m *QueryClientStatesResponse) Reset()
func (*QueryClientStatesResponse) Size ¶
func (m *QueryClientStatesResponse) Size() (n int)
func (*QueryClientStatesResponse) String ¶
func (m *QueryClientStatesResponse) String() string
func (*QueryClientStatesResponse) Unmarshal ¶
func (m *QueryClientStatesResponse) Unmarshal(dAtA []byte) error
func (QueryClientStatesResponse) UnpackInterfaces ¶
func (qcsr QueryClientStatesResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
func (*QueryClientStatesResponse) XXX_DiscardUnknown ¶
func (m *QueryClientStatesResponse) XXX_DiscardUnknown()
func (*QueryClientStatesResponse) XXX_Marshal ¶
func (m *QueryClientStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClientStatesResponse) XXX_Merge ¶
func (m *QueryClientStatesResponse) XXX_Merge(src proto.Message)
func (*QueryClientStatesResponse) XXX_Size ¶
func (m *QueryClientStatesResponse) XXX_Size() int
func (*QueryClientStatesResponse) XXX_Unmarshal ¶
func (m *QueryClientStatesResponse) XXX_Unmarshal(b []byte) error
type QueryConsensusStateRequest ¶
type QueryConsensusStateRequest struct { // client identifier ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // consensus state revision number RevisionNumber uint64 `protobuf:"varint,2,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"` // consensus state revision height RevisionHeight uint64 `protobuf:"varint,3,opt,name=revision_height,json=revisionHeight,proto3" json:"revision_height,omitempty"` // latest_height overrrides the height field and queries the latest stored // ConsensusState LatestHeight bool `protobuf:"varint,4,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"` }
QueryConsensusStateRequest is the request type for the Query/ConsensusState RPC method. Besides the consensus state, it includes a proof and the height from which the proof was retrieved.
func (*QueryConsensusStateRequest) Descriptor ¶
func (*QueryConsensusStateRequest) Descriptor() ([]byte, []int)
func (*QueryConsensusStateRequest) GetChainName ¶
func (m *QueryConsensusStateRequest) GetChainName() string
func (*QueryConsensusStateRequest) GetLatestHeight ¶
func (m *QueryConsensusStateRequest) GetLatestHeight() bool
func (*QueryConsensusStateRequest) GetRevisionHeight ¶
func (m *QueryConsensusStateRequest) GetRevisionHeight() uint64
func (*QueryConsensusStateRequest) GetRevisionNumber ¶
func (m *QueryConsensusStateRequest) GetRevisionNumber() uint64
func (*QueryConsensusStateRequest) Marshal ¶
func (m *QueryConsensusStateRequest) Marshal() (dAtA []byte, err error)
func (*QueryConsensusStateRequest) MarshalTo ¶
func (m *QueryConsensusStateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsensusStateRequest) MarshalToSizedBuffer ¶
func (m *QueryConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsensusStateRequest) ProtoMessage ¶
func (*QueryConsensusStateRequest) ProtoMessage()
func (*QueryConsensusStateRequest) Reset ¶
func (m *QueryConsensusStateRequest) Reset()
func (*QueryConsensusStateRequest) Size ¶
func (m *QueryConsensusStateRequest) Size() (n int)
func (*QueryConsensusStateRequest) String ¶
func (m *QueryConsensusStateRequest) String() string
func (*QueryConsensusStateRequest) Unmarshal ¶
func (m *QueryConsensusStateRequest) Unmarshal(dAtA []byte) error
func (*QueryConsensusStateRequest) XXX_DiscardUnknown ¶
func (m *QueryConsensusStateRequest) XXX_DiscardUnknown()
func (*QueryConsensusStateRequest) XXX_Marshal ¶
func (m *QueryConsensusStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsensusStateRequest) XXX_Merge ¶
func (m *QueryConsensusStateRequest) XXX_Merge(src proto.Message)
func (*QueryConsensusStateRequest) XXX_Size ¶
func (m *QueryConsensusStateRequest) XXX_Size() int
func (*QueryConsensusStateRequest) XXX_Unmarshal ¶
func (m *QueryConsensusStateRequest) XXX_Unmarshal(b []byte) error
type QueryConsensusStateResponse ¶
type QueryConsensusStateResponse struct { // consensus state associated with the client identifier at the given height ConsensusState *types.Any `protobuf:"bytes,1,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"` // merkle proof of existence Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` // height at which the proof was retrieved ProofHeight Height `protobuf:"bytes,3,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height"` }
QueryConsensusStateResponse is the response type for the Query/ConsensusState RPC method
func NewQueryConsensusStateResponse ¶
func NewQueryConsensusStateResponse( consensusStateAny *codectypes.Any, proof []byte, height Height, ) *QueryConsensusStateResponse
NewQueryConsensusStateResponse creates a new QueryConsensusStateResponse instance.
func (*QueryConsensusStateResponse) Descriptor ¶
func (*QueryConsensusStateResponse) Descriptor() ([]byte, []int)
func (*QueryConsensusStateResponse) GetConsensusState ¶
func (m *QueryConsensusStateResponse) GetConsensusState() *types.Any
func (*QueryConsensusStateResponse) GetProof ¶
func (m *QueryConsensusStateResponse) GetProof() []byte
func (*QueryConsensusStateResponse) GetProofHeight ¶
func (m *QueryConsensusStateResponse) GetProofHeight() Height
func (*QueryConsensusStateResponse) Marshal ¶
func (m *QueryConsensusStateResponse) Marshal() (dAtA []byte, err error)
func (*QueryConsensusStateResponse) MarshalTo ¶
func (m *QueryConsensusStateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsensusStateResponse) MarshalToSizedBuffer ¶
func (m *QueryConsensusStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsensusStateResponse) ProtoMessage ¶
func (*QueryConsensusStateResponse) ProtoMessage()
func (*QueryConsensusStateResponse) Reset ¶
func (m *QueryConsensusStateResponse) Reset()
func (*QueryConsensusStateResponse) Size ¶
func (m *QueryConsensusStateResponse) Size() (n int)
func (*QueryConsensusStateResponse) String ¶
func (m *QueryConsensusStateResponse) String() string
func (*QueryConsensusStateResponse) Unmarshal ¶
func (m *QueryConsensusStateResponse) Unmarshal(dAtA []byte) error
func (QueryConsensusStateResponse) UnpackInterfaces ¶
func (qcsr QueryConsensusStateResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
func (*QueryConsensusStateResponse) XXX_DiscardUnknown ¶
func (m *QueryConsensusStateResponse) XXX_DiscardUnknown()
func (*QueryConsensusStateResponse) XXX_Marshal ¶
func (m *QueryConsensusStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsensusStateResponse) XXX_Merge ¶
func (m *QueryConsensusStateResponse) XXX_Merge(src proto.Message)
func (*QueryConsensusStateResponse) XXX_Size ¶
func (m *QueryConsensusStateResponse) XXX_Size() int
func (*QueryConsensusStateResponse) XXX_Unmarshal ¶
func (m *QueryConsensusStateResponse) XXX_Unmarshal(b []byte) error
type QueryConsensusStatesRequest ¶
type QueryConsensusStatesRequest struct { // client identifier ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // pagination request Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryConsensusStatesRequest is the request type for the Query/ConsensusStates RPC method.
func (*QueryConsensusStatesRequest) Descriptor ¶
func (*QueryConsensusStatesRequest) Descriptor() ([]byte, []int)
func (*QueryConsensusStatesRequest) GetChainName ¶
func (m *QueryConsensusStatesRequest) GetChainName() string
func (*QueryConsensusStatesRequest) GetPagination ¶
func (m *QueryConsensusStatesRequest) GetPagination() *query.PageRequest
func (*QueryConsensusStatesRequest) Marshal ¶
func (m *QueryConsensusStatesRequest) Marshal() (dAtA []byte, err error)
func (*QueryConsensusStatesRequest) MarshalTo ¶
func (m *QueryConsensusStatesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsensusStatesRequest) MarshalToSizedBuffer ¶
func (m *QueryConsensusStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsensusStatesRequest) ProtoMessage ¶
func (*QueryConsensusStatesRequest) ProtoMessage()
func (*QueryConsensusStatesRequest) Reset ¶
func (m *QueryConsensusStatesRequest) Reset()
func (*QueryConsensusStatesRequest) Size ¶
func (m *QueryConsensusStatesRequest) Size() (n int)
func (*QueryConsensusStatesRequest) String ¶
func (m *QueryConsensusStatesRequest) String() string
func (*QueryConsensusStatesRequest) Unmarshal ¶
func (m *QueryConsensusStatesRequest) Unmarshal(dAtA []byte) error
func (*QueryConsensusStatesRequest) XXX_DiscardUnknown ¶
func (m *QueryConsensusStatesRequest) XXX_DiscardUnknown()
func (*QueryConsensusStatesRequest) XXX_Marshal ¶
func (m *QueryConsensusStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsensusStatesRequest) XXX_Merge ¶
func (m *QueryConsensusStatesRequest) XXX_Merge(src proto.Message)
func (*QueryConsensusStatesRequest) XXX_Size ¶
func (m *QueryConsensusStatesRequest) XXX_Size() int
func (*QueryConsensusStatesRequest) XXX_Unmarshal ¶
func (m *QueryConsensusStatesRequest) XXX_Unmarshal(b []byte) error
type QueryConsensusStatesResponse ¶
type QueryConsensusStatesResponse struct { // consensus states associated with the identifier ConsensusStates []ConsensusStateWithHeight `protobuf:"bytes,1,rep,name=consensus_states,json=consensusStates,proto3" json:"consensus_states"` // pagination response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryConsensusStatesResponse is the response type for the Query/ConsensusStates RPC method
func (*QueryConsensusStatesResponse) Descriptor ¶
func (*QueryConsensusStatesResponse) Descriptor() ([]byte, []int)
func (*QueryConsensusStatesResponse) GetConsensusStates ¶
func (m *QueryConsensusStatesResponse) GetConsensusStates() []ConsensusStateWithHeight
func (*QueryConsensusStatesResponse) GetPagination ¶
func (m *QueryConsensusStatesResponse) GetPagination() *query.PageResponse
func (*QueryConsensusStatesResponse) Marshal ¶
func (m *QueryConsensusStatesResponse) Marshal() (dAtA []byte, err error)
func (*QueryConsensusStatesResponse) MarshalTo ¶
func (m *QueryConsensusStatesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsensusStatesResponse) MarshalToSizedBuffer ¶
func (m *QueryConsensusStatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsensusStatesResponse) ProtoMessage ¶
func (*QueryConsensusStatesResponse) ProtoMessage()
func (*QueryConsensusStatesResponse) Reset ¶
func (m *QueryConsensusStatesResponse) Reset()
func (*QueryConsensusStatesResponse) Size ¶
func (m *QueryConsensusStatesResponse) Size() (n int)
func (*QueryConsensusStatesResponse) String ¶
func (m *QueryConsensusStatesResponse) String() string
func (*QueryConsensusStatesResponse) Unmarshal ¶
func (m *QueryConsensusStatesResponse) Unmarshal(dAtA []byte) error
func (QueryConsensusStatesResponse) UnpackInterfaces ¶
func (qcsr QueryConsensusStatesResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces
func (*QueryConsensusStatesResponse) XXX_DiscardUnknown ¶
func (m *QueryConsensusStatesResponse) XXX_DiscardUnknown()
func (*QueryConsensusStatesResponse) XXX_Marshal ¶
func (m *QueryConsensusStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsensusStatesResponse) XXX_Merge ¶
func (m *QueryConsensusStatesResponse) XXX_Merge(src proto.Message)
func (*QueryConsensusStatesResponse) XXX_Size ¶
func (m *QueryConsensusStatesResponse) XXX_Size() int
func (*QueryConsensusStatesResponse) XXX_Unmarshal ¶
func (m *QueryConsensusStatesResponse) XXX_Unmarshal(b []byte) error
type QueryRelayersRequest ¶
type QueryRelayersRequest struct { // client identifier ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` }
QueryRelayersRequest is the request type for the Query/Relayers RPC method.
func (*QueryRelayersRequest) Descriptor ¶
func (*QueryRelayersRequest) Descriptor() ([]byte, []int)
func (*QueryRelayersRequest) GetChainName ¶
func (m *QueryRelayersRequest) GetChainName() string
func (*QueryRelayersRequest) Marshal ¶
func (m *QueryRelayersRequest) Marshal() (dAtA []byte, err error)
func (*QueryRelayersRequest) MarshalTo ¶
func (m *QueryRelayersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRelayersRequest) MarshalToSizedBuffer ¶
func (m *QueryRelayersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRelayersRequest) ProtoMessage ¶
func (*QueryRelayersRequest) ProtoMessage()
func (*QueryRelayersRequest) Reset ¶
func (m *QueryRelayersRequest) Reset()
func (*QueryRelayersRequest) Size ¶
func (m *QueryRelayersRequest) Size() (n int)
func (*QueryRelayersRequest) String ¶
func (m *QueryRelayersRequest) String() string
func (*QueryRelayersRequest) Unmarshal ¶
func (m *QueryRelayersRequest) Unmarshal(dAtA []byte) error
func (*QueryRelayersRequest) XXX_DiscardUnknown ¶
func (m *QueryRelayersRequest) XXX_DiscardUnknown()
func (*QueryRelayersRequest) XXX_Marshal ¶
func (m *QueryRelayersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRelayersRequest) XXX_Merge ¶
func (m *QueryRelayersRequest) XXX_Merge(src proto.Message)
func (*QueryRelayersRequest) XXX_Size ¶
func (m *QueryRelayersRequest) XXX_Size() int
func (*QueryRelayersRequest) XXX_Unmarshal ¶
func (m *QueryRelayersRequest) XXX_Unmarshal(b []byte) error
type QueryRelayersResponse ¶
type QueryRelayersResponse struct { // relayers address associated with the client Relayers []string `protobuf:"bytes,1,rep,name=relayers,proto3" json:"relayers,omitempty"` }
QueryConsensusStatesResponse is the response type for the Query/Relayers RPC method
func (*QueryRelayersResponse) Descriptor ¶
func (*QueryRelayersResponse) Descriptor() ([]byte, []int)
func (*QueryRelayersResponse) GetRelayers ¶
func (m *QueryRelayersResponse) GetRelayers() []string
func (*QueryRelayersResponse) Marshal ¶
func (m *QueryRelayersResponse) Marshal() (dAtA []byte, err error)
func (*QueryRelayersResponse) MarshalTo ¶
func (m *QueryRelayersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRelayersResponse) MarshalToSizedBuffer ¶
func (m *QueryRelayersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRelayersResponse) ProtoMessage ¶
func (*QueryRelayersResponse) ProtoMessage()
func (*QueryRelayersResponse) Reset ¶
func (m *QueryRelayersResponse) Reset()
func (*QueryRelayersResponse) Size ¶
func (m *QueryRelayersResponse) Size() (n int)
func (*QueryRelayersResponse) String ¶
func (m *QueryRelayersResponse) String() string
func (*QueryRelayersResponse) Unmarshal ¶
func (m *QueryRelayersResponse) Unmarshal(dAtA []byte) error
func (*QueryRelayersResponse) XXX_DiscardUnknown ¶
func (m *QueryRelayersResponse) XXX_DiscardUnknown()
func (*QueryRelayersResponse) XXX_Marshal ¶
func (m *QueryRelayersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRelayersResponse) XXX_Merge ¶
func (m *QueryRelayersResponse) XXX_Merge(src proto.Message)
func (*QueryRelayersResponse) XXX_Size ¶
func (m *QueryRelayersResponse) XXX_Size() int
func (*QueryRelayersResponse) XXX_Unmarshal ¶
func (m *QueryRelayersResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // ClientState queries an TIBC light client. ClientState(context.Context, *QueryClientStateRequest) (*QueryClientStateResponse, error) // ClientStates queries all the TIBC light clients of a chain. ClientStates(context.Context, *QueryClientStatesRequest) (*QueryClientStatesResponse, error) // ConsensusState queries a consensus state associated with a client state at // a given height. ConsensusState(context.Context, *QueryConsensusStateRequest) (*QueryConsensusStateResponse, error) // ConsensusStates queries all the consensus state associated with a given // client. ConsensusStates(context.Context, *QueryConsensusStatesRequest) (*QueryConsensusStatesResponse, error) // Relayers queries all the relayers associated with a given // client. Relayers(context.Context, *QueryRelayersRequest) (*QueryRelayersResponse, error) }
QueryServer is the server API for Query service.
type RegisterRelayerProposal ¶
type RegisterRelayerProposal struct { // the title of the update proposal Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // the description of the proposal Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // the client identifier for the client to be updated if the proposal passes ChainName string `protobuf:"bytes,3,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // relayer address list Relayers []string `protobuf:"bytes,4,rep,name=relayers,proto3" json:"relayers,omitempty"` }
RegisterRelayerProposal defines a overnance proposal to register some relayers for updating a client state.
func NewRegisterRelayerProposal ¶
func NewRegisterRelayerProposal(title, description, chainName string, relayers []string) *RegisterRelayerProposal
NewRegisterRelayerProposal creates a new registering relayer proposal.
func (*RegisterRelayerProposal) Descriptor ¶
func (*RegisterRelayerProposal) Descriptor() ([]byte, []int)
func (*RegisterRelayerProposal) GetDescription ¶
func (rrp *RegisterRelayerProposal) GetDescription() string
GetDescription returns the description of a registering relayer proposal.
func (*RegisterRelayerProposal) GetTitle ¶
func (rrp *RegisterRelayerProposal) GetTitle() string
GetTitle returns the title of a registering relayer proposal.
func (*RegisterRelayerProposal) Marshal ¶
func (m *RegisterRelayerProposal) Marshal() (dAtA []byte, err error)
func (*RegisterRelayerProposal) MarshalTo ¶
func (m *RegisterRelayerProposal) MarshalTo(dAtA []byte) (int, error)
func (*RegisterRelayerProposal) MarshalToSizedBuffer ¶
func (m *RegisterRelayerProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterRelayerProposal) ProposalRoute ¶
func (rrp *RegisterRelayerProposal) ProposalRoute() string
ProposalRoute returns the routing key of a registering relayer proposal.
func (*RegisterRelayerProposal) ProposalType ¶
func (rrp *RegisterRelayerProposal) ProposalType() string
ProposalType returns the type of a client registering relayer proposal.
func (*RegisterRelayerProposal) ProtoMessage ¶
func (*RegisterRelayerProposal) ProtoMessage()
func (*RegisterRelayerProposal) Reset ¶
func (m *RegisterRelayerProposal) Reset()
func (*RegisterRelayerProposal) Size ¶
func (m *RegisterRelayerProposal) Size() (n int)
func (*RegisterRelayerProposal) String ¶
func (m *RegisterRelayerProposal) String() string
func (*RegisterRelayerProposal) Unmarshal ¶
func (m *RegisterRelayerProposal) Unmarshal(dAtA []byte) error
func (*RegisterRelayerProposal) ValidateBasic ¶
func (rrp *RegisterRelayerProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks
func (*RegisterRelayerProposal) XXX_DiscardUnknown ¶
func (m *RegisterRelayerProposal) XXX_DiscardUnknown()
func (*RegisterRelayerProposal) XXX_Marshal ¶
func (m *RegisterRelayerProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterRelayerProposal) XXX_Merge ¶
func (m *RegisterRelayerProposal) XXX_Merge(src proto.Message)
func (*RegisterRelayerProposal) XXX_Size ¶
func (m *RegisterRelayerProposal) XXX_Size() int
func (*RegisterRelayerProposal) XXX_Unmarshal ¶
func (m *RegisterRelayerProposal) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
type StakingKeeper interface { GetHistoricalInfo(ctx sdk.Context, height int64) (stakingtypes.HistoricalInfo, bool) UnbondingTime(ctx sdk.Context) time.Duration }
StakingKeeper expected staking keeper
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateClient ¶
func (*UnimplementedMsgServer) UpdateClient(ctx context.Context, req *MsgUpdateClient) (*MsgUpdateClientResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ClientState ¶
func (*UnimplementedQueryServer) ClientState(ctx context.Context, req *QueryClientStateRequest) (*QueryClientStateResponse, error)
func (*UnimplementedQueryServer) ClientStates ¶
func (*UnimplementedQueryServer) ClientStates(ctx context.Context, req *QueryClientStatesRequest) (*QueryClientStatesResponse, error)
func (*UnimplementedQueryServer) ConsensusState ¶
func (*UnimplementedQueryServer) ConsensusState(ctx context.Context, req *QueryConsensusStateRequest) (*QueryConsensusStateResponse, error)
func (*UnimplementedQueryServer) ConsensusStates ¶
func (*UnimplementedQueryServer) ConsensusStates(ctx context.Context, req *QueryConsensusStatesRequest) (*QueryConsensusStatesResponse, error)
func (*UnimplementedQueryServer) Relayers ¶
func (*UnimplementedQueryServer) Relayers(ctx context.Context, req *QueryRelayersRequest) (*QueryRelayersResponse, error)
type UpgradeClientProposal ¶
type UpgradeClientProposal struct { // the title of the update proposal Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // the description of the proposal Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // the client identifier for the client to be updated if the proposal passes ChainName string `protobuf:"bytes,3,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"` // client state ClientState *types.Any `protobuf:"bytes,4,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"` // consensus state ConsensusState *types.Any `protobuf:"bytes,5,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"` }
UpgradeClientProposal defines a overnance proposal to overide an TIBC client state
func NewUpgradeClientProposal ¶
func NewUpgradeClientProposal( title, description, chainName string, clientState exported.ClientState, consensusState exported.ConsensusState, ) ( *UpgradeClientProposal, error, )
NewUpgradeClientProposal create a upgrade client proposal.
func (*UpgradeClientProposal) Descriptor ¶
func (*UpgradeClientProposal) Descriptor() ([]byte, []int)
func (*UpgradeClientProposal) GetDescription ¶
func (cup *UpgradeClientProposal) GetDescription() string
GetDescription returns the description of a client upgrade proposal.
func (*UpgradeClientProposal) GetTitle ¶
func (cup *UpgradeClientProposal) GetTitle() string
GetTitle returns the title of a client upgrade proposal.
func (*UpgradeClientProposal) Marshal ¶
func (m *UpgradeClientProposal) Marshal() (dAtA []byte, err error)
func (*UpgradeClientProposal) MarshalTo ¶
func (m *UpgradeClientProposal) MarshalTo(dAtA []byte) (int, error)
func (*UpgradeClientProposal) MarshalToSizedBuffer ¶
func (m *UpgradeClientProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpgradeClientProposal) ProposalRoute ¶
func (cup *UpgradeClientProposal) ProposalRoute() string
ProposalRoute returns the routing key of a client upgrade proposal.
func (*UpgradeClientProposal) ProposalType ¶
func (cup *UpgradeClientProposal) ProposalType() string
ProposalType returns the type of a client upgrade proposal.
func (*UpgradeClientProposal) ProtoMessage ¶
func (*UpgradeClientProposal) ProtoMessage()
func (*UpgradeClientProposal) Reset ¶
func (m *UpgradeClientProposal) Reset()
func (*UpgradeClientProposal) Size ¶
func (m *UpgradeClientProposal) Size() (n int)
func (*UpgradeClientProposal) String ¶
func (m *UpgradeClientProposal) String() string
func (*UpgradeClientProposal) Unmarshal ¶
func (m *UpgradeClientProposal) Unmarshal(dAtA []byte) error
func (UpgradeClientProposal) UnpackInterfaces ¶
func (cup UpgradeClientProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*UpgradeClientProposal) ValidateBasic ¶
func (cup *UpgradeClientProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks
func (*UpgradeClientProposal) XXX_DiscardUnknown ¶
func (m *UpgradeClientProposal) XXX_DiscardUnknown()
func (*UpgradeClientProposal) XXX_Marshal ¶
func (m *UpgradeClientProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpgradeClientProposal) XXX_Merge ¶
func (m *UpgradeClientProposal) XXX_Merge(src proto.Message)
func (*UpgradeClientProposal) XXX_Size ¶
func (m *UpgradeClientProposal) XXX_Size() int
func (*UpgradeClientProposal) XXX_Unmarshal ¶
func (m *UpgradeClientProposal) XXX_Unmarshal(b []byte) error