Skip to main content
Glama
events.d.ts1.25 kB
import { tendermint34, tendermint37 } from "@cosmjs/tendermint-rpc"; /** * An event attribute. * * This is the same attribute type as tendermint34.Attribute and tendermint35.EventAttribute * but `key` and `value` are unified to strings. The conversion * from bytes to string in the Tendermint 0.34 case should be done by performing * [lossy] UTF-8 decoding. * * [lossy]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.from_utf8_lossy */ export interface Attribute { readonly key: string; readonly value: string; } /** * The same event type as tendermint34.Event and tendermint35.Event * but attribute keys and values are unified to strings. The conversion * from bytes to string in the Tendermint 0.34 case should be done by performing * [lossy] UTF-8 decoding. * * [lossy]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.from_utf8_lossy */ export interface Event { readonly type: string; readonly attributes: readonly Attribute[]; } /** * Takes a Tendermint 0.34 or 0.37 event with binary encoded key and value * and converts it into an `Event` with string attributes. */ export declare function fromTendermintEvent(event: tendermint34.Event | tendermint37.Event): Event;

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