@stellar/stellar-sdk 14.0.0 → 14.1.0

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 (38) hide show
  1. package/CHANGELOG.md +4 -1
  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/axios.js +1 -1
  23. package/lib/no-axios/contract/client.js +16 -107
  24. package/lib/no-axios/contract/spec.d.ts +20 -1
  25. package/lib/no-axios/contract/spec.js +41 -9
  26. package/lib/no-axios/contract/utils.d.ts +1 -0
  27. package/lib/no-axios/contract/utils.js +94 -6
  28. package/lib/no-axios/horizon/horizon_axios_client.js +1 -1
  29. package/lib/no-axios/rpc/axios.js +1 -1
  30. package/lib/no-eventsource/contract/client.js +16 -107
  31. package/lib/no-eventsource/contract/spec.d.ts +20 -1
  32. package/lib/no-eventsource/contract/spec.js +41 -9
  33. package/lib/no-eventsource/contract/utils.d.ts +1 -0
  34. package/lib/no-eventsource/contract/utils.js +94 -6
  35. package/lib/no-eventsource/horizon/horizon_axios_client.js +1 -1
  36. package/lib/no-eventsource/rpc/axios.js +1 -1
  37. package/lib/rpc/axios.js +1 -1
  38. package/package.json +1 -1
@@ -9403,8 +9403,15 @@ var Err = function () {
9403
9403
  var DEFAULT_TIMEOUT = 5 * 60;
9404
9404
  var NULL_ACCOUNT = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF";
9405
9405
  ;// ./src/contract/utils.ts
9406
+ /* provided dependency */ var Buffer = __webpack_require__(287)["Buffer"];
9406
9407
  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 }; })(); }
9407
9408
  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); }
9409
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
9410
+ 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."); }
9411
+ 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; } }
9412
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
9413
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
9414
+ 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; }
9408
9415
  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); }
9409
9416
  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); }
9410
9417
  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); }); }; }
