@stellar/stellar-sdk 14.0.0 → 14.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/stellar-sdk-minimal.js +166 -137
  3. package/dist/stellar-sdk-minimal.min.js +1 -1
  4. package/dist/stellar-sdk-no-axios.js +166 -137
  5. package/dist/stellar-sdk-no-axios.min.js +1 -1
  6. package/dist/stellar-sdk-no-eventsource.js +166 -137
  7. package/dist/stellar-sdk-no-eventsource.min.js +1 -1
  8. package/dist/stellar-sdk.js +166 -137
  9. package/dist/stellar-sdk.min.js +1 -1
  10. package/lib/contract/client.js +16 -107
  11. package/lib/contract/spec.d.ts +20 -1
  12. package/lib/contract/spec.js +41 -9
  13. package/lib/contract/utils.d.ts +1 -0
  14. package/lib/contract/utils.js +94 -6
  15. package/lib/horizon/horizon_axios_client.js +1 -1
  16. package/lib/minimal/contract/client.js +16 -107
  17. package/lib/minimal/contract/spec.d.ts +20 -1
  18. package/lib/minimal/contract/spec.js +41 -9
  19. package/lib/minimal/contract/utils.d.ts +1 -0
  20. package/lib/minimal/contract/utils.js +94 -6
  21. package/lib/minimal/horizon/horizon_axios_client.js +1 -1
  22. package/lib/minimal/rpc/api.d.ts +2 -1
  23. package/lib/minimal/rpc/axios.js +1 -1
  24. package/lib/no-axios/contract/client.js +16 -107
  25. package/lib/no-axios/contract/spec.d.ts +20 -1
  26. package/lib/no-axios/contract/spec.js +41 -9
  27. package/lib/no-axios/contract/utils.d.ts +1 -0
  28. package/lib/no-axios/contract/utils.js +94 -6
  29. package/lib/no-axios/horizon/horizon_axios_client.js +1 -1
  30. package/lib/no-axios/rpc/api.d.ts +2 -1
  31. package/lib/no-axios/rpc/axios.js +1 -1
  32. package/lib/no-eventsource/contract/client.js +16 -107
  33. package/lib/no-eventsource/contract/spec.d.ts +20 -1
  34. package/lib/no-eventsource/contract/spec.js +41 -9
  35. package/lib/no-eventsource/contract/utils.d.ts +1 -0
  36. package/lib/no-eventsource/contract/utils.js +94 -6
  37. package/lib/no-eventsource/horizon/horizon_axios_client.js +1 -1
  38. package/lib/no-eventsource/rpc/api.d.ts +2 -1
  39. package/lib/no-eventsource/rpc/axios.js +1 -1
  40. package/lib/rpc/api.d.ts +2 -1
  41. package/lib/rpc/axios.js +1 -1
  42. package/package.json +1 -1
@@ -4889,7 +4889,7 @@ var stellar_base_min = __webpack_require__(8950);
4889
4889
  var http_client = __webpack_require__(9983);
4890
4890
  ;// ./src/rpc/axios.ts
4891
4891
 
4892
- var version = "14.0.0";
4892
+ var version = "14.1.1";
4893
4893
  var AxiosClient = (0,http_client/* create */.vt)({
4894
4894
  headers: {
4895
4895
  'X-Client-Name': 'js-soroban-client',
@@ -19909,8 +19909,15 @@ var Err = function () {
19909
19909
  var DEFAULT_TIMEOUT = 5 * 60;
19910
19910
  var NULL_ACCOUNT = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF";
19911
19911
  ;// ./src/contract/utils.ts
19912
+ /* provided dependency */ var Buffer = __webpack_require__(8287)["Buffer"];
19912
19913
  function _regenerator() { 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 }; })(); }
19913
19914
  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); }
19915
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
19916
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19917
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
19918
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
19919
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
19920
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
19914
19921
  function utils_typeof(o) { "@babel/helpers - typeof"; return utils_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, utils_typeof(o); }
