"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getABCIQuery = exports.getGetValidatorSetByHeight = exports.getGetLatestValidatorSet = exports.getGetBlockByHeight = exports.getGetLatestBlock = exports.getGetSyncing = exports.getGetNodeInfo = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const query_1 = require("./query");
/**
 * GetNodeInfo queries the current node info.
 * @name getGetNodeInfo
 * @package cosmos.base.tendermint.v1beta1
 * @see proto service: cosmos.base.tendermint.v1beta1.GetNodeInfo
 */
exports.getGetNodeInfo = (0, helper_func_types_1.buildQuery)({
    encode: query_1.GetNodeInfoRequest.encode,
    decode: query_1.GetNodeInfoResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetNodeInfo",
    deps: [query_1.GetNodeInfoRequest, query_1.GetNodeInfoResponse]
});
/**
 * GetSyncing queries node syncing.
 * @name getGetSyncing
 * @package cosmos.base.tendermint.v1beta1
 * @see proto service: cosmos.base.tendermint.v1beta1.GetSyncing
 */
exports.getGetSyncing = (0, helper_func_types_1.buildQuery)({
    encode: query_1.GetSyncingRequest.encode,
    decode: query_1.GetSyncingResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetSyncing",
    deps: [query_1.GetSyncingRequest, query_1.GetSyncingResponse]
});
/**
 * GetLatestBlock returns the latest block.
 * @name getGetLatestBlock
 * @package cosmos.base.tendermint.v1beta1
 * @see proto service: cosmos.base.tendermint.v1beta1.GetLatestBlock
 */
exports.getGetLatestBlock = (0, helper_func_types_1.buildQuery)({
    encode: query_1.GetLatestBlockRequest.encode,
    decode: query_1.GetLatestBlockResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetLatestBlock",
    deps: [query_1.GetLatestBlockRequest, query_1.GetLatestBlockResponse]
});
/**
 * GetBlockByHeight queries block for given height.
 * @name getGetBlockByHeight
 * @package cosmos.base.tendermint.v1beta1
 * @see proto service: cosmos.base.tendermint.v1beta1.GetBlockByHeight
 */
exports.getGetBlockByHeight = (0, helper_func_types_1.buildQuery)({
    encode: query_1.GetBlockByHeightRequest.encode,
    decode: query_1.GetBlockByHeightResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetBlockByHeight",
    deps: [query_1.GetBlockByHeightRequest, query_1.GetBlockByHeightResponse]
});
/**
 * GetLatestValidatorSet queries latest validator-set.
 * @name getGetLatestValidatorSet
 * @package cosmos.base.tendermint.v1beta1
 * @see proto service: cosmos.base.tendermint.v1beta1.GetLatestValidatorSet
 */
exports.getGetLatestValidatorSet = (0, helper_func_types_1.buildQuery)({
    encode: query_1.GetLatestValidatorSetRequest.encode,
    decode: query_1.GetLatestValidatorSetResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetLatestValidatorSet",
    deps: [query_1.GetLatestValidatorSetRequest, query_1.GetLatestValidatorSetResponse]
});
/**
 * GetValidatorSetByHeight queries validator-set at a given height.
 * @name getGetValidatorSetByHeight
 * @package cosmos.base.tendermint.v1beta1
 * @see proto service: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeight
 */
exports.getGetValidatorSetByHeight = (0, helper_func_types_1.buildQuery)({
    encode: query_1.GetValidatorSetByHeightRequest.encode,
    decode: query_1.GetValidatorSetByHeightResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetValidatorSetByHeight",
    deps: [query_1.GetValidatorSetByHeightRequest, query_1.GetValidatorSetByHeightResponse]
});
/**
 * ABCIQuery defines a query handler that supports ABCI queries directly to the
 * application, bypassing Tendermint completely. The ABCI query must contain
 * a valid and supported path, including app, custom, p2p, and store.
 * @name getABCIQuery
 * @package cosmos.base.tendermint.v1beta1
 * @see proto service: cosmos.base.tendermint.v1beta1.ABCIQuery
 */
exports.getABCIQuery = (0, helper_func_types_1.buildQuery)({
    encode: query_1.ABCIQueryRequest.encode,
    decode: query_1.ABCIQueryResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "ABCIQuery",
    deps: [query_1.ABCIQueryRequest, query_1.ABCIQueryResponse]
});
