Skip to main content
Glama
tx.rpc.msg.js2.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createClientImpl = exports.MsgClientImpl = void 0; const binary_1 = require("../../../binary"); const tx_1 = require("./tx"); class MsgClientImpl { rpc; constructor(rpc) { this.rpc = rpc; this.createDenom = this.createDenom.bind(this); this.mint = this.mint.bind(this); this.burn = this.burn.bind(this); this.changeAdmin = this.changeAdmin.bind(this); this.setDenomMetadata = this.setDenomMetadata.bind(this); this.setBeforeSendHook = this.setBeforeSendHook.bind(this); this.forceTransfer = this.forceTransfer.bind(this); } createDenom(request) { const data = tx_1.MsgCreateDenom.encode(request).finish(); const promise = this.rpc.request("osmosis.tokenfactory.v1beta1.Msg", "CreateDenom", data); return promise.then(data => tx_1.MsgCreateDenomResponse.decode(new binary_1.BinaryReader(data))); } mint(request) { const data = tx_1.MsgMint.encode(request).finish(); const promise = this.rpc.request("osmosis.tokenfactory.v1beta1.Msg", "Mint", data); return promise.then(data => tx_1.MsgMintResponse.decode(new binary_1.BinaryReader(data))); } burn(request) { const data = tx_1.MsgBurn.encode(request).finish(); const promise = this.rpc.request("osmosis.tokenfactory.v1beta1.Msg", "Burn", data); return promise.then(data => tx_1.MsgBurnResponse.decode(new binary_1.BinaryReader(data))); } changeAdmin(request) { const data = tx_1.MsgChangeAdmin.encode(request).finish(); const promise = this.rpc.request("osmosis.tokenfactory.v1beta1.Msg", "ChangeAdmin", data); return promise.then(data => tx_1.MsgChangeAdminResponse.decode(new binary_1.BinaryReader(data))); } setDenomMetadata(request) { const data = tx_1.MsgSetDenomMetadata.encode(request).finish(); const promise = this.rpc.request("osmosis.tokenfactory.v1beta1.Msg", "SetDenomMetadata", data); return promise.then(data => tx_1.MsgSetDenomMetadataResponse.decode(new binary_1.BinaryReader(data))); } setBeforeSendHook(request) { const data = tx_1.MsgSetBeforeSendHook.encode(request).finish(); const promise = this.rpc.request("osmosis.tokenfactory.v1beta1.Msg", "SetBeforeSendHook", data); return promise.then(data => tx_1.MsgSetBeforeSendHookResponse.decode(new binary_1.BinaryReader(data))); } forceTransfer(request) { const data = tx_1.MsgForceTransfer.encode(request).finish(); const promise = this.rpc.request("osmosis.tokenfactory.v1beta1.Msg", "ForceTransfer", data); return promise.then(data => tx_1.MsgForceTransferResponse.decode(new binary_1.BinaryReader(data))); } } exports.MsgClientImpl = MsgClientImpl; const createClientImpl = (rpc) => { return new MsgClientImpl(rpc); }; exports.createClientImpl = createClientImpl;

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