"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useUpdateContractLabel = exports.useStoreAndMigrateContract = exports.useAddCodeUploadParamsAddresses = exports.useRemoveCodeUploadParamsAddresses = exports.useStoreAndInstantiateContract = exports.useUnpinCodes = exports.usePinCodes = exports.useSudoContract = exports.useUpdateParams = exports.useUpdateInstantiateConfig = exports.useClearAdmin = exports.useUpdateAdmin = exports.useMigrateContract = exports.useExecuteContract = exports.useInstantiateContract2 = exports.useInstantiateContract = exports.useStoreCode = void 0;
const vue_query_1 = require("../../../vue-query");
const tx_rpc_func_1 = require("./tx.rpc.func");
/**
 * StoreCode to submit Wasm code to the system
 * @name useStoreCode
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.StoreCode
 */
exports.useStoreCode = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.storeCode
});
/**
 * InstantiateContract creates a new smart contract instance for the given
 *  code id.
 * @name useInstantiateContract
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.InstantiateContract
 */
exports.useInstantiateContract = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.instantiateContract
});
/**
 * InstantiateContract2 creates a new smart contract instance for the given
 *  code id with a predictable address
 * @name useInstantiateContract2
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.InstantiateContract2
 */
exports.useInstantiateContract2 = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.instantiateContract2
});
/**
 * Execute submits the given message data to a smart contract
 * @name useExecuteContract
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ExecuteContract
 */
exports.useExecuteContract = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.executeContract
});
/**
 * Migrate runs a code upgrade/ downgrade for a smart contract
 * @name useMigrateContract
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.MigrateContract
 */
exports.useMigrateContract = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.migrateContract
});
/**
 * UpdateAdmin sets a new admin for a smart contract
 * @name useUpdateAdmin
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.UpdateAdmin
 */
exports.useUpdateAdmin = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.updateAdmin
});
/**
 * ClearAdmin removes any admin stored for a smart contract
 * @name useClearAdmin
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.ClearAdmin
 */
exports.useClearAdmin = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.clearAdmin
});
/**
 * UpdateInstantiateConfig updates instantiate config for a smart contract
 * @name useUpdateInstantiateConfig
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.UpdateInstantiateConfig
 */
exports.useUpdateInstantiateConfig = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.updateInstantiateConfig
});
/**
 * UpdateParams defines a governance operation for updating the x/wasm
 * module parameters. The authority is defined in the keeper.
 *
 * Since: 0.40
 * @name useUpdateParams
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.UpdateParams
 */
exports.useUpdateParams = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.updateParams
});
/**
 * SudoContract defines a governance operation for calling sudo
 * on a contract. The authority is defined in the keeper.
 *
 * Since: 0.40
 * @name useSudoContract
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.SudoContract
 */
exports.useSudoContract = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.sudoContract
});
/**
 * PinCodes defines a governance operation for pinning a set of
 * code ids in the wasmvm cache. The authority is defined in the keeper.
 *
 * Since: 0.40
 * @name usePinCodes
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.PinCodes
 */
exports.usePinCodes = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.pinCodes
});
/**
 * UnpinCodes defines a governance operation for unpinning a set of
 * code ids in the wasmvm cache. The authority is defined in the keeper.
 *
 * Since: 0.40
 * @name useUnpinCodes
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.UnpinCodes
 */
exports.useUnpinCodes = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.unpinCodes
});
/**
 * StoreAndInstantiateContract defines a governance operation for storing
 * and instantiating the contract. The authority is defined in the keeper.
 *
 * Since: 0.40
 * @name useStoreAndInstantiateContract
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.StoreAndInstantiateContract
 */
exports.useStoreAndInstantiateContract = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.storeAndInstantiateContract
});
/**
 * RemoveCodeUploadParamsAddresses defines a governance operation for
 * removing addresses from code upload params.
 * The authority is defined in the keeper.
 * @name useRemoveCodeUploadParamsAddresses
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.RemoveCodeUploadParamsAddresses
 */
exports.useRemoveCodeUploadParamsAddresses = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.removeCodeUploadParamsAddresses
});
/**
 * AddCodeUploadParamsAddresses defines a governance operation for
 * adding addresses to code upload params.
 * The authority is defined in the keeper.
 * @name useAddCodeUploadParamsAddresses
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.AddCodeUploadParamsAddresses
 */
exports.useAddCodeUploadParamsAddresses = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.addCodeUploadParamsAddresses
});
/**
 * StoreAndMigrateContract defines a governance operation for storing
 * and migrating the contract. The authority is defined in the keeper.
 *
 * Since: 0.42
 * @name useStoreAndMigrateContract
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.StoreAndMigrateContract
 */
exports.useStoreAndMigrateContract = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.storeAndMigrateContract
});
/**
 * UpdateContractLabel sets a new label for a smart contract
 *
 * Since: 0.43
 * @name useUpdateContractLabel
 * @package cosmwasm.wasm.v1
 * @see proto service: cosmwasm.wasm.v1.UpdateContractLabel
 */
exports.useUpdateContractLabel = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.updateContractLabel
});
