"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGranteeGrants = exports.getGranterGrants = exports.getGrants = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const query_1 = require("./query");
/**
 * Returns list of `Authorization`, granted to the grantee by the granter.
 * @name getGrants
 * @package cosmos.authz.v1beta1
 * @see proto service: cosmos.authz.v1beta1.Grants
 */
exports.getGrants = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGrantsRequest.encode,
    decode: query_1.QueryGrantsResponse.decode,
    service: "cosmos.authz.v1beta1.Query",
    method: "Grants",
    deps: [query_1.QueryGrantsRequest, query_1.QueryGrantsResponse]
});
/**
 * GranterGrants returns list of `GrantAuthorization`, granted by granter.
 * @name getGranterGrants
 * @package cosmos.authz.v1beta1
 * @see proto service: cosmos.authz.v1beta1.GranterGrants
 */
exports.getGranterGrants = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGranterGrantsRequest.encode,
    decode: query_1.QueryGranterGrantsResponse.decode,
    service: "cosmos.authz.v1beta1.Query",
    method: "GranterGrants",
    deps: [query_1.QueryGranterGrantsRequest, query_1.QueryGranterGrantsResponse]
});
/**
 * GranteeGrants returns a list of `GrantAuthorization` by grantee.
 * @name getGranteeGrants
 * @package cosmos.authz.v1beta1
 * @see proto service: cosmos.authz.v1beta1.GranteeGrants
 */
exports.getGranteeGrants = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGranteeGrantsRequest.encode,
    decode: query_1.QueryGranteeGrantsResponse.decode,
    service: "cosmos.authz.v1beta1.Query",
    method: "GranteeGrants",
    deps: [query_1.QueryGranteeGrantsRequest, query_1.QueryGranteeGrantsResponse]
});
