Documentation ¶
Index ¶
- func ParseClientState(cdc *codec.LegacyAmino, arg string) (exported.ClientState, error)
- func ParsePrefix(cdc *codec.LegacyAmino, arg string) (commitmenttypes.MerklePrefix, error)
- func ParseProof(cdc *codec.LegacyAmino, arg string) ([]byte, error)
- func QueryClientConnections(clientCtx client.Context, clientID string, prove bool) (*types.QueryClientConnectionsResponse, error)
- func QueryConnection(clientCtx client.Context, connectionID string, prove bool) (*types.QueryConnectionResponse, error)
- func QueryConnectionClientState(clientCtx client.Context, connectionID string, prove bool) (*types.QueryConnectionClientStateResponse, error)
- func QueryConnectionConsensusState(clientCtx client.Context, connectionID string, height clienttypes.Height, ...) (*types.QueryConnectionConsensusStateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseClientState ¶
func ParseClientState(cdc *codec.LegacyAmino, arg string) (exported.ClientState, error)
ParseClientState unmarshals a cmd input argument from a JSON string to a client state If the input is not a JSON, it looks for a path to the JSON file
func ParsePrefix ¶
func ParsePrefix(cdc *codec.LegacyAmino, arg string) (commitmenttypes.MerklePrefix, error)
ParsePrefix unmarshals an cmd input argument from a JSON string to a commitment Prefix. If the input is not a JSON, it looks for a path to the JSON file.
func ParseProof ¶
func ParseProof(cdc *codec.LegacyAmino, arg string) ([]byte, error)
ParseProof unmarshals a cmd input argument from a JSON string to a commitment Proof. If the input is not a JSON, it looks for a path to the JSON file. It then marshals the commitment proof into a proto encoded byte array.
func QueryClientConnections ¶
func QueryClientConnections( clientCtx client.Context, clientID string, prove bool, ) (*types.QueryClientConnectionsResponse, error)
QueryClientConnections queries the connection paths registered for a particular client. If prove is true, it performs an ABCI store query in order to retrieve the merkle proof. Otherwise, it uses the gRPC query client.
func QueryConnection ¶
func QueryConnection( clientCtx client.Context, connectionID string, prove bool, ) (*types.QueryConnectionResponse, error)
QueryConnection returns a connection end. If prove is true, it performs an ABCI store query in order to retrieve the merkle proof. Otherwise, it uses the gRPC query client.
func QueryConnectionClientState ¶
func QueryConnectionClientState( clientCtx client.Context, connectionID string, prove bool, ) (*types.QueryConnectionClientStateResponse, error)
QueryConnectionClientState returns the ClientState of a connection end. If prove is true, it performs an ABCI store query in order to retrieve the merkle proof. Otherwise, it uses the gRPC query client.
func QueryConnectionConsensusState ¶
func QueryConnectionConsensusState( clientCtx client.Context, connectionID string, height clienttypes.Height, prove bool, ) (*types.QueryConnectionConsensusStateResponse, error)
QueryConnectionConsensusState returns the ConsensusState of a connection end. If prove is true, it performs an ABCI store query in order to retrieve the merkle proof. Otherwise, it uses the gRPC query client.
Types ¶
This section is empty.