19915
19922
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
19916
19923
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
@@ -19995,6 +20002,87 @@ var contractErrorPattern = /Error\(Contract, #(\d+)\)/;
19995
20002
  function implementsToString(obj) {
19996
20003
  return utils_typeof(obj) === "object" && obj !== null && "toString" in obj;
19997
20004
  }
20005
+ function specFromWasm(_x4) {
20006
+ return _specFromWasm.apply(this, arguments);
20007
+ }
20008
+ function _specFromWasm() {
20009
+ _specFromWasm = _asyncToGenerator(_regenerator().m(function _callee2(wasm) {
20010
+ var xdrSections, wasmModule, customData, _t3;
20011
+ return _regenerator().w(function (_context2) {
20012
+ while (1) switch (_context2.p = _context2.n) {
20013
+ case 0:
20014
+ _context2.p = 0;
20015
+ _context2.n = 1;
20016
+ return WebAssembly.compile(wasm);
20017
+ case 1:
20018
+ wasmModule = _context2.v;
20019
+ xdrSections = WebAssembly.Module.customSections(wasmModule, "contractspecv0");
20020
+ _context2.n = 3;
20021
+ break;
20022
+ case 2:
20023
+ _context2.p = 2;
20024
+ _t3 = _context2.v;
20025
+ customData = parseWasmCustomSections(wasm);
20026
+ xdrSections = customData.get('contractspecv0');
20027
+ case 3:
20028
+ if (!(!xdrSections || xdrSections.length === 0)) {
20029
+ _context2.n = 4;
20030
+ break;
20031
+ }
20032
+ throw new Error("Could not obtain contract spec from wasm");
20033
+ case 4:
20034
+ return _context2.a(2, Buffer.from(xdrSections[0]));
20035
+ }
20036
+ }, _callee2, null, [[0, 2]]);
20037
+ }));
20038
+ return _specFromWasm.apply(this, arguments);
20039
+ }
20040
+ function parseWasmCustomSections(buffer) {
20041
+ var sections = new Map();
20042
+ var arrayBuffer = buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
20043
+ var offset = 0;
20044
+ var read = function read(length) {
20045
+ if (offset + length > buffer.byteLength) throw new Error('Buffer overflow');
20046
+ var bytes = new Uint8Array(arrayBuffer, offset, length);
20047
+ offset += length;
20048
+ return bytes;
20049
+ };
20050
+ if (_toConsumableArray(read(4)).join() !== '0,97,115,109') throw new Error('Invalid WASM magic');
20051
+ if (_toConsumableArray(read(4)).join() !== '1,0,0,0') throw new Error('Invalid WASM version');
20052
+ while (offset < buffer.byteLength) {
20053
+ var sectionId = read(1)[0];
20054
+ var sectionLength = readVarUint32();
20055
+ var start = offset;
20056
+ if (sectionId === 0) {
20057
+ var nameLen = readVarUint32();
20058
+ if (nameLen === 0 || offset + nameLen > start + sectionLength) continue;
20059
+ var nameBytes = read(nameLen);
20060
+ var payload = read(sectionLength - (offset - start));
20061
+ try {
20062
+ var name = new TextDecoder('utf-8', {
20063
+ fatal: true
20064
+ }).decode(nameBytes);
20065
+ if (payload.length > 0) {
20066
+ sections.set(name, (sections.get(name) || []).concat(payload));
20067
+ }
20068
+ } catch (_unused) {}
20069
+ } else {
20070
+ offset += sectionLength;
20071
+ }
20072
+ }
20073
+ function readVarUint32() {
20074
+ var value = 0,
20075
+ shift = 0;
20076
+ while (true) {
20077
+ var byte = read(1)[0];
20078
+ value |= (byte & 0x7F) << shift;
20079
+ if ((byte & 0x80) === 0) break;
20080
+ if ((shift += 7) >= 32) throw new Error('Invalid WASM value');
20081
+ }
20082
+ return value >>> 0;
20083
+ }
20084
+ return sections;
20085
+ }
19998
20086
  function processSpecEntryStream(buffer) {
19999
20087
  var reader = new stellar_base_min.cereal.XdrReader(buffer);
20000
20088
  var res = [];
@@ -20003,17 +20091,17 @@ function processSpecEntryStream(buffer) {
20003
20091
  }
20004
20092
  return res;
20005
20093
  }
20006
- function getAccount(_x4, _x5) {
20094
+ function getAccount(_x5, _x6) {
20007
20095
  return _getAccount.apply(this, arguments);
20008
20096
  }
20009
20097
  function _getAccount() {
20010
- _getAccount = _asyncToGenerator(_regenerator().m(function _callee2(options, server) {
20011
- return _regenerator().w(function (_context2) {
20012
- while (1) switch (_context2.n) {
20098
+ _getAccount = _asyncToGenerator(_regenerator().m(function _callee3(options, server) {
20099
+ return _regenerator().w(function (_context3) {
20100
+ while (1) switch (_context3.n) {
20013
20101
  case 0:
20014
- return _context2.a(2, options.publicKey ? server.getAccount(options.publicKey) : new stellar_base_min.Account(NULL_ACCOUNT, "0"));
20102
+ return _context3.a(2, options.publicKey ? server.getAccount(options.publicKey) : new stellar_base_min.Account(NULL_ACCOUNT, "0"));
20015
20103
  }
20016
- }, _callee2);
20104
+ }, _callee3);
20017
20105
  }));
20018
20106
  return _getAccount.apply(this, arguments);
20019
20107
  }
@@ -20179,7 +20267,7 @@ var Watcher = sent_transaction_createClass(function Watcher() {
20179
20267
  sent_transaction_classCallCheck(this, Watcher);
20180
20268
  });
20181
20269
  ;// ./src/contract/assembled_transaction.ts
20182
- /* provided dependency */ var Buffer = __webpack_require__(8287)["Buffer"];
20270
+ /* provided dependency */ var assembled_transaction_Buffer = __webpack_require__(8287)["Buffer"];
20183
20271
  function assembled_transaction_callSuper(t, o, e) { return o = assembled_transaction_getPrototypeOf(o), assembled_transaction_possibleConstructorReturn(t, assembled_transaction_isNativeReflectConstruct() ? Reflect.construct(o, e || [], assembled_transaction_getPrototypeOf(t).constructor) : o.apply(t, e)); }
20184
20272
  function assembled_transaction_possibleConstructorReturn(t, e) { if (e && ("object" == assembled_transaction_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return assembled_transaction_assertThisInitialized(t); }
20185
20273
  function assembled_transaction_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
@@ -20194,19 +20282,19 @@ function assembled_transaction_typeof(o) { "@babel/helpers - typeof"; return ass
20194
20282
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20195
20283
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { assembled_transaction_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20196
20284
  function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(assembled_transaction_typeof(e) + " is not iterable"); }
20197
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
20285
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || assembled_transaction_unsupportedIterableToArray(r, e) || _nonIterableRest(); }
20198
20286
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20199
20287
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20200
20288
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
20201
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
20289
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = assembled_transaction_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
20202
20290
  function assembled_transaction_regenerator() { 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 assembled_transaction_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]())) : (assembled_transaction_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, assembled_transaction_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, assembled_transaction_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), assembled_transaction_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", assembled_transaction_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), assembled_transaction_regeneratorDefine2(u), assembled_transaction_regeneratorDefine2(u, o, "Generator"), assembled_transaction_regeneratorDefine2(u, n, function () { return this; }), assembled_transaction_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (assembled_transaction_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
20203
20291
  function assembled_transaction_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } assembled_transaction_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { assembled_transaction_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)); }, assembled_transaction_regeneratorDefine2(e, r, n, t); }
20204
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
20205
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20206
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
20207
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
20208
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
20209
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20292
+ function assembled_transaction_toConsumableArray(r) { return assembled_transaction_arrayWithoutHoles(r) || assembled_transaction_iterableToArray(r) || assembled_transaction_unsupportedIterableToArray(r) || assembled_transaction_nonIterableSpread(); }
20293
+ function assembled_transaction_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20294
+ function assembled_transaction_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return assembled_transaction_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? assembled_transaction_arrayLikeToArray(r, a) : void 0; } }
20295
+ function assembled_transaction_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
20296
+ function assembled_transaction_arrayWithoutHoles(r) { if (Array.isArray(r)) return assembled_transaction_arrayLikeToArray(r); }
20297
+ function assembled_transaction_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20210
20298
  function assembled_transaction_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
