UNPKG

interchainjs

Version:

InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.

151 lines (150 loc) 6.46 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getVerifyMembership = exports.getUpgradedConsensusState = exports.getUpgradedClientState = exports.getClientCreator = exports.getClientParams = exports.getClientStatus = exports.getConsensusStateHeights = exports.getConsensusStates = exports.getConsensusState = exports.getClientStates = exports.getClientState = void 0; const helper_func_types_1 = require("../../../../helper-func-types"); const query_1 = require("./query"); /** * ClientState queries an IBC light client. * @name getClientState * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.ClientState */ exports.getClientState = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryClientStateRequest.encode, decode: query_1.QueryClientStateResponse.decode, service: "ibc.core.client.v1.Query", method: "ClientState", deps: [query_1.QueryClientStateRequest, query_1.QueryClientStateResponse] }); /** * ClientStates queries all the IBC light clients of a chain. * @name getClientStates * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.ClientStates */ exports.getClientStates = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryClientStatesRequest.encode, decode: query_1.QueryClientStatesResponse.decode, service: "ibc.core.client.v1.Query", method: "ClientStates", deps: [query_1.QueryClientStatesRequest, query_1.QueryClientStatesResponse] }); /** * ConsensusState queries a consensus state associated with a client state at * a given height. * @name getConsensusState * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.ConsensusState */ exports.getConsensusState = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryConsensusStateRequest.encode, decode: query_1.QueryConsensusStateResponse.decode, service: "ibc.core.client.v1.Query", method: "ConsensusState", deps: [query_1.QueryConsensusStateRequest, query_1.QueryConsensusStateResponse] }); /** * ConsensusStates queries all the consensus state associated with a given * client. * @name getConsensusStates * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.ConsensusStates */ exports.getConsensusStates = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryConsensusStatesRequest.encode, decode: query_1.QueryConsensusStatesResponse.decode, service: "ibc.core.client.v1.Query", method: "ConsensusStates", deps: [query_1.QueryConsensusStatesRequest, query_1.QueryConsensusStatesResponse] }); /** * ConsensusStateHeights queries the height of every consensus states associated with a given client. * @name getConsensusStateHeights * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.ConsensusStateHeights */ exports.getConsensusStateHeights = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryConsensusStateHeightsRequest.encode, decode: query_1.QueryConsensusStateHeightsResponse.decode, service: "ibc.core.client.v1.Query", method: "ConsensusStateHeights", deps: [query_1.QueryConsensusStateHeightsRequest, query_1.QueryConsensusStateHeightsResponse] }); /** * Status queries the status of an IBC client. * @name getClientStatus * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.ClientStatus */ exports.getClientStatus = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryClientStatusRequest.encode, decode: query_1.QueryClientStatusResponse.decode, service: "ibc.core.client.v1.Query", method: "ClientStatus", deps: [query_1.QueryClientStatusRequest, query_1.QueryClientStatusResponse] }); /** * ClientParams queries all parameters of the ibc client submodule. * @name getClientParams * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.ClientParams */ exports.getClientParams = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryClientParamsRequest.encode, decode: query_1.QueryClientParamsResponse.decode, service: "ibc.core.client.v1.Query", method: "ClientParams", deps: [query_1.QueryClientParamsRequest, query_1.QueryClientParamsResponse] }); /** * ClientCreator queries the creator of a given client. * @name getClientCreator * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.ClientCreator */ exports.getClientCreator = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryClientCreatorRequest.encode, decode: query_1.QueryClientCreatorResponse.decode, service: "ibc.core.client.v1.Query", method: "ClientCreator", deps: [query_1.QueryClientCreatorRequest, query_1.QueryClientCreatorResponse] }); /** * UpgradedClientState queries an Upgraded IBC light client. * @name getUpgradedClientState * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.UpgradedClientState */ exports.getUpgradedClientState = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryUpgradedClientStateRequest.encode, decode: query_1.QueryUpgradedClientStateResponse.decode, service: "ibc.core.client.v1.Query", method: "UpgradedClientState", deps: [query_1.QueryUpgradedClientStateRequest, query_1.QueryUpgradedClientStateResponse] }); /** * UpgradedConsensusState queries an Upgraded IBC consensus state. * @name getUpgradedConsensusState * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.UpgradedConsensusState */ exports.getUpgradedConsensusState = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryUpgradedConsensusStateRequest.encode, decode: query_1.QueryUpgradedConsensusStateResponse.decode, service: "ibc.core.client.v1.Query", method: "UpgradedConsensusState", deps: [query_1.QueryUpgradedConsensusStateRequest, query_1.QueryUpgradedConsensusStateResponse] }); /** * VerifyMembership queries an IBC light client for proof verification of a value at a given key path. * @name getVerifyMembership * @package ibc.core.client.v1 * @see proto service: ibc.core.client.v1.VerifyMembership */ exports.getVerifyMembership = (0, helper_func_types_1.buildQuery)({ encode: query_1.QueryVerifyMembershipRequest.encode, decode: query_1.QueryVerifyMembershipResponse.decode, service: "ibc.core.client.v1.Query", method: "VerifyMembership", deps: [query_1.QueryVerifyMembershipRequest, query_1.QueryVerifyMembershipResponse] });