"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 _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t71 in e) "default" !== _t71 && {}.hasOwnProperty.call(e, _t71) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t71)) && (i.get || i.set) ? o(f, _t71, i) : f[_t71] = e[_t71]); return f; })(e, t); }
//@ts-nocheck

var createRPCMsgClient = exports.createRPCMsgClient = /*#__PURE__*/function () {
  var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
    var rpc, _t, _t2, _t3, _t4, _t5, _t6, _t7, _t8, _t9, _t0, _t1, _t10, _t11, _t12, _t13, _t14, _t15, _t16, _t17, _t18, _t19, _t20, _t21, _t22, _t23, _t24, _t25, _t26, _t27, _t28, _t29, _t30, _t31, _t32, _t33, _t34, _t35, _t36, _t37, _t38, _t39, _t40, _t41, _t42, _t43, _t44, _t45, _t46, _t47, _t48, _t49, _t50, _t51, _t52, _t53, _t54, _t55, _t56, _t57, _t58, _t59, _t60, _t61, _t62, _t63, _t64, _t65, _t66, _t67, _t68, _t69, _t70;
    return _regenerator().w(function (_context) {
      while (1) switch (_context.n) {
        case 0:
          rpc = _ref.rpc;
          _context.n = 1;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./auth/v1beta1/tx.rpc.msg"));
          });
        case 1:
          _t = _context.v.MsgClientImpl;
          _t2 = rpc;
          _t3 = new _t(_t2);
          _t4 = {
            v1beta1: _t3
          };
          _context.n = 2;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./authz/v1beta1/tx.rpc.msg"));
          });
        case 2:
          _t5 = _context.v.MsgClientImpl;
          _t6 = rpc;
          _t7 = new _t5(_t6);
          _t8 = {
            v1beta1: _t7
          };
          _context.n = 3;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./bank/v1beta1/tx.rpc.msg"));
          });
        case 3:
          _t9 = _context.v.MsgClientImpl;
          _t0 = rpc;
          _t1 = new _t9(_t0);
          _t10 = {
            v1beta1: _t1
          };
          _context.n = 4;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./circuit/v1/tx.rpc.msg"));
          });
        case 4:
          _t11 = _context.v.MsgClientImpl;
          _t12 = rpc;
          _t13 = new _t11(_t12);
          _t14 = {
            v1: _t13
          };
          _context.n = 5;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./consensus/v1/tx.rpc.msg"));
          });
        case 5:
          _t15 = _context.v.MsgClientImpl;
          _t16 = rpc;
          _t17 = new _t15(_t16);
          _t18 = {
            v1: _t17
          };
          _context.n = 6;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./crisis/v1beta1/tx.rpc.msg"));
          });
        case 6:
          _t19 = _context.v.MsgClientImpl;
          _t20 = rpc;
          _t21 = new _t19(_t20);
          _t22 = {
            v1beta1: _t21
          };
          _context.n = 7;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./distribution/v1beta1/tx.rpc.msg"));
          });
        case 7:
          _t23 = _context.v.MsgClientImpl;
          _t24 = rpc;
          _t25 = new _t23(_t24);
          _t26 = {
            v1beta1: _t25
          };
          _context.n = 8;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./evidence/v1beta1/tx.rpc.msg"));
          });
        case 8:
          _t27 = _context.v.MsgClientImpl;
          _t28 = rpc;
          _t29 = new _t27(_t28);
          _t30 = {
            v1beta1: _t29
          };
          _context.n = 9;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./feegrant/v1beta1/tx.rpc.msg"));
          });
        case 9:
          _t31 = _context.v.MsgClientImpl;
          _t32 = rpc;
          _t33 = new _t31(_t32);
          _t34 = {
            v1beta1: _t33
          };
          _context.n = 10;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./gov/v1/tx.rpc.msg"));
          });
        case 10:
          _t35 = _context.v.MsgClientImpl;
          _t36 = rpc;
          _t37 = new _t35(_t36);
          _context.n = 11;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./gov/v1beta1/tx.rpc.msg"));
          });
        case 11:
          _t38 = _context.v.MsgClientImpl;
          _t39 = rpc;
          _t40 = new _t38(_t39);
          _t41 = {
            v1: _t37,
            v1beta1: _t40
          };
          _context.n = 12;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./group/v1/tx.rpc.msg"));
          });
        case 12:
          _t42 = _context.v.MsgClientImpl;
          _t43 = rpc;
          _t44 = new _t42(_t43);
          _t45 = {
            v1: _t44
          };
          _context.n = 13;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./mint/v1beta1/tx.rpc.msg"));
          });
        case 13:
          _t46 = _context.v.MsgClientImpl;
          _t47 = rpc;
          _t48 = new _t46(_t47);
          _t49 = {
            v1beta1: _t48
          };
          _context.n = 14;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./nft/v1beta1/tx.rpc.msg"));
          });
        case 14:
          _t50 = _context.v.MsgClientImpl;
          _t51 = rpc;
          _t52 = new _t50(_t51);
          _t53 = {
            v1beta1: _t52
          };
          _context.n = 15;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./slashing/v1beta1/tx.rpc.msg"));
          });
        case 15:
          _t54 = _context.v.MsgClientImpl;
          _t55 = rpc;
          _t56 = new _t54(_t55);
          _t57 = {
            v1beta1: _t56
          };
          _context.n = 16;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./staking/v1beta1/tx.rpc.msg"));
          });
        case 16:
          _t58 = _context.v.MsgClientImpl;
          _t59 = rpc;
          _t60 = new _t58(_t59);
          _t61 = {
            v1beta1: _t60
          };
          _context.n = 17;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./upgrade/v1beta1/tx.rpc.msg"));
          });
        case 17:
          _t62 = _context.v.MsgClientImpl;
          _t63 = rpc;
          _t64 = new _t62(_t63);
          _t65 = {
            v1beta1: _t64
          };
          _context.n = 18;
          return Promise.resolve().then(function () {
            return _interopRequireWildcard(require("./vesting/v1beta1/tx.rpc.msg"));
          });
        case 18:
          _t66 = _context.v.MsgClientImpl;
          _t67 = rpc;
          _t68 = new _t66(_t67);
          _t69 = {
            v1beta1: _t68
          };
          _t70 = {
            auth: _t4,
            authz: _t8,
            bank: _t10,
            circuit: _t14,
            consensus: _t18,
            crisis: _t22,
            distribution: _t26,
            evidence: _t30,
            feegrant: _t34,
            gov: _t41,
            group: _t45,
            mint: _t49,
            nft: _t53,
            slashing: _t57,
            staking: _t61,
            upgrade: _t65,
            vesting: _t69
          };
          return _context.a(2, {
            cosmos: _t70
          });
      }
    }, _callee);
  }));
  return function createRPCMsgClient(_x) {
    return _ref2.apply(this, arguments);
  };
}();