"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useUpdateParams = exports.useCancelContinuousFund = exports.useCreateContinuousFund = exports.useCommunityPoolSpend = exports.useFundCommunityPool = void 0;
const vue_query_1 = require("../../../vue-query");
const tx_rpc_func_1 = require("./tx.rpc.func");
/**
 * FundCommunityPool defines a method to allow an account to directly
 * fund the community pool.
 * @name useFundCommunityPool
 * @package cosmos.protocolpool.v1
 * @see proto service: cosmos.protocolpool.v1.FundCommunityPool
 */
exports.useFundCommunityPool = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.fundCommunityPool
});
/**
 * CommunityPoolSpend defines a governance operation for sending tokens from
 * the community pool in the x/protocolpool module to another account, which
 * could be the governance module itself. The authority is defined in the
 * keeper.
 * @name useCommunityPoolSpend
 * @package cosmos.protocolpool.v1
 * @see proto service: cosmos.protocolpool.v1.CommunityPoolSpend
 */
exports.useCommunityPoolSpend = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.communityPoolSpend
});
/**
 * CreateContinuousFund defines a method to distribute a percentage of funds to an address continuously.
 * This ContinuousFund can be indefinite or run until a given expiry time.
 * Funds come from validator block rewards from x/distribution, but may also come from
 * any user who funds the ProtocolPoolEscrow module account directly through x/bank.
 * @name useCreateContinuousFund
 * @package cosmos.protocolpool.v1
 * @see proto service: cosmos.protocolpool.v1.CreateContinuousFund
 */
exports.useCreateContinuousFund = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.createContinuousFund
});
/**
 * CancelContinuousFund defines a method for cancelling continuous fund.
 * @name useCancelContinuousFund
 * @package cosmos.protocolpool.v1
 * @see proto service: cosmos.protocolpool.v1.CancelContinuousFund
 */
exports.useCancelContinuousFund = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.cancelContinuousFund
});
/**
 * UpdateParams defines a governance operation for updating the x/protocolpool module parameters.
 * The authority is defined in the keeper.
 * @name useUpdateParams
 * @package cosmos.protocolpool.v1
 * @see proto service: cosmos.protocolpool.v1.UpdateParams
 */
exports.useUpdateParams = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.updateParams
});
