"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AminoConverter = void 0;
var _helpers = require("../../../helpers");
var AminoConverter = {
  "/injective.oracle.v1beta1.MsgRelayProviderPrices": {
    aminoType: "/injective.oracle.v1beta1.MsgRelayProviderPrices",
    toAmino: function toAmino(_ref) {
      var sender = _ref.sender,
        provider = _ref.provider,
        symbols = _ref.symbols,
        prices = _ref.prices;
      return {
        sender: sender,
        provider: provider,
        symbols: symbols,
        prices: prices
      };
    },
    fromAmino: function fromAmino(_ref2) {
      var sender = _ref2.sender,
        provider = _ref2.provider,
        symbols = _ref2.symbols,
        prices = _ref2.prices;
      return {
        sender: sender,
        provider: provider,
        symbols: symbols,
        prices: prices
      };
    }
  },
  "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice": {
    aminoType: "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice",
    toAmino: function toAmino(_ref3) {
      var sender = _ref3.sender,
        base = _ref3.base,
        quote = _ref3.quote,
        price = _ref3.price;
      return {
        sender: sender,
        base: base,
        quote: quote,
        price: price
      };
    },
    fromAmino: function fromAmino(_ref4) {
      var sender = _ref4.sender,
        base = _ref4.base,
        quote = _ref4.quote,
        price = _ref4.price;
      return {
        sender: sender,
        base: base,
        quote: quote,
        price: price
      };
    }
  },
  "/injective.oracle.v1beta1.MsgRelayBandRates": {
    aminoType: "/injective.oracle.v1beta1.MsgRelayBandRates",
    toAmino: function toAmino(_ref5) {
      var relayer = _ref5.relayer,
        symbols = _ref5.symbols,
        rates = _ref5.rates,
        resolveTimes = _ref5.resolveTimes,
        requestIDs = _ref5.requestIDs;
      return {
        relayer: relayer,
        symbols: symbols,
        rates: rates.map(function (el0) {
          return el0.toString();
        }),
        resolve_times: resolveTimes.map(function (el0) {
          return el0.toString();
        }),
        requestIDs: requestIDs.map(function (el0) {
          return el0.toString();
        })
      };
    },
    fromAmino: function fromAmino(_ref6) {
      var relayer = _ref6.relayer,
        symbols = _ref6.symbols,
        rates = _ref6.rates,
        resolve_times = _ref6.resolve_times,
        requestIDs = _ref6.requestIDs;
      return {
        relayer: relayer,
        symbols: symbols,
        rates: rates.map(function (el0) {
          return _helpers.Long.fromString(el0);
        }),
        resolveTimes: resolve_times.map(function (el0) {
          return _helpers.Long.fromString(el0);
        }),
        requestIDs: requestIDs.map(function (el0) {
          return _helpers.Long.fromString(el0);
        })
      };
    }
  },
  "/injective.oracle.v1beta1.MsgRequestBandIBCRates": {
    aminoType: "/injective.oracle.v1beta1.MsgRequestBandIBCRates",
    toAmino: function toAmino(_ref7) {
      var sender = _ref7.sender,
        requestId = _ref7.requestId;
      return {
        sender: sender,
        request_id: requestId.toString()
      };
    },
    fromAmino: function fromAmino(_ref8) {
      var sender = _ref8.sender,
        request_id = _ref8.request_id;
      return {
        sender: sender,
        requestId: _helpers.Long.fromString(request_id)
      };
    }
  },
  "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages": {
    aminoType: "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages",
    toAmino: function toAmino(_ref9) {
      var sender = _ref9.sender,
        messages = _ref9.messages,
        signatures = _ref9.signatures;
      return {
        sender: sender,
        messages: messages,
        signatures: signatures
      };
    },
    fromAmino: function fromAmino(_ref10) {
      var sender = _ref10.sender,
        messages = _ref10.messages,
        signatures = _ref10.signatures;
      return {
        sender: sender,
        messages: messages,
        signatures: signatures
      };
    }
  }
};
exports.AminoConverter = AminoConverter;