utils

package
v1.6.28 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 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 context.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 QueryChannels

func QueryChannels(clientCtx context.Context, offset, limit uint64) (*types.QueryChannelsResponse, error)

func QueryPacketAcknowledgement

func QueryPacketAcknowledgement(clientCtx context.Context, 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 context.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.

func QueryPacketCommitments

func QueryPacketCommitments(clientCtx context.Context, portID, channelID string, offset, limit uint64) (*types.QueryPacketCommitmentsResponse, 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 QueryPacketReceipt

func QueryPacketReceipt(
	clientCtx context.Context, 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.

func QueryUnreceivedPackets

func QueryUnreceivedPackets(clientCtx context.Context, portID, channelID string, seqs []uint64) (*types.QueryUnreceivedPacketsResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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