query

package
v0.0.0-...-cf68eed Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Balance

func Balance(ctx context.Context, chain ibc.Chain, address string, denom string) (math.Int, error)

Balance returns the balance of a specific denomination for a given account by address.

func Channel

func Channel(ctx context.Context, chain ibc.Chain, portID, channelID string) (channeltypes.Channel, error)

Channel queries the channel on a given chain for the provided portID and channelID

func ClientState

func ClientState(ctx context.Context, chain ibc.Chain, clientID string) (ibcexported.ClientState, error)

ClientState queries the client state on the given chain for the provided clientID.

func ClientStatus

func ClientStatus(ctx context.Context, chain ibc.Chain, clientID string) (string, error)

ClientStatus queries the status of the client by clientID

func CounterPartyPayee

func CounterPartyPayee(ctx context.Context, chain ibc.Chain, relayerAddress, channelID string) (string, error)

CounterPartyPayee queries the counterparty payee of the given chain and relayer address on the specified channel.

func FeeEnabledChannel

func FeeEnabledChannel(ctx context.Context, chain ibc.Chain, portID, channelID string) (bool, error)

FeeEnabledChannel queries the fee-enabled status of a channel.

func GRPCQuery

func GRPCQuery[T any](ctx context.Context, chain ibc.Chain, req proto.Message, opts ...grpc.CallOption) (*T, error)

GRPCQuery queries the chain with a query request and deserializes the response to T

func GetValidatorSetByHeight

func GetValidatorSetByHeight(ctx context.Context, chain ibc.Chain, height uint64) ([]*cmtservice.Validator, error)

GetValidatorSetByHeight returns the validators of the given chain at the specified height. The returned validators are sorted by address.

func IncentivizedPacketsForChannel

func IncentivizedPacketsForChannel(
	ctx context.Context,
	chain ibc.Chain,
	portID,
	channelID string,
) ([]*feetypes.IdentifiedPacketFees, error)

IncentivizedPacketsForChannel queries the incentivized packets on the specified channel.

func InterchainAccount

func InterchainAccount(ctx context.Context, chain ibc.Chain, address, connectionID string) (string, error)

InterchainAccount queries the interchain account for the given owner and connectionID.

func ModuleAccountAddress

func ModuleAccountAddress(ctx context.Context, moduleName string, chain ibc.Chain) (sdk.AccAddress, error)

ModuleAccountAddress returns the address of the given module on the given chain. Added because interchaintest's method doesn't work.

func PacketAcknowledgements

func PacketAcknowledgements(ctx context.Context, chain ibc.Chain, portID, channelID string, packetCommitmentSequences []uint64) ([]*channeltypes.PacketState, error)

PacketAcknowledgements queries the packet acknowledgements on the given chain for the provided channel (optional) list of packet commitment sequences.

func TotalEscrowForDenom

func TotalEscrowForDenom(ctx context.Context, chain ibc.Chain, denom string) (sdk.Coin, error)

TotalEscrowForDenom queries the total amount of tokens in escrow for a denom

func UpgradeError

func UpgradeError(ctx context.Context, chain ibc.Chain, portID, channelID string) (channeltypes.ErrorReceipt, error)

UpgradeError queries the upgrade error on the given chain for the provided channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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