import { buildUseVueQuery } from "../../../vue-query";
import { getAllowance, getAllowances, getAllowancesByGranter } from "./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
 */
export const useGetAllowance = buildUseVueQuery({
    builderQueryFn: 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
 */
export const useGetAllowances = buildUseVueQuery({
    builderQueryFn: 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
 */
export const useGetAllowancesByGranter = buildUseVueQuery({
    builderQueryFn: getAllowancesByGranter,
    queryKeyPrefix: "AllowancesByGranterQuery"
});