@@ -9489,6 +9496,87 @@ var contractErrorPattern = /Error\(Contract, #(\d+)\)/;
9489
9496
  function implementsToString(obj) {
9490
9497
  return utils_typeof(obj) === "object" && obj !== null && "toString" in obj;
9491
9498
  }
9499
+ function specFromWasm(_x4) {
9500
+ return _specFromWasm.apply(this, arguments);
9501
+ }
9502
+ function _specFromWasm() {
9503
+ _specFromWasm = _asyncToGenerator(_regenerator().m(function _callee2(wasm) {
9504
+ var xdrSections, wasmModule, customData, _t3;
9505
+ return _regenerator().w(function (_context2) {
9506
+ while (1) switch (_context2.p = _context2.n) {
9507
+ case 0:
9508
+ _context2.p = 0;
9509
+ _context2.n = 1;
9510
+ return WebAssembly.compile(wasm);
9511
+ case 1:
9512
+ wasmModule = _context2.v;
9513
+ xdrSections = WebAssembly.Module.customSections(wasmModule, "contractspecv0");
9514
+ _context2.n = 3;
9515
+ break;
9516
+ case 2:
9517
+ _context2.p = 2;
9518
+ _t3 = _context2.v;
9519
+ customData = parseWasmCustomSections(wasm);
9520
+ xdrSections = customData.get('contractspecv0');
9521
+ case 3:
9522
+ if (!(!xdrSections || xdrSections.length === 0)) {
9523
+ _context2.n = 4;
9524
+ break;
9525
+ }
9526
+ throw new Error("Could not obtain contract spec from wasm");
9527
+ case 4:
9528
+ return _context2.a(2, Buffer.from(xdrSections[0]));
9529
+ }
9530
+ }, _callee2, null, [[0, 2]]);
9531
+ }));
9532
+ return _specFromWasm.apply(this, arguments);
9533
+ }
9534
+ function parseWasmCustomSections(buffer) {
9535
+ var sections = new Map();
9536
+ var arrayBuffer = buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
9537
+ var offset = 0;
9538
+ var read = function read(length) {
9539
+ if (offset + length > buffer.byteLength) throw new Error('Buffer overflow');
9540
+ var bytes = new Uint8Array(arrayBuffer, offset, length);
9541
+ offset += length;
9542
+ return bytes;
9543
+ };
9544
+ if (_toConsumableArray(read(4)).join() !== '0,97,115,109') throw new Error('Invalid WASM magic');
9545
+ if (_toConsumableArray(read(4)).join() !== '1,0,0,0') throw new Error('Invalid WASM version');
9546
+ while (offset < buffer.byteLength) {
9547
+ var sectionId = read(1)[0];
9548
+ var sectionLength = readVarUint32();
9549
+ var start = offset;
9550
+ if (sectionId === 0) {
9551
+ var nameLen = readVarUint32();
9552
+ if (nameLen === 0 || offset + nameLen > start + sectionLength) continue;
9553
+ var nameBytes = read(nameLen);
9554
+ var payload = read(sectionLength - (offset - start));
9555
+ try {
9556
+ var name = new TextDecoder('utf-8', {
9557
+ fatal: true
9558
+ }).decode(nameBytes);
9559
+ if (payload.length > 0) {
9560
+ sections.set(name, (sections.get(name) || []).concat(payload));
9561
+ }
9562
+ } catch (_unused) {}
9563
+ } else {
9564
+ offset += sectionLength;
9565
+ }
9566
+ }
9567
+ function readVarUint32() {
9568
+ var value = 0,
9569
+ shift = 0;
9570
+ while (true) {
9571
+ var byte = read(1)[0];
9572
+ value |= (byte & 0x7F) << shift;
9573
+ if ((byte & 0x80) === 0) break;
9574
+ if ((shift += 7) >= 32) throw new Error('Invalid WASM value');
9575
+ }
9576
+ return value >>> 0;
9577
+ }
9578
+ return sections;
9579
+ }
9492
9580
  function processSpecEntryStream(buffer) {
9493
9581
  var reader = new stellar_base_min.cereal.XdrReader(buffer);
9494
9582
  var res = [];
@@ -9497,17 +9585,17 @@ function processSpecEntryStream(buffer) {
9497
9585
  }
9498
9586
  return res;
9499
9587
  }
9500
- function getAccount(_x4, _x5) {
9588
+ function getAccount(_x5, _x6) {
9501
9589
  return _getAccount.apply(this, arguments);
9502
9590
  }
9503
9591
  function _getAccount() {
9504
- _getAccount = _asyncToGenerator(_regenerator().m(function _callee2(options, server) {
9505
- return _regenerator().w(function (_context2) {
9506
- while (1) switch (_context2.n) {
9592
+ _getAccount = _asyncToGenerator(_regenerator().m(function _callee3(options, server) {
9593
+ return _regenerator().w(function (_context3) {
9594
+ while (1) switch (_context3.n) {
9507
9595
  case 0:
9508
- return _context2.a(2, options.publicKey ? server.getAccount(options.publicKey) : new stellar_base_min.Account(NULL_ACCOUNT, "0"));
9596
+ return _context3.a(2, options.publicKey ? server.getAccount(options.publicKey) : new stellar_base_min.Account(NULL_ACCOUNT, "0"));
9509
9597
  }
9510
- }, _callee2);
9598
+ }, _callee3);
9511
9599
  }));
9512
9600
  return _getAccount.apply(this, arguments);
9513
9601
  }
@@ -9673,7 +9761,7 @@ var Watcher = sent_transaction_createClass(function Watcher() {
9673
9761
  sent_transaction_classCallCheck(this, Watcher);
9674
9762
  });
9675
9763
  ;// ./src/contract/assembled_transaction.ts
9676
- /* provided dependency */ var Buffer = __webpack_require__(287)["Buffer"];
9764
+ /* provided dependency */ var assembled_transaction_Buffer = __webpack_require__(287)["Buffer"];
9677
9765
  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)); }
9678
9766
  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); }
9679
9767
  function assembled_transaction_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
@@ -9688,19 +9776,19 @@ function assembled_transaction_typeof(o) { "@babel/helpers - typeof"; return ass
9688
9776
  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; }
9689
9777
  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; }
9690
9778
  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"); }
9691
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
9779
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || assembled_transaction_unsupportedIterableToArray(r, e) || _nonIterableRest(); }
9692
9780
  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."); }
