"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.usePruneAllowances = exports.useRevokeAllowance = exports.useGrantAllowance = void 0;
const vue_query_1 = require("../../../vue-query");
const tx_rpc_func_1 = require("./tx.rpc.func");
/**
 * GrantAllowance grants fee allowance to the grantee on the granter's
 * account with the provided expiration time.
 * @name useGrantAllowance
 * @package cosmos.feegrant.v1beta1
 * @see proto service: cosmos.feegrant.v1beta1.GrantAllowance
 */
exports.useGrantAllowance = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.grantAllowance
});
/**
 * RevokeAllowance revokes any fee allowance of granter's account that
 * has been granted to the grantee.
 * @name useRevokeAllowance
 * @package cosmos.feegrant.v1beta1
 * @see proto service: cosmos.feegrant.v1beta1.RevokeAllowance
 */
exports.useRevokeAllowance = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.revokeAllowance
});
/**
 * PruneAllowances prunes expired fee allowances, currently up to 75 at a time.
 * @name usePruneAllowances
 * @package cosmos.feegrant.v1beta1
 * @see proto service: cosmos.feegrant.v1beta1.PruneAllowances
 */
exports.usePruneAllowances = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.pruneAllowances
});
