"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createRPCMsgClient = void 0;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
var createRPCMsgClient = exports.createRPCMsgClient = /*#__PURE__*/function () {
  var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref) {
    var rpc;
    return _regenerator["default"].wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          rpc = _ref.rpc;
          _context.next = 3;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./tx.rpc.msg"));
          });
        case 3:
          _context.t0 = _context.sent.MsgClientImpl;
          _context.t1 = rpc;
          _context.t2 = new _context.t0(_context.t1);
          _context.next = 8;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../rewards/tx.rpc.msg"));
          });
        case 8:
          _context.t3 = _context.sent.MsgClientImpl;
          _context.t4 = rpc;
          _context.t5 = new _context.t3(_context.t4);
          _context.t6 = {
            gitopia: _context.t2,
            rewards: _context.t5
          };
          _context.t7 = {
            gitopia: _context.t6
          };
          _context.next = 15;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/authz/v1beta1/tx.rpc.msg"));
          });
        case 15:
          _context.t8 = _context.sent.MsgClientImpl;
          _context.t9 = rpc;
          _context.t10 = new _context.t8(_context.t9);
          _context.t11 = {
            v1beta1: _context.t10
          };
          _context.next = 21;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/bank/v1beta1/tx.rpc.msg"));
          });
        case 21:
          _context.t12 = _context.sent.MsgClientImpl;
          _context.t13 = rpc;
          _context.t14 = new _context.t12(_context.t13);
          _context.t15 = {
            v1beta1: _context.t14
          };
          _context.next = 27;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/crisis/v1beta1/tx.rpc.msg"));
          });
        case 27:
          _context.t16 = _context.sent.MsgClientImpl;
          _context.t17 = rpc;
          _context.t18 = new _context.t16(_context.t17);
          _context.t19 = {
            v1beta1: _context.t18
          };
          _context.next = 33;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/distribution/v1beta1/tx.rpc.msg"));
          });
        case 33:
          _context.t20 = _context.sent.MsgClientImpl;
          _context.t21 = rpc;
          _context.t22 = new _context.t20(_context.t21);
          _context.t23 = {
            v1beta1: _context.t22
          };
          _context.next = 39;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/evidence/v1beta1/tx.rpc.msg"));
          });
        case 39:
          _context.t24 = _context.sent.MsgClientImpl;
          _context.t25 = rpc;
          _context.t26 = new _context.t24(_context.t25);
          _context.t27 = {
            v1beta1: _context.t26
          };
          _context.next = 45;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/feegrant/v1beta1/tx.rpc.msg"));
          });
        case 45:
          _context.t28 = _context.sent.MsgClientImpl;
          _context.t29 = rpc;
          _context.t30 = new _context.t28(_context.t29);
          _context.t31 = {
            v1beta1: _context.t30
          };
          _context.next = 51;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/gov/v1/tx.rpc.msg"));
          });
        case 51:
          _context.t32 = _context.sent.MsgClientImpl;
          _context.t33 = rpc;
          _context.t34 = new _context.t32(_context.t33);
          _context.next = 56;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/gov/v1beta1/tx.rpc.msg"));
          });
        case 56:
          _context.t35 = _context.sent.MsgClientImpl;
          _context.t36 = rpc;
          _context.t37 = new _context.t35(_context.t36);
          _context.t38 = {
            v1: _context.t34,
            v1beta1: _context.t37
          };
          _context.next = 62;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/group/v1/tx.rpc.msg"));
          });
        case 62:
          _context.t39 = _context.sent.MsgClientImpl;
          _context.t40 = rpc;
          _context.t41 = new _context.t39(_context.t40);
          _context.t42 = {
            v1: _context.t41
          };
          _context.next = 68;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/nft/v1beta1/tx.rpc.msg"));
          });
        case 68:
          _context.t43 = _context.sent.MsgClientImpl;
          _context.t44 = rpc;
          _context.t45 = new _context.t43(_context.t44);
          _context.t46 = {
            v1beta1: _context.t45
          };
          _context.next = 74;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/slashing/v1beta1/tx.rpc.msg"));
          });
        case 74:
          _context.t47 = _context.sent.MsgClientImpl;
          _context.t48 = rpc;
          _context.t49 = new _context.t47(_context.t48);
          _context.t50 = {
            v1beta1: _context.t49
          };
          _context.next = 80;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/staking/v1beta1/tx.rpc.msg"));
          });
        case 80:
          _context.t51 = _context.sent.MsgClientImpl;
          _context.t52 = rpc;
          _context.t53 = new _context.t51(_context.t52);
          _context.t54 = {
            v1beta1: _context.t53
          };
          _context.next = 86;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/upgrade/v1beta1/tx.rpc.msg"));
          });
        case 86:
          _context.t55 = _context.sent.MsgClientImpl;
          _context.t56 = rpc;
          _context.t57 = new _context.t55(_context.t56);
          _context.t58 = {
            v1beta1: _context.t57
          };
          _context.next = 92;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("../cosmos/vesting/v1beta1/tx.rpc.msg"));
          });
        case 92:
          _context.t59 = _context.sent.MsgClientImpl;
          _context.t60 = rpc;
          _context.t61 = new _context.t59(_context.t60);
          _context.t62 = {
            v1beta1: _context.t61
          };
          _context.t63 = {
            authz: _context.t11,
            bank: _context.t15,
            crisis: _context.t19,
            distribution: _context.t23,
            evidence: _context.t27,
            feegrant: _context.t31,
            gov: _context.t38,
            group: _context.t42,
            nft: _context.t46,
            slashing: _context.t50,
            staking: _context.t54,
            upgrade: _context.t58,
            vesting: _context.t62
          };
          return _context.abrupt("return", {
            gitopia: _context.t7,
            cosmos: _context.t63
          });
        case 98:
        case "end":
          return _context.stop();
      }
    }, _callee);
  }));
  return function createRPCMsgClient(_x) {
    return _ref2.apply(this, arguments);
  };
}();