Skip to main content
Glama
tx.registry.js2.01 kB
import { MsgGrant, MsgExec, MsgRevoke } from "./tx"; export const registry = [["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke]]; export const load = (protoRegistry) => { registry.forEach(([typeUrl, mod]) => { protoRegistry.register(typeUrl, mod); }); }; export const MessageComposer = { encoded: { grant(value) { return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: MsgGrant.encode(value).finish() }; }, exec(value) { return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: MsgExec.encode(value).finish() }; }, revoke(value) { return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.encode(value).finish() }; } }, withTypeUrl: { grant(value) { return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value }; }, exec(value) { return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value }; }, revoke(value) { return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value }; } }, fromPartial: { grant(value) { return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: MsgGrant.fromPartial(value) }; }, exec(value) { return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: MsgExec.fromPartial(value) }; }, revoke(value) { return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.fromPartial(value) }; } } };

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