Skip to main content
Glama
utils.d.ts1.61 kB
import { Decimal, Uint64 } from "@cosmjs/math"; import { PageRequest } from "cosmjs-types/cosmos/base/query/v1beta1/pagination"; import Long from "long"; import { QueryClient } from "./queryclient"; /** * Takes a bech32 encoded address and returns the data part. The prefix is ignored and discarded. * This is called AccAddress in Cosmos SDK, which is basically an alias for raw binary data. * The result is typically 20 bytes long but not restricted to that. */ export declare function toAccAddress(address: string): Uint8Array; /** * If paginationKey is set, return a `PageRequest` with the given key. * If paginationKey is unset, return `undefined`. * * Use this with a query response's pagination next key to * request the next page. */ export declare function createPagination(paginationKey?: Uint8Array): PageRequest | undefined; export interface ProtobufRpcClient { request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; } export declare function createProtobufRpcClient(base: QueryClient): ProtobufRpcClient; /** * Takes a uint64 value as string, number, Long or Uint64 and returns an unsigned Long instance * of it. */ export declare function longify(value: string | number | Long | Uint64): Long; /** * Takes a string or binary encoded `github.com/cosmos/cosmos-sdk/types.Dec` from the * protobuf API and converts it into a `Decimal` with 18 fractional digits. * * See https://github.com/cosmos/cosmos-sdk/issues/10863 for more context why this is needed. */ export declare function decodeCosmosSdkDecFromProto(input: string | Uint8Array): Decimal;

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