import { Rpc } from "../../../helpers"; import * as _m0 from "protobufjs/minimal"; import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx"; /** Msg defines the x/mint Msg service. */ export interface Msg { /** * UpdateParams defines a governance operation for updating the x/mint module * parameters. The authority is defaults to the x/gov module account. * * Since: cosmos-sdk 0.47 */ updateParams(request: MsgUpdateParams): Promise; } export class MsgClientImpl implements Msg { private readonly rpc: Rpc; constructor(rpc: Rpc) { this.rpc = rpc; this.updateParams = this.updateParams.bind(this); } updateParams(request: MsgUpdateParams): Promise { const data = MsgUpdateParams.encode(request).finish(); const promise = this.rpc.request("cosmos.mint.v1beta1.Msg", "UpdateParams", data); return promise.then(data => MsgUpdateParamsResponse.decode(new _m0.Reader(data))); } }