@stellar/stellar-sdk 14.3.2 → 14.3.3

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.
@@ -4917,7 +4917,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
4917
4917
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
4918
4918
  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); }
4919
4919
 
4920
- var version = "14.3.2";
4920
+ var version = "14.3.3";
4921
4921
  function createHttpClient(headers) {
4922
4922
  return (0,http_client/* create */.vt)({
4923
4923
  headers: _objectSpread(_objectSpread({}, headers), {}, {
@@ -17343,6 +17343,7 @@ function stringToScVal(str, ty) {
17343
17343
  case stellar_base_min.xdr.ScSpecType.scSpecTypeSymbol().value:
17344
17344
  return stellar_base_min.xdr.ScVal.scvSymbol(str);
17345
17345
  case stellar_base_min.xdr.ScSpecType.scSpecTypeAddress().value:
17346
+ case stellar_base_min.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
17346
17347
  return stellar_base_min.Address.fromString(str).toScVal();
17347
17348
  case stellar_base_min.xdr.ScSpecType.scSpecTypeU64().value:
17348
17349
  return new stellar_base_min.XdrLargeInt("u64", str).toScVal();
@@ -17415,6 +17416,11 @@ var PRIMITIVE_DEFINITONS = {
17415
17416
  format: "address",
17416
17417
  description: "Address can be a public key or contract id"
17417
17418
  },
17419
+ MuxedAddress: {
17420
+ type: "string",
17421
+ format: "address",
17422
+ description: "Stellar public key with M prefix combining a G address and unique ID"
17423
+ },
17418
17424
  ScString: {
17419
17425
  type: "string",
17420
17426
  description: "ScString is a string"
@@ -17477,19 +17483,13 @@ function typeRef(typeDef) {
17477
17483
  }
17478
17484
  case stellar_base_min.xdr.ScSpecType.scSpecTypeTimepoint().value:
17479
17485
  {
17486
+ ref = "Timepoint";
17480
17487
  throw new Error("Timepoint type not supported");
17481
- // removed by dead control flow
17482
-
17483
- // removed by dead control flow
17484
-
17485
17488
  }
17486
17489
  case stellar_base_min.xdr.ScSpecType.scSpecTypeDuration().value:
17487
17490
  {
17491
+ ref = "Duration";
17488
17492
  throw new Error("Duration not supported");
17489
- // removed by dead control flow
17490
-
17491
- // removed by dead control flow
17492
-
17493
17493
  }
17494
17494
  case stellar_base_min.xdr.ScSpecType.scSpecTypeU128().value:
17495
17495
  {
@@ -17531,6 +17531,11 @@ function typeRef(typeDef) {
17531
17531
  ref = "Address";
17532
17532
  break;
17533
17533
  }
17534
+ case stellar_base_min.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
17535
+ {
17536
+ ref = "MuxedAddress";
17537
+ break;
17538
+ }
17534
17539
  case stellar_base_min.xdr.ScSpecType.scSpecTypeOption().value:
17535
17540
  {
17536
17541
  var opt = typeDef.option();
@@ -27056,7 +27061,7 @@ function horizon_axios_client_toPropertyKey(t) { var i = horizon_axios_client_to
27056
27061
  function horizon_axios_client_toPrimitive(t, r) { if ("object" != horizon_axios_client_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != horizon_axios_client_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
27057
27062
 
27058
27063
 
27059
- var version = "14.3.2";
27064
+ var version = "14.3.3";
27060
27065
  var SERVER_TIME_MAP = {};
27061
27066
  function toSeconds(ms) {
27062
27067
  return Math.floor(ms / 1000);