@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
@@ -4889,7 +4889,7 @@ var stellar_base_min = __webpack_require__(8950);
4889
4889
  var http_client = __webpack_require__(6371);
4890
4890
  ;// ./src/rpc/axios.ts
4891
4891
 
4892
- var version = "14.0.0";
4892
+ var version = "14.1.0";
4893
4893
  var AxiosClient = (0,http_client/* create */.vt)({
4894
4894
  headers: {
4895
4895
  'X-Client-Name': 'js-soroban-client',
@@ -15874,8 +15874,15 @@ var Err = function () {
15874
15874
  var DEFAULT_TIMEOUT = 5 * 60;
15875
15875
  var NULL_ACCOUNT = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF";
15876
15876
  ;// ./src/contract/utils.ts
15877
+ /* provided dependency */ var Buffer = __webpack_require__(8287)["Buffer"];
15877
15878
  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 }; })(); }
15878
15879
  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); }
15880
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
15881
+ 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."); }
15882
+ 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; } }
15883
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
15884
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
15885
+ 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; }
15879
15886
  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); }
15880
15887
  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); }
15881
15888
  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); }); }; }
@@ -15960,6 +15967,87 @@ var contractErrorPattern = /Error\(Contract, #(\d+)\)/;
15960
15967
  function implementsToString(obj) {
15961
15968
  return utils_typeof(obj) === "object" && obj !== null && "toString" in obj;
15962
15969
  }
15970
+ function specFromWasm(_x4) {
15971
+ return _specFromWasm.apply(this, arguments);
15972
+ }
15973
+ function _specFromWasm() {
15974
+ _specFromWasm = _asyncToGenerator(_regenerator().m(function _callee2(wasm) {
15975
+ var xdrSections, wasmModule, customData, _t3;
15976
+ return _regenerator().w(function (_context2) {
15977
+ while (1) switch (_context2.p = _context2.n) {
15978
+ case 0:
15979
+ _context2.p = 0;
15980
+ _context2.n = 1;
15981
+ return WebAssembly.compile(wasm);
15982
+ case 1:
15983
+ wasmModule = _context2.v;
15984
+ xdrSections = WebAssembly.Module.customSections(wasmModule, "contractspecv0");
15985
+ _context2.n = 3;
15986
+ break;
15987
+ case 2:
15988
+ _context2.p = 2;
15989
+ _t3 = _context2.v;
15990
+ customData = parseWasmCustomSections(wasm);
15991
+ xdrSections = customData.get('contractspecv0');
15992
+ case 3:
15993
+ if (!(!xdrSections || xdrSections.length === 0)) {
15994
+ _context2.n = 4;
15995
+ break;
15996
+ }
15997
+ throw new Error("Could not obtain contract spec from wasm");
15998
+ case 4:
15999
+ return _context2.a(2, Buffer.from(xdrSections[0]));
16000
+ }
16001
+ }, _callee2, null, [[0, 2]]);
16002
+ }));
16003
+ return _specFromWasm.apply(this, arguments);
16004
+ }
16005
+ function parseWasmCustomSections(buffer) {
16006
+ var sections = new Map();
16007
+ var arrayBuffer = buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
16008
+ var offset = 0;
16009
+ var read = function read(length) {
16010
+ if (offset + length > buffer.byteLength) throw new Error('Buffer overflow');
16011
+ var bytes = new Uint8Array(arrayBuffer, offset, length);
16012
+ offset += length;
16013
+ return bytes;
16014
+ };
16015
+ if (_toConsumableArray(read(4)).join() !== '0,97,115,109') throw new Error('Invalid WASM magic');
16016
+ if (_toConsumableArray(read(4)).join() !== '1,0,0,0') throw new Error('Invalid WASM version');
16017
+ while (offset < buffer.byteLength) {
16018
+ var sectionId = read(1)[0];
16019
+ var sectionLength = readVarUint32();
16020
+ var start = offset;
16021
+ if (sectionId === 0) {
16022
+ var nameLen = readVarUint32();
16023
+ if (nameLen === 0 || offset + nameLen > start + sectionLength) continue;
16024
+ var nameBytes = read(nameLen);
16025
+ var payload = read(sectionLength - (offset - start));
16026
+ try {
16027
+ var name = new TextDecoder('utf-8', {
16028
+ fatal: true
16029
+ }).decode(nameBytes);
16030
+ if (payload.length > 0) {
16031
+ sections.set(name, (sections.get(name) || []).concat(payload));
16032
+ }
16033
+ } catch (_unused) {}
16034
+ } else {
16035
+ offset += sectionLength;
16036
+ }
16037
+ }
16038
+ function readVarUint32() {
16039
+ var value = 0,
16040
+ shift = 0;
16041
+ while (true) {
16042
+ var byte = read(1)[0];
16043
+ value |= (byte & 0x7F) << shift;
16044
+ if ((byte & 0x80) === 0) break;
16045
+ if ((shift += 7) >= 32) throw new Error('Invalid WASM value');
16046
+ }
16047
+ return value >>> 0;
16048
+ }
16049
+ return sections;
16050
+ }
15963
16051
  function processSpecEntryStream(buffer) {
15964
16052
  var reader = new stellar_base_min.cereal.XdrReader(buffer);
15965
16053
  var res = [];
@@ -15968,17 +16056,17 @@ function processSpecEntryStream(buffer) {
15968
16056
  }
15969
16057
  return res;
15970
16058
  }
15971
- function getAccount(_x4, _x5) {
16059
+ function getAccount(_x5, _x6) {
15972
16060
  return _getAccount.apply(this, arguments);
15973
16061
  }
15974
16062
  function _getAccount() {
15975
- _getAccount = _asyncToGenerator(_regenerator().m(function _callee2(options, server) {
15976
- return _regenerator().w(function (_context2) {
15977
- while (1) switch (_context2.n) {
16063
+ _getAccount = _asyncToGenerator(_regenerator().m(function _callee3(options, server) {
16064
+ return _regenerator().w(function (_context3) {
16065
+ while (1) switch (_context3.n) {
15978
16066
  case 0:
15979
- return _context2.a(2, options.publicKey ? server.getAccount(options.publicKey) : new stellar_base_min.Account(NULL_ACCOUNT, "0"));
16067
+ return _context3.a(2, options.publicKey ? server.getAccount(options.publicKey) : new stellar_base_min.Account(NULL_ACCOUNT, "0"));
15980
16068
  }
15981
- }, _callee2);
16069
+ }, _callee3);
15982
16070
  }));
15983
16071
  return _getAccount.apply(this, arguments);
15984
16072
  }
@@ -16144,7 +16232,7 @@ var Watcher = sent_transaction_createClass(function Watcher() {
16144
16232
  sent_transaction_classCallCheck(this, Watcher);
16145
16233
  });
16146
16234
  ;// ./src/contract/assembled_transaction.ts
16147
- /* provided dependency */ var Buffer = __webpack_require__(8287)["Buffer"];
16235
+ /* provided dependency */ var assembled_transaction_Buffer = __webpack_require__(8287)["Buffer"];
16148
16236
  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)); }
16149
16237
  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); }
16150
16238
  function assembled_transaction_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
@@ -16159,19 +16247,19 @@ function assembled_transaction_typeof(o) { "@babel/helpers - typeof"; return ass
16159
16247
  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; }
16160
16248
  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; }
