utils

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePrefix

func ParsePrefix(cdc *codec.Codec, 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.Codec, arg string) (commitmenttypes.MerkleProof, error)

ParseProof unmarshals an 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.

func QueryAllClientConnectionPaths

func QueryAllClientConnectionPaths(cliCtx context.CLIContext, page, limit int) ([]types.ConnectionPaths, int64, error)

QueryAllClientConnectionPaths returns all the client connections paths. It _does not_ return any merkle proof.

func QueryAllConnections

func QueryAllConnections(cliCtx context.CLIContext, page, limit int) ([]types.ConnectionEnd, int64, error)

QueryAllConnections returns all the connections. It _does not_ return any merkle proof.

func QueryClientConnections

func QueryClientConnections(
	cliCtx context.CLIContext, clientID string, prove bool,
) (types.ClientConnectionsResponse, error)

QueryClientConnections queries the store to get the registered connection paths registered for a particular client and a merkle proof.

func QueryConnection

func QueryConnection(
	cliCtx context.CLIContext, connectionID string, prove bool,
) (types.ConnectionResponse, error)

QueryConnection queries the store to get a connection end and a merkle proof.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL