"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AminoConverter = void 0;
var _helpers = require("../../../helpers");
var AminoConverter = {
  "/injective.auction.v1beta1.MsgBid": {
    aminoType: "/injective.auction.v1beta1.MsgBid",
    toAmino: function toAmino(_ref) {
      var sender = _ref.sender,
        bidAmount = _ref.bidAmount,
        round = _ref.round;
      return {
        sender: sender,
        bid_amount: {
          denom: bidAmount.denom,
          amount: _helpers.Long.fromValue(bidAmount.amount).toString()
        },
        round: round.toString()
      };
    },
    fromAmino: function fromAmino(_ref2) {
      var sender = _ref2.sender,
        bid_amount = _ref2.bid_amount,
        round = _ref2.round;
      return {
        sender: sender,
        bidAmount: {
          denom: bid_amount.denom,
          amount: bid_amount.amount
        },
        round: _helpers.Long.fromString(round)
      };
    }
  }
};
exports.AminoConverter = AminoConverter;