"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createGetBuildAddress = exports.createGetWasmLimitsConfig = exports.createGetContractsByCreator = exports.createGetParams = exports.createGetPinnedCodes = exports.createGetCodeInfo = exports.createGetCodes = exports.createGetCode = exports.createGetSmartContractState = exports.createGetRawContractState = exports.createGetAllContractState = exports.createGetContractsByCode = exports.createGetContractHistory = exports.createGetContractInfo = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const query_1 = require("./query");
const createGetContractInfo = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryContractInfoRequest.encode,
    decode: query_1.QueryContractInfoResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractInfo",
    clientResolver
});
exports.createGetContractInfo = createGetContractInfo;
const createGetContractHistory = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryContractHistoryRequest.encode,
    decode: query_1.QueryContractHistoryResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractHistory",
    clientResolver
});
exports.createGetContractHistory = createGetContractHistory;
const createGetContractsByCode = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryContractsByCodeRequest.encode,
    decode: query_1.QueryContractsByCodeResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractsByCode",
    clientResolver
});
exports.createGetContractsByCode = createGetContractsByCode;
const createGetAllContractState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryAllContractStateRequest.encode,
    decode: query_1.QueryAllContractStateResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "AllContractState",
    clientResolver
});
exports.createGetAllContractState = createGetAllContractState;
const createGetRawContractState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryRawContractStateRequest.encode,
    decode: query_1.QueryRawContractStateResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "RawContractState",
    clientResolver
});
exports.createGetRawContractState = createGetRawContractState;
const createGetSmartContractState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QuerySmartContractStateRequest.encode,
    decode: query_1.QuerySmartContractStateResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "SmartContractState",
    clientResolver
});
exports.createGetSmartContractState = createGetSmartContractState;
const createGetCode = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryCodeRequest.encode,
    decode: query_1.QueryCodeResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "Code",
    clientResolver
});
exports.createGetCode = createGetCode;
const createGetCodes = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryCodesRequest.encode,
    decode: query_1.QueryCodesResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "Codes",
    clientResolver
});
exports.createGetCodes = createGetCodes;
const createGetCodeInfo = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryCodeInfoRequest.encode,
    decode: query_1.QueryCodeInfoResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "CodeInfo",
    clientResolver
});
exports.createGetCodeInfo = createGetCodeInfo;
const createGetPinnedCodes = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPinnedCodesRequest.encode,
    decode: query_1.QueryPinnedCodesResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "PinnedCodes",
    clientResolver
});
exports.createGetPinnedCodes = createGetPinnedCodes;
const createGetParams = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryParamsRequest.encode,
    decode: query_1.QueryParamsResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "Params",
    clientResolver
});
exports.createGetParams = createGetParams;
const createGetContractsByCreator = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryContractsByCreatorRequest.encode,
    decode: query_1.QueryContractsByCreatorResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractsByCreator",
    clientResolver
});
exports.createGetContractsByCreator = createGetContractsByCreator;
const createGetWasmLimitsConfig = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryWasmLimitsConfigRequest.encode,
    decode: query_1.QueryWasmLimitsConfigResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "WasmLimitsConfig",
    clientResolver
});
exports.createGetWasmLimitsConfig = createGetWasmLimitsConfig;
const createGetBuildAddress = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryBuildAddressRequest.encode,
    decode: query_1.QueryBuildAddressResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "BuildAddress",
    clientResolver
});
exports.createGetBuildAddress = createGetBuildAddress;
