cosmos-sdk: github.com/cosmos/cosmos-sdk/x/ibc/02-client/client/utils Index | Files

package utils

import "github.com/cosmos/cosmos-sdk/x/ibc/02-client/client/utils"

Index

Package Files

utils.go

func QueryAllClientStates Uses

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 Uses

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. TODO: delete

func QueryClientStateABCI Uses

func QueryClientStateABCI(
    clientCtx client.Context, clientID string,
) (exported.ClientState, []byte, uint64, error)

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

func QueryConsensusState Uses

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. TODO: delete

func QueryConsensusStateABCI Uses

func QueryConsensusStateABCI(
    clientCtx client.Context, clientID string, height uint64,
) (exported.ConsensusState, []byte, uint64, error)

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

func QueryNodeConsensusState Uses

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

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

func QueryTendermintHeader Uses

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

QueryTendermintHeader takes a client context and returns the appropriate tendermint header

Package utils imports 9 packages (graph) and is imported by 3 packages. Updated 2020-08-13. Refresh now. Tools for package owners.