Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func FormatClientIdentifier(clientType string, sequence uint64) string
- func IsValidClientID(clientID string) bool
- func MarshalClientState(cdc codec.BinaryMarshaler, clientStateI exported.ClientState) ([]byte, error)
- func MarshalClientStatesResp(cdc *codec.Codec, resp QueryClientStatesResponse) ([]byte, error)
- func MarshalConsensusState(cdc codec.BinaryMarshaler, cs exported.ConsensusState) ([]byte, error)
- func MustMarshalClientState(cdc codec.BinaryMarshaler, clientState exported.ClientState) []byte
- func MustMarshalClientStateResp(cdc *codec.Codec, resp QueryClientStatesResponse) []byte
- func MustMarshalConsensusState(cdc codec.BinaryMarshaler, consensusState exported.ConsensusState) []byte
- func MustPackConsensusState(consensusState exported.ConsensusState) *codectypes.Any
- func MustUnmarshalClientState(cdc codec.BinaryMarshaler, bz []byte) exported.ClientState
- func MustUnmarshalConsensusState(cdc codec.BinaryMarshaler, 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 ParamKeyTable() paramtypes.KeyTable
- func ParseChainID(chainID string) uint64
- func ParseClientIdentifier(clientID string) (string, uint64, error)
- func RegisterCodec(cdc *codec.Codec)
- 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 SetBinary(registry codectypes.InterfaceRegistry)
- func SetRevisionNumber(chainID string, revision uint64) (string, error)
- func UnmarshalClientState(cdc codec.BinaryMarshaler, bz []byte) (exported.ClientState, error)
- func UnmarshalConsensusState(cdc codec.BinaryMarshaler, bz []byte) (exported.ConsensusState, 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) GetClientId() 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 (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 ClientUpdateProposal
- func (*ClientUpdateProposal) Descriptor() ([]byte, []int)
- func (m *ClientUpdateProposal) Marshal() (dAtA []byte, err error)
- func (m *ClientUpdateProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientUpdateProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientUpdateProposal) ProtoMessage()
- func (m *ClientUpdateProposal) Reset()
- func (m *ClientUpdateProposal) Size() (n int)
- func (m *ClientUpdateProposal) String() string
- func (m *ClientUpdateProposal) Unmarshal(dAtA []byte) error
- func (m *ClientUpdateProposal) XXX_DiscardUnknown()
- func (m *ClientUpdateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientUpdateProposal) XXX_Merge(src proto.Message)
- func (m *ClientUpdateProposal) XXX_Size() int
- func (m *ClientUpdateProposal) XXX_Unmarshal(b []byte) error
- type ClientsConsensusStates
- 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 GenesisMetadata
- func (*GenesisMetadata) Descriptor() ([]byte, []int)
- 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 (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) GetCreateLocalhost() bool
- func (m *GenesisState) GetNextClientSequence() uint64
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type 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) GetClientId() 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) GetClientId() string
- func (m *IdentifiedGenesisMetadata) GetClientMetadata() []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 MsgClient
- type MsgCreateClient
- func (msg MsgCreateClient) Bytes() []byte
- func (*MsgCreateClient) Descriptor() ([]byte, []int)
- func (msg MsgCreateClient) GetFromAddress() sdk.AccAddress
- func (msg MsgCreateClient) GetSignBytes() []byte
- func (msg MsgCreateClient) GetSigners() []cosmosSdk.AccAddress
- func (m *MsgCreateClient) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateClient) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (msg MsgCreateClient) MsgType() string
- func (*MsgCreateClient) ProtoMessage()
- func (m *MsgCreateClient) Reset()
- func (msg MsgCreateClient) Route() string
- func (m *MsgCreateClient) Size() (n int)
- func (m *MsgCreateClient) String() string
- func (msg MsgCreateClient) Type() string
- func (m *MsgCreateClient) Unmarshal(dAtA []byte) error
- func (msg MsgCreateClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (msg MsgCreateClient) ValidateBasic() error
- func (m *MsgCreateClient) XXX_DiscardUnknown()
- func (m *MsgCreateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateClient) XXX_Merge(src proto.Message)
- func (m *MsgCreateClient) XXX_Size() int
- func (m *MsgCreateClient) XXX_Unmarshal(b []byte) error
- type MsgCreateClientResponse
- func (*MsgCreateClientResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateClientResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateClientResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateClientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateClientResponse) ProtoMessage()
- func (m *MsgCreateClientResponse) Reset()
- func (m *MsgCreateClientResponse) Size() (n int)
- func (m *MsgCreateClientResponse) String() string
- func (m *MsgCreateClientResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateClientResponse) XXX_DiscardUnknown()
- func (m *MsgCreateClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateClientResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateClientResponse) XXX_Size() int
- func (m *MsgCreateClientResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSubmitMisbehaviour
- func (*MsgSubmitMisbehaviour) Descriptor() ([]byte, []int)
- func (m *MsgSubmitMisbehaviour) Marshal() (dAtA []byte, err error)
- func (m *MsgSubmitMisbehaviour) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubmitMisbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubmitMisbehaviour) ProtoMessage()
- func (m *MsgSubmitMisbehaviour) Reset()
- func (m *MsgSubmitMisbehaviour) Size() (n int)
- func (m *MsgSubmitMisbehaviour) String() string
- func (m *MsgSubmitMisbehaviour) Unmarshal(dAtA []byte) error
- func (m *MsgSubmitMisbehaviour) XXX_DiscardUnknown()
- func (m *MsgSubmitMisbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubmitMisbehaviour) XXX_Merge(src proto.Message)
- func (m *MsgSubmitMisbehaviour) XXX_Size() int
- func (m *MsgSubmitMisbehaviour) XXX_Unmarshal(b []byte) error
- type MsgSubmitMisbehaviourResponse
- func (*MsgSubmitMisbehaviourResponse) Descriptor() ([]byte, []int)
- func (m *MsgSubmitMisbehaviourResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSubmitMisbehaviourResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubmitMisbehaviourResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubmitMisbehaviourResponse) ProtoMessage()
- func (m *MsgSubmitMisbehaviourResponse) Reset()
- func (m *MsgSubmitMisbehaviourResponse) Size() (n int)
- func (m *MsgSubmitMisbehaviourResponse) String() string
- func (m *MsgSubmitMisbehaviourResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSubmitMisbehaviourResponse) XXX_DiscardUnknown()
- func (m *MsgSubmitMisbehaviourResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubmitMisbehaviourResponse) XXX_Merge(src proto.Message)
- func (m *MsgSubmitMisbehaviourResponse) XXX_Size() int
- func (m *MsgSubmitMisbehaviourResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateClient
- func (m MsgUpdateClient) Bytes() []byte
- func (*MsgUpdateClient) Descriptor() ([]byte, []int)
- func (m MsgUpdateClient) GetFromAddress() sdk.AccAddress
- func (m MsgUpdateClient) GetSignBytes() []byte
- func (m MsgUpdateClient) GetSigners() []cosmosSdk.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 (m MsgUpdateClient) MsgType() string
- func (*MsgUpdateClient) ProtoMessage()
- func (m *MsgUpdateClient) Reset()
- func (m MsgUpdateClient) Route() string
- func (m *MsgUpdateClient) Size() (n int)
- func (m *MsgUpdateClient) String() string
- func (m MsgUpdateClient) Type() 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 MsgUpgradeClient
- func (*MsgUpgradeClient) Descriptor() ([]byte, []int)
- func (m *MsgUpgradeClient) Marshal() (dAtA []byte, err error)
- func (m *MsgUpgradeClient) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpgradeClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpgradeClient) ProtoMessage()
- func (m *MsgUpgradeClient) Reset()
- func (m *MsgUpgradeClient) Size() (n int)
- func (m *MsgUpgradeClient) String() string
- func (m *MsgUpgradeClient) Unmarshal(dAtA []byte) error
- func (m *MsgUpgradeClient) XXX_DiscardUnknown()
- func (m *MsgUpgradeClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpgradeClient) XXX_Merge(src proto.Message)
- func (m *MsgUpgradeClient) XXX_Size() int
- func (m *MsgUpgradeClient) XXX_Unmarshal(b []byte) error
- type MsgUpgradeClientResponse
- func (*MsgUpgradeClientResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpgradeClientResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpgradeClientResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpgradeClientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpgradeClientResponse) ProtoMessage()
- func (m *MsgUpgradeClientResponse) Reset()
- func (m *MsgUpgradeClientResponse) Size() (n int)
- func (m *MsgUpgradeClientResponse) String() string
- func (m *MsgUpgradeClientResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpgradeClientResponse) XXX_DiscardUnknown()
- func (m *MsgUpgradeClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpgradeClientResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpgradeClientResponse) XXX_Size() int
- func (m *MsgUpgradeClientResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAllowedClients() []string
- func (p Params) IsAllowedClient(clientType string) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryClientParamsRequest
- func (*QueryClientParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryClientParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClientParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClientParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClientParamsRequest) ProtoMessage()
- func (m *QueryClientParamsRequest) Reset()
- func (m *QueryClientParamsRequest) Size() (n int)
- func (m *QueryClientParamsRequest) String() string
- func (m *QueryClientParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClientParamsRequest) XXX_DiscardUnknown()
- func (m *QueryClientParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClientParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryClientParamsRequest) XXX_Size() int
- func (m *QueryClientParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryClientParamsResponse
- func (*QueryClientParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryClientParamsResponse) GetParams() *Params
- func (m *QueryClientParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClientParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClientParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClientParamsResponse) ProtoMessage()
- func (m *QueryClientParamsResponse) Reset()
- func (m *QueryClientParamsResponse) Size() (n int)
- func (m *QueryClientParamsResponse) String() string
- func (m *QueryClientParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClientParamsResponse) XXX_DiscardUnknown()
- func (m *QueryClientParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClientParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryClientParamsResponse) XXX_Size() int
- func (m *QueryClientParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryClientStateRequest
- func (*QueryClientStateRequest) Descriptor() ([]byte, []int)
- func (m *QueryClientStateRequest) GetClientId() 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) GetClientId() 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) GetClientId() 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 QueryServer
- type StakingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateClient(ctx context.Context, req *MsgCreateClient) (*MsgCreateClientResponse, error)
- func (*UnimplementedMsgServer) SubmitMisbehaviour(ctx context.Context, req *MsgSubmitMisbehaviour) (*MsgSubmitMisbehaviourResponse, error)
- func (*UnimplementedMsgServer) UpdateClient(ctx context.Context, req *MsgUpdateClient) (*MsgUpdateClientResponse, error)
- func (*UnimplementedMsgServer) UpgradeClient(ctx context.Context, req *MsgUpgradeClient) (*MsgUpgradeClientResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ClientParams(ctx context.Context, req *QueryClientParamsRequest) (*QueryClientParamsResponse, error)
- 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)
Constants ¶
const ( AttributeKeyClientID = "client_id" AttributeKeySubjectClientID = "subject_client_id" AttributeKeyClientType = "client_type" AttributeKeyConsensusHeight = "consensus_height" )
IBC client events
const ( // SubModuleName defines the IBC client name SubModuleName string = "client" // KeyNextClientSequence is the key used to store the next client sequence in // the keeper. KeyNextClientSequence = "nextClientSequence" )
const ( TypeMsgCreateClient string = "create_client" TypeMsgUpdateClient string = "update_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(SubModuleName, 2042, "light client already exists") ErrInvalidClient = sdkerrors.Register(SubModuleName, 3, "light client is invalid") ErrClientNotFound = sdkerrors.Register(SubModuleName, 2044, "light client not found") ErrClientFrozen = sdkerrors.Register(SubModuleName, 2045, "light client is frozen due to misbehaviour") ErrInvalidClientMetadata = sdkerrors.Register(SubModuleName, 2046, "invalid client metadata") ErrConsensusStateNotFound = sdkerrors.Register(SubModuleName, 2047, "consensus state not found") ErrInvalidConsensus = sdkerrors.Register(SubModuleName, 2048, "invalid consensus state") ErrClientTypeNotFound = sdkerrors.Register(SubModuleName, 2049, "client type not found") ErrInvalidClientType = sdkerrors.Register(SubModuleName, 2050, "invalid client type") ErrRootNotFound = sdkerrors.Register(SubModuleName, 2051, "commitment root not found") ErrInvalidHeader = sdkerrors.Register(SubModuleName, 2052, "invalid client header") ErrInvalidMisbehaviour = sdkerrors.Register(SubModuleName, 2053, "invalid light client misbehaviour") ErrFailedClientStateVerification = sdkerrors.Register(SubModuleName, 2054, "client state verification failed") ErrFailedClientConsensusStateVerification = sdkerrors.Register(SubModuleName, 2055, "client consensus state verification failed") ErrFailedConnectionStateVerification = sdkerrors.Register(SubModuleName, 2056, "connection state verification failed") ErrFailedChannelStateVerification = sdkerrors.Register(SubModuleName, 2057, "channel state verification failed") ErrFailedPacketCommitmentVerification = sdkerrors.Register(SubModuleName, 2058, "packet commitment verification failed") ErrFailedPacketAckVerification = sdkerrors.Register(SubModuleName, 2059, "packet acknowledgement verification failed") ErrFailedPacketReceiptVerification = sdkerrors.Register(SubModuleName, 2060, "packet receipt verification failed") ErrFailedNextSeqRecvVerification = sdkerrors.Register(SubModuleName, 2061, "next sequence receive verification failed") ErrSelfConsensusStateNotFound = sdkerrors.Register(SubModuleName, 2062, "self consensus state not found") ErrUpdateClientFailed = sdkerrors.Register(SubModuleName, 2063, "unable to update light client") ErrInvalidUpdateClientProposal = sdkerrors.Register(SubModuleName, 2064, "invalid update client proposal") ErrInvalidUpgradeClient = sdkerrors.Register(SubModuleName, 2065, "invalid client upgrade") )
IBC client sentinel errors
var ( EventTypeCreateClient = "create_client" EventTypeUpdateClient = "update_client" EventTypeUpgradeClient = "upgrade_client" EventTypeSubmitMisbehaviour = "client_misbehaviour" EventTypeUpdateClientProposal = "update_client_proposal" AttributeValueCategory = fmt.Sprintf("%s_%s", host.ModuleName, SubModuleName) )
IBC 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 ( // DefaultAllowedClients are "06-solomachine" and "07-tendermint" DefaultAllowedClients = []string{exported.Solomachine, exported.Tendermint} // KeyAllowedClients is store's key for AllowedClients Params KeyAllowedClients = []byte("AllowedClients") )
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 IBCClientCodec *codec.Codec
var IsClientIDFormat = regexp.MustCompile(`^.*[^-]-[0-9]{1,20}$`).MatchString
IsClientIDFormat checks if a clientID is in the format required on the SDK for parsing client identifiers. The client identifier must be in the form: `{client-types}-{N}
var IsRevisionFormat = regexp.MustCompile(`^.*[^-]-{1}[1-9][0-9]*$`).MatchString
var ( // SubModuleCdc references the global x/ibc/core/03-connection module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding. // // The actual codec used for serialization should be provided to x/ibc/core/03-connection and // defined at the application level. //var Marshaler codec.Marshaler SubModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) )
Functions ¶
func FormatClientIdentifier ¶
FormatClientIdentifier returns the client identifier with the sequence appended. This is a SDK specific format not enforced by IBC protocol.
func IsValidClientID ¶
IsValidClientID checks if the clientID is valid and can be parsed into the client identifier format.
func MarshalClientState ¶
func MarshalClientState(cdc codec.BinaryMarshaler, clientStateI exported.ClientState) ([]byte, error)
MarshalClientState protobuf serializes an ClientState interface
func MarshalClientStatesResp ¶
func MarshalClientStatesResp(cdc *codec.Codec, resp QueryClientStatesResponse) ([]byte, error)
func MarshalConsensusState ¶
func MarshalConsensusState(cdc codec.BinaryMarshaler, cs exported.ConsensusState) ([]byte, error)
MarshalConsensusState protobuf serializes an ConsensusState interface
func MustMarshalClientState ¶
func MustMarshalClientState(cdc codec.BinaryMarshaler, clientState exported.ClientState) []byte
MustMarshalClientState attempts to encode an ClientState object and returns the raw encoded bytes. It panics on error.
func MustMarshalClientStateResp ¶
func MustMarshalClientStateResp(cdc *codec.Codec, resp QueryClientStatesResponse) []byte
func MustMarshalConsensusState ¶
func MustMarshalConsensusState(cdc codec.BinaryMarshaler, consensusState exported.ConsensusState) []byte
MustMarshalConsensusState attempts to encode an ConsensusState 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.BinaryMarshaler, 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.BinaryMarshaler, 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 ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable types declaration for parameters
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 ParseClientIdentifier ¶
ParseClientIdentifier parses the client types and sequence from the client identifier.
func RegisterCodec ¶
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SetBinary ¶
func SetBinary(registry codectypes.InterfaceRegistry)
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.BinaryMarshaler, bz []byte) (exported.ClientState, error)
func UnmarshalConsensusState ¶
func UnmarshalConsensusState(cdc codec.BinaryMarshaler, bz []byte) (exported.ConsensusState, error)
UnmarshalConsensusState returns an ConsensusState interface from raw encoded clientState bytes of a Proto-based ConsensusState types. 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 types. 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 ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"` // consensus states and their heights associated with the client ConsensusStates []ConsensusStateWithHeight `protobuf:"bytes,2,rep,name=consensus_states,json=consensusStates,proto3" json:"consensus_states" yaml:"consensus_states"` }
ClientConsensusStates defines all the stored consensus states for a given client.
func (*ClientConsensusStates) Descriptor ¶
func (*ClientConsensusStates) Descriptor() ([]byte, []int)
func (*ClientConsensusStates) GetClientId ¶
func (m *ClientConsensusStates) GetClientId() 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) 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 ClientUpdateProposal ¶
type ClientUpdateProposal 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 ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"` // the header used to update the client if the proposal passes Header *types.Any `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"` }
ClientUpdateProposal is a governance proposal. If it passes, the client is updated with the provided header. The update may fail if the header is not valid given certain conditions specified by the client implementation.
func (*ClientUpdateProposal) Descriptor ¶
func (*ClientUpdateProposal) Descriptor() ([]byte, []int)
func (*ClientUpdateProposal) Marshal ¶
func (m *ClientUpdateProposal) Marshal() (dAtA []byte, err error)
func (*ClientUpdateProposal) MarshalTo ¶
func (m *ClientUpdateProposal) MarshalTo(dAtA []byte) (int, error)
func (*ClientUpdateProposal) MarshalToSizedBuffer ¶
func (m *ClientUpdateProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientUpdateProposal) ProtoMessage ¶
func (*ClientUpdateProposal) ProtoMessage()
func (*ClientUpdateProposal) Reset ¶
func (m *ClientUpdateProposal) Reset()
func (*ClientUpdateProposal) Size ¶
func (m *ClientUpdateProposal) Size() (n int)
func (*ClientUpdateProposal) String ¶
func (m *ClientUpdateProposal) String() string
func (*ClientUpdateProposal) Unmarshal ¶
func (m *ClientUpdateProposal) Unmarshal(dAtA []byte) error
func (*ClientUpdateProposal) XXX_DiscardUnknown ¶
func (m *ClientUpdateProposal) XXX_DiscardUnknown()
func (*ClientUpdateProposal) XXX_Marshal ¶
func (m *ClientUpdateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientUpdateProposal) XXX_Merge ¶
func (m *ClientUpdateProposal) XXX_Merge(src proto.Message)
func (*ClientUpdateProposal) XXX_Size ¶
func (m *ClientUpdateProposal) XXX_Size() int
func (*ClientUpdateProposal) XXX_Unmarshal ¶
func (m *ClientUpdateProposal) XXX_Unmarshal(b []byte) error
type ClientsConsensusStates ¶
type ClientsConsensusStates []ClientConsensusStates
// ConsensusStateWithHeight defines a consensus state with an additional height field.
type ConsensusStateWithHeight struct { // consensus state height Height Height `protobuf:"bytes,1,opt,name=height,proto3" json:"height"` // consensus state ConsensusState exported.ConsensusState `protobuf:"bytes,2,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty" yaml"consensus_state"` }
// ClientConsensusStates defines all the stored consensus states for a given // client.
type ClientConsensusStates struct { // client identifier ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"` // consensus states and their heights associated with the client ConsensusStates []ConsensusStateWithHeight `protobuf:"bytes,2,rep,name=consensus_states,json=consensusStates,proto3" json:"consensus_states" yaml:"consensus_states"` }
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
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" yaml"consensus_state"` }
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 GenesisMetadata ¶
type GenesisMetadata struct { // store key of metadata without clientID-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 (*GenesisMetadata) Descriptor ¶
func (*GenesisMetadata) Descriptor() ([]byte, []int)
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) 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 `` /* 160-byte string literal not displayed */ // metadata from each client ClientsMetadata []IdentifiedGenesisMetadata `protobuf:"bytes,3,rep,name=clients_metadata,json=clientsMetadata,proto3" json:"clients_metadata" yaml:"clients_metadata"` Params Params `protobuf:"bytes,4,opt,name=params,proto3" json:"params"` // create localhost on initialization CreateLocalhost bool `` /* 131-byte string literal not displayed */ // the sequence for the next generated client identifier NextClientSequence uint64 `` /* 146-byte string literal not displayed */ }
GenesisState defines the ibc client submodule's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
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) GetCreateLocalhost ¶
func (m *GenesisState) GetCreateLocalhost() bool
func (*GenesisState) GetNextClientSequence ¶
func (m *GenesisState) GetNextClientSequence() uint64
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type 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 ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"` // client state ClientState *types.Any `protobuf:"bytes,2,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty" yaml:"client_state"` }
IdentifiedClientState defines a client state with an additional client identifier field.
func NewIdentifiedClientState ¶
func NewIdentifiedClientState(clientID string, clientState exported.ClientState) IdentifiedClientState
func (*IdentifiedClientState) Descriptor ¶
func (*IdentifiedClientState) Descriptor() ([]byte, []int)
func (*IdentifiedClientState) GetClientId ¶
func (m *IdentifiedClientState) GetClientId() 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 { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"` ClientMetadata []GenesisMetadata `protobuf:"bytes,2,rep,name=client_metadata,json=clientMetadata,proto3" json:"client_metadata" yaml:"client_metadata"` }
IdentifiedGenesisMetadata has the client metadata with the corresponding client id.
func (*IdentifiedGenesisMetadata) Descriptor ¶
func (*IdentifiedGenesisMetadata) Descriptor() ([]byte, []int)
func (*IdentifiedGenesisMetadata) GetClientId ¶
func (m *IdentifiedGenesisMetadata) GetClientId() string
func (*IdentifiedGenesisMetadata) GetClientMetadata ¶
func (m *IdentifiedGenesisMetadata) GetClientMetadata() []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 MsgClient ¶
type MsgClient interface { // CreateClient defines a rpc handler method for MsgCreateClient. CreateClient(ctx context.Context, in *MsgCreateClient, opts ...grpc.CallOption) (*MsgCreateClientResponse, error) // UpdateClient defines a rpc handler method for MsgUpdateClient. UpdateClient(ctx context.Context, in *MsgUpdateClient, opts ...grpc.CallOption) (*MsgUpdateClientResponse, error) // UpgradeClient defines a rpc handler method for MsgUpgradeClient. UpgradeClient(ctx context.Context, in *MsgUpgradeClient, opts ...grpc.CallOption) (*MsgUpgradeClientResponse, error) // SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. SubmitMisbehaviour(ctx context.Context, in *MsgSubmitMisbehaviour, opts ...grpc.CallOption) (*MsgSubmitMisbehaviourResponse, 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 MsgCreateClient ¶
type MsgCreateClient struct { // light client state ClientState *types.Any `protobuf:"bytes,1,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty" yaml:"client_state"` // consensus state associated with the client that corresponds to a given // height. ConsensusState *types.Any `` /* 126-byte string literal not displayed */ // signer address Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"` }
MsgCreateClient defines a message to create an IBC client
func NewMsgCreateClient ¶
func NewMsgCreateClient( clientState exported.ClientState, consensusState exported.ConsensusState, signer string, ) (*MsgCreateClient, error)
type MsgCreateClient struct { // client_state ClientState exported.ClientState `json:"client_state,omitempty" yaml:"client_state"` // consensus_state ConsensusState exported.ConsensusState `json:"consensus_state,omitempty" yaml:"consensus_state"` // singer address Signer string `json:"signer,omitempty"` }
func (m *MsgCreateClient) Reset() { *m = MsgCreateClient{} } func (m *MsgCreateClient) String() string { return proto.CompactTextString(m) } func (*MsgCreateClient) ProtoMessage() {}
func (MsgCreateClient) Bytes ¶
func (msg MsgCreateClient) Bytes() []byte
func (*MsgCreateClient) Descriptor ¶
func (*MsgCreateClient) Descriptor() ([]byte, []int)
func (MsgCreateClient) GetFromAddress ¶
func (msg MsgCreateClient) GetFromAddress() sdk.AccAddress
func (MsgCreateClient) GetSignBytes ¶
func (msg MsgCreateClient) GetSignBytes() []byte
func (MsgCreateClient) GetSigners ¶
func (msg MsgCreateClient) GetSigners() []cosmosSdk.AccAddress
func (*MsgCreateClient) Marshal ¶
func (m *MsgCreateClient) Marshal() (dAtA []byte, err error)
func (*MsgCreateClient) MarshalToSizedBuffer ¶
func (m *MsgCreateClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (MsgCreateClient) MsgType ¶
func (msg MsgCreateClient) MsgType() string
func (*MsgCreateClient) ProtoMessage ¶
func (*MsgCreateClient) ProtoMessage()
func (*MsgCreateClient) Reset ¶
func (m *MsgCreateClient) Reset()
func (MsgCreateClient) Route ¶
func (msg MsgCreateClient) Route() string
func (*MsgCreateClient) Size ¶
func (m *MsgCreateClient) Size() (n int)
func (*MsgCreateClient) String ¶
func (m *MsgCreateClient) String() string
func (MsgCreateClient) Type ¶
func (msg MsgCreateClient) Type() string
func (*MsgCreateClient) Unmarshal ¶
func (m *MsgCreateClient) Unmarshal(dAtA []byte) error
func (MsgCreateClient) UnpackInterfaces ¶
func (msg MsgCreateClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (MsgCreateClient) ValidateBasic ¶
func (msg MsgCreateClient) ValidateBasic() error
func (*MsgCreateClient) XXX_DiscardUnknown ¶
func (m *MsgCreateClient) XXX_DiscardUnknown()
func (*MsgCreateClient) XXX_Marshal ¶
func (m *MsgCreateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateClient) XXX_Merge ¶
func (m *MsgCreateClient) XXX_Merge(src proto.Message)
func (*MsgCreateClient) XXX_Size ¶
func (m *MsgCreateClient) XXX_Size() int
func (*MsgCreateClient) XXX_Unmarshal ¶
func (m *MsgCreateClient) XXX_Unmarshal(b []byte) error
type MsgCreateClientResponse ¶
type MsgCreateClientResponse struct { }
MsgCreateClientResponse defines the Msg/CreateClient response type.
func (*MsgCreateClientResponse) Descriptor ¶
func (*MsgCreateClientResponse) Descriptor() ([]byte, []int)
func (*MsgCreateClientResponse) Marshal ¶
func (m *MsgCreateClientResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateClientResponse) MarshalTo ¶
func (m *MsgCreateClientResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateClientResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateClientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateClientResponse) ProtoMessage ¶
func (*MsgCreateClientResponse) ProtoMessage()
func (*MsgCreateClientResponse) Reset ¶
func (m *MsgCreateClientResponse) Reset()
func (*MsgCreateClientResponse) Size ¶
func (m *MsgCreateClientResponse) Size() (n int)
func (*MsgCreateClientResponse) String ¶
func (m *MsgCreateClientResponse) String() string
func (*MsgCreateClientResponse) Unmarshal ¶
func (m *MsgCreateClientResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateClientResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateClientResponse) XXX_DiscardUnknown()
func (*MsgCreateClientResponse) XXX_Marshal ¶
func (m *MsgCreateClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateClientResponse) XXX_Merge ¶
func (m *MsgCreateClientResponse) XXX_Merge(src proto.Message)
func (*MsgCreateClientResponse) XXX_Size ¶
func (m *MsgCreateClientResponse) XXX_Size() int
func (*MsgCreateClientResponse) XXX_Unmarshal ¶
func (m *MsgCreateClientResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateClient defines a rpc handler method for MsgCreateClient. CreateClient(context.Context, *MsgCreateClient) (*MsgCreateClientResponse, error) // UpdateClient defines a rpc handler method for MsgUpdateClient. UpdateClient(context.Context, *MsgUpdateClient) (*MsgUpdateClientResponse, error) // UpgradeClient defines a rpc handler method for MsgUpgradeClient. UpgradeClient(context.Context, *MsgUpgradeClient) (*MsgUpgradeClientResponse, error) // SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. SubmitMisbehaviour(context.Context, *MsgSubmitMisbehaviour) (*MsgSubmitMisbehaviourResponse, error) }
MsgServer is the server API for Msg service.
type MsgSubmitMisbehaviour ¶
type MsgSubmitMisbehaviour struct { // client unique identifier ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"` // misbehaviour used for freezing the light client Misbehaviour *types.Any `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` // signer address Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"` }
MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for light client misbehaviour.
func (*MsgSubmitMisbehaviour) Descriptor ¶
func (*MsgSubmitMisbehaviour) Descriptor() ([]byte, []int)
func (*MsgSubmitMisbehaviour) Marshal ¶
func (m *MsgSubmitMisbehaviour) Marshal() (dAtA []byte, err error)
func (*MsgSubmitMisbehaviour) MarshalTo ¶
func (m *MsgSubmitMisbehaviour) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubmitMisbehaviour) MarshalToSizedBuffer ¶
func (m *MsgSubmitMisbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubmitMisbehaviour) ProtoMessage ¶
func (*MsgSubmitMisbehaviour) ProtoMessage()
func (*MsgSubmitMisbehaviour) Reset ¶
func (m *MsgSubmitMisbehaviour) Reset()
func (*MsgSubmitMisbehaviour) Size ¶
func (m *MsgSubmitMisbehaviour) Size() (n int)
func (*MsgSubmitMisbehaviour) String ¶
func (m *MsgSubmitMisbehaviour) String() string
func (*MsgSubmitMisbehaviour) Unmarshal ¶
func (m *MsgSubmitMisbehaviour) Unmarshal(dAtA []byte) error
func (*MsgSubmitMisbehaviour) XXX_DiscardUnknown ¶
func (m *MsgSubmitMisbehaviour) XXX_DiscardUnknown()
func (*MsgSubmitMisbehaviour) XXX_Marshal ¶
func (m *MsgSubmitMisbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubmitMisbehaviour) XXX_Merge ¶
func (m *MsgSubmitMisbehaviour) XXX_Merge(src proto.Message)
func (*MsgSubmitMisbehaviour) XXX_Size ¶
func (m *MsgSubmitMisbehaviour) XXX_Size() int
func (*MsgSubmitMisbehaviour) XXX_Unmarshal ¶
func (m *MsgSubmitMisbehaviour) XXX_Unmarshal(b []byte) error
type MsgSubmitMisbehaviourResponse ¶
type MsgSubmitMisbehaviourResponse struct { }
MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response type.
func (*MsgSubmitMisbehaviourResponse) Descriptor ¶
func (*MsgSubmitMisbehaviourResponse) Descriptor() ([]byte, []int)
func (*MsgSubmitMisbehaviourResponse) Marshal ¶
func (m *MsgSubmitMisbehaviourResponse) Marshal() (dAtA []byte, err error)
func (*MsgSubmitMisbehaviourResponse) MarshalTo ¶
func (m *MsgSubmitMisbehaviourResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubmitMisbehaviourResponse) MarshalToSizedBuffer ¶
func (m *MsgSubmitMisbehaviourResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubmitMisbehaviourResponse) ProtoMessage ¶
func (*MsgSubmitMisbehaviourResponse) ProtoMessage()
func (*MsgSubmitMisbehaviourResponse) Reset ¶
func (m *MsgSubmitMisbehaviourResponse) Reset()
func (*MsgSubmitMisbehaviourResponse) Size ¶
func (m *MsgSubmitMisbehaviourResponse) Size() (n int)
func (*MsgSubmitMisbehaviourResponse) String ¶
func (m *MsgSubmitMisbehaviourResponse) String() string
func (*MsgSubmitMisbehaviourResponse) Unmarshal ¶
func (m *MsgSubmitMisbehaviourResponse) Unmarshal(dAtA []byte) error
func (*MsgSubmitMisbehaviourResponse) XXX_DiscardUnknown ¶
func (m *MsgSubmitMisbehaviourResponse) XXX_DiscardUnknown()
func (*MsgSubmitMisbehaviourResponse) XXX_Marshal ¶
func (m *MsgSubmitMisbehaviourResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubmitMisbehaviourResponse) XXX_Merge ¶
func (m *MsgSubmitMisbehaviourResponse) XXX_Merge(src proto.Message)
func (*MsgSubmitMisbehaviourResponse) XXX_Size ¶
func (m *MsgSubmitMisbehaviourResponse) XXX_Size() int
func (*MsgSubmitMisbehaviourResponse) XXX_Unmarshal ¶
func (m *MsgSubmitMisbehaviourResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateClient ¶
type MsgUpdateClient struct { // client unique identifier ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"` // 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 IBC client state using the given header.
func NewMsgUpdateClient ¶
NewMsgUpdateClient creates a new MsgUpdateClient instance
func (MsgUpdateClient) Bytes ¶
func (m MsgUpdateClient) Bytes() []byte
func (*MsgUpdateClient) Descriptor ¶
func (*MsgUpdateClient) Descriptor() ([]byte, []int)
func (MsgUpdateClient) GetFromAddress ¶
func (m MsgUpdateClient) GetFromAddress() sdk.AccAddress
func (MsgUpdateClient) GetSignBytes ¶
func (m MsgUpdateClient) GetSignBytes() []byte
func (MsgUpdateClient) GetSigners ¶
func (m MsgUpdateClient) GetSigners() []cosmosSdk.AccAddress
func (*MsgUpdateClient) Marshal ¶
func (m *MsgUpdateClient) Marshal() (dAtA []byte, err error)
func (*MsgUpdateClient) MarshalToSizedBuffer ¶
func (m *MsgUpdateClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (MsgUpdateClient) MsgType ¶
func (m MsgUpdateClient) MsgType() string
func (*MsgUpdateClient) ProtoMessage ¶
func (*MsgUpdateClient) ProtoMessage()
func (*MsgUpdateClient) Reset ¶
func (m *MsgUpdateClient) Reset()
func (MsgUpdateClient) Route ¶
func (m MsgUpdateClient) Route() string
func (*MsgUpdateClient) Size ¶
func (m *MsgUpdateClient) Size() (n int)
func (*MsgUpdateClient) String ¶
func (m *MsgUpdateClient) String() string
func (MsgUpdateClient) Type ¶
func (m MsgUpdateClient) Type() 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
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 MsgUpgradeClient ¶
type MsgUpgradeClient struct { // client unique identifier ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"` // upgraded client state ClientState *types.Any `protobuf:"bytes,2,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty" yaml:"client_state"` // upgraded consensus state, only contains enough information to serve as a basis of trust in update logic ConsensusState *types.Any `` /* 126-byte string literal not displayed */ // proof that old chain committed to new client ProofUpgradeClient []byte `` /* 145-byte string literal not displayed */ // proof that old chain committed to new consensus state ProofUpgradeConsensusState []byte `` /* 180-byte string literal not displayed */ // signer address Signer string `protobuf:"bytes,6,opt,name=signer,proto3" json:"signer,omitempty"` }
MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client state
func (*MsgUpgradeClient) Descriptor ¶
func (*MsgUpgradeClient) Descriptor() ([]byte, []int)
func (*MsgUpgradeClient) Marshal ¶
func (m *MsgUpgradeClient) Marshal() (dAtA []byte, err error)
func (*MsgUpgradeClient) MarshalToSizedBuffer ¶
func (m *MsgUpgradeClient) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpgradeClient) ProtoMessage ¶
func (*MsgUpgradeClient) ProtoMessage()
func (*MsgUpgradeClient) Reset ¶
func (m *MsgUpgradeClient) Reset()
func (*MsgUpgradeClient) Size ¶
func (m *MsgUpgradeClient) Size() (n int)
func (*MsgUpgradeClient) String ¶
func (m *MsgUpgradeClient) String() string
func (*MsgUpgradeClient) Unmarshal ¶
func (m *MsgUpgradeClient) Unmarshal(dAtA []byte) error
func (*MsgUpgradeClient) XXX_DiscardUnknown ¶
func (m *MsgUpgradeClient) XXX_DiscardUnknown()
func (*MsgUpgradeClient) XXX_Marshal ¶
func (m *MsgUpgradeClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpgradeClient) XXX_Merge ¶
func (m *MsgUpgradeClient) XXX_Merge(src proto.Message)
func (*MsgUpgradeClient) XXX_Size ¶
func (m *MsgUpgradeClient) XXX_Size() int
func (*MsgUpgradeClient) XXX_Unmarshal ¶
func (m *MsgUpgradeClient) XXX_Unmarshal(b []byte) error
type MsgUpgradeClientResponse ¶
type MsgUpgradeClientResponse struct { }
MsgUpgradeClientResponse defines the Msg/UpgradeClient response type.
func (*MsgUpgradeClientResponse) Descriptor ¶
func (*MsgUpgradeClientResponse) Descriptor() ([]byte, []int)
func (*MsgUpgradeClientResponse) Marshal ¶
func (m *MsgUpgradeClientResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpgradeClientResponse) MarshalTo ¶
func (m *MsgUpgradeClientResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpgradeClientResponse) MarshalToSizedBuffer ¶
func (m *MsgUpgradeClientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpgradeClientResponse) ProtoMessage ¶
func (*MsgUpgradeClientResponse) ProtoMessage()
func (*MsgUpgradeClientResponse) Reset ¶
func (m *MsgUpgradeClientResponse) Reset()
func (*MsgUpgradeClientResponse) Size ¶
func (m *MsgUpgradeClientResponse) Size() (n int)
func (*MsgUpgradeClientResponse) String ¶
func (m *MsgUpgradeClientResponse) String() string
func (*MsgUpgradeClientResponse) Unmarshal ¶
func (m *MsgUpgradeClientResponse) Unmarshal(dAtA []byte) error
func (*MsgUpgradeClientResponse) XXX_DiscardUnknown ¶
func (m *MsgUpgradeClientResponse) XXX_DiscardUnknown()
func (*MsgUpgradeClientResponse) XXX_Marshal ¶
func (m *MsgUpgradeClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpgradeClientResponse) XXX_Merge ¶
func (m *MsgUpgradeClientResponse) XXX_Merge(src proto.Message)
func (*MsgUpgradeClientResponse) XXX_Size ¶
func (m *MsgUpgradeClientResponse) XXX_Size() int
func (*MsgUpgradeClientResponse) XXX_Unmarshal ¶
func (m *MsgUpgradeClientResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // allowed_clients defines the list of allowed client state types. AllowedClients []string `` /* 126-byte string literal not displayed */ }
Params defines the set of IBC light client parameters.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams is the default parameter configuration for the ibc-transfer module
func (*Params) Descriptor ¶
func (*Params) GetAllowedClients ¶
func (Params) IsAllowedClient ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // ClientState queries an IBC light client. ClientState(ctx context.Context, in *QueryClientStateRequest, opts ...grpc.CallOption) (*QueryClientStateResponse, error) // ClientStates queries all the IBC 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) // ClientParams queries all parameters of the ibc client. ClientParams(ctx context.Context, in *QueryClientParamsRequest, opts ...grpc.CallOption) (*QueryClientParamsResponse, 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 QueryClientParamsRequest ¶
type QueryClientParamsRequest struct { }
QueryClientParamsRequest is the request type for the Query/ClientParams RPC method.
func (*QueryClientParamsRequest) Descriptor ¶
func (*QueryClientParamsRequest) Descriptor() ([]byte, []int)
func (*QueryClientParamsRequest) Marshal ¶
func (m *QueryClientParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryClientParamsRequest) MarshalTo ¶
func (m *QueryClientParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClientParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryClientParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClientParamsRequest) ProtoMessage ¶
func (*QueryClientParamsRequest) ProtoMessage()
func (*QueryClientParamsRequest) Reset ¶
func (m *QueryClientParamsRequest) Reset()
func (*QueryClientParamsRequest) Size ¶
func (m *QueryClientParamsRequest) Size() (n int)
func (*QueryClientParamsRequest) String ¶
func (m *QueryClientParamsRequest) String() string
func (*QueryClientParamsRequest) Unmarshal ¶
func (m *QueryClientParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryClientParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryClientParamsRequest) XXX_DiscardUnknown()
func (*QueryClientParamsRequest) XXX_Marshal ¶
func (m *QueryClientParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClientParamsRequest) XXX_Merge ¶
func (m *QueryClientParamsRequest) XXX_Merge(src proto.Message)
func (*QueryClientParamsRequest) XXX_Size ¶
func (m *QueryClientParamsRequest) XXX_Size() int
func (*QueryClientParamsRequest) XXX_Unmarshal ¶
func (m *QueryClientParamsRequest) XXX_Unmarshal(b []byte) error
type QueryClientParamsResponse ¶
type QueryClientParamsResponse struct { // params defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` }
QueryClientParamsResponse is the response type for the Query/ClientParams RPC method.
func (*QueryClientParamsResponse) Descriptor ¶
func (*QueryClientParamsResponse) Descriptor() ([]byte, []int)
func (*QueryClientParamsResponse) GetParams ¶
func (m *QueryClientParamsResponse) GetParams() *Params
func (*QueryClientParamsResponse) Marshal ¶
func (m *QueryClientParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryClientParamsResponse) MarshalTo ¶
func (m *QueryClientParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClientParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryClientParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClientParamsResponse) ProtoMessage ¶
func (*QueryClientParamsResponse) ProtoMessage()
func (*QueryClientParamsResponse) Reset ¶
func (m *QueryClientParamsResponse) Reset()
func (*QueryClientParamsResponse) Size ¶
func (m *QueryClientParamsResponse) Size() (n int)
func (*QueryClientParamsResponse) String ¶
func (m *QueryClientParamsResponse) String() string
func (*QueryClientParamsResponse) Unmarshal ¶
func (m *QueryClientParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryClientParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryClientParamsResponse) XXX_DiscardUnknown()
func (*QueryClientParamsResponse) XXX_Marshal ¶
func (m *QueryClientParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClientParamsResponse) XXX_Merge ¶
func (m *QueryClientParamsResponse) XXX_Merge(src proto.Message)
func (*QueryClientParamsResponse) XXX_Size ¶
func (m *QueryClientParamsResponse) XXX_Size() int
func (*QueryClientParamsResponse) XXX_Unmarshal ¶
func (m *QueryClientParamsResponse) XXX_Unmarshal(b []byte) error
type QueryClientStateRequest ¶
type QueryClientStateRequest struct { // client state unique identifier ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` }
QueryClientStateRequest is the request type for the Query/ClientState RPC method
func (*QueryClientStateRequest) Descriptor ¶
func (*QueryClientStateRequest) Descriptor() ([]byte, []int)
func (*QueryClientStateRequest) GetClientId ¶
func (m *QueryClientStateRequest) GetClientId() 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( clientState *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 MustUnmarshalClientStateResp ¶
func MustUnmarshalClientStateResp(cdc *codec.Codec, bz []byte) QueryClientStatesResponse
func UnmarshalClientStateResp ¶
func UnmarshalClientStateResp(cdc *codec.Codec, bz []byte) (QueryClientStatesResponse, error)
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 ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,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) GetClientId ¶
func (m *QueryConsensusStateRequest) GetClientId() 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( consensusState *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 ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,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) GetClientId ¶
func (m *QueryConsensusStatesRequest) GetClientId() 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 QueryServer ¶
type QueryServer interface { // ClientState queries an IBC light client. ClientState(context.Context, *QueryClientStateRequest) (*QueryClientStateResponse, error) // ClientStates queries all the IBC 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) // ClientParams queries all parameters of the ibc client. ClientParams(context.Context, *QueryClientParamsRequest) (*QueryClientParamsResponse, error) }
QueryServer is the server API for Query service.
type StakingKeeper ¶
type StakingKeeper interface { GetHistoricalInfo(ctx sdk.Context, height int64) (stakingtypes.HistoricalInfo, bool) UnbondingTime(ctx sdk.Context) time.Duration }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateClient ¶
func (*UnimplementedMsgServer) CreateClient(ctx context.Context, req *MsgCreateClient) (*MsgCreateClientResponse, error)
func (*UnimplementedMsgServer) SubmitMisbehaviour ¶
func (*UnimplementedMsgServer) SubmitMisbehaviour(ctx context.Context, req *MsgSubmitMisbehaviour) (*MsgSubmitMisbehaviourResponse, error)
func (*UnimplementedMsgServer) UpdateClient ¶
func (*UnimplementedMsgServer) UpdateClient(ctx context.Context, req *MsgUpdateClient) (*MsgUpdateClientResponse, error)
func (*UnimplementedMsgServer) UpgradeClient ¶
func (*UnimplementedMsgServer) UpgradeClient(ctx context.Context, req *MsgUpgradeClient) (*MsgUpgradeClientResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ClientParams ¶
func (*UnimplementedQueryServer) ClientParams(ctx context.Context, req *QueryClientParamsRequest) (*QueryClientParamsResponse, error)
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)