Skip to main content
Glama
events.js751 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromTendermintEvent = void 0; const encoding_1 = require("@cosmjs/encoding"); /** * Takes a Tendermint 0.34 or 0.37 event with binary encoded key and value * and converts it into an `Event` with string attributes. */ function fromTendermintEvent(event) { return { type: event.type, attributes: event.attributes.map((attr) => ({ key: typeof attr.key == "string" ? attr.key : (0, encoding_1.fromUtf8)(attr.key, true), value: typeof attr.value == "string" ? attr.value : (0, encoding_1.fromUtf8)(attr.value, true), })), }; } exports.fromTendermintEvent = fromTendermintEvent; //# sourceMappingURL=events.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