Skip to main content
Glama
tx.registry.js5.04 kB
import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation, MsgUpdateParams } from "./tx"; export const registry = [["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], ["/cosmos.staking.v1beta1.MsgUpdateParams", MsgUpdateParams]]; export const load = (protoRegistry) => { registry.forEach(([typeUrl, mod]) => { protoRegistry.register(typeUrl, mod); }); }; export const MessageComposer = { encoded: { createValidator(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.encode(value).finish() }; }, editValidator(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.encode(value).finish() }; }, delegate(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.encode(value).finish() }; }, beginRedelegate(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.encode(value).finish() }; }, undelegate(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.encode(value).finish() }; }, cancelUnbondingDelegation(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.encode(value).finish() }; }, updateParams(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams", value: MsgUpdateParams.encode(value).finish() }; } }, withTypeUrl: { createValidator(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value }; }, editValidator(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value }; }, delegate(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value }; }, beginRedelegate(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value }; }, undelegate(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value }; }, cancelUnbondingDelegation(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value }; }, updateParams(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams", value }; } }, fromPartial: { createValidator(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial(value) }; }, editValidator(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) }; }, delegate(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial(value) }; }, beginRedelegate(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(value) }; }, undelegate(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(value) }; }, cancelUnbondingDelegation(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) }; }, updateParams(value) { return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams", value: MsgUpdateParams.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