import { Rpc } from "../../../../helpers"; import * as _m0 from "protobufjs/minimal"; import { MsgCreateStableswapPool, MsgCreateStableswapPoolResponse, MsgStableSwapAdjustScalingFactors, MsgStableSwapAdjustScalingFactorsResponse } from "./tx"; export interface Msg { createStableswapPool(request: MsgCreateStableswapPool): Promise; stableSwapAdjustScalingFactors(request: MsgStableSwapAdjustScalingFactors): Promise; } 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))); } }