utils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 11 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryClientState

func QueryClientState(
	clientCtx client.Context, clientID string, prove bool,
) (*types.QueryClientStateResponse, error)

QueryClientState returns a client state. 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 QueryClientStateABCI

func QueryClientStateABCI(
	clientCtx client.Context, clientID string,
) (*types.QueryClientStateResponse, error)

QueryClientStateABCI queries the store to get the light client state and a merkle proof.

func QueryConsensusState

func QueryConsensusState(
	clientCtx client.Context, clientID string, height exported.Height, prove, latestHeight bool,
) (*types.QueryConsensusStateResponse, error)

QueryConsensusState returns a consensus state. 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 QueryConsensusStateABCI

func QueryConsensusStateABCI(
	clientCtx client.Context, clientID string, height exported.Height,
) (*types.QueryConsensusStateResponse, error)

QueryConsensusStateABCI queries the store to get the consensus state of a light client and a merkle proof of its existence or non-existence.

func QuerySelfConsensusState

func QuerySelfConsensusState(clientCtx client.Context) (*ibctmtypes.ConsensusState, int64, error)

QuerySelfConsensusState takes a client context and returns the appropriate tendermint consensus state

func QueryTendermintHeader

func QueryTendermintHeader(clientCtx client.Context) (ibctmtypes.Header, int64, error)

QueryTendermintHeader takes a client context and returns the appropriate tendermint header

Types

This section is empty.

Jump to

Keyboard shortcuts

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