"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AminoConverter = void 0;
var AminoConverter = {
  "/mars.incentives.v1beta1.MsgCreateSchedule": {
    aminoType: "/mars.incentives.v1beta1.MsgCreateSchedule",
    toAmino: function toAmino(_ref) {
      var authority = _ref.authority,
        startTime = _ref.startTime,
        endTime = _ref.endTime,
        amount = _ref.amount;
      return {
        authority: authority,
        start_time: startTime,
        end_time: endTime,
        amount: amount.map(function (el0) {
          return {
            denom: el0.denom,
            amount: el0.amount
          };
        })
      };
    },
    fromAmino: function fromAmino(_ref2) {
      var authority = _ref2.authority,
        start_time = _ref2.start_time,
        end_time = _ref2.end_time,
        amount = _ref2.amount;
      return {
        authority: authority,
        startTime: start_time,
        endTime: end_time,
        amount: amount.map(function (el0) {
          return {
            denom: el0.denom,
            amount: el0.amount
          };
        })
      };
    }
  },
  "/mars.incentives.v1beta1.MsgTerminateSchedules": {
    aminoType: "/mars.incentives.v1beta1.MsgTerminateSchedules",
    toAmino: function toAmino(_ref3) {
      var authority = _ref3.authority,
        ids = _ref3.ids;
      return {
        authority: authority,
        ids: ids.map(function (el0) {
          return el0.toString();
        })
      };
    },
    fromAmino: function fromAmino(_ref4) {
      var authority = _ref4.authority,
        ids = _ref4.ids;
      return {
        authority: authority,
        ids: ids.map(function (el0) {
          return Long.fromString(el0);
        })
      };
    }
  }
};
exports.AminoConverter = AminoConverter;