"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBuildAddress = exports.getWasmLimitsConfig = exports.getContractsByCreator = exports.getParams = exports.getPinnedCodes = exports.getCodeInfo = exports.getCodes = exports.getCode = exports.getSmartContractState = exports.getRawContractState = exports.getAllContractState = exports.getContractsByCode = exports.getContractHistory = exports.getContractInfo = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const query_1 = require("./query");
/**
 * ContractInfo gets the contract meta data
 * @name getContractInfo
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ContractInfo
 */
exports.getContractInfo = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryContractInfoRequest.encode,
    decode: query_1.QueryContractInfoResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractInfo",
    deps: [query_1.QueryContractInfoRequest, query_1.QueryContractInfoResponse]
});
/**
 * ContractHistory gets the contract code history
 * @name getContractHistory
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ContractHistory
 */
exports.getContractHistory = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryContractHistoryRequest.encode,
    decode: query_1.QueryContractHistoryResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractHistory",
    deps: [query_1.QueryContractHistoryRequest, query_1.QueryContractHistoryResponse]
});
/**
 * ContractsByCode lists all smart contracts for a code id
 * @name getContractsByCode
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ContractsByCode
 */
exports.getContractsByCode = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryContractsByCodeRequest.encode,
    decode: query_1.QueryContractsByCodeResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractsByCode",
    deps: [query_1.QueryContractsByCodeRequest, query_1.QueryContractsByCodeResponse]
});
/**
 * AllContractState gets all raw store data for a single contract
 * @name getAllContractState
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.AllContractState
 */
exports.getAllContractState = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryAllContractStateRequest.encode,
    decode: query_1.QueryAllContractStateResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "AllContractState",
    deps: [query_1.QueryAllContractStateRequest, query_1.QueryAllContractStateResponse]
});
/**
 * RawContractState gets single key from the raw store data of a contract
 * @name getRawContractState
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.RawContractState
 */
exports.getRawContractState = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryRawContractStateRequest.encode,
    decode: query_1.QueryRawContractStateResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "RawContractState",
    deps: [query_1.QueryRawContractStateRequest, query_1.QueryRawContractStateResponse]
});
/**
 * SmartContractState get smart query result from the contract
 * @name getSmartContractState
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.SmartContractState
 */
exports.getSmartContractState = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QuerySmartContractStateRequest.encode,
    decode: query_1.QuerySmartContractStateResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "SmartContractState",
    deps: [query_1.QuerySmartContractStateRequest, query_1.QuerySmartContractStateResponse]
});
/**
 * Code gets the binary code and metadata for a single wasm code
 * @name getCode
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.Code
 */
exports.getCode = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryCodeRequest.encode,
    decode: query_1.QueryCodeResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "Code",
    deps: [query_1.QueryCodeRequest, query_1.QueryCodeResponse]
});
/**
 * Codes gets the metadata for all stored wasm codes
 * @name getCodes
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.Codes
 */
exports.getCodes = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryCodesRequest.encode,
    decode: query_1.QueryCodesResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "Codes",
    deps: [query_1.QueryCodesRequest, query_1.QueryCodesResponse]
});
/**
 * CodeInfo gets the metadata for a single wasm code
 * @name getCodeInfo
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.CodeInfo
 */
exports.getCodeInfo = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryCodeInfoRequest.encode,
    decode: query_1.QueryCodeInfoResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "CodeInfo",
    deps: [query_1.QueryCodeInfoRequest, query_1.QueryCodeInfoResponse]
});
/**
 * PinnedCodes gets the pinned code ids
 * @name getPinnedCodes
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.PinnedCodes
 */
exports.getPinnedCodes = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPinnedCodesRequest.encode,
    decode: query_1.QueryPinnedCodesResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "PinnedCodes",
    deps: [query_1.QueryPinnedCodesRequest, query_1.QueryPinnedCodesResponse]
});
/**
 * Params gets the module params
 * @name getParams
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.Params
 */
exports.getParams = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryParamsRequest.encode,
    decode: query_1.QueryParamsResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "Params",
    deps: [query_1.QueryParamsRequest, query_1.QueryParamsResponse]
});
/**
 * ContractsByCreator gets the contracts by creator
 * @name getContractsByCreator
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ContractsByCreator
 */
exports.getContractsByCreator = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryContractsByCreatorRequest.encode,
    decode: query_1.QueryContractsByCreatorResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractsByCreator",
    deps: [query_1.QueryContractsByCreatorRequest, query_1.QueryContractsByCreatorResponse]
});
/**
 * WasmLimitsConfig gets the configured limits for static validation of Wasm
 * files, encoded in JSON.
 * @name getWasmLimitsConfig
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.WasmLimitsConfig
 */
exports.getWasmLimitsConfig = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryWasmLimitsConfigRequest.encode,
    decode: query_1.QueryWasmLimitsConfigResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "WasmLimitsConfig",
    deps: [query_1.QueryWasmLimitsConfigRequest, query_1.QueryWasmLimitsConfigResponse]
});
/**
 * BuildAddress builds a contract address
 * @name getBuildAddress
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.BuildAddress
 */
exports.getBuildAddress = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryBuildAddressRequest.encode,
    decode: query_1.QueryBuildAddressResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "BuildAddress",
    deps: [query_1.QueryBuildAddressRequest, query_1.QueryBuildAddressResponse]
});
