query

package
v0.0.0-...-3aa30a2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 21 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 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 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 PopulateQueryReqToPath

func PopulateQueryReqToPath(ctx context.Context, chain ibc.Chain) error

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 TransferDenoms

func TransferDenoms(ctx context.Context, chain ibc.Chain) (*transfertypes.QueryDenomsResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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