16161
16249
  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"); }
16162
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
16250
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || assembled_transaction_unsupportedIterableToArray(r, e) || _nonIterableRest(); }
16163
16251
  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."); }
16164
16252
  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; } }
16165
16253
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
16166
- 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; } } }; }
16254
+ 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; } } }; }
16167
16255
  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 }; })(); }
16168
16256
  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); }
16169
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
16170
- 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."); }
16171
- 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; } }
16172
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
16173
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
16174
- 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; }
16257
+ function assembled_transaction_toConsumableArray(r) { return assembled_transaction_arrayWithoutHoles(r) || assembled_transaction_iterableToArray(r) || assembled_transaction_unsupportedIterableToArray(r) || assembled_transaction_nonIterableSpread(); }
16258
+ 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."); }
16259
+ 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; } }
16260
+ function assembled_transaction_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
16261
+ function assembled_transaction_arrayWithoutHoles(r) { if (Array.isArray(r)) return assembled_transaction_arrayLikeToArray(r); }
16262
+ 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; }
16175
16263
  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); }
16176
16264
  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); }); }; }
16177
16265
  function assembled_transaction_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -16247,7 +16335,7 @@ var AssembledTransaction = function () {
16247
16335
  _this.raw = new stellar_base_min.TransactionBuilder(account, {
16248
16336
  fee: (_this$options$fee = _this.options.fee) !== null && _this$options$fee !== void 0 ? _this$options$fee : stellar_base_min.BASE_FEE,
16249
16337
  networkPassphrase: _this.options.networkPassphrase
16250
- }).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);
16338
+ }).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);
16251
16339
  _context.n = 6;
