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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryChannel

func QueryChannel(
	clientCtx client.Context, portID, channelID string, prove bool,
) (*types.QueryChannelResponse, error)

QueryChannel returns a channel end. 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 QueryChannelClientState

func QueryChannelClientState(clientCtx client.Context, portID, channelID string) (clientexported.ClientState, int64, error)

QueryChannelClientState uses the channel Querier to return the ClientState of a Channel.

func QueryChannelConsensusState

func QueryChannelConsensusState(clientCtx client.Context, portID, channelID string) (clientexported.ConsensusState, int64, error)

QueryChannelConsensusState uses the channel Querier to return the ConsensusState of a Channel.

func QueryCounterpartyConsensusState

func QueryCounterpartyConsensusState(clientCtx client.Context, portID, channelID string) (clientexported.ConsensusState, int64, error)

QueryCounterpartyConsensusState uses the channel Querier to return the counterparty ConsensusState given the source port ID and source channel ID.

func QueryNextSequenceReceive

func QueryNextSequenceReceive(
	clientCtx client.Context, portID, channelID string, prove bool,
) (*types.QueryNextSequenceReceiveResponse, error)

QueryNextSequenceReceive returns the next sequence receive. 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 QueryPacketCommitment

func QueryPacketCommitment(
	clientCtx client.Context, portID, channelID string,
	sequence uint64, prove bool,
) (*types.QueryPacketCommitmentResponse, error)

QueryPacketCommitment returns a packet commitment. If prove is true, it performs an ABCI store query in order to retrieve the merkle proof. Otherwise, it uses the gRPC query client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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