9693
9781
  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; } }
9694
9782
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
9695
- 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; } } }; }
9783
+ 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; } } }; }
9696
9784
  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 }; })(); }
9697
9785
  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); }
9698
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
9699
- 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."); }
9700
- 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; } }
9701
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
9702
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
9703
- 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; }
9786
+ function assembled_transaction_toConsumableArray(r) { return assembled_transaction_arrayWithoutHoles(r) || assembled_transaction_iterableToArray(r) || assembled_transaction_unsupportedIterableToArray(r) || assembled_transaction_nonIterableSpread(); }
9787
+ 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."); }
9788
+ 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; } }
9789
+ function assembled_transaction_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
9790
+ function assembled_transaction_arrayWithoutHoles(r) { if (Array.isArray(r)) return assembled_transaction_arrayLikeToArray(r); }
9791
+ 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; }
9704
9792
  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); }
9705
9793
  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); }); }; }
9706
9794
  function assembled_transaction_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -9776,7 +9864,7 @@ var AssembledTransaction = function () {
9776
9864
  _this.raw = new stellar_base_min.TransactionBuilder(account, {
9777
9865
  fee: (_this$options$fee = _this.options.fee) !== null && _this$options$fee !== void 0 ? _this$options$fee : stellar_base_min.BASE_FEE,
9778
9866
  networkPassphrase: _this.options.networkPassphrase
9779
- }).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);
9867
+ }).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);
9780
9868
  _context.n = 6;
9781
9869
  return _this.simulate();
9782
9870
  case 6:
@@ -9909,7 +9997,7 @@ var AssembledTransaction = function () {
9909
9997
  throw new Error("Unexpected Transaction type; no operations: ".concat(JSON.stringify(_this.built)));
9910
9998
  }
9911
9999
  var rawInvokeHostFunctionOp = _this.built.operations[0];
9912
- return _toConsumableArray(new Set(((_rawInvokeHostFunctio = rawInvokeHostFunctionOp.auth) !== null && _rawInvokeHostFunctio !== void 0 ? _rawInvokeHostFunctio : []).filter(function (entry) {
10000
+ return assembled_transaction_toConsumableArray(new Set(((_rawInvokeHostFunctio = rawInvokeHostFunctionOp.auth) !== null && _rawInvokeHostFunctio !== void 0 ? _rawInvokeHostFunctio : []).filter(function (entry) {
9913
10001
  return entry.credentials().switch() === stellar_base_min.xdr.SorobanCredentialsType.sorobanCredentialsAddress() && (includeAlreadySigned || entry.credentials().address().signature().switch().name === "scvVoid");
9914
10002
  }).map(function (entry) {
9915
10003
  return stellar_base_min.Address.fromScAddress(entry.credentials().address().address()).toString();
@@ -10022,7 +10110,7 @@ var AssembledTransaction = function () {
10022
10110
  signedAuthEntry = _yield$sign.signedAuthEntry;
10023
10111
  error = _yield$sign.error;
10024
10112
  _this.handleWalletError(error);
10025
- return _context5.a(2, Buffer.from(signedAuthEntry, "base64"));
10113
+ return _context5.a(2, assembled_transaction_Buffer.from(signedAuthEntry, "base64"));
10026
10114
  }
10027
10115
  }, _callee5);
10028
10116
  }));
@@ -10311,7 +10399,7 @@ var AssembledTransaction = function () {
10311
10399
  value: function build(options) {
10312
10400
  var _options$args;
10313
10401
  var contract = new stellar_base_min.Contract(options.contractId);
10314
- return AssembledTransaction.buildWithOp(contract.call.apply(contract, [options.method].concat(_toConsumableArray((_options$args = options.args) !== null && _options$args !== void 0 ? _options$args : []))), options);
10402
+ 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);
10315
10403
  }
10316
10404
  }, {
10317
10405
  key: "buildWithOp",
@@ -10535,6 +10623,10 @@ var basicNodeSigner = function basicNodeSigner(keypair, networkPassphrase) {
10535
10623
  };
10536
10624
  ;// ./src/contract/spec.ts
10537
10625
  /* provided dependency */ var spec_Buffer = __webpack_require__(287)["Buffer"];
10626
+ 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 }; })(); }
10627
+ 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); }
10628
+ 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); }
10629
+ 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); }); }; }
10538
10630
  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; }
