"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useGetBuildAddress = exports.useGetWasmLimitsConfig = exports.useGetContractsByCreator = exports.useGetParams = exports.useGetPinnedCodes = exports.useGetCodeInfo = exports.useGetCodes = exports.useGetCode = exports.useGetSmartContractState = exports.useGetRawContractState = exports.useGetAllContractState = exports.useGetContractsByCode = exports.useGetContractHistory = exports.useGetContractInfo = void 0;
const vue_query_1 = require("../../../vue-query");
const query_rpc_func_1 = require("./query.rpc.func");
/**
 * ContractInfo gets the contract meta data
 * @name useGetContractInfo
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ContractInfo
 */
exports.useGetContractInfo = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getContractInfo,
    queryKeyPrefix: "ContractInfoQuery"
});
/**
 * ContractHistory gets the contract code history
 * @name useGetContractHistory
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ContractHistory
 */
exports.useGetContractHistory = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getContractHistory,
    queryKeyPrefix: "ContractHistoryQuery"
});
/**
 * ContractsByCode lists all smart contracts for a code id
 * @name useGetContractsByCode
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ContractsByCode
 */
exports.useGetContractsByCode = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getContractsByCode,
    queryKeyPrefix: "ContractsByCodeQuery"
});
/**
 * AllContractState gets all raw store data for a single contract
 * @name useGetAllContractState
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.AllContractState
 */
exports.useGetAllContractState = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getAllContractState,
    queryKeyPrefix: "AllContractStateQuery"
});
/**
 * RawContractState gets single key from the raw store data of a contract
 * @name useGetRawContractState
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.RawContractState
 */
exports.useGetRawContractState = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getRawContractState,
    queryKeyPrefix: "RawContractStateQuery"
});
/**
 * SmartContractState get smart query result from the contract
 * @name useGetSmartContractState
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.SmartContractState
 */
exports.useGetSmartContractState = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getSmartContractState,
    queryKeyPrefix: "SmartContractStateQuery"
});
/**
 * Code gets the binary code and metadata for a single wasm code
 * @name useGetCode
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.Code
 */
exports.useGetCode = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getCode,
    queryKeyPrefix: "CodeQuery"
});
/**
 * Codes gets the metadata for all stored wasm codes
 * @name useGetCodes
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.Codes
 */
exports.useGetCodes = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getCodes,
    queryKeyPrefix: "CodesQuery"
});
/**
 * CodeInfo gets the metadata for a single wasm code
 * @name useGetCodeInfo
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.CodeInfo
 */
exports.useGetCodeInfo = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getCodeInfo,
    queryKeyPrefix: "CodeInfoQuery"
});
/**
 * PinnedCodes gets the pinned code ids
 * @name useGetPinnedCodes
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.PinnedCodes
 */
exports.useGetPinnedCodes = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getPinnedCodes,
    queryKeyPrefix: "PinnedCodesQuery"
});
/**
 * Params gets the module params
 * @name useGetParams
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.Params
 */
exports.useGetParams = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getParams,
    queryKeyPrefix: "ParamsQuery"
});
/**
 * ContractsByCreator gets the contracts by creator
 * @name useGetContractsByCreator
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ContractsByCreator
 */
exports.useGetContractsByCreator = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getContractsByCreator,
    queryKeyPrefix: "ContractsByCreatorQuery"
});
/**
 * WasmLimitsConfig gets the configured limits for static validation of Wasm
 * files, encoded in JSON.
 * @name useGetWasmLimitsConfig
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.WasmLimitsConfig
 */
exports.useGetWasmLimitsConfig = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getWasmLimitsConfig,
    queryKeyPrefix: "WasmLimitsConfigQuery"
});
/**
 * BuildAddress builds a contract address
 * @name useGetBuildAddress
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.BuildAddress
 */
exports.useGetBuildAddress = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getBuildAddress,
    queryKeyPrefix: "BuildAddressQuery"
});
