utils

package
v0.0.0-...-7c30539 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryAllClientStates

func QueryAllClientStates(clientCtx client.Context, page, limit int) ([]exported.ClientState, int64, error)

QueryAllClientStates returns all the light client states. It _does not_ return any merkle proof.

func QueryClientState

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

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

func QueryConsensusState

func QueryConsensusState(
	clientCtx client.Context, clientID string, height uint64, prove bool,
) (types.ConsensusStateResponse, error)

QueryConsensusState queries the store to get the consensus state and a merkle proof.

func QueryNodeConsensusState

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

QueryNodeConsensusState 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