20211
20299
  function assembled_transaction_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { assembled_transaction_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { assembled_transaction_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
20212
20300
  function assembled_transaction_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -20282,7 +20370,7 @@ var AssembledTransaction = function () {
20282
20370
  _this.raw = new stellar_base_min.TransactionBuilder(account, {
20283
20371
  fee: (_this$options$fee = _this.options.fee) !== null && _this$options$fee !== void 0 ? _this$options$fee : stellar_base_min.BASE_FEE,
20284
20372
  networkPassphrase: _this.options.networkPassphrase
20285
- }).addOperation(contract.call.apply(contract, [_this.options.method].concat(_toConsumableArray((_this$options$args = _this.options.args) !== null && _this$options$args !== void 0 ? _this$options$args : [])))).setTimeout((_this$options$timeout = _this.options.timeoutInSeconds) !== null && _this$options$timeout !== void 0 ? _this$options$timeout : DEFAULT_TIMEOUT);
20373
+ }).addOperation(contract.call.apply(contract, [_this.options.method].concat(assembled_transaction_toConsumableArray((_this$options$args = _this.options.args) !== null && _this$options$args !== void 0 ? _this$options$args : [])))).setTimeout((_this$options$timeout = _this.options.timeoutInSeconds) !== null && _this$options$timeout !== void 0 ? _this$options$timeout : DEFAULT_TIMEOUT);
20286
20374
  _context.n = 6;
20287
20375
  return _this.simulate();
20288
20376
  case 6:
@@ -20415,7 +20503,7 @@ var AssembledTransaction = function () {
20415
20503
  throw new Error("Unexpected Transaction type; no operations: ".concat(JSON.stringify(_this.built)));
20416
20504
  }
20417
20505
  var rawInvokeHostFunctionOp = _this.built.operations[0];
20418
- return _toConsumableArray(new Set(((_rawInvokeHostFunctio = rawInvokeHostFunctionOp.auth) !== null && _rawInvokeHostFunctio !== void 0 ? _rawInvokeHostFunctio : []).filter(function (entry) {
20506
+ return assembled_transaction_toConsumableArray(new Set(((_rawInvokeHostFunctio = rawInvokeHostFunctionOp.auth) !== null && _rawInvokeHostFunctio !== void 0 ? _rawInvokeHostFunctio : []).filter(function (entry) {
20419
20507
  return entry.credentials().switch() === stellar_base_min.xdr.SorobanCredentialsType.sorobanCredentialsAddress() && (includeAlreadySigned || entry.credentials().address().signature().switch().name === "scvVoid");
20420
20508
  }).map(function (entry) {
20421
20509
  return stellar_base_min.Address.fromScAddress(entry.credentials().address().address()).toString();
@@ -20528,7 +20616,7 @@ var AssembledTransaction = function () {
20528
20616
  signedAuthEntry = _yield$sign.signedAuthEntry;
20529
20617
  error = _yield$sign.error;
20530
20618
  _this.handleWalletError(error);
20531
- return _context5.a(2, Buffer.from(signedAuthEntry, "base64"));
20619
+ return _context5.a(2, assembled_transaction_Buffer.from(signedAuthEntry, "base64"));
20532
20620
  }
20533
20621
  }, _callee5);
20534
20622
  }));
@@ -20817,7 +20905,7 @@ var AssembledTransaction = function () {
20817
20905
  value: function build(options) {
20818
20906
  var _options$args;
20819
20907
  var contract = new stellar_base_min.Contract(options.contractId);
20820
- return AssembledTransaction.buildWithOp(contract.call.apply(contract, [options.method].concat(_toConsumableArray((_options$args = options.args) !== null && _options$args !== void 0 ? _options$args : []))), options);
20908
+ return AssembledTransaction.buildWithOp(contract.call.apply(contract, [options.method].concat(assembled_transaction_toConsumableArray((_options$args = options.args) !== null && _options$args !== void 0 ? _options$args : []))), options);
20821
20909
  }
20822
20910
  }, {
20823
20911
  key: "buildWithOp",
@@ -21041,6 +21129,10 @@ var basicNodeSigner = function basicNodeSigner(keypair, networkPassphrase) {
21041
21129
  };
21042
21130
  ;// ./src/contract/spec.ts
21043
21131
  /* provided dependency */ var spec_Buffer = __webpack_require__(8287)["Buffer"];
21132
+ function spec_regenerator() { 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 spec_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]())) : (spec_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, spec_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, spec_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), spec_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", spec_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), spec_regeneratorDefine2(u), spec_regeneratorDefine2(u, o, "Generator"), spec_regeneratorDefine2(u, n, function () { return this; }), spec_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (spec_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
21133
+ function spec_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } spec_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { spec_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)); }, spec_regeneratorDefine2(e, r, n, t); }
21134
+ function spec_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
21135
+ function spec_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { spec_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { spec_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
21044
21136
  function spec_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21045
21137
  function spec_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? spec_ownKeys(Object(t), !0).forEach(function (r) { spec_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : spec_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21046
21138
  function spec_typeof(o) { "@babel/helpers - typeof"; return spec_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, spec_typeof(o); }
@@ -21058,6 +21150,7 @@ function spec_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined
21058
21150
  function spec_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
21059
21151
 
21060
21152
 
21153
+
21061
21154
  function enumToJsonSchema(udt) {
21062
21155
  var description = udt.doc().toString();
21063
21156
  var cases = udt.cases();
@@ -21505,16 +21598,22 @@ var Spec = function () {
21505
21598
  function Spec(entries) {
21506
21599
  spec_classCallCheck(this, Spec);
21507
21600
  spec_defineProperty(this, "entries", []);
21508
- if (entries.length === 0) {
21509
- throw new Error("Contract spec must have at least one entry");
21510
- }
21511
- var entry = entries[0];
21512
- if (typeof entry === "string") {
21513
- this.entries = entries.map(function (s) {
21514
- return stellar_base_min.xdr.ScSpecEntry.fromXDR(s, "base64");
21515
- });
21601
+ if (spec_Buffer.isBuffer(entries)) {
21602
+ this.entries = processSpecEntryStream(entries);
21603
+ } else if (typeof entries === "string") {
21604
+ this.entries = processSpecEntryStream(spec_Buffer.from(entries, "base64"));
21516
21605
  } else {
21517
- this.entries = entries;
21606
+ if (entries.length === 0) {
21607
+ throw new Error("Contract spec must have at least one entry");
21608
+ }
21609
+ var entry = entries[0];
21610
+ if (typeof entry === "string") {
21611
+ this.entries = entries.map(function (s) {
21612
+ return stellar_base_min.xdr.ScSpecEntry.fromXDR(s, "base64");
21613
+ });
21614
+ } else {
21615
+ this.entries = entries;
21616
+ }
21518
21617
  }
21519
21618
  }
21520
21619
  return spec_createClass(Spec, [{
@@ -22054,6 +22153,27 @@ var Spec = function () {
22054
22153
  }
22055
22154
  return res;
22056
22155
  }
22156
+ }], [{
22157
+ key: "fromWasm",
22158
+ value: (function () {
22159
+ var _fromWasm = spec_asyncToGenerator(spec_regenerator().m(function _callee(wasm) {
22160
+ var spec;
22161
+ return spec_regenerator().w(function (_context) {
22162
+ while (1) switch (_context.n) {
22163
+ case 0:
22164
+ _context.n = 1;
22165
+ return specFromWasm(wasm);
22166
+ case 1:
22167
+ spec = _context.v;
22168
+ return _context.a(2, new Spec(spec));
22169
+ }
22170
+ }, _callee);
22171
+ }));
22172
+ function fromWasm(_x) {
22173
+ return _fromWasm.apply(this, arguments);
22174
+ }
22175
+ return fromWasm;
22176
+ }())
22057
22177
  }]);
22058
22178
  }();
22059
22179
  ;// ./src/contract/client.ts
@@ -22073,122 +22193,31 @@ function client_createClass(e, r, t) { return r && client_defineProperties(e.pro
22073
22193
  function client_defineProperty(e, r, t) { return (r = client_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
22074
22194
  function client_toPropertyKey(t) { var i = client_toPrimitive(t, "string"); return "symbol" == client_typeof(i) ? i : i + ""; }
22075
22195
  function client_toPrimitive(t, r) { if ("object" != client_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != client_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
22076
- function client_toConsumableArray(r) { return client_arrayWithoutHoles(r) || client_iterableToArray(r) || client_unsupportedIterableToArray(r) || client_nonIterableSpread(); }
22077
- function client_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22078
- function client_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return client_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? client_arrayLikeToArray(r, a) : void 0; } }
22079
- function client_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
22080
- function client_arrayWithoutHoles(r) { if (Array.isArray(r)) return client_arrayLikeToArray(r); }
22081
- function client_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
22082
22196
  function client_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
22083
22197
  function client_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { client_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { client_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
22084
22198
 
22085
22199
 
22086
22200
 
22087
22201
 
22088
-
22089
22202
  var CONSTRUCTOR_FUNC = "__constructor";
22090
- function specFromWasm(_x) {
22091
- return _specFromWasm.apply(this, arguments);
22092
- }
22093
- function _specFromWasm() {
22094
- _specFromWasm = client_asyncToGenerator(client_regenerator().m(function _callee5(wasm) {
22095
- var xdrSections, wasmModule, customData, bufferSection, specEntryArray, spec, _t;
22096
- return client_regenerator().w(function (_context5) {
22097
- while (1) switch (_context5.p = _context5.n) {
22098
- case 0:
22099
- _context5.p = 0;
22100
- _context5.n = 1;
22101
- return WebAssembly.compile(wasm);
22102
- case 1:
22103
- wasmModule = _context5.v;
22104
- xdrSections = WebAssembly.Module.customSections(wasmModule, "contractspecv0");
22105
- _context5.n = 3;
22106
- break;
22107
- case 2:
22108
- _context5.p = 2;
22109
- _t = _context5.v;
22110
- customData = parseWasmCustomSections(wasm);
22111
- xdrSections = customData.get('contractspecv0');
22112
- case 3:
22113
- if (!(!xdrSections || xdrSections.length === 0)) {
22114
- _context5.n = 4;
22115
- break;
22116
- }
22117
- throw new Error("Could not obtain contract spec from wasm");
22118
- case 4:
22119
- bufferSection = client_Buffer.from(xdrSections[0]);
22120
- specEntryArray = processSpecEntryStream(bufferSection);
22121
- spec = new Spec(specEntryArray);
22122
- return _context5.a(2, spec);
22123
- }
22124
- }, _callee5, null, [[0, 2]]);
22125
- }));
22126
- return _specFromWasm.apply(this, arguments);
22127
- }
22128
- function parseWasmCustomSections(buffer) {
22129
- var sections = new Map();
22130
- var arrayBuffer = buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
22131
- var offset = 0;
22132
- var read = function read(length) {
22133
- if (offset + length > buffer.byteLength) throw new Error('Buffer overflow');
22134
- var bytes = new Uint8Array(arrayBuffer, offset, length);
22135
- offset += length;
22136
- return bytes;
22137
- };
22138
- if (client_toConsumableArray(read(4)).join() !== '0,97,115,109') throw new Error('Invalid WASM magic');
22139
- if (client_toConsumableArray(read(4)).join() !== '1,0,0,0') throw new Error('Invalid WASM version');
22140
- while (offset < buffer.byteLength) {
22141
- var sectionId = read(1)[0];
22142
- var sectionLength = readVarUint32();
22143
- var start = offset;
22144
- if (sectionId === 0) {
22145
- var nameLen = readVarUint32();
22146
- if (nameLen === 0 || offset + nameLen > start + sectionLength) continue;
22147
- var nameBytes = read(nameLen);
22148
- var payload = read(sectionLength - (offset - start));
22149
- try {
22150
- var name = new TextDecoder('utf-8', {
22151
- fatal: true
22152
- }).decode(nameBytes);
22153
- if (payload.length > 0) {
22154
- sections.set(name, (sections.get(name) || []).concat(payload));
22155
- }
22156
- } catch (_unused) {}
22157
- } else {
22158
- offset += sectionLength;
22159
- }
22160
- }
22161
- function readVarUint32() {
22162
- var value = 0,
22163
- shift = 0;
22164
- while (true) {
22165
- var byte = read(1)[0];
22166
- value |= (byte & 0x7F) << shift;
22167
- if ((byte & 0x80) === 0) break;
22168
- if ((shift += 7) >= 32) throw new Error('Invalid WASM value');
22169
- }
22170
- return value >>> 0;
22171
- }
22172
- return sections;
22173
- }
22174
- function specFromWasmHash(_x2, _x3) {
22203
+ function specFromWasmHash(_x, _x2) {
22175
22204
  return _specFromWasmHash.apply(this, arguments);
22176
22205
  }
22177
22206
  function _specFromWasmHash() {
22178
- _specFromWasmHash = client_asyncToGenerator(client_regenerator().m(function _callee6(wasmHash, options) {
22207
+ _specFromWasmHash = client_asyncToGenerator(client_regenerator().m(function _callee5(wasmHash, options) {
22179
22208
  var format,
22180
22209
  rpcUrl,
22181
22210
  allowHttp,
22182
22211
  serverOpts,
22183
22212
  server,
22184
22213
  wasm,
22185
- _args6 = arguments;
22186
- return client_regenerator().w(function (_context6) {
22187
- while (1) switch (_context6.n) {
22214
+ _args5 = arguments;
22215
+ return client_regenerator().w(function (_context5) {
22216
+ while (1) switch (_context5.n) {
22188
22217
  case 0:
22189
- format = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : "hex";
22218
+ format = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : "hex";
22190
22219
  if (!(!options || !options.rpcUrl)) {
22191
- _context6.n = 1;
22220
+ _context5.n = 1;
22192
22221
  break;
22193
22222
  }
22194
22223
  throw new TypeError("options must contain rpcUrl");
@@ -22198,13 +22227,13 @@ function _specFromWasmHash() {
22198
22227
  allowHttp: allowHttp
22199
22228
  };
22200
22229
  server = new rpc.Server(rpcUrl, serverOpts);
22201
- _context6.n = 2;
22230
+ _context5.n = 2;
22202
22231
  return server.getContractWasmByHash(wasmHash, format);
22203
22232
  case 2:
22204
- wasm = _context6.v;
22205
- return _context6.a(2, specFromWasm(wasm));
22233
+ wasm = _context5.v;
22234
+ return _context5.a(2, Spec.fromWasm(wasm));
22206
22235
  }
22207
- }, _callee6);
22236
+ }, _callee5);
22208
22237
  }));
22209
22238
  return _specFromWasmHash.apply(this, arguments);
22210
22239
  }
@@ -22288,7 +22317,7 @@ var Client = function () {
22288
22317
  }
22289
22318
  }, _callee);
22290
22319
  }));
22291
- function deploy(_x4, _x5) {
22320
+ function deploy(_x3, _x4) {
22292
22321
  return _deploy.apply(this, arguments);
22293
22322
  }
22294
22323
  return deploy;
@@ -22327,7 +22356,7 @@ var Client = function () {
22327
22356
  }
22328
22357
  }, _callee2);
22329
22358
  }));
22330
- function fromWasmHash(_x6, _x7) {
22359
+ function fromWasmHash(_x5, _x6) {
22331
22360
  return _fromWasmHash.apply(this, arguments);
22332
22361
  }
22333
22362
  return fromWasmHash;
@@ -22341,14 +22370,14 @@ var Client = function () {
22341
22370
  while (1) switch (_context3.n) {
22342
22371
  case 0:
22343
22372
  _context3.n = 1;
22344
- return specFromWasm(wasm);
22373
+ return Spec.fromWasm(wasm);
22345
22374
  case 1:
22346
22375
  spec = _context3.v;
22347
22376
  return _context3.a(2, new Client(spec, options));
22348
22377
  }
22349
22378
  }, _callee3);
22350
22379
  }));
22351
- function fromWasm(_x8, _x9) {
22380
+ function fromWasm(_x7, _x8) {
22352
22381
  return _fromWasm.apply(this, arguments);
22353
22382
  }
22354
22383
  return fromWasm;
@@ -22380,7 +22409,7 @@ var Client = function () {
22380
22409
  }
22381
22410
  }, _callee4);
22382
22411
  }));
22383
- function from(_x0) {
22412
+ function from(_x9) {
22384
22413
  return _from.apply(this, arguments);
22385
22414
  }
22386
22415
  return from;
@@ -30853,7 +30882,7 @@ var http_client = __webpack_require__(9983);
30853
30882
  function horizon_axios_client_typeof(o) { "@babel/helpers - typeof"; return horizon_axios_client_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, horizon_axios_client_typeof(o); }
30854
30883
 
30855
30884
 
30856
- var version = "14.0.0";
30885
+ var version = "14.1.1";
30857
30886
  var SERVER_TIME_MAP = {};
30858
30887
  var AxiosClient = (0,http_client/* create */.vt)({
30859
30888
  headers: {