@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.
@@ -88,6 +88,7 @@ function stringToScVal(str, ty) {
88
88
  case _stellarBase.xdr.ScSpecType.scSpecTypeSymbol().value:
89
89
  return _stellarBase.xdr.ScVal.scvSymbol(str);
90
90
  case _stellarBase.xdr.ScSpecType.scSpecTypeAddress().value:
91
+ case _stellarBase.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
91
92
  return _stellarBase.Address.fromString(str).toScVal();
92
93
  case _stellarBase.xdr.ScSpecType.scSpecTypeU64().value:
93
94
  return new _stellarBase.XdrLargeInt("u64", str).toScVal();
@@ -160,6 +161,11 @@ var PRIMITIVE_DEFINITONS = {
160
161
  format: "address",
161
162
  description: "Address can be a public key or contract id"
162
163
  },
164
+ MuxedAddress: {
165
+ type: "string",
166
+ format: "address",
167
+ description: "Stellar public key with M prefix combining a G address and unique ID"
168
+ },
163
169
  ScString: {
164
170
  type: "string",
165
171
  description: "ScString is a string"
@@ -222,15 +228,13 @@ function typeRef(typeDef) {
222
228
  }
223
229
  case _stellarBase.xdr.ScSpecType.scSpecTypeTimepoint().value:
224
230
  {
225
- throw new Error("Timepoint type not supported");
226
231
  ref = "Timepoint";
227
- break;
232
+ throw new Error("Timepoint type not supported");
228
233
  }
229
234
  case _stellarBase.xdr.ScSpecType.scSpecTypeDuration().value:
230
235
  {
231
- throw new Error("Duration not supported");
232
236
  ref = "Duration";
233
- break;
237
+ throw new Error("Duration not supported");
234
238
  }
235
239
  case _stellarBase.xdr.ScSpecType.scSpecTypeU128().value:
236
240
  {
@@ -272,6 +276,11 @@ function typeRef(typeDef) {
272
276
  ref = "Address";
273
277
  break;
274
278
  }
279
+ case _stellarBase.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
280
+ {
281
+ ref = "MuxedAddress";
282
+ break;
283
+ }
275
284
  case _stellarBase.xdr.ScSpecType.scSpecTypeOption().value:
276
285
  {
277
286
  var opt = typeDef.option();
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); }
19
- var version = exports.version = "14.3.2";
19
+ var version = exports.version = "14.3.3";
20
20
  var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
21
21
  function toSeconds(ms) {
22
22
  return Math.floor(ms / 1000);
@@ -88,6 +88,7 @@ function stringToScVal(str, ty) {
88
88
  case _stellarBase.xdr.ScSpecType.scSpecTypeSymbol().value:
89
89
  return _stellarBase.xdr.ScVal.scvSymbol(str);
90
90
  case _stellarBase.xdr.ScSpecType.scSpecTypeAddress().value:
91
+ case _stellarBase.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
91
92
  return _stellarBase.Address.fromString(str).toScVal();
92
93
  case _stellarBase.xdr.ScSpecType.scSpecTypeU64().value:
93
94
  return new _stellarBase.XdrLargeInt("u64", str).toScVal();
@@ -160,6 +161,11 @@ var PRIMITIVE_DEFINITONS = {
160
161
  format: "address",
161
162
  description: "Address can be a public key or contract id"
162
163
  },
164
+ MuxedAddress: {
165
+ type: "string",
166
+ format: "address",
167
+ description: "Stellar public key with M prefix combining a G address and unique ID"
168
+ },
163
169
  ScString: {
164
170
  type: "string",
165
171
  description: "ScString is a string"
@@ -222,15 +228,13 @@ function typeRef(typeDef) {
222
228
  }
223
229
  case _stellarBase.xdr.ScSpecType.scSpecTypeTimepoint().value:
224
230
  {
225
- throw new Error("Timepoint type not supported");
226
231
  ref = "Timepoint";
227
- break;
232
+ throw new Error("Timepoint type not supported");
228
233
  }
229
234
  case _stellarBase.xdr.ScSpecType.scSpecTypeDuration().value:
230
235
  {
231
- throw new Error("Duration not supported");
232
236
  ref = "Duration";
233
- break;
237
+ throw new Error("Duration not supported");
234
238
  }
235
239
  case _stellarBase.xdr.ScSpecType.scSpecTypeU128().value:
236
240
  {
@@ -272,6 +276,11 @@ function typeRef(typeDef) {
272
276
  ref = "Address";
273
277
  break;
274
278
  }
279
+ case _stellarBase.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
280
+ {
281
+ ref = "MuxedAddress";
282
+ break;
283
+ }
275
284
  case _stellarBase.xdr.ScSpecType.scSpecTypeOption().value:
276
285
  {
277
286
  var opt = typeDef.option();
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); }
19
- var version = exports.version = "14.3.2";
19
+ var version = exports.version = "14.3.3";
20
20
  var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
21
21
  function toSeconds(ms) {
22
22
  return Math.floor(ms / 1000);
@@ -12,7 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  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); }
15
- var version = exports.version = "14.3.2";
15
+ var version = exports.version = "14.3.3";
16
16
  function createHttpClient(headers) {
17
17
  return (0, _httpClient.create)({
18
18
  headers: _objectSpread(_objectSpread({}, headers), {}, {
@@ -88,6 +88,7 @@ function stringToScVal(str, ty) {
88
88
  case _stellarBase.xdr.ScSpecType.scSpecTypeSymbol().value:
89
89
  return _stellarBase.xdr.ScVal.scvSymbol(str);
90
90
  case _stellarBase.xdr.ScSpecType.scSpecTypeAddress().value:
91
+ case _stellarBase.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
91
92
  return _stellarBase.Address.fromString(str).toScVal();
92
93
  case _stellarBase.xdr.ScSpecType.scSpecTypeU64().value:
93
94
  return new _stellarBase.XdrLargeInt("u64", str).toScVal();
@@ -160,6 +161,11 @@ var PRIMITIVE_DEFINITONS = {
160
161
  format: "address",
161
162
  description: "Address can be a public key or contract id"
162
163
  },
164
+ MuxedAddress: {
165
+ type: "string",
166
+ format: "address",
167
+ description: "Stellar public key with M prefix combining a G address and unique ID"
168
+ },
163
169
  ScString: {
164
170
  type: "string",
165
171
  description: "ScString is a string"
@@ -222,15 +228,13 @@ function typeRef(typeDef) {
222
228
  }
223
229
  case _stellarBase.xdr.ScSpecType.scSpecTypeTimepoint().value:
224
230
  {
225
- throw new Error("Timepoint type not supported");
226
231
  ref = "Timepoint";
227
- break;
232
+ throw new Error("Timepoint type not supported");
228
233
  }
229
234
  case _stellarBase.xdr.ScSpecType.scSpecTypeDuration().value:
230
235
  {
231
- throw new Error("Duration not supported");
232
236
  ref = "Duration";
233
- break;
237
+ throw new Error("Duration not supported");
234
238
  }
235
239
  case _stellarBase.xdr.ScSpecType.scSpecTypeU128().value:
236
240
  {
@@ -272,6 +276,11 @@ function typeRef(typeDef) {
272
276
  ref = "Address";
273
277
  break;
274
278
  }
279
+ case _stellarBase.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
280
+ {
281
+ ref = "MuxedAddress";
282
+ break;
283
+ }
275
284
  case _stellarBase.xdr.ScSpecType.scSpecTypeOption().value:
276
285
  {
277
286
  var opt = typeDef.option();
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); }
19
- var version = exports.version = "14.3.2";
19
+ var version = exports.version = "14.3.3";
20
20
  var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
21
21
  function toSeconds(ms) {
22
22
  return Math.floor(ms / 1000);
@@ -12,7 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  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); }
15
- var version = exports.version = "14.3.2";
15
+ var version = exports.version = "14.3.3";
16
16
  function createHttpClient(headers) {
17
17
  return (0, _httpClient.create)({
18
18
  headers: _objectSpread(_objectSpread({}, headers), {}, {
@@ -88,6 +88,7 @@ function stringToScVal(str, ty) {
88
88
  case _stellarBase.xdr.ScSpecType.scSpecTypeSymbol().value:
89
89
  return _stellarBase.xdr.ScVal.scvSymbol(str);
90
90
  case _stellarBase.xdr.ScSpecType.scSpecTypeAddress().value:
91
+ case _stellarBase.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
91
92
  return _stellarBase.Address.fromString(str).toScVal();
92
93
  case _stellarBase.xdr.ScSpecType.scSpecTypeU64().value:
93
94
  return new _stellarBase.XdrLargeInt("u64", str).toScVal();
@@ -160,6 +161,11 @@ var PRIMITIVE_DEFINITONS = {
160
161
  format: "address",
161
162
  description: "Address can be a public key or contract id"
162
163
  },
164
+ MuxedAddress: {
165
+ type: "string",
166
+ format: "address",
167
+ description: "Stellar public key with M prefix combining a G address and unique ID"
168
+ },
163
169
  ScString: {
164
170
  type: "string",
165
171
  description: "ScString is a string"
@@ -222,15 +228,13 @@ function typeRef(typeDef) {
222
228
  }
223
229
  case _stellarBase.xdr.ScSpecType.scSpecTypeTimepoint().value:
224
230
  {
225
- throw new Error("Timepoint type not supported");
226
231
  ref = "Timepoint";
227
- break;
232
+ throw new Error("Timepoint type not supported");
228
233
  }
229
234
  case _stellarBase.xdr.ScSpecType.scSpecTypeDuration().value:
230
235
  {
231
- throw new Error("Duration not supported");
232
236
  ref = "Duration";
233
- break;
237
+ throw new Error("Duration not supported");
234
238
  }
235
239
  case _stellarBase.xdr.ScSpecType.scSpecTypeU128().value:
236
240
  {
@@ -272,6 +276,11 @@ function typeRef(typeDef) {
272
276
  ref = "Address";
273
277
  break;
274
278
  }
279
+ case _stellarBase.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
280
+ {
281
+ ref = "MuxedAddress";
282
+ break;
283
+ }
275
284
  case _stellarBase.xdr.ScSpecType.scSpecTypeOption().value:
276
285
  {
277
286
  var opt = typeDef.option();
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); }
19
- var version = exports.version = "14.3.2";
19
+ var version = exports.version = "14.3.3";
20
20
  var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
21
21
  function toSeconds(ms) {
22
22
  return Math.floor(ms / 1000);
@@ -12,7 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  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); }
15
- var version = exports.version = "14.3.2";
15
+ var version = exports.version = "14.3.3";
16
16
  function createHttpClient(headers) {
17
17
  return (0, _httpClient.create)({
18
18
  headers: _objectSpread(_objectSpread({}, headers), {}, {
package/lib/rpc/axios.js CHANGED
@@ -12,7 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  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); }
15
- var version = exports.version = "14.3.2";
15
+ var version = exports.version = "14.3.3";
16
16
  function createHttpClient(headers) {
17
17
  return (0, _httpClient.create)({
18
18
  headers: _objectSpread(_objectSpread({}, headers), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar/stellar-sdk",
3
- "version": "14.3.2",
3
+ "version": "14.3.3",
4
4
  "description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
5
5
  "keywords": [
6
6
  "stellar"