10539
10631
  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; }
10540
10632
  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); }
@@ -10552,6 +10644,7 @@ function spec_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined
10552
10644
  function spec_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
10553
10645
 
10554
10646
 
10647
+
10555
10648
  function enumToJsonSchema(udt) {
10556
10649
  var description = udt.doc().toString();
10557
10650
  var cases = udt.cases();
@@ -10999,16 +11092,22 @@ var Spec = function () {
10999
11092
  function Spec(entries) {
11000
11093
  spec_classCallCheck(this, Spec);
11001
11094
  spec_defineProperty(this, "entries", []);
11002
- if (entries.length === 0) {
11003
- throw new Error("Contract spec must have at least one entry");
11004
- }
11005
- var entry = entries[0];
11006
- if (typeof entry === "string") {
11007
- this.entries = entries.map(function (s) {
11008
- return stellar_base_min.xdr.ScSpecEntry.fromXDR(s, "base64");
11009
- });
11095
+ if (spec_Buffer.isBuffer(entries)) {
11096
+ this.entries = processSpecEntryStream(entries);
11097
+ } else if (typeof entries === "string") {
11098
+ this.entries = processSpecEntryStream(spec_Buffer.from(entries, "base64"));
11010
11099
  } else {
11011
- this.entries = entries;
11100
+ if (entries.length === 0) {
11101
+ throw new Error("Contract spec must have at least one entry");
11102
+ }
11103
+ var entry = entries[0];
11104
+ if (typeof entry === "string") {
11105
+ this.entries = entries.map(function (s) {
11106
+ return stellar_base_min.xdr.ScSpecEntry.fromXDR(s, "base64");
11107
+ });
11108
+ } else {
11109
+ this.entries = entries;
11110
+ }
11012
11111
  }
11013
11112
  }
11014
11113
  return spec_createClass(Spec, [{
@@ -11548,6 +11647,27 @@ var Spec = function () {
11548
11647
  }
11549
11648
  return res;
11550
11649
  }
11650
+ }], [{
11651
+ key: "fromWasm",
11652
+ value: (function () {
11653
+ var _fromWasm = spec_asyncToGenerator(spec_regenerator().m(function _callee(wasm) {
11654
+ var spec;
11655
+ return spec_regenerator().w(function (_context) {
11656
+ while (1) switch (_context.n) {
11657
+ case 0:
11658
+ _context.n = 1;
11659
+ return specFromWasm(wasm);
11660
+ case 1:
11661
+ spec = _context.v;
11662
+ return _context.a(2, new Spec(spec));
11663
+ }
11664
+ }, _callee);
11665
+ }));
11666
+ function fromWasm(_x) {
11667
+ return _fromWasm.apply(this, arguments);
11668
+ }
11669
+ return fromWasm;
11670
+ }())
11551
11671
  }]);
11552
11672
  }();
11553
11673
  ;// ./src/contract/client.ts
@@ -11567,122 +11687,31 @@ function client_createClass(e, r, t) { return r && client_defineProperties(e.pro
11567
11687
  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; }
11568
11688
  function client_toPropertyKey(t) { var i = client_toPrimitive(t, "string"); return "symbol" == client_typeof(i) ? i : i + ""; }
11569
11689
  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); }
11570
- function client_toConsumableArray(r) { return client_arrayWithoutHoles(r) || client_iterableToArray(r) || client_unsupportedIterableToArray(r) || client_nonIterableSpread(); }
11571
- 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."); }
11572
- 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; } }
11573
- function client_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
11574
- function client_arrayWithoutHoles(r) { if (Array.isArray(r)) return client_arrayLikeToArray(r); }
11575
- 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; }
11576
11690
  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); }
11577
11691
  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); }); }; }
11578
11692
 
11579
11693
 
11580
11694
 
11581
11695
 
11582
-
11583
11696
  var CONSTRUCTOR_FUNC = "__constructor";
