Skip to main content
Glama
queries.js1.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setupAuthzExtension = void 0; const query_1 = require("cosmjs-types/cosmos/authz/v1beta1/query"); const queryclient_1 = require("../../queryclient"); function setupAuthzExtension(base) { // Use this service to get easy typed access to query methods // This cannot be used for proof verification const rpc = (0, queryclient_1.createProtobufRpcClient)(base); const queryService = new query_1.QueryClientImpl(rpc); return { authz: { grants: async (granter, grantee, msgTypeUrl, paginationKey) => { return await queryService.Grants({ granter: granter, grantee: grantee, msgTypeUrl: msgTypeUrl, pagination: (0, queryclient_1.createPagination)(paginationKey), }); }, granteeGrants: async (grantee, paginationKey) => { return await queryService.GranteeGrants({ grantee: grantee, pagination: (0, queryclient_1.createPagination)(paginationKey), }); }, granterGrants: async (granter, paginationKey) => { return await queryService.GranterGrants({ granter: granter, pagination: (0, queryclient_1.createPagination)(paginationKey), }); }, }, }; } exports.setupAuthzExtension = setupAuthzExtension; //# sourceMappingURL=queries.js.map

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MyronKoch-dev/osmosis-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server