"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useGetAllowancesByGranter = exports.useGetAllowances = exports.useGetAllowance = void 0;
const vue_query_1 = require("../../../vue-query");
const query_rpc_func_1 = require("./query.rpc.func");
/**
 * Allowance returns granted allwance to the grantee by the granter.
 * @name useGetAllowance
 * @package cosmos.feegrant.v1beta1
 * @see proto service: cosmos.feegrant.v1beta1.Allowance
 */
exports.useGetAllowance = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getAllowance,
    queryKeyPrefix: "AllowanceQuery"
});
/**
 * Allowances returns all the grants for the given grantee address.
 * @name useGetAllowances
 * @package cosmos.feegrant.v1beta1
 * @see proto service: cosmos.feegrant.v1beta1.Allowances
 */
exports.useGetAllowances = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getAllowances,
    queryKeyPrefix: "AllowancesQuery"
});
/**
 * AllowancesByGranter returns all the grants given by an address
 * @name useGetAllowancesByGranter
 * @package cosmos.feegrant.v1beta1
 * @see proto service: cosmos.feegrant.v1beta1.AllowancesByGranter
 */
exports.useGetAllowancesByGranter = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getAllowancesByGranter,
    queryKeyPrefix: "AllowancesByGranterQuery"
});
