"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 _msgs = require("./msgs");
var registry = [["/injective.peggy.v1.MsgValsetConfirm", _msgs.MsgValsetConfirm], ["/injective.peggy.v1.MsgSendToEth", _msgs.MsgSendToEth], ["/injective.peggy.v1.MsgRequestBatch", _msgs.MsgRequestBatch], ["/injective.peggy.v1.MsgConfirmBatch", _msgs.MsgConfirmBatch], ["/injective.peggy.v1.MsgDepositClaim", _msgs.MsgDepositClaim], ["/injective.peggy.v1.MsgWithdrawClaim", _msgs.MsgWithdrawClaim], ["/injective.peggy.v1.MsgValsetUpdatedClaim", _msgs.MsgValsetUpdatedClaim], ["/injective.peggy.v1.MsgERC20DeployedClaim", _msgs.MsgERC20DeployedClaim], ["/injective.peggy.v1.MsgSetOrchestratorAddresses", _msgs.MsgSetOrchestratorAddresses], ["/injective.peggy.v1.MsgCancelSendToEth", _msgs.MsgCancelSendToEth], ["/injective.peggy.v1.MsgSubmitBadSignatureEvidence", _msgs.MsgSubmitBadSignatureEvidence]];
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: {
    valsetConfirm: function valsetConfirm(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgValsetConfirm",
        value: _msgs.MsgValsetConfirm.encode(value).finish()
      };
    },
    sendToEth: function sendToEth(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgSendToEth",
        value: _msgs.MsgSendToEth.encode(value).finish()
      };
    },
    requestBatch: function requestBatch(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgRequestBatch",
        value: _msgs.MsgRequestBatch.encode(value).finish()
      };
    },
    confirmBatch: function confirmBatch(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgConfirmBatch",
        value: _msgs.MsgConfirmBatch.encode(value).finish()
      };
    },
    depositClaim: function depositClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgDepositClaim",
        value: _msgs.MsgDepositClaim.encode(value).finish()
      };
    },
    withdrawClaim: function withdrawClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgWithdrawClaim",
        value: _msgs.MsgWithdrawClaim.encode(value).finish()
      };
    },
    valsetUpdateClaim: function valsetUpdateClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgValsetUpdatedClaim",
        value: _msgs.MsgValsetUpdatedClaim.encode(value).finish()
      };
    },
    eRC20DeployedClaim: function eRC20DeployedClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgERC20DeployedClaim",
        value: _msgs.MsgERC20DeployedClaim.encode(value).finish()
      };
    },
    setOrchestratorAddresses: function setOrchestratorAddresses(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgSetOrchestratorAddresses",
        value: _msgs.MsgSetOrchestratorAddresses.encode(value).finish()
      };
    },
    cancelSendToEth: function cancelSendToEth(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgCancelSendToEth",
        value: _msgs.MsgCancelSendToEth.encode(value).finish()
      };
    },
    submitBadSignatureEvidence: function submitBadSignatureEvidence(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgSubmitBadSignatureEvidence",
        value: _msgs.MsgSubmitBadSignatureEvidence.encode(value).finish()
      };
    }
  },
  withTypeUrl: {
    valsetConfirm: function valsetConfirm(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgValsetConfirm",
        value: value
      };
    },
    sendToEth: function sendToEth(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgSendToEth",
        value: value
      };
    },
    requestBatch: function requestBatch(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgRequestBatch",
        value: value
      };
    },
    confirmBatch: function confirmBatch(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgConfirmBatch",
        value: value
      };
    },
    depositClaim: function depositClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgDepositClaim",
        value: value
      };
    },
    withdrawClaim: function withdrawClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgWithdrawClaim",
        value: value
      };
    },
    valsetUpdateClaim: function valsetUpdateClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgValsetUpdatedClaim",
        value: value
      };
    },
    eRC20DeployedClaim: function eRC20DeployedClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgERC20DeployedClaim",
        value: value
      };
    },
    setOrchestratorAddresses: function setOrchestratorAddresses(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgSetOrchestratorAddresses",
        value: value
      };
    },
    cancelSendToEth: function cancelSendToEth(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgCancelSendToEth",
        value: value
      };
    },
    submitBadSignatureEvidence: function submitBadSignatureEvidence(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgSubmitBadSignatureEvidence",
        value: value
      };
    }
  },
  fromPartial: {
    valsetConfirm: function valsetConfirm(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgValsetConfirm",
        value: _msgs.MsgValsetConfirm.fromPartial(value)
      };
    },
    sendToEth: function sendToEth(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgSendToEth",
        value: _msgs.MsgSendToEth.fromPartial(value)
      };
    },
    requestBatch: function requestBatch(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgRequestBatch",
        value: _msgs.MsgRequestBatch.fromPartial(value)
      };
    },
    confirmBatch: function confirmBatch(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgConfirmBatch",
        value: _msgs.MsgConfirmBatch.fromPartial(value)
      };
    },
    depositClaim: function depositClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgDepositClaim",
        value: _msgs.MsgDepositClaim.fromPartial(value)
      };
    },
    withdrawClaim: function withdrawClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgWithdrawClaim",
        value: _msgs.MsgWithdrawClaim.fromPartial(value)
      };
    },
    valsetUpdateClaim: function valsetUpdateClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgValsetUpdatedClaim",
        value: _msgs.MsgValsetUpdatedClaim.fromPartial(value)
      };
    },
    eRC20DeployedClaim: function eRC20DeployedClaim(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgERC20DeployedClaim",
        value: _msgs.MsgERC20DeployedClaim.fromPartial(value)
      };
    },
    setOrchestratorAddresses: function setOrchestratorAddresses(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgSetOrchestratorAddresses",
        value: _msgs.MsgSetOrchestratorAddresses.fromPartial(value)
      };
    },
    cancelSendToEth: function cancelSendToEth(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgCancelSendToEth",
        value: _msgs.MsgCancelSendToEth.fromPartial(value)
      };
    },
    submitBadSignatureEvidence: function submitBadSignatureEvidence(value) {
      return {
        typeUrl: "/injective.peggy.v1.MsgSubmitBadSignatureEvidence",
        value: _msgs.MsgSubmitBadSignatureEvidence.fromPartial(value)
      };
    }
  }
};
exports.MessageComposer = MessageComposer;