Documentation
¶
Index ¶
- func Balance(ctx context.Context, chain ibc.Chain, address string, denom string) (math.Int, error)
- func Channel(ctx context.Context, chain ibc.Chain, portID, channelID string) (channeltypes.Channel, error)
- func ClientState(ctx context.Context, chain ibc.Chain, clientID string) (ibcexported.ClientState, error)
- func ClientStatus(ctx context.Context, chain ibc.Chain, clientID string) (string, error)
- func GRPCQuery[T any](ctx context.Context, chain ibc.Chain, req proto.Message, ...) (*T, error)
- func GetValidatorSetByHeight(ctx context.Context, chain ibc.Chain, height uint64) ([]*cmtservice.Validator, error)
- func InterchainAccount(ctx context.Context, chain ibc.Chain, address, connectionID string) (string, error)
- func ModuleAccountAddress(ctx context.Context, moduleName string, chain ibc.Chain) (sdk.AccAddress, error)
- func PacketAcknowledgements(ctx context.Context, chain ibc.Chain, portID, channelID string, ...) ([]*channeltypes.PacketState, error)
- func PopulateQueryReqToPath(ctx context.Context, chain ibc.Chain) error
- func TotalEscrowForDenom(ctx context.Context, chain ibc.Chain, denom string) (sdk.Coin, error)
- func TransferDenoms(ctx context.Context, chain ibc.Chain) (*transfertypes.QueryDenomsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Balance ¶
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 ¶
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 TotalEscrowForDenom ¶
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.