@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), {}, {
@@ -21451,6 +21451,7 @@ function stringToScVal(str, ty) {
21451
21451
  case stellar_base_min.xdr.ScSpecType.scSpecTypeSymbol().value:
21452
21452
  return stellar_base_min.xdr.ScVal.scvSymbol(str);
21453
21453
  case stellar_base_min.xdr.ScSpecType.scSpecTypeAddress().value:
21454
+ case stellar_base_min.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
21454
21455
  return stellar_base_min.Address.fromString(str).toScVal();
21455
21456
  case stellar_base_min.xdr.ScSpecType.scSpecTypeU64().value:
21456
21457
  return new stellar_base_min.XdrLargeInt("u64", str).toScVal();
@@ -21523,6 +21524,11 @@ var PRIMITIVE_DEFINITONS = {
21523
21524
  format: "address",
21524
21525
  description: "Address can be a public key or contract id"
21525
21526
  },
21527
+ MuxedAddress: {
21528
+ type: "string",
21529
+ format: "address",
21530
+ description: "Stellar public key with M prefix combining a G address and unique ID"
21531
+ },
21526
21532
  ScString: {
21527
21533
  type: "string",
21528
21534
  description: "ScString is a string"
@@ -21585,19 +21591,13 @@ function typeRef(typeDef) {
21585
21591
  }
21586
21592
  case stellar_base_min.xdr.ScSpecType.scSpecTypeTimepoint().value:
21587
21593
  {
21594
+ ref = "Timepoint";
21588
21595
  throw new Error("Timepoint type not supported");
21589
- // removed by dead control flow
21590
-
21591
- // removed by dead control flow
21592
-
21593
21596
  }
21594
21597
  case stellar_base_min.xdr.ScSpecType.scSpecTypeDuration().value:
21595
21598
  {
21599
+ ref = "Duration";
21596
21600
  throw new Error("Duration not supported");
21597
- // removed by dead control flow
21598
-
21599
- // removed by dead control flow
21600
-
21601
21601
  }
21602
21602
  case stellar_base_min.xdr.ScSpecType.scSpecTypeU128().value:
21603
21603
  {
@@ -21639,6 +21639,11 @@ function typeRef(typeDef) {
21639
21639
  ref = "Address";
21640
21640
  break;
21641
21641
  }
21642
+ case stellar_base_min.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
21643
+ {
21644
+ ref = "MuxedAddress";
21645
+ break;
21646
+ }
21642
21647
  case stellar_base_min.xdr.ScSpecType.scSpecTypeOption().value:
21643
21648
  {
21644
21649
  var opt = typeDef.option();
@@ -31142,7 +31147,7 @@ function horizon_axios_client_toPropertyKey(t) { var i = horizon_axios_client_to
31142
31147
  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); }
31143
31148
 
31144
31149
 
31145
- var version = "14.3.2";
31150
+ var version = "14.3.3";
31146
31151
  var SERVER_TIME_MAP = {};
31147
31152
  function toSeconds(ms) {
31148
31153
  return Math.floor(ms / 1000);