16252
16340
  return _this.simulate();
16253
16341
  case 6:
@@ -16380,7 +16468,7 @@ var AssembledTransaction = function () {
16380
16468
  throw new Error("Unexpected Transaction type; no operations: ".concat(JSON.stringify(_this.built)));
16381
16469
  }
16382
16470
  var rawInvokeHostFunctionOp = _this.built.operations[0];
16383
- return _toConsumableArray(new Set(((_rawInvokeHostFunctio = rawInvokeHostFunctionOp.auth) !== null && _rawInvokeHostFunctio !== void 0 ? _rawInvokeHostFunctio : []).filter(function (entry) {
16471
+ return assembled_transaction_toConsumableArray(new Set(((_rawInvokeHostFunctio = rawInvokeHostFunctionOp.auth) !== null && _rawInvokeHostFunctio !== void 0 ? _rawInvokeHostFunctio : []).filter(function (entry) {
16384
16472
  return entry.credentials().switch() === stellar_base_min.xdr.SorobanCredentialsType.sorobanCredentialsAddress() && (includeAlreadySigned || entry.credentials().address().signature().switch().name === "scvVoid");
16385
16473
  }).map(function (entry) {
16386
16474
  return stellar_base_min.Address.fromScAddress(entry.credentials().address().address()).toString();
@@ -16493,7 +16581,7 @@ var AssembledTransaction = function () {
16493
16581
  signedAuthEntry = _yield$sign.signedAuthEntry;
16494
16582
  error = _yield$sign.error;
16495
16583
  _this.handleWalletError(error);
16496
- return _context5.a(2, Buffer.from(signedAuthEntry, "base64"));
16584
+ return _context5.a(2, assembled_transaction_Buffer.from(signedAuthEntry, "base64"));
16497
16585
  }
16498
16586
  }, _callee5);
16499
16587
  }));
@@ -16782,7 +16870,7 @@ var AssembledTransaction = function () {
16782
16870
  value: function build(options) {
16783
16871
  var _options$args;
16784
16872
  var contract = new stellar_base_min.Contract(options.contractId);
16785
- return AssembledTransaction.buildWithOp(contract.call.apply(contract, [options.method].concat(_toConsumableArray((_options$args = options.args) !== null && _options$args !== void 0 ? _options$args : []))), options);
16873
+ 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);
16786
16874
  }
16787
16875
  }, {
16788
16876
  key: "buildWithOp",
@@ -17006,6 +17094,10 @@ var basicNodeSigner = function basicNodeSigner(keypair, networkPassphrase) {
17006
17094
  };
17007
17095
  ;// ./src/contract/spec.ts
17008
17096
  /* provided dependency */ var spec_Buffer = __webpack_require__(8287)["Buffer"];
17097
+ 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 }; })(); }
17098
+ 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); }
17099
+ 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); }
17100
+ 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); }); }; }
17009
17101
  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; }
