utils

package
v0.0.0-...-f498596 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryChannel

func QueryChannel(
	clientCtx clictx.CLIContext, 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 clictx.CLIContext, portID, channelID string, prove bool,
) (*types.QueryChannelClientStateResponse, error)

QueryChannelClientState returns the ClientState of 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 QueryChannelConsensusState

func QueryChannelConsensusState(
	clientCtx clictx.CLIContext, portID, channelID string, height clienttypes.Height, prove bool,
) (*types.QueryChannelConsensusStateResponse, error)

QueryChannelConsensusState returns the ConsensusState of 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 QueryLatestConsensusState

func QueryLatestConsensusState(
	clientCtx clictx.CLIContext, portID, channelID string,
) (exported.ConsensusState, clienttypes.Height, clienttypes.Height, error)

QueryLatestConsensusState uses the channel Querier to return the latest ConsensusState given the source port ID and source channel ID.

func QueryNextSequenceReceive

func QueryNextSequenceReceive(
	clientCtx clictx.CLIContext, 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 QueryPacketAcknowledgement

func QueryPacketAcknowledgement(clientCtx clictx.CLIContext, portID, channelID string, sequence uint64, prove bool) (*types.QueryPacketAcknowledgementResponse, error)

QueryPacketAcknowledgement returns the data about a packet acknowledgement. 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 clictx.CLIContext, 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.

func QueryPacketReceipt

func QueryPacketReceipt(
	clientCtx clictx.CLIContext, portID, channelID string,
	sequence uint64, prove bool,
) (*types.QueryPacketReceiptResponse, error)

QueryPacketReceipt returns data about a packet receipt. 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