11584
- function specFromWasm(_x) {
11585
- return _specFromWasm.apply(this, arguments);
11586
- }
11587
- function _specFromWasm() {
11588
- _specFromWasm = client_asyncToGenerator(client_regenerator().m(function _callee5(wasm) {
11589
- var xdrSections, wasmModule, customData, bufferSection, specEntryArray, spec, _t;
11590
- return client_regenerator().w(function (_context5) {
11591
- while (1) switch (_context5.p = _context5.n) {
11592
- case 0:
11593
- _context5.p = 0;
11594
- _context5.n = 1;
11595
- return WebAssembly.compile(wasm);
11596
- case 1:
11597
- wasmModule = _context5.v;
11598
- xdrSections = WebAssembly.Module.customSections(wasmModule, "contractspecv0");
11599
- _context5.n = 3;
11600
- break;
11601
- case 2:
11602
- _context5.p = 2;
11603
- _t = _context5.v;
11604
- customData = parseWasmCustomSections(wasm);
11605
- xdrSections = customData.get('contractspecv0');
11606
- case 3:
11607
- if (!(!xdrSections || xdrSections.length === 0)) {
11608
- _context5.n = 4;
11609
- break;
11610
- }
11611
- throw new Error("Could not obtain contract spec from wasm");
11612
- case 4:
11613
- bufferSection = client_Buffer.from(xdrSections[0]);
11614
- specEntryArray = processSpecEntryStream(bufferSection);
11615
- spec = new Spec(specEntryArray);
11616
- return _context5.a(2, spec);
11617
- }
11618
- }, _callee5, null, [[0, 2]]);
11619
- }));
11620
- return _specFromWasm.apply(this, arguments);
11621
- }
11622
- function parseWasmCustomSections(buffer) {
11623
- var sections = new Map();
11624
- var arrayBuffer = buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
11625
- var offset = 0;
11626
- var read = function read(length) {
11627
- if (offset + length > buffer.byteLength) throw new Error('Buffer overflow');
11628
- var bytes = new Uint8Array(arrayBuffer, offset, length);
11629
- offset += length;
11630
- return bytes;
11631
- };
11632
- if (client_toConsumableArray(read(4)).join() !== '0,97,115,109') throw new Error('Invalid WASM magic');
11633
- if (client_toConsumableArray(read(4)).join() !== '1,0,0,0') throw new Error('Invalid WASM version');
11634
- while (offset < buffer.byteLength) {
11635
- var sectionId = read(1)[0];
11636
- var sectionLength = readVarUint32();
11637
- var start = offset;
11638
- if (sectionId === 0) {
11639
- var nameLen = readVarUint32();
11640
- if (nameLen === 0 || offset + nameLen > start + sectionLength) continue;
11641
- var nameBytes = read(nameLen);
11642
- var payload = read(sectionLength - (offset - start));
11643
- try {
11644
- var name = new TextDecoder('utf-8', {
11645
- fatal: true
11646
- }).decode(nameBytes);
11647
- if (payload.length > 0) {
11648
- sections.set(name, (sections.get(name) || []).concat(payload));
11649
- }
11650
- } catch (_unused) {}
11651
- } else {
11652
- offset += sectionLength;
11653
- }
11654
- }
11655
- function readVarUint32() {
11656
- var value = 0,
11657
- shift = 0;
11658
- while (true) {
11659
- var byte = read(1)[0];
11660
- value |= (byte & 0x7F) << shift;
11661
- if ((byte & 0x80) === 0) break;
11662
- if ((shift += 7) >= 32) throw new Error('Invalid WASM value');
11663
- }
11664
- return value >>> 0;
11665
- }
11666
- return sections;
11667
- }
11668
- function specFromWasmHash(_x2, _x3) {
11697
+ function specFromWasmHash(_x, _x2) {
11669
11698
  return _specFromWasmHash.apply(this, arguments);
11670
11699
  }
11671
11700
  function _specFromWasmHash() {
11672
- _specFromWasmHash = client_asyncToGenerator(client_regenerator().m(function _callee6(wasmHash, options) {
11701
+ _specFromWasmHash = client_asyncToGenerator(client_regenerator().m(function _callee5(wasmHash, options) {
11673
11702
  var format,
11674
11703
  rpcUrl,
11675
11704
  allowHttp,
11676
11705
  serverOpts,
11677
11706
  server,
11678
11707
  wasm,
11679
- _args6 = arguments;
11680
- return client_regenerator().w(function (_context6) {
11681
- while (1) switch (_context6.n) {
11708
+ _args5 = arguments;
11709
+ return client_regenerator().w(function (_context5) {
11710
+ while (1) switch (_context5.n) {
11682
11711
  case 0:
11683
- format = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : "hex";
11712
+ format = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : "hex";
11684
11713
  if (!(!options || !options.rpcUrl)) {
11685
- _context6.n = 1;
11714
+ _context5.n = 1;
11686
11715
  break;
11687
11716
  }
11688
11717
  throw new TypeError("options must contain rpcUrl");
@@ -11692,13 +11721,13 @@ function _specFromWasmHash() {
11692
11721
  allowHttp: allowHttp
11693
11722
  };
11694
11723
  server = new rpc.Server(rpcUrl, serverOpts);
11695
- _context6.n = 2;
11724
+ _context5.n = 2;
11696
11725
  return server.getContractWasmByHash(wasmHash, format);
11697
11726
  case 2:
11698
- wasm = _context6.v;
11699
- return _context6.a(2, specFromWasm(wasm));
11727
+ wasm = _context5.v;
11728
+ return _context5.a(2, Spec.fromWasm(wasm));
11700
11729
  }
11701
- }, _callee6);
11730
+ }, _callee5);
11702
11731
  }));
11703
11732
  return _specFromWasmHash.apply(this, arguments);
11704
11733
  }
@@ -11782,7 +11811,7 @@ var Client = function () {
11782
11811
  }
11783
11812
  }, _callee);
11784
11813
  }));
