import { PoolParams } from "./stableswap_pool"; import { Coin } from "../../../../cosmos/base/v1beta1/coin"; import { Rpc } from "@osmonauts/helpers"; import * as _m0 from "protobufjs/minimal"; import { MsgCreateStableswapPool, MsgCreateStableswapPoolResponse, MsgStableSwapAdjustScalingFactors, MsgStableSwapAdjustScalingFactorsResponse } from "./tx"; /** Msg defines the RPC service */ export interface Msg { createStableswapPool(request: MsgCreateStableswapPool): Promise; /*null*/ stableSwapAdjustScalingFactors(request: MsgStableSwapAdjustScalingFactors): Promise; /*null*/ } export class MsgClientImpl implements Msg { private readonly rpc: Rpc; constructor(rpc: Rpc) { this.rpc = rpc; this.createStableswapPool = this.createStableswapPool.bind(this); this.stableSwapAdjustScalingFactors = this.stableSwapAdjustScalingFactors.bind(this); } createStableswapPool(request: MsgCreateStableswapPool): Promise { const data = MsgCreateStableswapPool.encode(request).finish(); const promise = this.rpc.request("osmosis.gamm.poolmodels.stableswap.v1beta1.Msg", "CreateStableswapPool", data); return promise.then(data => MsgCreateStableswapPoolResponse.decode(new _m0.Reader(data))); } stableSwapAdjustScalingFactors(request: MsgStableSwapAdjustScalingFactors): Promise { const data = MsgStableSwapAdjustScalingFactors.encode(request).finish(); const promise = this.rpc.request("osmosis.gamm.poolmodels.stableswap.v1beta1.Msg", "StableSwapAdjustScalingFactors", data); return promise.then(data => MsgStableSwapAdjustScalingFactorsResponse.decode(new _m0.Reader(data))); } }