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 QueryAllClientStates

func QueryAllClientStates(cliCtx context.CLIContext, 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(
	cliCtx context.CLIContext, 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(
	cliCtx context.CLIContext, 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(cliCtx context.CLIContext) (ibctmtypes.ConsensusState, int64, error)

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

func QueryTendermintHeader

func QueryTendermintHeader(cliCtx context.CLIContext) (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