"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAllowancesByGranter = exports.getAllowances = exports.getAllowance = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const query_1 = require("./query");
/**
 * Allowance returns granted allwance to the grantee by the granter.
 * @name getAllowance
 * @package cosmos.feegrant.v1beta1
 * @see proto service: cosmos.feegrant.v1beta1.Allowance
 */
exports.getAllowance = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryAllowanceRequest.encode,
    decode: query_1.QueryAllowanceResponse.decode,
    service: "cosmos.feegrant.v1beta1.Query",
    method: "Allowance",
    deps: [query_1.QueryAllowanceRequest, query_1.QueryAllowanceResponse]
});
/**
 * Allowances returns all the grants for the given grantee address.
 * @name getAllowances
 * @package cosmos.feegrant.v1beta1
 * @see proto service: cosmos.feegrant.v1beta1.Allowances
 */
exports.getAllowances = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryAllowancesRequest.encode,
    decode: query_1.QueryAllowancesResponse.decode,
    service: "cosmos.feegrant.v1beta1.Query",
    method: "Allowances",
    deps: [query_1.QueryAllowancesRequest, query_1.QueryAllowancesResponse]
});
/**
 * AllowancesByGranter returns all the grants given by an address
 * @name getAllowancesByGranter
 * @package cosmos.feegrant.v1beta1
 * @see proto service: cosmos.feegrant.v1beta1.AllowancesByGranter
 */
exports.getAllowancesByGranter = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryAllowancesByGranterRequest.encode,
    decode: query_1.QueryAllowancesByGranterResponse.decode,
    service: "cosmos.feegrant.v1beta1.Query",
    method: "AllowancesByGranter",
    deps: [query_1.QueryAllowancesByGranterRequest, query_1.QueryAllowancesByGranterResponse]
});