17010
17102
  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; }
17011
17103
  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); }
@@ -17023,6 +17115,7 @@ function spec_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined
17023
17115
  function spec_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
17024
17116
 
17025
17117
 
17118
+
17026
17119
  function enumToJsonSchema(udt) {
17027
17120
  var description = udt.doc().toString();
17028
17121
  var cases = udt.cases();
@@ -17470,16 +17563,22 @@ var Spec = function () {
17470
17563
  function Spec(entries) {
17471
17564
  spec_classCallCheck(this, Spec);
17472
17565
  spec_defineProperty(this, "entries", []);
17473
- if (entries.length === 0) {
17474
- throw new Error("Contract spec must have at least one entry");
17475
- }
17476
- var entry = entries[0];
17477
- if (typeof entry === "string") {
17478
- this.entries = entries.map(function (s) {
17479
- return stellar_base_min.xdr.ScSpecEntry.fromXDR(s, "base64");
17480
- });
17566
+ if (spec_Buffer.isBuffer(entries)) {
17567
+ this.entries = processSpecEntryStream(entries);
17568
+ } else if (typeof entries === "string") {
17569
+ this.entries = processSpecEntryStream(spec_Buffer.from(entries, "base64"));
17481
17570
  } else {
17482
- this.entries = entries;
17571
+ if (entries.length === 0) {
17572
+ throw new Error("Contract spec must have at least one entry");
17573
+ }
17574
+ var entry = entries[0];
17575
+ if (typeof entry === "string") {
17576
+ this.entries = entries.map(function (s) {
17577
+ return stellar_base_min.xdr.ScSpecEntry.fromXDR(s, "base64");
17578
+ });
17579
+ } else {
17580
+ this.entries = entries;
17581
+ }
17483
17582
  }
17484
17583
  }
17485
17584
  return spec_createClass(Spec, [{
@@ -18019,6 +18118,27 @@ var Spec = function () {
18019
18118
  }
18020
18119
  return res;
18021
18120
  }
18121
+ }], [{
18122
+ key: "fromWasm",
18123
+ value: (function () {
18124
+ var _fromWasm = spec_asyncToGenerator(spec_regenerator().m(function _callee(wasm) {
18125
+ var spec;
18126
+ return spec_regenerator().w(function (_context) {
18127
+ while (1) switch (_context.n) {
18128
+ case 0:
18129
+ _context.n = 1;
18130
+ return specFromWasm(wasm);
18131
+ case 1:
18132
+ spec = _context.v;
18133
+ return _context.a(2, new Spec(spec));
18134
+ }
18135
+ }, _callee);
18136
+ }));
18137
+ function fromWasm(_x) {
18138
+ return _fromWasm.apply(this, arguments);
18139
+ }
18140
+ return fromWasm;
18141
+ }())
18022
18142
  }]);
18023
18143
  }();
18024
18144
  ;// ./src/contract/client.ts
@@ -18038,122 +18158,31 @@ function client_createClass(e, r, t) { return r && client_defineProperties(e.pro
18038
18158
  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; }
18039
18159
  function client_toPropertyKey(t) { var i = client_toPrimitive(t, "string"); return "symbol" == client_typeof(i) ? i : i + ""; }
18040
18160
  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); }
18041
- function client_toConsumableArray(r) { return client_arrayWithoutHoles(r) || client_iterableToArray(r) || client_unsupportedIterableToArray(r) || client_nonIterableSpread(); }
18042
- 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."); }
18043
- 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; } }
18044
- function client_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
18045
- function client_arrayWithoutHoles(r) { if (Array.isArray(r)) return client_arrayLikeToArray(r); }
18046
- 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; }
18047
18161
  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); }
18048
18162
  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); }); }; }
18049
18163
 
18050
18164
 
18051
18165
 
18052
18166
 
18053
-
18054
18167
  var CONSTRUCTOR_FUNC = "__constructor";
