import { buildQuery } from "../../../../helper-func-types";
import { GetNodeInfoRequest, GetNodeInfoResponse, GetSyncingRequest, GetSyncingResponse, GetLatestBlockRequest, GetLatestBlockResponse, GetBlockByHeightRequest, GetBlockByHeightResponse, GetLatestValidatorSetRequest, GetLatestValidatorSetResponse, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse, ABCIQueryRequest, ABCIQueryResponse } from "./query";
export const createGetGetNodeInfo = (clientResolver) => buildQuery({
    encode: GetNodeInfoRequest.encode,
    decode: GetNodeInfoResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetNodeInfo",
    clientResolver
});
export const createGetGetSyncing = (clientResolver) => buildQuery({
    encode: GetSyncingRequest.encode,
    decode: GetSyncingResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetSyncing",
    clientResolver
});
export const createGetGetLatestBlock = (clientResolver) => buildQuery({
    encode: GetLatestBlockRequest.encode,
    decode: GetLatestBlockResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetLatestBlock",
    clientResolver
});
export const createGetGetBlockByHeight = (clientResolver) => buildQuery({
    encode: GetBlockByHeightRequest.encode,
    decode: GetBlockByHeightResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetBlockByHeight",
    clientResolver
});
export const createGetGetLatestValidatorSet = (clientResolver) => buildQuery({
    encode: GetLatestValidatorSetRequest.encode,
    decode: GetLatestValidatorSetResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetLatestValidatorSet",
    clientResolver
});
export const createGetGetValidatorSetByHeight = (clientResolver) => buildQuery({
    encode: GetValidatorSetByHeightRequest.encode,
    decode: GetValidatorSetByHeightResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "GetValidatorSetByHeight",
    clientResolver
});
export const createGetABCIQuery = (clientResolver) => buildQuery({
    encode: ABCIQueryRequest.encode,
    decode: ABCIQueryResponse.decode,
    service: "cosmos.base.tendermint.v1beta1.Service",
    method: "ABCIQuery",
    clientResolver
});
