"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.registry = exports.load = exports.MessageComposer = void 0;
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _tx = require("./tx");
var registry = [["/injective.oracle.v1beta1.MsgRelayProviderPrices", _tx.MsgRelayProviderPrices], ["/injective.oracle.v1beta1.MsgRelayPriceFeedPrice", _tx.MsgRelayPriceFeedPrice], ["/injective.oracle.v1beta1.MsgRelayBandRates", _tx.MsgRelayBandRates], ["/injective.oracle.v1beta1.MsgRequestBandIBCRates", _tx.MsgRequestBandIBCRates], ["/injective.oracle.v1beta1.MsgRelayCoinbaseMessages", _tx.MsgRelayCoinbaseMessages]];
exports.registry = registry;
var load = function load(protoRegistry) {
  registry.forEach(function (_ref) {
    var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
      typeUrl = _ref2[0],
      mod = _ref2[1];
    protoRegistry.register(typeUrl, mod);
  });
};
exports.load = load;
var MessageComposer = {
  encoded: {
    relayProviderPrices: function relayProviderPrices(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayProviderPrices",
        value: _tx.MsgRelayProviderPrices.encode(value).finish()
      };
    },
    relayPriceFeedPrice: function relayPriceFeedPrice(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice",
        value: _tx.MsgRelayPriceFeedPrice.encode(value).finish()
      };
    },
    relayBandRates: function relayBandRates(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayBandRates",
        value: _tx.MsgRelayBandRates.encode(value).finish()
      };
    },
    requestBandIBCRates: function requestBandIBCRates(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRequestBandIBCRates",
        value: _tx.MsgRequestBandIBCRates.encode(value).finish()
      };
    },
    relayCoinbaseMessages: function relayCoinbaseMessages(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages",
        value: _tx.MsgRelayCoinbaseMessages.encode(value).finish()
      };
    }
  },
  withTypeUrl: {
    relayProviderPrices: function relayProviderPrices(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayProviderPrices",
        value: value
      };
    },
    relayPriceFeedPrice: function relayPriceFeedPrice(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice",
        value: value
      };
    },
    relayBandRates: function relayBandRates(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayBandRates",
        value: value
      };
    },
    requestBandIBCRates: function requestBandIBCRates(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRequestBandIBCRates",
        value: value
      };
    },
    relayCoinbaseMessages: function relayCoinbaseMessages(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages",
        value: value
      };
    }
  },
  fromPartial: {
    relayProviderPrices: function relayProviderPrices(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayProviderPrices",
        value: _tx.MsgRelayProviderPrices.fromPartial(value)
      };
    },
    relayPriceFeedPrice: function relayPriceFeedPrice(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice",
        value: _tx.MsgRelayPriceFeedPrice.fromPartial(value)
      };
    },
    relayBandRates: function relayBandRates(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayBandRates",
        value: _tx.MsgRelayBandRates.fromPartial(value)
      };
    },
    requestBandIBCRates: function requestBandIBCRates(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRequestBandIBCRates",
        value: _tx.MsgRequestBandIBCRates.fromPartial(value)
      };
    },
    relayCoinbaseMessages: function relayCoinbaseMessages(value) {
      return {
        typeUrl: "/injective.oracle.v1beta1.MsgRelayCoinbaseMessages",
        value: _tx.MsgRelayCoinbaseMessages.fromPartial(value)
      };
    }
  }
};
exports.MessageComposer = MessageComposer;