import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import * as _m0 from "protobufjs/minimal";
import { MsgBid, MsgBidResponse } from "./tx";
/** Msg defines the auction Msg service. */

export class MsgClientImpl {
  constructor(rpc) {
    _defineProperty(this, "rpc", void 0);
    this.rpc = rpc;
    this.bid = this.bid.bind(this);
  }
  bid(request) {
    const data = MsgBid.encode(request).finish();
    const promise = this.rpc.request("injective.auction.v1beta1.Msg", "Bid", data);
    return promise.then(data => MsgBidResponse.decode(new _m0.Reader(data)));
  }
}