@stellar/stellar-sdk 11.0.1 → 11.2.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 (37) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +158 -139
  3. package/dist/stellar-sdk.js +865 -376
  4. package/dist/stellar-sdk.min.js +1 -1
  5. package/lib/config.js +2 -2
  6. package/lib/contract_spec.d.ts +22 -1
  7. package/lib/contract_spec.js +684 -187
  8. package/lib/errors.js +11 -16
  9. package/lib/federation/server.js +2 -2
  10. package/lib/horizon/account_call_builder.js +7 -8
  11. package/lib/horizon/account_response.js +2 -2
  12. package/lib/horizon/assets_call_builder.js +7 -8
  13. package/lib/horizon/call_builder.js +2 -2
  14. package/lib/horizon/claimable_balances_call_builder.js +7 -8
  15. package/lib/horizon/effect_call_builder.js +7 -8
  16. package/lib/horizon/friendbot_builder.js +7 -8
  17. package/lib/horizon/ledger_call_builder.js +7 -8
  18. package/lib/horizon/liquidity_pool_call_builder.js +7 -8
  19. package/lib/horizon/offer_call_builder.js +7 -8
  20. package/lib/horizon/operation_call_builder.js +7 -8
  21. package/lib/horizon/orderbook_call_builder.js +7 -8
  22. package/lib/horizon/path_call_builder.js +7 -8
  23. package/lib/horizon/payment_call_builder.js +7 -8
  24. package/lib/horizon/server.js +2 -2
  25. package/lib/horizon/strict_receive_path_call_builder.js +7 -8
  26. package/lib/horizon/strict_send_path_call_builder.js +7 -8
  27. package/lib/horizon/trade_aggregation_call_builder.js +7 -8
  28. package/lib/horizon/trades_call_builder.js +7 -8
  29. package/lib/horizon/transaction_call_builder.js +7 -8
  30. package/lib/soroban/api.d.ts +8 -1
  31. package/lib/soroban/parsers.js +12 -6
  32. package/lib/soroban/server.d.ts +6 -2
  33. package/lib/soroban/server.js +18 -12
  34. package/lib/stellartoml/index.js +2 -2
  35. package/lib/utils.js +2 -2
  36. package/lib/webauth/errors.js +7 -8
  37. package/package.json +17 -15
@@ -20533,8 +20533,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
20533
20533
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20534
20534
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20535
20535
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20536
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20537
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20536
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
20537
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20538
20538
  var defaultConfig = {
20539
20539
  allowHttp: false,
20540
20540
  timeout: 0
@@ -20583,47 +20583,71 @@ var Config = function () {
20583
20583
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20584
20584
  /* harmony export */ o: () => (/* binding */ ContractSpec)
20585
20585
  /* harmony export */ });
20586
- /* harmony import */ var _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4172);
20587
- /* harmony import */ var _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__);
20586
+ /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8026);
20588
20587
  /* provided dependency */ var Buffer = __webpack_require__(8764)["Buffer"];
20588
+ 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; }
20589
+ 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) { _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; }
20590
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
20591
+ function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
20592
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20593
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20594
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20595
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20596
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
20597
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20589
20598
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20590
20599
  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."); }
20591
20600
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
20592
20601
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
20593
20602
  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; } }
20594
20603
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20595
- function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
20596
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20597
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20598
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20599
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20600
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20601
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20602
20604
 
20605
+ function readObj(args, input) {
20606
+ var inputName = input.name().toString();
20607
+ var entry = Object.entries(args).find(function (_ref) {
20608
+ var _ref2 = _slicedToArray(_ref, 2),
20609
+ name = _ref2[0],
20610
+ _ = _ref2[1];
20611
+ return name === inputName;
20612
+ });
20613
+ if (!entry) {
20614
+ throw new Error("Missing field ".concat(inputName));
20615
+ }
20616
+ return entry[1];
20617
+ }
20603
20618
  var ContractSpec = function () {
20604
20619
  function ContractSpec(entries) {
20605
20620
  _classCallCheck(this, ContractSpec);
20606
20621
  _defineProperty(this, "entries", []);
20607
20622
  if (entries.length == 0) {
20608
- throw new Error('Contract spec must have at least one entry');
20623
+ throw new Error("Contract spec must have at least one entry");
20609
20624
  }
20610
20625
  var entry = entries[0];
20611
- if (typeof entry === 'string') {
20626
+ if (typeof entry === "string") {
20612
20627
  this.entries = entries.map(function (s) {
20613
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntry.fromXDR(s, 'base64');
20628
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntry.fromXDR(s, "base64");
20614
20629
  });
20615
20630
  } else {
20616
20631
  this.entries = entries;
20617
20632
  }
20618
20633
  }
20619
20634
  _createClass(ContractSpec, [{
20635
+ key: "funcs",
20636
+ value: function funcs() {
20637
+ return this.entries.filter(function (entry) {
20638
+ return entry.switch().value === ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryFunctionV0().value;
20639
+ }).map(function (entry) {
20640
+ return entry.functionV0();
20641
+ });
20642
+ }
20643
+ }, {
20620
20644
  key: "getFunc",
20621
20645
  value: function getFunc(name) {
20622
20646
  var entry = this.findEntry(name);
20623
- if (entry.switch().value !== _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryFunctionV0().value) {
20647
+ if (entry.switch().value !== ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryFunctionV0().value) {
20624
20648
  throw new Error("".concat(name, " is not a function"));
20625
20649
  }
20626
- return entry.value();
20650
+ return entry.functionV0();
20627
20651
  }
20628
20652
  }, {
20629
20653
  key: "funcArgsToScVals",
@@ -20637,12 +20661,12 @@ var ContractSpec = function () {
20637
20661
  }, {
20638
20662
  key: "funcResToNative",
20639
20663
  value: function funcResToNative(name, val_or_base64) {
20640
- var val = typeof val_or_base64 === 'string' ? _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.fromXDR(val_or_base64, 'base64') : val_or_base64;
20664
+ var val = typeof val_or_base64 === "string" ? ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.fromXDR(val_or_base64, "base64") : val_or_base64;
20641
20665
  var func = this.getFunc(name);
20642
20666
  var outputs = func.outputs();
20643
20667
  if (outputs.length === 0) {
20644
20668
  var type = val.switch();
20645
- if (type.value !== _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvVoid().value) {
20669
+ if (type.value !== ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvVoid().value) {
20646
20670
  throw new Error("Expected void, got ".concat(type.name));
20647
20671
  }
20648
20672
  return null;
@@ -20651,7 +20675,7 @@ var ContractSpec = function () {
20651
20675
  throw new Error("Multiple outputs not supported");
20652
20676
  }
20653
20677
  var output = outputs[0];
20654
- if (output.switch().value === _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeResult().value) {
20678
+ if (output.switch().value === ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeResult().value) {
20655
20679
  return this.scValToNative(val, output.result().okType());
20656
20680
  }
20657
20681
  return this.scValToNative(val, output);
@@ -20673,40 +20697,40 @@ var ContractSpec = function () {
20673
20697
  var _this2 = this;
20674
20698
  var t = ty.switch();
20675
20699
  var value = t.value;
20676
- if (t.value === _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeUdt().value) {
20677
- var udt = ty.value();
20700
+ if (t.value === ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeUdt().value) {
20701
+ var udt = ty.udt();
20678
20702
  return this.nativeToUdt(val, udt.name().toString());
20679
20703
  }
20680
- if (value === _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeOption().value) {
20681
- var opt = ty.value();
20704
+ if (value === ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeOption().value) {
20705
+ var opt = ty.option();
20682
20706
  if (val === undefined) {
20683
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVoid();
20707
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVoid();
20684
20708
  }
20685
20709
  return this.nativeToScVal(val, opt.valueType());
20686
20710
  }
20687
20711
  switch (_typeof(val)) {
20688
- case 'object':
20712
+ case "object":
20689
20713
  {
20690
20714
  var _val$constructor$name, _val$constructor;
20691
20715
  if (val === null) {
20692
20716
  switch (value) {
20693
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVoid().value:
20694
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVoid();
20717
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVoid().value:
20718
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVoid();
20695
20719
  default:
20696
20720
  throw new TypeError("Type ".concat(ty, " was not void, but value was null"));
20697
20721
  }
20698
20722
  }
20699
- if (val instanceof _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal) {
20723
+ if (val instanceof ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal) {
20700
20724
  return val;
20701
20725
  }
20702
- if (val instanceof _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.Address) {
20703
- if (ty.switch().value !== _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeAddress().value) {
20726
+ if (val instanceof ___WEBPACK_IMPORTED_MODULE_0__.Address) {
20727
+ if (ty.switch().value !== ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeAddress().value) {
20704
20728
  throw new TypeError("Type ".concat(ty, " was not address, but value was Address"));
20705
20729
  }
20706
20730
  return val.toScVal();
20707
20731
  }
20708
- if (val instanceof _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.Contract) {
20709
- if (ty.switch().value !== _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeAddress().value) {
20732
+ if (val instanceof ___WEBPACK_IMPORTED_MODULE_0__.Contract) {
20733
+ if (ty.switch().value !== ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeAddress().value) {
20710
20734
  throw new TypeError("Type ".concat(ty, " was not address, but value was Address"));
20711
20735
  }
20712
20736
  return val.address().toScVal();
@@ -20714,114 +20738,133 @@ var ContractSpec = function () {
20714
20738
  if (val instanceof Uint8Array || Buffer.isBuffer(val)) {
20715
20739
  var copy = Uint8Array.from(val);
20716
20740
  switch (value) {
20717
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBytesN().value:
20741
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBytesN().value:
20718
20742
  {
20719
- var bytes_n = ty.value();
20743
+ var bytes_n = ty.bytesN();
20720
20744
  if (copy.length !== bytes_n.n()) {
20721
20745
  throw new TypeError("expected ".concat(bytes_n.n(), " bytes, but got ").concat(copy.length));
20722
20746
  }
20723
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvBytes(copy);
20747
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvBytes(copy);
20724
20748
  }
20725
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBytes().value:
20726
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvBytes(copy);
20749
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBytes().value:
20750
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvBytes(copy);
20727
20751
  default:
20728
20752
  throw new TypeError("invalid type (".concat(ty, ") specified for Bytes and BytesN"));
20729
20753
  }
20730
20754
  }
20731
20755
  if (Array.isArray(val)) {
20732
- if (_stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVec().value === value) {
20733
- var vec = ty.value();
20734
- var elementType = vec.elementType();
20735
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec(val.map(function (v) {
20736
- return _this2.nativeToScVal(v, elementType);
20737
- }));
20738
- } else if (_stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeTuple().value === value) {
20739
- var tup = ty.value();
20740
- var valTypes = tup.valueTypes();
20741
- if (val.length !== valTypes.length) {
20742
- throw new TypeError("Tuple expects ".concat(valTypes.length, " values, but ").concat(val.length, " were provided"));
20743
- }
20744
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec(val.map(function (v, i) {
20745
- return _this2.nativeToScVal(v, valTypes[i]);
20746
- }));
20747
- } else {
20748
- throw new TypeError("Type ".concat(ty, " was not vec, but value was Array"));
20756
+ switch (value) {
20757
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVec().value:
20758
+ {
20759
+ var vec = ty.vec();
20760
+ var elementType = vec.elementType();
20761
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec(val.map(function (v) {
20762
+ return _this2.nativeToScVal(v, elementType);
20763
+ }));
20764
+ }
20765
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeTuple().value:
20766
+ {
20767
+ var tup = ty.tuple();
20768
+ var valTypes = tup.valueTypes();
20769
+ if (val.length !== valTypes.length) {
20770
+ throw new TypeError("Tuple expects ".concat(valTypes.length, " values, but ").concat(val.length, " were provided"));
20771
+ }
20772
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec(val.map(function (v, i) {
20773
+ return _this2.nativeToScVal(v, valTypes[i]);
20774
+ }));
20775
+ }
20776
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeMap().value:
20777
+ {
20778
+ var map = ty.map();
20779
+ var keyType = map.keyType();
20780
+ var valueType = map.valueType();
20781
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvMap(val.map(function (entry) {
20782
+ var key = _this2.nativeToScVal(entry[0], keyType);
20783
+ var val = _this2.nativeToScVal(entry[1], valueType);
20784
+ return new ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScMapEntry({
20785
+ key: key,
20786
+ val: val
20787
+ });
20788
+ }));
20789
+ }
20790
+ default:
20791
+ throw new TypeError("Type ".concat(ty, " was not vec, but value was Array"));
20749
20792
  }
20750
20793
  }
20751
20794
  if (val.constructor === Map) {
20752
- if (value !== _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeMap().value) {
20795
+ if (value !== ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeMap().value) {
20753
20796
  throw new TypeError("Type ".concat(ty, " was not map, but value was Map"));
20754
20797
  }
20755
- var scMap = ty.value();
20756
- var map = val;
20798
+ var scMap = ty.map();
20799
+ var _map = val;
20757
20800
  var entries = [];
20758
- var values = map.entries();
20801
+ var values = _map.entries();
20759
20802
  var res = values.next();
20760
20803
  while (!res.done) {
20761
20804
  var _res$value = _slicedToArray(res.value, 2),
20762
20805
  k = _res$value[0],
20763
20806
  v = _res$value[1];
20764
- var key = this.nativeToScVal(k, scMap.keyType());
20807
+ var _key = this.nativeToScVal(k, scMap.keyType());
20765
20808
  var _val = this.nativeToScVal(v, scMap.valueType());
20766
- entries.push(new _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScMapEntry({
20767
- key: key,
20809
+ entries.push(new ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScMapEntry({
20810
+ key: _key,
20768
20811
  val: _val
20769
20812
  }));
20770
20813
  res = values.next();
20771
20814
  }
20772
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvMap(entries);
20815
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvMap(entries);
20773
20816
  }
20774
- if (((_val$constructor$name = (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) !== null && _val$constructor$name !== void 0 ? _val$constructor$name : '') !== 'Object') {
20817
+ if (((_val$constructor$name = (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) !== null && _val$constructor$name !== void 0 ? _val$constructor$name : "") !== "Object") {
20775
20818
  var _val$constructor2;
20776
20819
  throw new TypeError("cannot interpret ".concat((_val$constructor2 = val.constructor) === null || _val$constructor2 === void 0 ? void 0 : _val$constructor2.name, " value as ScVal (").concat(JSON.stringify(val), ")"));
20777
20820
  }
20778
20821
  throw new TypeError("Received object ".concat(val, " did not match the provided type ").concat(ty));
20779
20822
  }
20780
- case 'number':
20781
- case 'bigint':
20823
+ case "number":
20824
+ case "bigint":
20782
20825
  {
20783
20826
  switch (value) {
20784
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU32().value:
20785
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvU32(val);
20786
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI32().value:
20787
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvI32(val);
20788
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU64().value:
20789
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI64().value:
20790
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU128().value:
20791
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI128().value:
20792
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU256().value:
20793
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI256().value:
20827
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU32().value:
20828
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvU32(val);
20829
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI32().value:
20830
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvI32(val);
20831
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU64().value:
20832
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI64().value:
20833
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU128().value:
20834
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI128().value:
20835
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU256().value:
20836
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI256().value:
20794
20837
  {
20795
20838
  var intType = t.name.substring(10).toLowerCase();
20796
- return new _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.XdrLargeInt(intType, val).toScVal();
20839
+ return new ___WEBPACK_IMPORTED_MODULE_0__.XdrLargeInt(intType, val).toScVal();
20797
20840
  }
20798
20841
  default:
20799
20842
  throw new TypeError("invalid type (".concat(ty, ") specified for integer"));
20800
20843
  }
20801
20844
  }
20802
- case 'string':
20845
+ case "string":
20803
20846
  return stringToScVal(val, t);
20804
- case 'boolean':
20847
+ case "boolean":
20805
20848
  {
20806
- if (value !== _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBool().value) {
20849
+ if (value !== ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBool().value) {
20807
20850
  throw TypeError("Type ".concat(ty, " was not bool, but value was bool"));
20808
20851
  }
20809
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvBool(val);
20852
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvBool(val);
20810
20853
  }
20811
- case 'undefined':
20854
+ case "undefined":
20812
20855
  {
20813
20856
  if (!ty) {
20814
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVoid();
20857
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVoid();
20815
20858
  }
20816
20859
  switch (value) {
20817
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVoid().value:
20818
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeOption().value:
20819
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVoid();
20860
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVoid().value:
20861
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeOption().value:
20862
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVoid();
20820
20863
  default:
20821
20864
  throw new TypeError("Type ".concat(ty, " was not void, but value was undefined"));
20822
20865
  }
20823
20866
  }
20824
- case 'function':
20867
+ case "function":
20825
20868
  return this.nativeToScVal(val(), ty);
20826
20869
  default:
20827
20870
  throw new TypeError("failed to convert typeof ".concat(_typeof(val), " (").concat(val, ")"));
@@ -20832,15 +20875,15 @@ var ContractSpec = function () {
20832
20875
  value: function nativeToUdt(val, name) {
20833
20876
  var entry = this.findEntry(name);
20834
20877
  switch (entry.switch()) {
20835
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():
20836
- if (typeof val !== 'number') {
20878
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():
20879
+ if (typeof val !== "number") {
20837
20880
  throw new TypeError("expected number for enum ".concat(name, ", but got ").concat(_typeof(val)));
20838
20881
  }
20839
- return this.nativeToEnum(val, entry.value());
20840
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():
20841
- return this.nativeToStruct(val, entry.value());
20842
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():
20843
- return this.nativeToUnion(val, entry.value());
20882
+ return this.nativeToEnum(val, entry.udtEnumV0());
20883
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():
20884
+ return this.nativeToStruct(val, entry.udtStructV0());
20885
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():
20886
+ return this.nativeToUnion(val, entry.udtUnionV0());
20844
20887
  default:
20845
20888
  throw new Error("failed to parse udt ".concat(name));
20846
20889
  }
@@ -20857,15 +20900,15 @@ var ContractSpec = function () {
20857
20900
  if (!case_) {
20858
20901
  throw new TypeError("no such enum entry: ".concat(entry_name, " in ").concat(union_));
20859
20902
  }
20860
- var key = _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvSymbol(entry_name);
20903
+ var key = ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvSymbol(entry_name);
20861
20904
  switch (case_.switch()) {
20862
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0():
20905
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0():
20863
20906
  {
20864
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec([key]);
20907
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec([key]);
20865
20908
  }
20866
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0():
20909
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0():
20867
20910
  {
20868
- var types = case_.value().type();
20911
+ var types = case_.tupleCase().type();
20869
20912
  if (Array.isArray(val.values)) {
20870
20913
  if (val.values.length != types.length) {
20871
20914
  throw new TypeError("union ".concat(union_, " expects ").concat(types.length, " values, but got ").concat(val.values.length));
@@ -20874,7 +20917,7 @@ var ContractSpec = function () {
20874
20917
  return _this3.nativeToScVal(v, types[i]);
20875
20918
  });
20876
20919
  scvals.unshift(key);
20877
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec(scvals);
20920
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec(scvals);
20878
20921
  }
20879
20922
  throw new Error("failed to parse union case ".concat(case_, " with ").concat(val));
20880
20923
  }
@@ -20889,16 +20932,16 @@ var ContractSpec = function () {
20889
20932
  var fields = struct.fields();
20890
20933
  if (fields.some(isNumeric)) {
20891
20934
  if (!fields.every(isNumeric)) {
20892
- throw new Error('mixed numeric and non-numeric field names are not allowed');
20935
+ throw new Error("mixed numeric and non-numeric field names are not allowed");
20893
20936
  }
20894
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec(fields.map(function (_, i) {
20937
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvVec(fields.map(function (_, i) {
20895
20938
  return _this4.nativeToScVal(val[i], fields[i].type());
20896
20939
  }));
20897
20940
  }
20898
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvMap(fields.map(function (field) {
20941
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvMap(fields.map(function (field) {
20899
20942
  var name = field.name().toString();
20900
- return new _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScMapEntry({
20901
- key: _this4.nativeToScVal(name, _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecTypeDef.scSpecTypeSymbol()),
20943
+ return new ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScMapEntry({
20944
+ key: _this4.nativeToScVal(name, ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecTypeDef.scSpecTypeSymbol()),
20902
20945
  val: _this4.nativeToScVal(val[name], field.type())
20903
20946
  });
20904
20947
  }));
@@ -20909,14 +20952,14 @@ var ContractSpec = function () {
20909
20952
  if (enum_.cases().some(function (entry) {
20910
20953
  return entry.value() === val;
20911
20954
  })) {
20912
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvU32(val);
20955
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvU32(val);
20913
20956
  }
20914
20957
  throw new TypeError("no such enum entry: ".concat(val, " in ").concat(enum_));
20915
20958
  }
20916
20959
  }, {
20917
20960
  key: "scValStrToNative",
20918
20961
  value: function scValStrToNative(scv, typeDef) {
20919
- return this.scValToNative(_stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.fromXDR(scv, 'base64'), typeDef);
20962
+ return this.scValToNative(___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.fromXDR(scv, "base64"), typeDef);
20920
20963
  }
20921
20964
  }, {
20922
20965
  key: "scValToNative",
@@ -20924,30 +20967,30 @@ var ContractSpec = function () {
20924
20967
  var _this5 = this;
20925
20968
  var t = typeDef.switch();
20926
20969
  var value = t.value;
20927
- if (value === _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeUdt().value) {
20928
- return this.scValUdtToNative(scv, typeDef.value());
20970
+ if (value === ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeUdt().value) {
20971
+ return this.scValUdtToNative(scv, typeDef.udt());
20929
20972
  }
20930
20973
  switch (scv.switch().value) {
20931
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvVoid().value:
20974
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvVoid().value:
20932
20975
  return void 0;
20933
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU64().value:
20934
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvI64().value:
20935
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU128().value:
20936
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvI128().value:
20937
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU256().value:
20938
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvI256().value:
20939
- return (0,_stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.scValToBigInt)(scv);
20940
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvVec().value:
20976
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU64().value:
20977
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvI64().value:
20978
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU128().value:
20979
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvI128().value:
20980
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU256().value:
20981
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvI256().value:
20982
+ return (0,___WEBPACK_IMPORTED_MODULE_0__.scValToBigInt)(scv);
20983
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvVec().value:
20941
20984
  {
20942
- if (value == _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVec().value) {
20985
+ if (value == ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVec().value) {
20943
20986
  var _scv$vec;
20944
- var vec = typeDef.value();
20987
+ var vec = typeDef.vec();
20945
20988
  return ((_scv$vec = scv.vec()) !== null && _scv$vec !== void 0 ? _scv$vec : []).map(function (elm) {
20946
20989
  return _this5.scValToNative(elm, vec.elementType());
20947
20990
  });
20948
- } else if (value == _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeTuple().value) {
20991
+ } else if (value == ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeTuple().value) {
20949
20992
  var _scv$vec2;
20950
- var tuple = typeDef.value();
20993
+ var tuple = typeDef.tuple();
20951
20994
  var valTypes = tuple.valueTypes();
20952
20995
  return ((_scv$vec2 = scv.vec()) !== null && _scv$vec2 !== void 0 ? _scv$vec2 : []).map(function (elm, i) {
20953
20996
  return _this5.scValToNative(elm, valTypes[i]);
@@ -20955,39 +20998,40 @@ var ContractSpec = function () {
20955
20998
  }
20956
20999
  throw new TypeError("Type ".concat(typeDef, " was not vec, but ").concat(scv, " is"));
20957
21000
  }
20958
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvAddress().value:
20959
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.Address.fromScVal(scv);
20960
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvMap().value:
21001
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvAddress().value:
21002
+ return ___WEBPACK_IMPORTED_MODULE_0__.Address.fromScVal(scv).toString();
21003
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvMap().value:
20961
21004
  {
20962
21005
  var _scv$map;
20963
21006
  var map = (_scv$map = scv.map()) !== null && _scv$map !== void 0 ? _scv$map : [];
20964
- if (value == _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeMap().value) {
20965
- var type_ = typeDef.value();
21007
+ if (value == ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeMap().value) {
21008
+ var type_ = typeDef.map();
20966
21009
  var keyType = type_.keyType();
20967
21010
  var valueType = type_.valueType();
20968
- return new Map(map.map(function (entry) {
21011
+ var res = map.map(function (entry) {
20969
21012
  return [_this5.scValToNative(entry.key(), keyType), _this5.scValToNative(entry.val(), valueType)];
20970
- }));
21013
+ });
21014
+ return res;
20971
21015
  }
20972
21016
  throw new TypeError("ScSpecType ".concat(t.name, " was not map, but ").concat(JSON.stringify(scv, null, 2), " is"));
20973
21017
  }
20974
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvBool().value:
20975
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU32().value:
20976
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvI32().value:
20977
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvBytes().value:
21018
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvBool().value:
21019
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU32().value:
21020
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvI32().value:
21021
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvBytes().value:
20978
21022
  return scv.value();
20979
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvString().value:
20980
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvSymbol().value:
21023
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvString().value:
21024
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvSymbol().value:
20981
21025
  {
20982
21026
  var _scv$value;
20983
- if (value !== _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeString().value && value !== _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeSymbol().value) {
21027
+ if (value !== ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeString().value && value !== ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeSymbol().value) {
20984
21028
  throw new Error("ScSpecType ".concat(t.name, " was not string or symbol, but ").concat(JSON.stringify(scv, null, 2), " is"));
20985
21029
  }
20986
21030
  return (_scv$value = scv.value()) === null || _scv$value === void 0 ? void 0 : _scv$value.toString();
20987
21031
  }
20988
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvTimepoint().value:
20989
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvDuration().value:
20990
- return (0,_stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.scValToBigInt)(_stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvU64(scv.value()));
21032
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvTimepoint().value:
21033
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvDuration().value:
21034
+ return (0,___WEBPACK_IMPORTED_MODULE_0__.scValToBigInt)(___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvU64(scv.u64()));
20991
21035
  default:
20992
21036
  throw new TypeError("failed to convert ".concat(JSON.stringify(scv, null, 2), " to native type from type ").concat(t.name));
20993
21037
  }
@@ -20997,12 +21041,12 @@ var ContractSpec = function () {
20997
21041
  value: function scValUdtToNative(scv, udt) {
20998
21042
  var entry = this.findEntry(udt.name().toString());
20999
21043
  switch (entry.switch()) {
21000
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():
21001
- return this.enumToNative(scv, entry.value());
21002
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():
21003
- return this.structToNative(scv, entry.value());
21004
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():
21005
- return this.unionToNative(scv, entry.value());
21044
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():
21045
+ return this.enumToNative(scv);
21046
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():
21047
+ return this.structToNative(scv, entry.udtStructV0());
21048
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():
21049
+ return this.unionToNative(scv, entry.udtUnionV0());
21006
21050
  default:
21007
21051
  throw new Error("failed to parse udt ".concat(udt.name().toString(), ": ").concat(entry));
21008
21052
  }
@@ -21010,6 +21054,7 @@ var ContractSpec = function () {
21010
21054
  }, {
21011
21055
  key: "unionToNative",
21012
21056
  value: function unionToNative(val, udt) {
21057
+ var _this6 = this;
21013
21058
  var vec = val.vec();
21014
21059
  if (!vec) {
21015
21060
  throw new Error("".concat(JSON.stringify(val, null, 2), " is not a vec"));
@@ -21018,7 +21063,7 @@ var ContractSpec = function () {
21018
21063
  throw new Error("".concat(val, " has length 0, but the there are at least one case in the union"));
21019
21064
  }
21020
21065
  var name = vec[0].sym().toString();
21021
- if (vec[0].switch().value != _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvSymbol().value) {
21066
+ if (vec[0].switch().value != ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvSymbol().value) {
21022
21067
  throw new Error("{vec[0]} is not a symbol");
21023
21068
  }
21024
21069
  var entry = udt.cases().find(findCase(name));
@@ -21026,71 +21071,129 @@ var ContractSpec = function () {
21026
21071
  throw new Error("failed to find entry ".concat(name, " in union {udt.name().toString()}"));
21027
21072
  }
21028
21073
  var res = {
21029
- tag: name,
21030
- values: undefined
21074
+ tag: name
21031
21075
  };
21032
- if (entry.switch().value === _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value) {
21033
- var tuple = entry.value();
21076
+ if (entry.switch().value === ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value) {
21077
+ var tuple = entry.tupleCase();
21034
21078
  var ty = tuple.type();
21035
- var values = [];
21036
- for (var i = 0; i < ty.length; i++) {
21037
- var v = this.scValToNative(vec[i + 1], ty[i]);
21038
- values.push(v);
21039
- }
21040
- var r = {
21041
- tag: name,
21042
- values: values
21043
- };
21044
- return r;
21079
+ var values = ty.map(function (entry, i) {
21080
+ return _this6.scValToNative(vec[i + 1], entry);
21081
+ });
21082
+ res.values = values;
21045
21083
  }
21046
21084
  return res;
21047
21085
  }
21048
21086
  }, {
21049
21087
  key: "structToNative",
21050
21088
  value: function structToNative(val, udt) {
21051
- var _this6 = this,
21089
+ var _this7 = this,
21052
21090
  _val$map;
21053
21091
  var res = {};
21054
21092
  var fields = udt.fields();
21055
21093
  if (fields.some(isNumeric)) {
21056
21094
  var _val$vec;
21057
21095
  var r = (_val$vec = val.vec()) === null || _val$vec === void 0 ? void 0 : _val$vec.map(function (entry, i) {
21058
- return _this6.scValToNative(entry, fields[i].type());
21096
+ return _this7.scValToNative(entry, fields[i].type());
21059
21097
  });
21060
21098
  return r;
21061
21099
  }
21062
21100
  (_val$map = val.map()) === null || _val$map === void 0 || _val$map.forEach(function (entry, i) {
21063
21101
  var field = fields[i];
21064
- res[field.name().toString()] = _this6.scValToNative(entry.val(), field.type());
21102
+ res[field.name().toString()] = _this7.scValToNative(entry.val(), field.type());
21065
21103
  });
21066
21104
  return res;
21067
21105
  }
21068
21106
  }, {
21069
21107
  key: "enumToNative",
21070
- value: function enumToNative(scv, udt) {
21071
- if (scv.switch().value !== _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU32().value) {
21108
+ value: function enumToNative(scv) {
21109
+ if (scv.switch().value !== ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScValType.scvU32().value) {
21072
21110
  throw new Error("Enum must have a u32 value");
21073
21111
  }
21074
- var num = scv.value();
21075
- if (udt.cases().some(function (entry) {
21076
- return entry.value() === num;
21077
- })) {}
21112
+ var num = scv.u32();
21078
21113
  return num;
21079
21114
  }
21115
+ }, {
21116
+ key: "jsonSchema",
21117
+ value: function jsonSchema(funcName) {
21118
+ var definitions = {};
21119
+ var _iterator = _createForOfIteratorHelper(this.entries),
21120
+ _step;
21121
+ try {
21122
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
21123
+ var entry = _step.value;
21124
+ switch (entry.switch().value) {
21125
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0().value:
21126
+ {
21127
+ var _udt = entry.udtEnumV0();
21128
+ definitions[_udt.name().toString()] = enumToJsonSchema(_udt);
21129
+ break;
21130
+ }
21131
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0().value:
21132
+ {
21133
+ var _udt2 = entry.udtStructV0();
21134
+ definitions[_udt2.name().toString()] = structToJsonSchema(_udt2);
21135
+ break;
21136
+ }
21137
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0().value:
21138
+ var udt = entry.udtUnionV0();
21139
+ definitions[udt.name().toString()] = unionToJsonSchema(udt);
21140
+ break;
21141
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryFunctionV0().value:
21142
+ {
21143
+ var fn = entry.functionV0();
21144
+ var fnName = fn.name().toString();
21145
+ var _functionToJsonSchema = functionToJsonSchema(fn),
21146
+ input = _functionToJsonSchema.input;
21147
+ definitions[fnName] = input;
21148
+ break;
21149
+ }
21150
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecEntryKind.scSpecEntryUdtErrorEnumV0().value:
21151
+ {}
21152
+ }
21153
+ }
21154
+ } catch (err) {
21155
+ _iterator.e(err);
21156
+ } finally {
21157
+ _iterator.f();
21158
+ }
21159
+ var res = {
21160
+ $schema: "http://json-schema.org/draft-07/schema#",
21161
+ definitions: _objectSpread(_objectSpread({}, PRIMITIVE_DEFINITONS), definitions)
21162
+ };
21163
+ if (funcName) {
21164
+ res["$ref"] = "#/definitions/".concat(funcName);
21165
+ }
21166
+ return res;
21167
+ }
21080
21168
  }]);
21081
21169
  return ContractSpec;
21082
21170
  }();
21083
21171
  function stringToScVal(str, ty) {
21084
21172
  switch (ty.value) {
21085
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeString().value:
21086
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvString(str);
21087
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeSymbol().value:
21088
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvSymbol(str);
21089
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeAddress().value:
21173
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeString().value:
21174
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvString(str);
21175
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeSymbol().value:
21176
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvSymbol(str);
21177
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeAddress().value:
21090
21178
  {
21091
- var addr = _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.Address.fromString(str);
21092
- return _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvAddress(addr.toScAddress());
21093
- }
21179
+ var addr = ___WEBPACK_IMPORTED_MODULE_0__.Address.fromString(str);
21180
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvAddress(addr.toScAddress());
21181
+ }
21182
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU64().value:
21183
+ return new ___WEBPACK_IMPORTED_MODULE_0__.XdrLargeInt("u64", str).toScVal();
21184
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI64().value:
21185
+ return new ___WEBPACK_IMPORTED_MODULE_0__.XdrLargeInt("i64", str).toScVal();
21186
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU128().value:
21187
+ return new ___WEBPACK_IMPORTED_MODULE_0__.XdrLargeInt("u128", str).toScVal();
21188
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI128().value:
21189
+ return new ___WEBPACK_IMPORTED_MODULE_0__.XdrLargeInt("i128", str).toScVal();
21190
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU256().value:
21191
+ return new ___WEBPACK_IMPORTED_MODULE_0__.XdrLargeInt("u256", str).toScVal();
21192
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI256().value:
21193
+ return new ___WEBPACK_IMPORTED_MODULE_0__.XdrLargeInt("i256", str).toScVal();
21194
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBytes().value:
21195
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBytesN().value:
21196
+ return ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScVal.scvBytes(Buffer.from(str, "base64"));
21094
21197
  default:
21095
21198
  throw new TypeError("invalid type ".concat(ty.name, " specified for string value"));
21096
21199
  }
@@ -21101,14 +21204,14 @@ function isNumeric(field) {
21101
21204
  function findCase(name) {
21102
21205
  return function matches(entry) {
21103
21206
  switch (entry.switch().value) {
21104
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value:
21207
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value:
21105
21208
  {
21106
- var tuple = entry.value();
21209
+ var tuple = entry.tupleCase();
21107
21210
  return tuple.name().toString() === name;
21108
21211
  }
21109
- case _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0().value:
21212
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0().value:
21110
21213
  {
21111
- var void_case = entry.value();
21214
+ var void_case = entry.voidCase();
21112
21215
  return void_case.name().toString() === name;
21113
21216
  }
21114
21217
  default:
@@ -21116,18 +21219,411 @@ function findCase(name) {
21116
21219
  }
21117
21220
  };
21118
21221
  }
21119
- function readObj(args, input) {
21120
- var inputName = input.name().toString();
21121
- var entry = Object.entries(args).find(function (_ref) {
21122
- var _ref2 = _slicedToArray(_ref, 2),
21123
- name = _ref2[0],
21124
- _ = _ref2[1];
21125
- return name === inputName;
21126
- });
21127
- if (!entry) {
21128
- throw new Error("Missing field ".concat(inputName));
21222
+ var PRIMITIVE_DEFINITONS = {
21223
+ U32: {
21224
+ type: "integer",
21225
+ minimum: 0,
21226
+ maximum: 4294967295
21227
+ },
21228
+ I32: {
21229
+ type: "integer",
21230
+ minimum: -2147483648,
21231
+ maximum: 2147483647
21232
+ },
21233
+ U64: {
21234
+ type: "string",
21235
+ pattern: "^([1-9][0-9]*|0)$",
21236
+ minLength: 1,
21237
+ maxLength: 20
21238
+ },
21239
+ I64: {
21240
+ type: "string",
21241
+ pattern: "^(-?[1-9][0-9]*|0)$",
21242
+ minLength: 1,
21243
+ maxLength: 21
21244
+ },
21245
+ U128: {
21246
+ type: "string",
21247
+ pattern: "^([1-9][0-9]*|0)$",
21248
+ minLength: 1,
21249
+ maxLength: 39
21250
+ },
21251
+ I128: {
21252
+ type: "string",
21253
+ pattern: "^(-?[1-9][0-9]*|0)$",
21254
+ minLength: 1,
21255
+ maxLength: 40
21256
+ },
21257
+ U256: {
21258
+ type: "string",
21259
+ pattern: "^([1-9][0-9]*|0)$",
21260
+ minLength: 1,
21261
+ maxLength: 78
21262
+ },
21263
+ I256: {
21264
+ type: "string",
21265
+ pattern: "^(-?[1-9][0-9]*|0)$",
21266
+ minLength: 1,
21267
+ maxLength: 79
21268
+ },
21269
+ Address: {
21270
+ type: "string",
21271
+ format: "address",
21272
+ description: "Address can be a public key or contract id"
21273
+ },
21274
+ ScString: {
21275
+ type: "string",
21276
+ description: "ScString is a string"
21277
+ },
21278
+ ScSymbol: {
21279
+ type: "string",
21280
+ description: "ScString is a string"
21281
+ },
21282
+ DataUrl: {
21283
+ type: "string",
21284
+ pattern: "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$"
21129
21285
  }
21130
- return entry[1];
21286
+ };
21287
+ function typeRef(typeDef) {
21288
+ var t = typeDef.switch();
21289
+ var value = t.value;
21290
+ var ref;
21291
+ switch (value) {
21292
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVal().value:
21293
+ {
21294
+ ref = "Val";
21295
+ break;
21296
+ }
21297
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBool().value:
21298
+ {
21299
+ return {
21300
+ type: "boolean"
21301
+ };
21302
+ }
21303
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVoid().value:
21304
+ {
21305
+ return {
21306
+ type: "null"
21307
+ };
21308
+ }
21309
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeError().value:
21310
+ {
21311
+ ref = "Error";
21312
+ break;
21313
+ }
21314
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU32().value:
21315
+ {
21316
+ ref = "U32";
21317
+ break;
21318
+ }
21319
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI32().value:
21320
+ {
21321
+ ref = "I32";
21322
+ break;
21323
+ }
21324
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU64().value:
21325
+ {
21326
+ ref = "U64";
21327
+ break;
21328
+ }
21329
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI64().value:
21330
+ {
21331
+ ref = "I64";
21332
+ break;
21333
+ }
21334
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeTimepoint().value:
21335
+ {
21336
+ throw new Error("Timepoint type not supported");
21337
+ ref = "Timepoint";
21338
+ break;
21339
+ }
21340
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeDuration().value:
21341
+ {
21342
+ throw new Error("Duration not supported");
21343
+ ref = "Duration";
21344
+ break;
21345
+ }
21346
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU128().value:
21347
+ {
21348
+ ref = "U128";
21349
+ break;
21350
+ }
21351
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI128().value:
21352
+ {
21353
+ ref = "I128";
21354
+ break;
21355
+ }
21356
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeU256().value:
21357
+ {
21358
+ ref = "U256";
21359
+ break;
21360
+ }
21361
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeI256().value:
21362
+ {
21363
+ ref = "I256";
21364
+ break;
21365
+ }
21366
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBytes().value:
21367
+ {
21368
+ ref = "DataUrl";
21369
+ break;
21370
+ }
21371
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeString().value:
21372
+ {
21373
+ ref = "ScString";
21374
+ break;
21375
+ }
21376
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeSymbol().value:
21377
+ {
21378
+ ref = "ScSymbol";
21379
+ break;
21380
+ }
21381
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeAddress().value:
21382
+ {
21383
+ ref = "Address";
21384
+ break;
21385
+ }
21386
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeOption().value:
21387
+ {
21388
+ var opt = typeDef.option();
21389
+ return typeRef(opt.valueType());
21390
+ }
21391
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeResult().value:
21392
+ {
21393
+ break;
21394
+ }
21395
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeVec().value:
21396
+ {
21397
+ var arr = typeDef.vec();
21398
+ var _ref3 = typeRef(arr.elementType());
21399
+ return {
21400
+ type: "array",
21401
+ items: _ref3
21402
+ };
21403
+ }
21404
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeMap().value:
21405
+ {
21406
+ var map = typeDef.map();
21407
+ var items = [typeRef(map.keyType()), typeRef(map.valueType())];
21408
+ return {
21409
+ type: "array",
21410
+ items: {
21411
+ type: "array",
21412
+ items: items,
21413
+ minItems: 2,
21414
+ maxItems: 2
21415
+ }
21416
+ };
21417
+ }
21418
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeTuple().value:
21419
+ {
21420
+ var tuple = typeDef.tuple();
21421
+ var minItems = tuple.valueTypes().length;
21422
+ var maxItems = minItems;
21423
+ var _items = tuple.valueTypes().map(typeRef);
21424
+ return {
21425
+ type: "array",
21426
+ items: _items,
21427
+ minItems: minItems,
21428
+ maxItems: maxItems
21429
+ };
21430
+ }
21431
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeBytesN().value:
21432
+ {
21433
+ var _arr = typeDef.bytesN();
21434
+ return {
21435
+ $ref: "#/definitions/DataUrl",
21436
+ maxLength: _arr.n()
21437
+ };
21438
+ }
21439
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeUdt().value:
21440
+ {
21441
+ var udt = typeDef.udt();
21442
+ ref = udt.name().toString();
21443
+ break;
21444
+ }
21445
+ }
21446
+ return {
21447
+ $ref: "#/definitions/".concat(ref)
21448
+ };
21449
+ }
21450
+ function isRequired(typeDef) {
21451
+ return typeDef.switch().value != ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecType.scSpecTypeOption().value;
21452
+ }
21453
+ function structToJsonSchema(udt) {
21454
+ var fields = udt.fields();
21455
+ if (fields.some(isNumeric)) {
21456
+ if (!fields.every(isNumeric)) {
21457
+ throw new Error("mixed numeric and non-numeric field names are not allowed");
21458
+ }
21459
+ var items = fields.map(function (_, i) {
21460
+ return typeRef(fields[i].type());
21461
+ });
21462
+ return {
21463
+ type: "array",
21464
+ items: items,
21465
+ minItems: fields.length,
21466
+ maxItems: fields.length
21467
+ };
21468
+ }
21469
+ var description = udt.doc().toString();
21470
+ var _args_and_required = args_and_required(fields),
21471
+ properties = _args_and_required.properties,
21472
+ required = _args_and_required.required;
21473
+ properties["additionalProperties"] = false;
21474
+ return {
21475
+ description: description,
21476
+ properties: properties,
21477
+ required: required,
21478
+ type: "object"
21479
+ };
21480
+ }
21481
+ function args_and_required(input) {
21482
+ var properties = {};
21483
+ var required = [];
21484
+ var _iterator2 = _createForOfIteratorHelper(input),
21485
+ _step2;
21486
+ try {
21487
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
21488
+ var arg = _step2.value;
21489
+ var type_ = arg.type();
21490
+ var name = arg.name().toString();
21491
+ properties[name] = typeRef(type_);
21492
+ if (isRequired(type_)) {
21493
+ required.push(name);
21494
+ }
21495
+ }
21496
+ } catch (err) {
21497
+ _iterator2.e(err);
21498
+ } finally {
21499
+ _iterator2.f();
21500
+ }
21501
+ var res = {
21502
+ properties: properties
21503
+ };
21504
+ if (required.length > 0) {
21505
+ res.required = required;
21506
+ }
21507
+ return res;
21508
+ }
21509
+ function functionToJsonSchema(func) {
21510
+ var _args_and_required2 = args_and_required(func.inputs()),
21511
+ properties = _args_and_required2.properties,
21512
+ required = _args_and_required2.required;
21513
+ var args = {
21514
+ additionalProperties: false,
21515
+ properties: properties,
21516
+ type: "object"
21517
+ };
21518
+ if ((required === null || required === void 0 ? void 0 : required.length) > 0) {
21519
+ args.required = required;
21520
+ }
21521
+ var input = {
21522
+ properties: {
21523
+ args: args
21524
+ }
21525
+ };
21526
+ var outputs = func.outputs();
21527
+ var output = outputs.length > 0 ? typeRef(outputs[0]) : typeRef(___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecTypeDef.scSpecTypeVoid());
21528
+ var description = func.doc().toString();
21529
+ if (description.length > 0) {
21530
+ input.description = description;
21531
+ }
21532
+ input.additionalProperties = false;
21533
+ output.additionalProperties = false;
21534
+ return {
21535
+ input: input,
21536
+ output: output
21537
+ };
21538
+ }
21539
+ function unionToJsonSchema(udt) {
21540
+ var description = udt.doc().toString();
21541
+ var cases = udt.cases();
21542
+ var oneOf = [];
21543
+ var _iterator3 = _createForOfIteratorHelper(cases),
21544
+ _step3;
21545
+ try {
21546
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
21547
+ var case_ = _step3.value;
21548
+ switch (case_.switch().value) {
21549
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0().value:
21550
+ {
21551
+ var c = case_.voidCase();
21552
+ var title = c.name().toString();
21553
+ oneOf.push({
21554
+ type: "object",
21555
+ title: title,
21556
+ properties: {
21557
+ tag: title
21558
+ },
21559
+ additionalProperties: false,
21560
+ required: ["tag"]
21561
+ });
21562
+ break;
21563
+ }
21564
+ case ___WEBPACK_IMPORTED_MODULE_0__.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value:
21565
+ {
21566
+ var _c = case_.tupleCase();
21567
+ var _title = _c.name().toString();
21568
+ oneOf.push({
21569
+ type: "object",
21570
+ title: _title,
21571
+ properties: {
21572
+ tag: _title,
21573
+ values: {
21574
+ type: "array",
21575
+ items: _c.type().map(typeRef)
21576
+ }
21577
+ },
21578
+ required: ["tag", "values"],
21579
+ additionalProperties: false
21580
+ });
21581
+ }
21582
+ }
21583
+ }
21584
+ } catch (err) {
21585
+ _iterator3.e(err);
21586
+ } finally {
21587
+ _iterator3.f();
21588
+ }
21589
+ var res = {
21590
+ oneOf: oneOf
21591
+ };
21592
+ if (description.length > 0) {
21593
+ res.description = description;
21594
+ }
21595
+ return res;
21596
+ }
21597
+ function enumToJsonSchema(udt) {
21598
+ var description = udt.doc().toString();
21599
+ var cases = udt.cases();
21600
+ var oneOf = [];
21601
+ var _iterator4 = _createForOfIteratorHelper(cases),
21602
+ _step4;
21603
+ try {
21604
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
21605
+ var case_ = _step4.value;
21606
+ var title = case_.name().toString();
21607
+ var _description = case_.doc().toString();
21608
+ oneOf.push({
21609
+ description: _description,
21610
+ title: title,
21611
+ enum: [case_.value()],
21612
+ type: "number"
21613
+ });
21614
+ }
21615
+ } catch (err) {
21616
+ _iterator4.e(err);
21617
+ } finally {
21618
+ _iterator4.f();
21619
+ }
21620
+ var res = {
21621
+ oneOf: oneOf
21622
+ };
21623
+ if (description.length > 0) {
21624
+ res.description = description;
21625
+ }
21626
+ return res;
21131
21627
  }
21132
21628
 
21133
21629
  /***/ }),
@@ -21147,26 +21643,25 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
21147
21643
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21148
21644
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
21149
21645
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21150
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21151
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
21152
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21153
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
21646
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
21647
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21648
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
21154
21649
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
21155
21650
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21651
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21156
21652
  function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
21157
- function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
21158
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
21653
+ function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
21654
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
21159
21655
  function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
21160
21656
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21161
21657
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21162
21658
  var NetworkError = function (_Error) {
21163
21659
  _inherits(NetworkError, _Error);
21164
- var _super = _createSuper(NetworkError);
21165
21660
  function NetworkError(message, response) {
21166
21661
  var _this;
21167
21662
  _classCallCheck(this, NetworkError);
21168
21663
  var trueProto = (this instanceof NetworkError ? this.constructor : void 0).prototype;
21169
- _this = _super.call(this, message);
21664
+ _this = _callSuper(this, NetworkError, [message]);
21170
21665
  _this.__proto__ = trueProto;
21171
21666
  _this.constructor = NetworkError;
21172
21667
  _this.response = response;
@@ -21182,12 +21677,11 @@ var NetworkError = function (_Error) {
21182
21677
  }(_wrapNativeSuper(Error));
21183
21678
  var NotFoundError = function (_NetworkError) {
21184
21679
  _inherits(NotFoundError, _NetworkError);
21185
- var _super2 = _createSuper(NotFoundError);
21186
21680
  function NotFoundError(message, response) {
21187
21681
  var _this2;
21188
21682
  _classCallCheck(this, NotFoundError);
21189
21683
  var trueProto = (this instanceof NotFoundError ? this.constructor : void 0).prototype;
21190
- _this2 = _super2.call(this, message, response);
21684
+ _this2 = _callSuper(this, NotFoundError, [message, response]);
21191
21685
  _this2.__proto__ = trueProto;
21192
21686
  _this2.constructor = NotFoundError;
21193
21687
  _this2.name = "NotFoundError";
@@ -21197,12 +21691,11 @@ var NotFoundError = function (_NetworkError) {
21197
21691
  }(NetworkError);
21198
21692
  var BadRequestError = function (_NetworkError2) {
21199
21693
  _inherits(BadRequestError, _NetworkError2);
21200
- var _super3 = _createSuper(BadRequestError);
21201
21694
  function BadRequestError(message, response) {
21202
21695
  var _this3;
21203
21696
  _classCallCheck(this, BadRequestError);
21204
21697
  var trueProto = (this instanceof BadRequestError ? this.constructor : void 0).prototype;
21205
- _this3 = _super3.call(this, message, response);
21698
+ _this3 = _callSuper(this, BadRequestError, [message, response]);
21206
21699
  _this3.__proto__ = trueProto;
21207
21700
  _this3.constructor = BadRequestError;
21208
21701
  _this3.name = "BadRequestError";
@@ -21212,12 +21705,11 @@ var BadRequestError = function (_NetworkError2) {
21212
21705
  }(NetworkError);
21213
21706
  var BadResponseError = function (_NetworkError3) {
21214
21707
  _inherits(BadResponseError, _NetworkError3);
21215
- var _super4 = _createSuper(BadResponseError);
21216
21708
  function BadResponseError(message, response) {
21217
21709
  var _this4;
21218
21710
  _classCallCheck(this, BadResponseError);
21219
21711
  var trueProto = (this instanceof BadResponseError ? this.constructor : void 0).prototype;
21220
- _this4 = _super4.call(this, message, response);
21712
+ _this4 = _callSuper(this, BadResponseError, [message, response]);
21221
21713
  _this4.__proto__ = trueProto;
21222
21714
  _this4.constructor = BadResponseError;
21223
21715
  _this4.name = "BadResponseError";
@@ -21227,12 +21719,11 @@ var BadResponseError = function (_NetworkError3) {
21227
21719
  }(NetworkError);
21228
21720
  var AccountRequiresMemoError = function (_Error2) {
21229
21721
  _inherits(AccountRequiresMemoError, _Error2);
21230
- var _super5 = _createSuper(AccountRequiresMemoError);
21231
21722
  function AccountRequiresMemoError(message, accountId, operationIndex) {
21232
21723
  var _this5;
21233
21724
  _classCallCheck(this, AccountRequiresMemoError);
21234
21725
  var trueProto = (this instanceof AccountRequiresMemoError ? this.constructor : void 0).prototype;
21235
- _this5 = _super5.call(this, message);
21726
+ _this5 = _callSuper(this, AccountRequiresMemoError, [message]);
21236
21727
  _this5.__proto__ = trueProto;
21237
21728
  _this5.constructor = AccountRequiresMemoError;
21238
21729
  _this5.name = "AccountRequiresMemoError";
@@ -21293,8 +21784,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
21293
21784
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21294
21785
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
21295
21786
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21296
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21297
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
21787
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
21788
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21298
21789
 
21299
21790
 
21300
21791
 
@@ -21684,8 +22175,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21684
22175
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21685
22176
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
21686
22177
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21687
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21688
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
22178
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
22179
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21689
22180
 
21690
22181
  var AccountResponse = function () {
21691
22182
  function AccountResponse(response) {
@@ -24686,8 +25177,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
24686
25177
  function call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24687
25178
  function call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, call_builder_toPropertyKey(descriptor.key), descriptor); } }
24688
25179
  function call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
24689
- function call_builder_toPropertyKey(arg) { var key = call_builder_toPrimitive(arg, "string"); return call_builder_typeof(key) === "symbol" ? key : String(key); }
24690
- function call_builder_toPrimitive(input, hint) { if (call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25180
+ function call_builder_toPropertyKey(t) { var i = call_builder_toPrimitive(t, "string"); return "symbol" == call_builder_typeof(i) ? i : String(i); }
25181
+ function call_builder_toPrimitive(t, r) { if ("object" != call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
24691
25182
 
24692
25183
 
24693
25184
 
@@ -25038,23 +25529,22 @@ function account_call_builder_typeof(o) { "@babel/helpers - typeof"; return acco
25038
25529
  function account_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25039
25530
  function account_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, account_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25040
25531
  function account_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) account_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) account_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25041
- function account_call_builder_toPropertyKey(arg) { var key = account_call_builder_toPrimitive(arg, "string"); return account_call_builder_typeof(key) === "symbol" ? key : String(key); }
25042
- function account_call_builder_toPrimitive(input, hint) { if (account_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (account_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25043
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25044
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25045
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25532
+ function account_call_builder_toPropertyKey(t) { var i = account_call_builder_toPrimitive(t, "string"); return "symbol" == account_call_builder_typeof(i) ? i : String(i); }
25533
+ function account_call_builder_toPrimitive(t, r) { if ("object" != account_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != account_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25534
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
25046
25535
  function _possibleConstructorReturn(self, call) { if (call && (account_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
25047
25536
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25048
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25537
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25049
25538
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25539
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25540
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25050
25541
 
25051
25542
  var AccountCallBuilder = function (_CallBuilder) {
25052
25543
  _inherits(AccountCallBuilder, _CallBuilder);
25053
- var _super = _createSuper(AccountCallBuilder);
25054
25544
  function AccountCallBuilder(serverUrl) {
25055
25545
  var _this;
25056
25546
  account_call_builder_classCallCheck(this, AccountCallBuilder);
25057
- _this = _super.call(this, serverUrl);
25547
+ _this = _callSuper(this, AccountCallBuilder, [serverUrl]);
25058
25548
  _this.url.segment("accounts");
25059
25549
  return _this;
25060
25550
  }
@@ -25097,23 +25587,22 @@ function assets_call_builder_typeof(o) { "@babel/helpers - typeof"; return asset
25097
25587
  function assets_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25098
25588
  function assets_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, assets_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25099
25589
  function assets_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) assets_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) assets_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25100
- function assets_call_builder_toPropertyKey(arg) { var key = assets_call_builder_toPrimitive(arg, "string"); return assets_call_builder_typeof(key) === "symbol" ? key : String(key); }
25101
- function assets_call_builder_toPrimitive(input, hint) { if (assets_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (assets_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25102
- function assets_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) assets_call_builder_setPrototypeOf(subClass, superClass); }
25103
- function assets_call_builder_setPrototypeOf(o, p) { assets_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return assets_call_builder_setPrototypeOf(o, p); }
25104
- function assets_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = assets_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = assets_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = assets_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return assets_call_builder_possibleConstructorReturn(this, result); }; }
25590
+ function assets_call_builder_toPropertyKey(t) { var i = assets_call_builder_toPrimitive(t, "string"); return "symbol" == assets_call_builder_typeof(i) ? i : String(i); }
25591
+ function assets_call_builder_toPrimitive(t, r) { if ("object" != assets_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != assets_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25592
+ function assets_call_builder_callSuper(t, o, e) { return o = assets_call_builder_getPrototypeOf(o), assets_call_builder_possibleConstructorReturn(t, assets_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], assets_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25105
25593
  function assets_call_builder_possibleConstructorReturn(self, call) { if (call && (assets_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return assets_call_builder_assertThisInitialized(self); }
25106
25594
  function assets_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25107
- function assets_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25595
+ function assets_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (assets_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25108
25596
  function assets_call_builder_getPrototypeOf(o) { assets_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return assets_call_builder_getPrototypeOf(o); }
25597
+ function assets_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) assets_call_builder_setPrototypeOf(subClass, superClass); }
25598
+ function assets_call_builder_setPrototypeOf(o, p) { assets_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return assets_call_builder_setPrototypeOf(o, p); }
25109
25599
 
25110
25600
  var AssetsCallBuilder = function (_CallBuilder) {
25111
25601
  assets_call_builder_inherits(AssetsCallBuilder, _CallBuilder);
25112
- var _super = assets_call_builder_createSuper(AssetsCallBuilder);
25113
25602
  function AssetsCallBuilder(serverUrl) {
25114
25603
  var _this;
25115
25604
  assets_call_builder_classCallCheck(this, AssetsCallBuilder);
25116
- _this = _super.call(this, serverUrl);
25605
+ _this = assets_call_builder_callSuper(this, AssetsCallBuilder, [serverUrl]);
25117
25606
  _this.url.segment("assets");
25118
25607
  return _this;
25119
25608
  }
@@ -25137,23 +25626,22 @@ function claimable_balances_call_builder_typeof(o) { "@babel/helpers - typeof";
25137
25626
  function claimable_balances_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25138
25627
  function claimable_balances_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, claimable_balances_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25139
25628
  function claimable_balances_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) claimable_balances_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) claimable_balances_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25140
- function claimable_balances_call_builder_toPropertyKey(arg) { var key = claimable_balances_call_builder_toPrimitive(arg, "string"); return claimable_balances_call_builder_typeof(key) === "symbol" ? key : String(key); }
25141
- function claimable_balances_call_builder_toPrimitive(input, hint) { if (claimable_balances_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (claimable_balances_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25142
- function claimable_balances_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) claimable_balances_call_builder_setPrototypeOf(subClass, superClass); }
25143
- function claimable_balances_call_builder_setPrototypeOf(o, p) { claimable_balances_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return claimable_balances_call_builder_setPrototypeOf(o, p); }
25144
- function claimable_balances_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = claimable_balances_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = claimable_balances_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = claimable_balances_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return claimable_balances_call_builder_possibleConstructorReturn(this, result); }; }
25629
+ function claimable_balances_call_builder_toPropertyKey(t) { var i = claimable_balances_call_builder_toPrimitive(t, "string"); return "symbol" == claimable_balances_call_builder_typeof(i) ? i : String(i); }
25630
+ function claimable_balances_call_builder_toPrimitive(t, r) { if ("object" != claimable_balances_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != claimable_balances_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25631
+ function claimable_balances_call_builder_callSuper(t, o, e) { return o = claimable_balances_call_builder_getPrototypeOf(o), claimable_balances_call_builder_possibleConstructorReturn(t, claimable_balances_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], claimable_balances_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25145
25632
  function claimable_balances_call_builder_possibleConstructorReturn(self, call) { if (call && (claimable_balances_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return claimable_balances_call_builder_assertThisInitialized(self); }
25146
25633
  function claimable_balances_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25147
- function claimable_balances_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25634
+ function claimable_balances_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (claimable_balances_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25148
25635
  function claimable_balances_call_builder_getPrototypeOf(o) { claimable_balances_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return claimable_balances_call_builder_getPrototypeOf(o); }
25636
+ function claimable_balances_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) claimable_balances_call_builder_setPrototypeOf(subClass, superClass); }
25637
+ function claimable_balances_call_builder_setPrototypeOf(o, p) { claimable_balances_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return claimable_balances_call_builder_setPrototypeOf(o, p); }
25149
25638
 
25150
25639
  var ClaimableBalanceCallBuilder = function (_CallBuilder) {
25151
25640
  claimable_balances_call_builder_inherits(ClaimableBalanceCallBuilder, _CallBuilder);
25152
- var _super = claimable_balances_call_builder_createSuper(ClaimableBalanceCallBuilder);
25153
25641
  function ClaimableBalanceCallBuilder(serverUrl) {
25154
25642
  var _this;
25155
25643
  claimable_balances_call_builder_classCallCheck(this, ClaimableBalanceCallBuilder);
25156
- _this = _super.call(this, serverUrl);
25644
+ _this = claimable_balances_call_builder_callSuper(this, ClaimableBalanceCallBuilder, [serverUrl]);
25157
25645
  _this.url.segment("claimable_balances");
25158
25646
  return _this;
25159
25647
  }
@@ -25190,23 +25678,22 @@ function effect_call_builder_typeof(o) { "@babel/helpers - typeof"; return effec
25190
25678
  function effect_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25191
25679
  function effect_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, effect_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25192
25680
  function effect_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) effect_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) effect_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25193
- function effect_call_builder_toPropertyKey(arg) { var key = effect_call_builder_toPrimitive(arg, "string"); return effect_call_builder_typeof(key) === "symbol" ? key : String(key); }
25194
- function effect_call_builder_toPrimitive(input, hint) { if (effect_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (effect_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25195
- function effect_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) effect_call_builder_setPrototypeOf(subClass, superClass); }
25196
- function effect_call_builder_setPrototypeOf(o, p) { effect_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return effect_call_builder_setPrototypeOf(o, p); }
25197
- function effect_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = effect_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = effect_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = effect_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return effect_call_builder_possibleConstructorReturn(this, result); }; }
25681
+ function effect_call_builder_toPropertyKey(t) { var i = effect_call_builder_toPrimitive(t, "string"); return "symbol" == effect_call_builder_typeof(i) ? i : String(i); }
25682
+ function effect_call_builder_toPrimitive(t, r) { if ("object" != effect_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != effect_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25683
+ function effect_call_builder_callSuper(t, o, e) { return o = effect_call_builder_getPrototypeOf(o), effect_call_builder_possibleConstructorReturn(t, effect_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], effect_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25198
25684
  function effect_call_builder_possibleConstructorReturn(self, call) { if (call && (effect_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return effect_call_builder_assertThisInitialized(self); }
25199
25685
  function effect_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25200
- function effect_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25686
+ function effect_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (effect_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25201
25687
  function effect_call_builder_getPrototypeOf(o) { effect_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return effect_call_builder_getPrototypeOf(o); }
25688
+ function effect_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) effect_call_builder_setPrototypeOf(subClass, superClass); }
25689
+ function effect_call_builder_setPrototypeOf(o, p) { effect_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return effect_call_builder_setPrototypeOf(o, p); }
25202
25690
 
25203
25691
  var EffectCallBuilder = function (_CallBuilder) {
25204
25692
  effect_call_builder_inherits(EffectCallBuilder, _CallBuilder);
25205
- var _super = effect_call_builder_createSuper(EffectCallBuilder);
25206
25693
  function EffectCallBuilder(serverUrl) {
25207
25694
  var _this;
25208
25695
  effect_call_builder_classCallCheck(this, EffectCallBuilder);
25209
- _this = _super.call(this, serverUrl, "effects");
25696
+ _this = effect_call_builder_callSuper(this, EffectCallBuilder, [serverUrl, "effects"]);
25210
25697
  _this.url.segment("effects");
25211
25698
  return _this;
25212
25699
  }
@@ -25242,24 +25729,23 @@ var EffectCallBuilder = function (_CallBuilder) {
25242
25729
  function friendbot_builder_typeof(o) { "@babel/helpers - typeof"; return friendbot_builder_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; }, friendbot_builder_typeof(o); }
25243
25730
  function friendbot_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, friendbot_builder_toPropertyKey(descriptor.key), descriptor); } }
25244
25731
  function friendbot_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) friendbot_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) friendbot_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25245
- function friendbot_builder_toPropertyKey(arg) { var key = friendbot_builder_toPrimitive(arg, "string"); return friendbot_builder_typeof(key) === "symbol" ? key : String(key); }
25246
- function friendbot_builder_toPrimitive(input, hint) { if (friendbot_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (friendbot_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25732
+ function friendbot_builder_toPropertyKey(t) { var i = friendbot_builder_toPrimitive(t, "string"); return "symbol" == friendbot_builder_typeof(i) ? i : String(i); }
25733
+ function friendbot_builder_toPrimitive(t, r) { if ("object" != friendbot_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != friendbot_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25247
25734
  function friendbot_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25248
- function friendbot_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) friendbot_builder_setPrototypeOf(subClass, superClass); }
25249
- function friendbot_builder_setPrototypeOf(o, p) { friendbot_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return friendbot_builder_setPrototypeOf(o, p); }
25250
- function friendbot_builder_createSuper(Derived) { var hasNativeReflectConstruct = friendbot_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = friendbot_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = friendbot_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return friendbot_builder_possibleConstructorReturn(this, result); }; }
25735
+ function friendbot_builder_callSuper(t, o, e) { return o = friendbot_builder_getPrototypeOf(o), friendbot_builder_possibleConstructorReturn(t, friendbot_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], friendbot_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25251
25736
  function friendbot_builder_possibleConstructorReturn(self, call) { if (call && (friendbot_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return friendbot_builder_assertThisInitialized(self); }
25252
25737
  function friendbot_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25253
- function friendbot_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25738
+ function friendbot_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (friendbot_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25254
25739
  function friendbot_builder_getPrototypeOf(o) { friendbot_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return friendbot_builder_getPrototypeOf(o); }
25740
+ function friendbot_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) friendbot_builder_setPrototypeOf(subClass, superClass); }
25741
+ function friendbot_builder_setPrototypeOf(o, p) { friendbot_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return friendbot_builder_setPrototypeOf(o, p); }
25255
25742
 
25256
25743
  var FriendbotBuilder = function (_CallBuilder) {
25257
25744
  friendbot_builder_inherits(FriendbotBuilder, _CallBuilder);
25258
- var _super = friendbot_builder_createSuper(FriendbotBuilder);
25259
25745
  function FriendbotBuilder(serverUrl, address) {
25260
25746
  var _this;
25261
25747
  friendbot_builder_classCallCheck(this, FriendbotBuilder);
25262
- _this = _super.call(this, serverUrl);
25748
+ _this = friendbot_builder_callSuper(this, FriendbotBuilder, [serverUrl]);
25263
25749
  _this.url.segment("friendbot");
25264
25750
  _this.url.setQuery("addr", address);
25265
25751
  return _this;
@@ -25271,23 +25757,22 @@ function ledger_call_builder_typeof(o) { "@babel/helpers - typeof"; return ledge
25271
25757
  function ledger_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25272
25758
  function ledger_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, ledger_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25273
25759
  function ledger_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) ledger_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) ledger_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25274
- function ledger_call_builder_toPropertyKey(arg) { var key = ledger_call_builder_toPrimitive(arg, "string"); return ledger_call_builder_typeof(key) === "symbol" ? key : String(key); }
25275
- function ledger_call_builder_toPrimitive(input, hint) { if (ledger_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (ledger_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25276
- function ledger_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) ledger_call_builder_setPrototypeOf(subClass, superClass); }
25277
- function ledger_call_builder_setPrototypeOf(o, p) { ledger_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return ledger_call_builder_setPrototypeOf(o, p); }
25278
- function ledger_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = ledger_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = ledger_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = ledger_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return ledger_call_builder_possibleConstructorReturn(this, result); }; }
25760
+ function ledger_call_builder_toPropertyKey(t) { var i = ledger_call_builder_toPrimitive(t, "string"); return "symbol" == ledger_call_builder_typeof(i) ? i : String(i); }
25761
+ function ledger_call_builder_toPrimitive(t, r) { if ("object" != ledger_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != ledger_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25762
+ function ledger_call_builder_callSuper(t, o, e) { return o = ledger_call_builder_getPrototypeOf(o), ledger_call_builder_possibleConstructorReturn(t, ledger_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], ledger_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25279
25763
  function ledger_call_builder_possibleConstructorReturn(self, call) { if (call && (ledger_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return ledger_call_builder_assertThisInitialized(self); }
25280
25764
  function ledger_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25281
- function ledger_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25765
+ function ledger_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (ledger_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25282
25766
  function ledger_call_builder_getPrototypeOf(o) { ledger_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return ledger_call_builder_getPrototypeOf(o); }
25767
+ function ledger_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) ledger_call_builder_setPrototypeOf(subClass, superClass); }
25768
+ function ledger_call_builder_setPrototypeOf(o, p) { ledger_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return ledger_call_builder_setPrototypeOf(o, p); }
25283
25769
 
25284
25770
  var LedgerCallBuilder = function (_CallBuilder) {
25285
25771
  ledger_call_builder_inherits(LedgerCallBuilder, _CallBuilder);
25286
- var _super = ledger_call_builder_createSuper(LedgerCallBuilder);
25287
25772
  function LedgerCallBuilder(serverUrl) {
25288
25773
  var _this;
25289
25774
  ledger_call_builder_classCallCheck(this, LedgerCallBuilder);
25290
- _this = _super.call(this, serverUrl);
25775
+ _this = ledger_call_builder_callSuper(this, LedgerCallBuilder, [serverUrl]);
25291
25776
  _this.url.segment("ledgers");
25292
25777
  return _this;
25293
25778
  }
@@ -25305,23 +25790,22 @@ function liquidity_pool_call_builder_typeof(o) { "@babel/helpers - typeof"; retu
25305
25790
  function liquidity_pool_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25306
25791
  function liquidity_pool_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, liquidity_pool_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25307
25792
  function liquidity_pool_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) liquidity_pool_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) liquidity_pool_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25308
- function liquidity_pool_call_builder_toPropertyKey(arg) { var key = liquidity_pool_call_builder_toPrimitive(arg, "string"); return liquidity_pool_call_builder_typeof(key) === "symbol" ? key : String(key); }
25309
- function liquidity_pool_call_builder_toPrimitive(input, hint) { if (liquidity_pool_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (liquidity_pool_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25310
- function liquidity_pool_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) liquidity_pool_call_builder_setPrototypeOf(subClass, superClass); }
25311
- function liquidity_pool_call_builder_setPrototypeOf(o, p) { liquidity_pool_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return liquidity_pool_call_builder_setPrototypeOf(o, p); }
25312
- function liquidity_pool_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = liquidity_pool_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = liquidity_pool_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = liquidity_pool_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return liquidity_pool_call_builder_possibleConstructorReturn(this, result); }; }
25793
+ function liquidity_pool_call_builder_toPropertyKey(t) { var i = liquidity_pool_call_builder_toPrimitive(t, "string"); return "symbol" == liquidity_pool_call_builder_typeof(i) ? i : String(i); }
25794
+ function liquidity_pool_call_builder_toPrimitive(t, r) { if ("object" != liquidity_pool_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != liquidity_pool_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25795
+ function liquidity_pool_call_builder_callSuper(t, o, e) { return o = liquidity_pool_call_builder_getPrototypeOf(o), liquidity_pool_call_builder_possibleConstructorReturn(t, liquidity_pool_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], liquidity_pool_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25313
25796
  function liquidity_pool_call_builder_possibleConstructorReturn(self, call) { if (call && (liquidity_pool_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return liquidity_pool_call_builder_assertThisInitialized(self); }
25314
25797
  function liquidity_pool_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25315
- function liquidity_pool_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25798
+ function liquidity_pool_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (liquidity_pool_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25316
25799
  function liquidity_pool_call_builder_getPrototypeOf(o) { liquidity_pool_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return liquidity_pool_call_builder_getPrototypeOf(o); }
25800
+ function liquidity_pool_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) liquidity_pool_call_builder_setPrototypeOf(subClass, superClass); }
25801
+ function liquidity_pool_call_builder_setPrototypeOf(o, p) { liquidity_pool_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return liquidity_pool_call_builder_setPrototypeOf(o, p); }
25317
25802
 
25318
25803
  var LiquidityPoolCallBuilder = function (_CallBuilder) {
25319
25804
  liquidity_pool_call_builder_inherits(LiquidityPoolCallBuilder, _CallBuilder);
25320
- var _super = liquidity_pool_call_builder_createSuper(LiquidityPoolCallBuilder);
25321
25805
  function LiquidityPoolCallBuilder(serverUrl) {
25322
25806
  var _this;
25323
25807
  liquidity_pool_call_builder_classCallCheck(this, LiquidityPoolCallBuilder);
25324
- _this = _super.call(this, serverUrl);
25808
+ _this = liquidity_pool_call_builder_callSuper(this, LiquidityPoolCallBuilder, [serverUrl]);
25325
25809
  _this.url.segment("liquidity_pools");
25326
25810
  return _this;
25327
25811
  }
@@ -25361,23 +25845,22 @@ function offer_call_builder_typeof(o) { "@babel/helpers - typeof"; return offer_
25361
25845
  function offer_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25362
25846
  function offer_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, offer_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25363
25847
  function offer_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) offer_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) offer_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25364
- function offer_call_builder_toPropertyKey(arg) { var key = offer_call_builder_toPrimitive(arg, "string"); return offer_call_builder_typeof(key) === "symbol" ? key : String(key); }
25365
- function offer_call_builder_toPrimitive(input, hint) { if (offer_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (offer_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25366
- function offer_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) offer_call_builder_setPrototypeOf(subClass, superClass); }
25367
- function offer_call_builder_setPrototypeOf(o, p) { offer_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return offer_call_builder_setPrototypeOf(o, p); }
25368
- function offer_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = offer_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = offer_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = offer_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return offer_call_builder_possibleConstructorReturn(this, result); }; }
25848
+ function offer_call_builder_toPropertyKey(t) { var i = offer_call_builder_toPrimitive(t, "string"); return "symbol" == offer_call_builder_typeof(i) ? i : String(i); }
25849
+ function offer_call_builder_toPrimitive(t, r) { if ("object" != offer_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != offer_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25850
+ function offer_call_builder_callSuper(t, o, e) { return o = offer_call_builder_getPrototypeOf(o), offer_call_builder_possibleConstructorReturn(t, offer_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], offer_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25369
25851
  function offer_call_builder_possibleConstructorReturn(self, call) { if (call && (offer_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return offer_call_builder_assertThisInitialized(self); }
25370
25852
  function offer_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25371
- function offer_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25853
+ function offer_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (offer_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25372
25854
  function offer_call_builder_getPrototypeOf(o) { offer_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return offer_call_builder_getPrototypeOf(o); }
25855
+ function offer_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) offer_call_builder_setPrototypeOf(subClass, superClass); }
25856
+ function offer_call_builder_setPrototypeOf(o, p) { offer_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return offer_call_builder_setPrototypeOf(o, p); }
25373
25857
 
25374
25858
  var OfferCallBuilder = function (_CallBuilder) {
25375
25859
  offer_call_builder_inherits(OfferCallBuilder, _CallBuilder);
25376
- var _super = offer_call_builder_createSuper(OfferCallBuilder);
25377
25860
  function OfferCallBuilder(serverUrl) {
25378
25861
  var _this;
25379
25862
  offer_call_builder_classCallCheck(this, OfferCallBuilder);
25380
- _this = _super.call(this, serverUrl, "offers");
25863
+ _this = offer_call_builder_callSuper(this, OfferCallBuilder, [serverUrl, "offers"]);
25381
25864
  _this.url.segment("offers");
25382
25865
  return _this;
25383
25866
  }
@@ -25437,23 +25920,22 @@ function operation_call_builder_typeof(o) { "@babel/helpers - typeof"; return op
25437
25920
  function operation_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25438
25921
  function operation_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, operation_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25439
25922
  function operation_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) operation_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) operation_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25440
- function operation_call_builder_toPropertyKey(arg) { var key = operation_call_builder_toPrimitive(arg, "string"); return operation_call_builder_typeof(key) === "symbol" ? key : String(key); }
25441
- function operation_call_builder_toPrimitive(input, hint) { if (operation_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (operation_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25442
- function operation_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) operation_call_builder_setPrototypeOf(subClass, superClass); }
25443
- function operation_call_builder_setPrototypeOf(o, p) { operation_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return operation_call_builder_setPrototypeOf(o, p); }
25444
- function operation_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = operation_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = operation_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = operation_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return operation_call_builder_possibleConstructorReturn(this, result); }; }
25923
+ function operation_call_builder_toPropertyKey(t) { var i = operation_call_builder_toPrimitive(t, "string"); return "symbol" == operation_call_builder_typeof(i) ? i : String(i); }
25924
+ function operation_call_builder_toPrimitive(t, r) { if ("object" != operation_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != operation_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25925
+ function operation_call_builder_callSuper(t, o, e) { return o = operation_call_builder_getPrototypeOf(o), operation_call_builder_possibleConstructorReturn(t, operation_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], operation_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25445
25926
  function operation_call_builder_possibleConstructorReturn(self, call) { if (call && (operation_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return operation_call_builder_assertThisInitialized(self); }
25446
25927
  function operation_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25447
- function operation_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25928
+ function operation_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (operation_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25448
25929
  function operation_call_builder_getPrototypeOf(o) { operation_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return operation_call_builder_getPrototypeOf(o); }
25930
+ function operation_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) operation_call_builder_setPrototypeOf(subClass, superClass); }
25931
+ function operation_call_builder_setPrototypeOf(o, p) { operation_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return operation_call_builder_setPrototypeOf(o, p); }
25449
25932
 
25450
25933
  var OperationCallBuilder = function (_CallBuilder) {
25451
25934
  operation_call_builder_inherits(OperationCallBuilder, _CallBuilder);
25452
- var _super = operation_call_builder_createSuper(OperationCallBuilder);
25453
25935
  function OperationCallBuilder(serverUrl) {
25454
25936
  var _this;
25455
25937
  operation_call_builder_classCallCheck(this, OperationCallBuilder);
25456
- _this = _super.call(this, serverUrl, "operations");
25938
+ _this = operation_call_builder_callSuper(this, OperationCallBuilder, [serverUrl, "operations"]);
25457
25939
  _this.url.segment("operations");
25458
25940
  return _this;
25459
25941
  }
@@ -25502,24 +25984,23 @@ var OperationCallBuilder = function (_CallBuilder) {
25502
25984
  function orderbook_call_builder_typeof(o) { "@babel/helpers - typeof"; return orderbook_call_builder_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; }, orderbook_call_builder_typeof(o); }
25503
25985
  function orderbook_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, orderbook_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25504
25986
  function orderbook_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) orderbook_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) orderbook_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25505
- function orderbook_call_builder_toPropertyKey(arg) { var key = orderbook_call_builder_toPrimitive(arg, "string"); return orderbook_call_builder_typeof(key) === "symbol" ? key : String(key); }
25506
- function orderbook_call_builder_toPrimitive(input, hint) { if (orderbook_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (orderbook_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25987
+ function orderbook_call_builder_toPropertyKey(t) { var i = orderbook_call_builder_toPrimitive(t, "string"); return "symbol" == orderbook_call_builder_typeof(i) ? i : String(i); }
25988
+ function orderbook_call_builder_toPrimitive(t, r) { if ("object" != orderbook_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != orderbook_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25507
25989
  function orderbook_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25508
- function orderbook_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) orderbook_call_builder_setPrototypeOf(subClass, superClass); }
25509
- function orderbook_call_builder_setPrototypeOf(o, p) { orderbook_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return orderbook_call_builder_setPrototypeOf(o, p); }
25510
- function orderbook_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = orderbook_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = orderbook_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = orderbook_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return orderbook_call_builder_possibleConstructorReturn(this, result); }; }
25990
+ function orderbook_call_builder_callSuper(t, o, e) { return o = orderbook_call_builder_getPrototypeOf(o), orderbook_call_builder_possibleConstructorReturn(t, orderbook_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], orderbook_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25511
25991
  function orderbook_call_builder_possibleConstructorReturn(self, call) { if (call && (orderbook_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return orderbook_call_builder_assertThisInitialized(self); }
25512
25992
  function orderbook_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25513
- function orderbook_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25993
+ function orderbook_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (orderbook_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25514
25994
  function orderbook_call_builder_getPrototypeOf(o) { orderbook_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return orderbook_call_builder_getPrototypeOf(o); }
25995
+ function orderbook_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) orderbook_call_builder_setPrototypeOf(subClass, superClass); }
25996
+ function orderbook_call_builder_setPrototypeOf(o, p) { orderbook_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return orderbook_call_builder_setPrototypeOf(o, p); }
25515
25997
 
25516
25998
  var OrderbookCallBuilder = function (_CallBuilder) {
25517
25999
  orderbook_call_builder_inherits(OrderbookCallBuilder, _CallBuilder);
25518
- var _super = orderbook_call_builder_createSuper(OrderbookCallBuilder);
25519
26000
  function OrderbookCallBuilder(serverUrl, selling, buying) {
25520
26001
  var _this;
25521
26002
  orderbook_call_builder_classCallCheck(this, OrderbookCallBuilder);
25522
- _this = _super.call(this, serverUrl);
26003
+ _this = orderbook_call_builder_callSuper(this, OrderbookCallBuilder, [serverUrl]);
25523
26004
  _this.url.segment("order_book");
25524
26005
  if (!selling.isNative()) {
25525
26006
  _this.url.setQuery("selling_asset_type", selling.getAssetType());
@@ -25544,23 +26025,22 @@ function payment_call_builder_typeof(o) { "@babel/helpers - typeof"; return paym
25544
26025
  function payment_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25545
26026
  function payment_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, payment_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25546
26027
  function payment_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) payment_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) payment_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25547
- function payment_call_builder_toPropertyKey(arg) { var key = payment_call_builder_toPrimitive(arg, "string"); return payment_call_builder_typeof(key) === "symbol" ? key : String(key); }
25548
- function payment_call_builder_toPrimitive(input, hint) { if (payment_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (payment_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25549
- function payment_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) payment_call_builder_setPrototypeOf(subClass, superClass); }
25550
- function payment_call_builder_setPrototypeOf(o, p) { payment_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return payment_call_builder_setPrototypeOf(o, p); }
25551
- function payment_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = payment_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = payment_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = payment_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return payment_call_builder_possibleConstructorReturn(this, result); }; }
26028
+ function payment_call_builder_toPropertyKey(t) { var i = payment_call_builder_toPrimitive(t, "string"); return "symbol" == payment_call_builder_typeof(i) ? i : String(i); }
26029
+ function payment_call_builder_toPrimitive(t, r) { if ("object" != payment_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != payment_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
26030
+ function payment_call_builder_callSuper(t, o, e) { return o = payment_call_builder_getPrototypeOf(o), payment_call_builder_possibleConstructorReturn(t, payment_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], payment_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25552
26031
  function payment_call_builder_possibleConstructorReturn(self, call) { if (call && (payment_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return payment_call_builder_assertThisInitialized(self); }
25553
26032
  function payment_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25554
- function payment_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26033
+ function payment_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (payment_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25555
26034
  function payment_call_builder_getPrototypeOf(o) { payment_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return payment_call_builder_getPrototypeOf(o); }
26035
+ function payment_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) payment_call_builder_setPrototypeOf(subClass, superClass); }
26036
+ function payment_call_builder_setPrototypeOf(o, p) { payment_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return payment_call_builder_setPrototypeOf(o, p); }
25556
26037
 
25557
26038
  var PaymentCallBuilder = function (_CallBuilder) {
25558
26039
  payment_call_builder_inherits(PaymentCallBuilder, _CallBuilder);
25559
- var _super = payment_call_builder_createSuper(PaymentCallBuilder);
25560
26040
  function PaymentCallBuilder(serverUrl) {
25561
26041
  var _this;
25562
26042
  payment_call_builder_classCallCheck(this, PaymentCallBuilder);
25563
- _this = _super.call(this, serverUrl, "payments");
26043
+ _this = payment_call_builder_callSuper(this, PaymentCallBuilder, [serverUrl, "payments"]);
25564
26044
  _this.url.segment("payments");
25565
26045
  return _this;
25566
26046
  }
@@ -25586,24 +26066,23 @@ var PaymentCallBuilder = function (_CallBuilder) {
25586
26066
  function strict_receive_path_call_builder_typeof(o) { "@babel/helpers - typeof"; return strict_receive_path_call_builder_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; }, strict_receive_path_call_builder_typeof(o); }
25587
26067
  function strict_receive_path_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, strict_receive_path_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25588
26068
  function strict_receive_path_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) strict_receive_path_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) strict_receive_path_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25589
- function strict_receive_path_call_builder_toPropertyKey(arg) { var key = strict_receive_path_call_builder_toPrimitive(arg, "string"); return strict_receive_path_call_builder_typeof(key) === "symbol" ? key : String(key); }
25590
- function strict_receive_path_call_builder_toPrimitive(input, hint) { if (strict_receive_path_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (strict_receive_path_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
26069
+ function strict_receive_path_call_builder_toPropertyKey(t) { var i = strict_receive_path_call_builder_toPrimitive(t, "string"); return "symbol" == strict_receive_path_call_builder_typeof(i) ? i : String(i); }
26070
+ function strict_receive_path_call_builder_toPrimitive(t, r) { if ("object" != strict_receive_path_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != strict_receive_path_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25591
26071
  function strict_receive_path_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25592
- function strict_receive_path_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) strict_receive_path_call_builder_setPrototypeOf(subClass, superClass); }
25593
- function strict_receive_path_call_builder_setPrototypeOf(o, p) { strict_receive_path_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return strict_receive_path_call_builder_setPrototypeOf(o, p); }
25594
- function strict_receive_path_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = strict_receive_path_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = strict_receive_path_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = strict_receive_path_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return strict_receive_path_call_builder_possibleConstructorReturn(this, result); }; }
26072
+ function strict_receive_path_call_builder_callSuper(t, o, e) { return o = strict_receive_path_call_builder_getPrototypeOf(o), strict_receive_path_call_builder_possibleConstructorReturn(t, strict_receive_path_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], strict_receive_path_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25595
26073
  function strict_receive_path_call_builder_possibleConstructorReturn(self, call) { if (call && (strict_receive_path_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return strict_receive_path_call_builder_assertThisInitialized(self); }
25596
26074
  function strict_receive_path_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25597
- function strict_receive_path_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26075
+ function strict_receive_path_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (strict_receive_path_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25598
26076
  function strict_receive_path_call_builder_getPrototypeOf(o) { strict_receive_path_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return strict_receive_path_call_builder_getPrototypeOf(o); }
26077
+ function strict_receive_path_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) strict_receive_path_call_builder_setPrototypeOf(subClass, superClass); }
26078
+ function strict_receive_path_call_builder_setPrototypeOf(o, p) { strict_receive_path_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return strict_receive_path_call_builder_setPrototypeOf(o, p); }
25599
26079
 
25600
26080
  var StrictReceivePathCallBuilder = function (_CallBuilder) {
25601
26081
  strict_receive_path_call_builder_inherits(StrictReceivePathCallBuilder, _CallBuilder);
25602
- var _super = strict_receive_path_call_builder_createSuper(StrictReceivePathCallBuilder);
25603
26082
  function StrictReceivePathCallBuilder(serverUrl, source, destinationAsset, destinationAmount) {
25604
26083
  var _this;
25605
26084
  strict_receive_path_call_builder_classCallCheck(this, StrictReceivePathCallBuilder);
25606
- _this = _super.call(this, serverUrl);
26085
+ _this = strict_receive_path_call_builder_callSuper(this, StrictReceivePathCallBuilder, [serverUrl]);
25607
26086
  _this.url.segment("paths/strict-receive");
25608
26087
  if (typeof source === "string") {
25609
26088
  _this.url.setQuery("source_account", source);
@@ -25632,24 +26111,23 @@ var StrictReceivePathCallBuilder = function (_CallBuilder) {
25632
26111
  function strict_send_path_call_builder_typeof(o) { "@babel/helpers - typeof"; return strict_send_path_call_builder_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; }, strict_send_path_call_builder_typeof(o); }
25633
26112
  function strict_send_path_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, strict_send_path_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25634
26113
  function strict_send_path_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) strict_send_path_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) strict_send_path_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25635
- function strict_send_path_call_builder_toPropertyKey(arg) { var key = strict_send_path_call_builder_toPrimitive(arg, "string"); return strict_send_path_call_builder_typeof(key) === "symbol" ? key : String(key); }
25636
- function strict_send_path_call_builder_toPrimitive(input, hint) { if (strict_send_path_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (strict_send_path_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
26114
+ function strict_send_path_call_builder_toPropertyKey(t) { var i = strict_send_path_call_builder_toPrimitive(t, "string"); return "symbol" == strict_send_path_call_builder_typeof(i) ? i : String(i); }
26115
+ function strict_send_path_call_builder_toPrimitive(t, r) { if ("object" != strict_send_path_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != strict_send_path_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25637
26116
  function strict_send_path_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25638
- function strict_send_path_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) strict_send_path_call_builder_setPrototypeOf(subClass, superClass); }
25639
- function strict_send_path_call_builder_setPrototypeOf(o, p) { strict_send_path_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return strict_send_path_call_builder_setPrototypeOf(o, p); }
25640
- function strict_send_path_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = strict_send_path_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = strict_send_path_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = strict_send_path_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return strict_send_path_call_builder_possibleConstructorReturn(this, result); }; }
26117
+ function strict_send_path_call_builder_callSuper(t, o, e) { return o = strict_send_path_call_builder_getPrototypeOf(o), strict_send_path_call_builder_possibleConstructorReturn(t, strict_send_path_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], strict_send_path_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25641
26118
  function strict_send_path_call_builder_possibleConstructorReturn(self, call) { if (call && (strict_send_path_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return strict_send_path_call_builder_assertThisInitialized(self); }
25642
26119
  function strict_send_path_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25643
- function strict_send_path_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26120
+ function strict_send_path_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (strict_send_path_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25644
26121
  function strict_send_path_call_builder_getPrototypeOf(o) { strict_send_path_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return strict_send_path_call_builder_getPrototypeOf(o); }
26122
+ function strict_send_path_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) strict_send_path_call_builder_setPrototypeOf(subClass, superClass); }
26123
+ function strict_send_path_call_builder_setPrototypeOf(o, p) { strict_send_path_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return strict_send_path_call_builder_setPrototypeOf(o, p); }
25645
26124
 
25646
26125
  var StrictSendPathCallBuilder = function (_CallBuilder) {
25647
26126
  strict_send_path_call_builder_inherits(StrictSendPathCallBuilder, _CallBuilder);
25648
- var _super = strict_send_path_call_builder_createSuper(StrictSendPathCallBuilder);
25649
26127
  function StrictSendPathCallBuilder(serverUrl, sourceAsset, sourceAmount, destination) {
25650
26128
  var _this;
25651
26129
  strict_send_path_call_builder_classCallCheck(this, StrictSendPathCallBuilder);
25652
- _this = _super.call(this, serverUrl);
26130
+ _this = strict_send_path_call_builder_callSuper(this, StrictSendPathCallBuilder, [serverUrl]);
25653
26131
  _this.url.segment("paths/strict-send");
25654
26132
  if (sourceAsset.isNative()) {
25655
26133
  _this.url.setQuery("source_asset_type", "native");
@@ -25679,25 +26157,24 @@ function trade_aggregation_call_builder_typeof(o) { "@babel/helpers - typeof"; r
25679
26157
  function trade_aggregation_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25680
26158
  function trade_aggregation_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, trade_aggregation_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25681
26159
  function trade_aggregation_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) trade_aggregation_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) trade_aggregation_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25682
- function trade_aggregation_call_builder_toPropertyKey(arg) { var key = trade_aggregation_call_builder_toPrimitive(arg, "string"); return trade_aggregation_call_builder_typeof(key) === "symbol" ? key : String(key); }
25683
- function trade_aggregation_call_builder_toPrimitive(input, hint) { if (trade_aggregation_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (trade_aggregation_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25684
- function trade_aggregation_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) trade_aggregation_call_builder_setPrototypeOf(subClass, superClass); }
25685
- function trade_aggregation_call_builder_setPrototypeOf(o, p) { trade_aggregation_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return trade_aggregation_call_builder_setPrototypeOf(o, p); }
25686
- function trade_aggregation_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = trade_aggregation_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = trade_aggregation_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = trade_aggregation_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return trade_aggregation_call_builder_possibleConstructorReturn(this, result); }; }
26160
+ function trade_aggregation_call_builder_toPropertyKey(t) { var i = trade_aggregation_call_builder_toPrimitive(t, "string"); return "symbol" == trade_aggregation_call_builder_typeof(i) ? i : String(i); }
26161
+ function trade_aggregation_call_builder_toPrimitive(t, r) { if ("object" != trade_aggregation_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != trade_aggregation_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
26162
+ function trade_aggregation_call_builder_callSuper(t, o, e) { return o = trade_aggregation_call_builder_getPrototypeOf(o), trade_aggregation_call_builder_possibleConstructorReturn(t, trade_aggregation_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], trade_aggregation_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25687
26163
  function trade_aggregation_call_builder_possibleConstructorReturn(self, call) { if (call && (trade_aggregation_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return trade_aggregation_call_builder_assertThisInitialized(self); }
25688
26164
  function trade_aggregation_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25689
- function trade_aggregation_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26165
+ function trade_aggregation_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (trade_aggregation_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25690
26166
  function trade_aggregation_call_builder_getPrototypeOf(o) { trade_aggregation_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return trade_aggregation_call_builder_getPrototypeOf(o); }
26167
+ function trade_aggregation_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) trade_aggregation_call_builder_setPrototypeOf(subClass, superClass); }
26168
+ function trade_aggregation_call_builder_setPrototypeOf(o, p) { trade_aggregation_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return trade_aggregation_call_builder_setPrototypeOf(o, p); }
25691
26169
 
25692
26170
 
25693
26171
  var allowedResolutions = [60000, 300000, 900000, 3600000, 86400000, 604800000];
25694
26172
  var TradeAggregationCallBuilder = function (_CallBuilder) {
25695
26173
  trade_aggregation_call_builder_inherits(TradeAggregationCallBuilder, _CallBuilder);
25696
- var _super = trade_aggregation_call_builder_createSuper(TradeAggregationCallBuilder);
25697
26174
  function TradeAggregationCallBuilder(serverUrl, base, counter, start_time, end_time, resolution, offset) {
25698
26175
  var _this;
25699
26176
  trade_aggregation_call_builder_classCallCheck(this, TradeAggregationCallBuilder);
25700
- _this = _super.call(this, serverUrl);
26177
+ _this = trade_aggregation_call_builder_callSuper(this, TradeAggregationCallBuilder, [serverUrl]);
25701
26178
  _this.url.segment("trade_aggregations");
25702
26179
  if (!base.isNative()) {
25703
26180
  _this.url.setQuery("base_asset_type", base.getAssetType());
@@ -25756,23 +26233,22 @@ function trades_call_builder_typeof(o) { "@babel/helpers - typeof"; return trade
25756
26233
  function trades_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25757
26234
  function trades_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, trades_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25758
26235
  function trades_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) trades_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) trades_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25759
- function trades_call_builder_toPropertyKey(arg) { var key = trades_call_builder_toPrimitive(arg, "string"); return trades_call_builder_typeof(key) === "symbol" ? key : String(key); }
25760
- function trades_call_builder_toPrimitive(input, hint) { if (trades_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (trades_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25761
- function trades_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) trades_call_builder_setPrototypeOf(subClass, superClass); }
25762
- function trades_call_builder_setPrototypeOf(o, p) { trades_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return trades_call_builder_setPrototypeOf(o, p); }
25763
- function trades_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = trades_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = trades_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = trades_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return trades_call_builder_possibleConstructorReturn(this, result); }; }
26236
+ function trades_call_builder_toPropertyKey(t) { var i = trades_call_builder_toPrimitive(t, "string"); return "symbol" == trades_call_builder_typeof(i) ? i : String(i); }
26237
+ function trades_call_builder_toPrimitive(t, r) { if ("object" != trades_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != trades_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
26238
+ function trades_call_builder_callSuper(t, o, e) { return o = trades_call_builder_getPrototypeOf(o), trades_call_builder_possibleConstructorReturn(t, trades_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], trades_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25764
26239
  function trades_call_builder_possibleConstructorReturn(self, call) { if (call && (trades_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return trades_call_builder_assertThisInitialized(self); }
25765
26240
  function trades_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25766
- function trades_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26241
+ function trades_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (trades_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25767
26242
  function trades_call_builder_getPrototypeOf(o) { trades_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return trades_call_builder_getPrototypeOf(o); }
26243
+ function trades_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) trades_call_builder_setPrototypeOf(subClass, superClass); }
26244
+ function trades_call_builder_setPrototypeOf(o, p) { trades_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return trades_call_builder_setPrototypeOf(o, p); }
25768
26245
 
25769
26246
  var TradesCallBuilder = function (_CallBuilder) {
25770
26247
  trades_call_builder_inherits(TradesCallBuilder, _CallBuilder);
25771
- var _super = trades_call_builder_createSuper(TradesCallBuilder);
25772
26248
  function TradesCallBuilder(serverUrl) {
25773
26249
  var _this;
25774
26250
  trades_call_builder_classCallCheck(this, TradesCallBuilder);
25775
- _this = _super.call(this, serverUrl, "trades");
26251
+ _this = trades_call_builder_callSuper(this, TradesCallBuilder, [serverUrl, "trades"]);
25776
26252
  _this.url.segment("trades");
25777
26253
  return _this;
25778
26254
  }
@@ -25825,23 +26301,22 @@ function transaction_call_builder_typeof(o) { "@babel/helpers - typeof"; return
25825
26301
  function transaction_call_builder_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25826
26302
  function transaction_call_builder_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, transaction_call_builder_toPropertyKey(descriptor.key), descriptor); } }
25827
26303
  function transaction_call_builder_createClass(Constructor, protoProps, staticProps) { if (protoProps) transaction_call_builder_defineProperties(Constructor.prototype, protoProps); if (staticProps) transaction_call_builder_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25828
- function transaction_call_builder_toPropertyKey(arg) { var key = transaction_call_builder_toPrimitive(arg, "string"); return transaction_call_builder_typeof(key) === "symbol" ? key : String(key); }
25829
- function transaction_call_builder_toPrimitive(input, hint) { if (transaction_call_builder_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (transaction_call_builder_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25830
- function transaction_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) transaction_call_builder_setPrototypeOf(subClass, superClass); }
25831
- function transaction_call_builder_setPrototypeOf(o, p) { transaction_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return transaction_call_builder_setPrototypeOf(o, p); }
25832
- function transaction_call_builder_createSuper(Derived) { var hasNativeReflectConstruct = transaction_call_builder_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = transaction_call_builder_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = transaction_call_builder_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return transaction_call_builder_possibleConstructorReturn(this, result); }; }
26304
+ function transaction_call_builder_toPropertyKey(t) { var i = transaction_call_builder_toPrimitive(t, "string"); return "symbol" == transaction_call_builder_typeof(i) ? i : String(i); }
26305
+ function transaction_call_builder_toPrimitive(t, r) { if ("object" != transaction_call_builder_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != transaction_call_builder_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
26306
+ function transaction_call_builder_callSuper(t, o, e) { return o = transaction_call_builder_getPrototypeOf(o), transaction_call_builder_possibleConstructorReturn(t, transaction_call_builder_isNativeReflectConstruct() ? Reflect.construct(o, e || [], transaction_call_builder_getPrototypeOf(t).constructor) : o.apply(t, e)); }
25833
26307
  function transaction_call_builder_possibleConstructorReturn(self, call) { if (call && (transaction_call_builder_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return transaction_call_builder_assertThisInitialized(self); }
25834
26308
  function transaction_call_builder_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25835
- function transaction_call_builder_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26309
+ function transaction_call_builder_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (transaction_call_builder_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25836
26310
  function transaction_call_builder_getPrototypeOf(o) { transaction_call_builder_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return transaction_call_builder_getPrototypeOf(o); }
26311
+ function transaction_call_builder_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) transaction_call_builder_setPrototypeOf(subClass, superClass); }
26312
+ function transaction_call_builder_setPrototypeOf(o, p) { transaction_call_builder_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return transaction_call_builder_setPrototypeOf(o, p); }
25837
26313
 
25838
26314
  var TransactionCallBuilder = function (_CallBuilder) {
25839
26315
  transaction_call_builder_inherits(TransactionCallBuilder, _CallBuilder);
25840
- var _super = transaction_call_builder_createSuper(TransactionCallBuilder);
25841
26316
  function TransactionCallBuilder(serverUrl) {
25842
26317
  var _this;
25843
26318
  transaction_call_builder_classCallCheck(this, TransactionCallBuilder);
25844
- _this = _super.call(this, serverUrl, "transactions");
26319
+ _this = transaction_call_builder_callSuper(this, TransactionCallBuilder, [serverUrl, "transactions"]);
25845
26320
  _this.url.segment("transactions");
25846
26321
  return _this;
25847
26322
  }
@@ -25889,8 +26364,8 @@ function server_asyncToGenerator(fn) { return function () { var self = this, arg
25889
26364
  function server_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25890
26365
  function server_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, server_toPropertyKey(descriptor.key), descriptor); } }
25891
26366
  function server_createClass(Constructor, protoProps, staticProps) { if (protoProps) server_defineProperties(Constructor.prototype, protoProps); if (staticProps) server_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25892
- function server_toPropertyKey(arg) { var key = server_toPrimitive(arg, "string"); return server_typeof(key) === "symbol" ? key : String(key); }
25893
- function server_toPrimitive(input, hint) { if (server_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (server_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
26367
+ function server_toPropertyKey(t) { var i = server_toPrimitive(t, "string"); return "symbol" == server_typeof(i) ? i : String(i); }
26368
+ function server_toPrimitive(t, r) { if ("object" != server_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != server_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25894
26369
 
25895
26370
 
25896
26371
 
@@ -26604,16 +27079,22 @@ function parsers_typeof(o) { "@babel/helpers - typeof"; return parsers_typeof =
26604
27079
  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; }
26605
27080
  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) { _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; }
26606
27081
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26607
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return parsers_typeof(key) === "symbol" ? key : String(key); }
26608
- function _toPrimitive(input, hint) { if (parsers_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (parsers_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
27082
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == parsers_typeof(i) ? i : String(i); }
27083
+ function _toPrimitive(t, r) { if ("object" != parsers_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != parsers_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
26609
27084
 
26610
27085
 
26611
27086
  function parseRawSendTransaction(r) {
26612
- var errResult = r.errorResultXdr;
27087
+ var errorResultXdr = r.errorResultXdr,
27088
+ diagnosticEventsXdr = r.diagnosticEventsXdr;
26613
27089
  delete r.errorResultXdr;
26614
- if (!!errResult) {
26615
- return _objectSpread(_objectSpread({}, r), {}, {
26616
- errorResult: lib.xdr.TransactionResult.fromXDR(errResult, 'base64')
27090
+ delete r.diagnosticEventsXdr;
27091
+ if (!!errorResultXdr) {
27092
+ return _objectSpread(_objectSpread(_objectSpread({}, r), diagnosticEventsXdr !== undefined && diagnosticEventsXdr.length > 0 && {
27093
+ diagnosticEvents: diagnosticEventsXdr.map(function (evt) {
27094
+ return lib.xdr.DiagnosticEvent.fromXDR(evt, 'base64');
27095
+ })
27096
+ }), {}, {
27097
+ errorResult: lib.xdr.TransactionResult.fromXDR(errorResultXdr, 'base64')
26617
27098
  });
26618
27099
  }
26619
27100
  return _objectSpread({}, r);
@@ -26766,8 +27247,8 @@ function server_asyncToGenerator(fn) { return function () { var self = this, arg
26766
27247
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26767
27248
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, server_toPropertyKey(descriptor.key), descriptor); } }
26768
27249
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26769
- function server_toPropertyKey(arg) { var key = server_toPrimitive(arg, "string"); return server_typeof(key) === "symbol" ? key : String(key); }
26770
- function server_toPrimitive(input, hint) { if (server_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (server_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
27250
+ function server_toPropertyKey(t) { var i = server_toPrimitive(t, "string"); return "symbol" == server_typeof(i) ? i : String(i); }
27251
+ function server_toPrimitive(t, r) { if ("object" != server_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != server_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
26771
27252
 
26772
27253
 
26773
27254
 
@@ -27131,18 +27612,18 @@ var Server = function () {
27131
27612
  }, {
27132
27613
  key: "simulateTransaction",
27133
27614
  value: (function () {
27134
- var _simulateTransaction2 = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee12(transaction) {
27615
+ var _simulateTransaction2 = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee12(tx, addlResources) {
27135
27616
  return server_regeneratorRuntime().wrap(function _callee12$(_context12) {
27136
27617
  while (1) switch (_context12.prev = _context12.next) {
27137
27618
  case 0:
27138
- return _context12.abrupt("return", this._simulateTransaction(transaction).then(parseRawSimulation));
27619
+ return _context12.abrupt("return", this._simulateTransaction(tx, addlResources).then(parseRawSimulation));
27139
27620
  case 1:
27140
27621
  case "end":
27141
27622
  return _context12.stop();
27142
27623
  }
27143
27624
  }, _callee12, this);
27144
27625
  }));
27145
- function simulateTransaction(_x8) {
27626
+ function simulateTransaction(_x8, _x9) {
27146
27627
  return _simulateTransaction2.apply(this, arguments);
27147
27628
  }
27148
27629
  return simulateTransaction;
@@ -27150,18 +27631,24 @@ var Server = function () {
27150
27631
  }, {
27151
27632
  key: "_simulateTransaction",
27152
27633
  value: function () {
27153
- var _simulateTransaction3 = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee13(transaction) {
27634
+ var _simulateTransaction3 = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee13(transaction, addlResources) {
27154
27635
  return server_regeneratorRuntime().wrap(function _callee13$(_context13) {
27155
27636
  while (1) switch (_context13.prev = _context13.next) {
27156
27637
  case 0:
27157
- return _context13.abrupt("return", post(this.serverURL.toString(), 'simulateTransaction', transaction.toXDR()));
27638
+ return _context13.abrupt("return", postObject(this.serverURL.toString(), 'simulateTransaction', server_objectSpread({
27639
+ transaction: transaction.toXDR()
27640
+ }, addlResources !== undefined && {
27641
+ resourceConfig: {
27642
+ instructionLeeway: addlResources.cpuInstructions
27643
+ }
27644
+ })));
27158
27645
  case 1:
27159
27646
  case "end":
27160
27647
  return _context13.stop();
27161
27648
  }
27162
27649
  }, _callee13, this);
27163
27650
  }));
27164
- function _simulateTransaction(_x9) {
27651
+ function _simulateTransaction(_x10, _x11) {
27165
27652
  return _simulateTransaction3.apply(this, arguments);
27166
27653
  }
27167
27654
  return _simulateTransaction;
@@ -27191,7 +27678,7 @@ var Server = function () {
27191
27678
  }
27192
27679
  }, _callee14, this);
27193
27680
  }));
27194
- function prepareTransaction(_x10) {
27681
+ function prepareTransaction(_x12) {
27195
27682
  return _prepareTransaction.apply(this, arguments);
27196
27683
  }
27197
27684
  return prepareTransaction;
@@ -27210,7 +27697,7 @@ var Server = function () {
27210
27697
  }
27211
27698
  }, _callee15, this);
27212
27699
  }));
27213
- function sendTransaction(_x11) {
27700
+ function sendTransaction(_x13) {
27214
27701
  return _sendTransaction2.apply(this, arguments);
27215
27702
  }
27216
27703
  return sendTransaction;
@@ -27229,7 +27716,7 @@ var Server = function () {
27229
27716
  }
27230
27717
  }, _callee16, this);
27231
27718
  }));
27232
- function _sendTransaction(_x12) {
27719
+ function _sendTransaction(_x14) {
27233
27720
  return _sendTransaction3.apply(this, arguments);
27234
27721
  }
27235
27722
  return _sendTransaction;
@@ -27288,7 +27775,7 @@ var Server = function () {
27288
27775
  }
27289
27776
  }, _callee17, this, [[9, 18]]);
27290
27777
  }));
27291
- function requestAirdrop(_x13, _x14) {
27778
+ function requestAirdrop(_x15, _x16) {
27292
27779
  return _requestAirdrop.apply(this, arguments);
27293
27780
  }
27294
27781
  return requestAirdrop;
@@ -27374,8 +27861,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
27374
27861
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27375
27862
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
27376
27863
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27377
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27378
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
27864
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
27865
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
27379
27866
 
27380
27867
 
27381
27868
 
@@ -27452,8 +27939,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
27452
27939
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27453
27940
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
27454
27941
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27455
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27456
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
27942
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
27943
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
27457
27944
  var Utils = function () {
27458
27945
  function Utils() {
27459
27946
  _classCallCheck(this, Utils);
@@ -27506,27 +27993,26 @@ var utils = __webpack_require__(1557);
27506
27993
  function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
27507
27994
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
27508
27995
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27509
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27510
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
27996
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
27997
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
27511
27998
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27512
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27513
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
27999
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
27514
28000
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27515
28001
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28002
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27516
28003
  function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
27517
- function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
27518
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
28004
+ function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
28005
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
27519
28006
  function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
27520
28007
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27521
28008
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
27522
28009
  var InvalidChallengeError = function (_Error) {
27523
28010
  _inherits(InvalidChallengeError, _Error);
27524
- var _super = _createSuper(InvalidChallengeError);
27525
28011
  function InvalidChallengeError(message) {
27526
28012
  var _this;
27527
28013
  _classCallCheck(this, InvalidChallengeError);
27528
28014
  var trueProto = (this instanceof InvalidChallengeError ? this.constructor : void 0).prototype;
27529
- _this = _super.call(this, message);
28015
+ _this = _callSuper(this, InvalidChallengeError, [message]);
27530
28016
  _this.__proto__ = trueProto;
27531
28017
  _this.constructor = InvalidChallengeError;
27532
28018
  _this.name = "InvalidChallengeError";
@@ -54289,6 +54775,9 @@ function arrayToObject(arr) {
54289
54775
  function formDataToJSON(formData) {
54290
54776
  function buildPath(path, value, target, index) {
54291
54777
  let name = path[index++];
54778
+
54779
+ if (name === '__proto__') return true;
54780
+
54292
54781
  const isNumericKey = Number.isFinite(+name);
54293
54782
  const isLast = index >= path.length;
54294
54783
  name = !name && utils.isArray(target) ? target.length : name;
@@ -55016,7 +55505,7 @@ function isAbsoluteURL(url) {
55016
55505
  */
55017
55506
  function combineURLs(baseURL, relativeURL) {
55018
55507
  return relativeURL
55019
- ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
55508
+ ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
55020
55509
  : baseURL;
55021
55510
  }
55022
55511
 
@@ -55710,7 +56199,7 @@ function mergeConfig(config1, config2) {
55710
56199
  }
55711
56200
 
55712
56201
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/env/data.js
55713
- const VERSION = "1.6.2";
56202
+ const VERSION = "1.6.5";
55714
56203
  ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/validator.js
55715
56204
 
55716
56205
 
@@ -56347,7 +56836,7 @@ axios.default = axios;
56347
56836
  /***/ ((module) => {
56348
56837
 
56349
56838
  "use strict";
56350
- module.exports = {"i8":"11.0.1"};
56839
+ module.exports = {"i8":"11.2.0"};
56351
56840
 
56352
56841
  /***/ })
56353
56842