11785
- function deploy(_x4, _x5) {
11814
+ function deploy(_x3, _x4) {
11786
11815
  return _deploy.apply(this, arguments);
11787
11816
  }
11788
11817
  return deploy;
@@ -11821,7 +11850,7 @@ var Client = function () {
11821
11850
  }
11822
11851
  }, _callee2);
11823
11852
  }));
11824
- function fromWasmHash(_x6, _x7) {
11853
+ function fromWasmHash(_x5, _x6) {
11825
11854
  return _fromWasmHash.apply(this, arguments);
11826
11855
  }
11827
11856
  return fromWasmHash;
@@ -11835,14 +11864,14 @@ var Client = function () {
11835
11864
  while (1) switch (_context3.n) {
11836
11865
  case 0:
11837
11866
  _context3.n = 1;
11838
- return specFromWasm(wasm);
11867
+ return Spec.fromWasm(wasm);
11839
11868
  case 1:
11840
11869
  spec = _context3.v;
11841
11870
  return _context3.a(2, new Client(spec, options));
11842
11871
  }
11843
11872
  }, _callee3);
11844
11873
  }));
11845
- function fromWasm(_x8, _x9) {
11874
+ function fromWasm(_x7, _x8) {
11846
11875
  return _fromWasm.apply(this, arguments);
11847
11876
  }
11848
11877
  return fromWasm;
@@ -11874,7 +11903,7 @@ var Client = function () {
11874
11903
  }
11875
11904
  }, _callee4);
11876
11905
  }));
11877
- function from(_x0) {
11906
+ function from(_x9) {
11878
11907
  return _from.apply(this, arguments);
11879
11908
  }
11880
11909
  return from;
@@ -13096,7 +13125,7 @@ var stellar_base_min = __webpack_require__(950);
13096
13125
  var http_client = __webpack_require__(983);
13097
13126
  ;// ./src/rpc/axios.ts
13098
13127
 
13099
- var version = "14.0.0";
13128
+ var version = "14.1.0";
13100
13129
  var AxiosClient = (0,http_client/* create */.vt)({
13101
13130
  headers: {
13102
13131
  'X-Client-Name': 'js-soroban-client',
@@ -22022,7 +22051,7 @@ var http_client = __webpack_require__(983);
22022
22051
  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); }
22023
22052
 
22024
22053
 
22025
- var version = "14.0.0";
22054
+ var version = "14.1.0";
22026
22055
  var SERVER_TIME_MAP = {};
22027
22056
  var AxiosClient = (0,http_client/* create */.vt)({
22028
22057
  headers: {