18055
- function specFromWasm(_x) {
18056
- return _specFromWasm.apply(this, arguments);
18057
- }
18058
- function _specFromWasm() {
18059
- _specFromWasm = client_asyncToGenerator(client_regenerator().m(function _callee5(wasm) {
18060
- var xdrSections, wasmModule, customData, bufferSection, specEntryArray, spec, _t;
18061
- return client_regenerator().w(function (_context5) {
18062
- while (1) switch (_context5.p = _context5.n) {
18063
- case 0:
18064
- _context5.p = 0;
18065
- _context5.n = 1;
18066
- return WebAssembly.compile(wasm);
18067
- case 1:
18068
- wasmModule = _context5.v;
18069
- xdrSections = WebAssembly.Module.customSections(wasmModule, "contractspecv0");
18070
- _context5.n = 3;
18071
- break;
18072
- case 2:
18073
- _context5.p = 2;
18074
- _t = _context5.v;
18075
- customData = parseWasmCustomSections(wasm);
18076
- xdrSections = customData.get('contractspecv0');
18077
- case 3:
18078
- if (!(!xdrSections || xdrSections.length === 0)) {
18079
- _context5.n = 4;
18080
- break;
18081
- }
18082
- throw new Error("Could not obtain contract spec from wasm");
18083
- case 4:
18084
- bufferSection = client_Buffer.from(xdrSections[0]);
18085
- specEntryArray = processSpecEntryStream(bufferSection);
18086
- spec = new Spec(specEntryArray);
18087
- return _context5.a(2, spec);
18088
- }
18089
- }, _callee5, null, [[0, 2]]);
18090
- }));
18091
- return _specFromWasm.apply(this, arguments);
18092
- }
18093
- function parseWasmCustomSections(buffer) {
18094
- var sections = new Map();
18095
- var arrayBuffer = buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
18096
- var offset = 0;
18097
- var read = function read(length) {
18098
- if (offset + length > buffer.byteLength) throw new Error('Buffer overflow');
18099
- var bytes = new Uint8Array(arrayBuffer, offset, length);
18100
- offset += length;
18101
- return bytes;
18102
- };
18103
- if (client_toConsumableArray(read(4)).join() !== '0,97,115,109') throw new Error('Invalid WASM magic');
18104
- if (client_toConsumableArray(read(4)).join() !== '1,0,0,0') throw new Error('Invalid WASM version');
18105
- while (offset < buffer.byteLength) {
18106
- var sectionId = read(1)[0];
18107
- var sectionLength = readVarUint32();
18108
- var start = offset;
18109
- if (sectionId === 0) {
18110
- var nameLen = readVarUint32();
18111
- if (nameLen === 0 || offset + nameLen > start + sectionLength) continue;
18112
- var nameBytes = read(nameLen);
18113
- var payload = read(sectionLength - (offset - start));
18114
- try {
18115
- var name = new TextDecoder('utf-8', {
18116
- fatal: true
18117
- }).decode(nameBytes);
18118
- if (payload.length > 0) {
18119
- sections.set(name, (sections.get(name) || []).concat(payload));
18120
- }
18121
- } catch (_unused) {}
18122
- } else {
18123
- offset += sectionLength;
18124
- }
18125
- }
18126
- function readVarUint32() {
18127
- var value = 0,
18128
- shift = 0;
18129
- while (true) {
18130
- var byte = read(1)[0];
18131
- value |= (byte & 0x7F) << shift;
18132
- if ((byte & 0x80) === 0) break;
18133
- if ((shift += 7) >= 32) throw new Error('Invalid WASM value');
18134
- }
18135
- return value >>> 0;
18136
- }
18137
- return sections;
18138
- }
18139
- function specFromWasmHash(_x2, _x3) {
18168
+ function specFromWasmHash(_x, _x2) {
18140
18169
  return _specFromWasmHash.apply(this, arguments);
18141
18170
  }
18142
18171
  function _specFromWasmHash() {
18143
- _specFromWasmHash = client_asyncToGenerator(client_regenerator().m(function _callee6(wasmHash, options) {
18172
+ _specFromWasmHash = client_asyncToGenerator(client_regenerator().m(function _callee5(wasmHash, options) {
18144
18173
  var format,
18145
18174
  rpcUrl,
18146
18175
  allowHttp,
18147
18176
  serverOpts,
18148
18177
  server,
18149
18178
  wasm,
18150
- _args6 = arguments;
18151
- return client_regenerator().w(function (_context6) {
18152
- while (1) switch (_context6.n) {
18179
+ _args5 = arguments;
18180
+ return client_regenerator().w(function (_context5) {
18181
+ while (1) switch (_context5.n) {
18153
18182
  case 0:
18154
- format = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : "hex";
18183
+ format = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : "hex";
18155
18184
  if (!(!options || !options.rpcUrl)) {
18156
- _context6.n = 1;
18185
+ _context5.n = 1;
18157
18186
  break;
18158
18187
  }
18159
18188
  throw new TypeError("options must contain rpcUrl");
@@ -18163,13 +18192,13 @@ function _specFromWasmHash() {
18163
18192
  allowHttp: allowHttp
18164
18193
  };
18165
18194
  server = new rpc.Server(rpcUrl, serverOpts);
18166
- _context6.n = 2;
18195
+ _context5.n = 2;
18167
18196
  return server.getContractWasmByHash(wasmHash, format);
18168
18197
  case 2:
18169
- wasm = _context6.v;
18170
- return _context6.a(2, specFromWasm(wasm));
18198
+ wasm = _context5.v;
18199
+ return _context5.a(2, Spec.fromWasm(wasm));
18171
18200
  }
18172
- }, _callee6);
18201
+ }, _callee5);
18173
18202
  }));
18174
18203
  return _specFromWasmHash.apply(this, arguments);
18175
18204
  }
@@ -18253,7 +18282,7 @@ var Client = function () {
18253
18282
  }
18254
18283
  }, _callee);
18255
18284
  }));
