"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.ocr.v1beta1.MsgCreateFeed", _tx.MsgCreateFeed], ["/injective.ocr.v1beta1.MsgUpdateFeed", _tx.MsgUpdateFeed], ["/injective.ocr.v1beta1.MsgTransmit", _tx.MsgTransmit], ["/injective.ocr.v1beta1.MsgFundFeedRewardPool", _tx.MsgFundFeedRewardPool], ["/injective.ocr.v1beta1.MsgWithdrawFeedRewardPool", _tx.MsgWithdrawFeedRewardPool], ["/injective.ocr.v1beta1.MsgSetPayees", _tx.MsgSetPayees], ["/injective.ocr.v1beta1.MsgTransferPayeeship", _tx.MsgTransferPayeeship], ["/injective.ocr.v1beta1.MsgAcceptPayeeship", _tx.MsgAcceptPayeeship]];
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: {
    createFeed: function createFeed(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgCreateFeed",
        value: _tx.MsgCreateFeed.encode(value).finish()
      };
    },
    updateFeed: function updateFeed(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgUpdateFeed",
        value: _tx.MsgUpdateFeed.encode(value).finish()
      };
    },
    transmit: function transmit(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgTransmit",
        value: _tx.MsgTransmit.encode(value).finish()
      };
    },
    fundFeedRewardPool: function fundFeedRewardPool(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgFundFeedRewardPool",
        value: _tx.MsgFundFeedRewardPool.encode(value).finish()
      };
    },
    withdrawFeedRewardPool: function withdrawFeedRewardPool(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPool",
        value: _tx.MsgWithdrawFeedRewardPool.encode(value).finish()
      };
    },
    setPayees: function setPayees(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgSetPayees",
        value: _tx.MsgSetPayees.encode(value).finish()
      };
    },
    transferPayeeship: function transferPayeeship(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgTransferPayeeship",
        value: _tx.MsgTransferPayeeship.encode(value).finish()
      };
    },
    acceptPayeeship: function acceptPayeeship(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgAcceptPayeeship",
        value: _tx.MsgAcceptPayeeship.encode(value).finish()
      };
    }
  },
  withTypeUrl: {
    createFeed: function createFeed(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgCreateFeed",
        value: value
      };
    },
    updateFeed: function updateFeed(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgUpdateFeed",
        value: value
      };
    },
    transmit: function transmit(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgTransmit",
        value: value
      };
    },
    fundFeedRewardPool: function fundFeedRewardPool(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgFundFeedRewardPool",
        value: value
      };
    },
    withdrawFeedRewardPool: function withdrawFeedRewardPool(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPool",
        value: value
      };
    },
    setPayees: function setPayees(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgSetPayees",
        value: value
      };
    },
    transferPayeeship: function transferPayeeship(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgTransferPayeeship",
        value: value
      };
    },
    acceptPayeeship: function acceptPayeeship(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgAcceptPayeeship",
        value: value
      };
    }
  },
  fromPartial: {
    createFeed: function createFeed(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgCreateFeed",
        value: _tx.MsgCreateFeed.fromPartial(value)
      };
    },
    updateFeed: function updateFeed(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgUpdateFeed",
        value: _tx.MsgUpdateFeed.fromPartial(value)
      };
    },
    transmit: function transmit(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgTransmit",
        value: _tx.MsgTransmit.fromPartial(value)
      };
    },
    fundFeedRewardPool: function fundFeedRewardPool(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgFundFeedRewardPool",
        value: _tx.MsgFundFeedRewardPool.fromPartial(value)
      };
    },
    withdrawFeedRewardPool: function withdrawFeedRewardPool(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgWithdrawFeedRewardPool",
        value: _tx.MsgWithdrawFeedRewardPool.fromPartial(value)
      };
    },
    setPayees: function setPayees(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgSetPayees",
        value: _tx.MsgSetPayees.fromPartial(value)
      };
    },
    transferPayeeship: function transferPayeeship(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgTransferPayeeship",
        value: _tx.MsgTransferPayeeship.fromPartial(value)
      };
    },
    acceptPayeeship: function acceptPayeeship(value) {
      return {
        typeUrl: "/injective.ocr.v1beta1.MsgAcceptPayeeship",
        value: _tx.MsgAcceptPayeeship.fromPartial(value)
      };
    }
  }
};
exports.MessageComposer = MessageComposer;