18256
- function deploy(_x4, _x5) {
18285
+ function deploy(_x3, _x4) {
18257
18286
  return _deploy.apply(this, arguments);
18258
18287
  }
18259
18288
  return deploy;
@@ -18292,7 +18321,7 @@ var Client = function () {
18292
18321
  }
18293
18322
  }, _callee2);
18294
18323
  }));
18295
- function fromWasmHash(_x6, _x7) {
18324
+ function fromWasmHash(_x5, _x6) {
18296
18325
  return _fromWasmHash.apply(this, arguments);
18297
18326
  }
18298
18327
  return fromWasmHash;
@@ -18306,14 +18335,14 @@ var Client = function () {
18306
18335
  while (1) switch (_context3.n) {
18307
18336
  case 0:
18308
18337
  _context3.n = 1;
18309
- return specFromWasm(wasm);
18338
+ return Spec.fromWasm(wasm);
18310
18339
  case 1:
18311
18340
  spec = _context3.v;
18312
18341
  return _context3.a(2, new Client(spec, options));
18313
18342
  }
18314
18343
  }, _callee3);
18315
18344
  }));
18316
- function fromWasm(_x8, _x9) {
18345
+ function fromWasm(_x7, _x8) {
18317
18346
  return _fromWasm.apply(this, arguments);
18318
18347
  }
18319
18348
  return fromWasm;
@@ -18345,7 +18374,7 @@ var Client = function () {
18345
18374
  }
18346
18375
  }, _callee4);
18347
18376
  }));
18348
- function from(_x0) {
18377
+ function from(_x9) {
18349
18378
  return _from.apply(this, arguments);
18350
18379
  }
18351
18380
  return from;
@@ -26840,7 +26869,7 @@ var http_client = __webpack_require__(6371);
26840
26869
  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); }
26841
26870
 
26842
26871
 
26843
- var version = "14.0.0";
26872
+ var version = "14.1.0";
26844
26873
  var SERVER_TIME_MAP = {};
26845
26874
  var AxiosClient = (0,http_client/* create */.vt)({
26846
26875
  headers: {