@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.
- package/CHANGELOG.md +5 -0
- package/dist/stellar-sdk-minimal.js +15 -10
- package/dist/stellar-sdk-minimal.min.js +1 -1
- package/dist/stellar-sdk-no-axios.js +15 -10
- package/dist/stellar-sdk-no-axios.min.js +1 -1
- package/dist/stellar-sdk-no-eventsource.js +15 -10
- package/dist/stellar-sdk-no-eventsource.min.js +1 -1
- package/dist/stellar-sdk.js +15 -10
- package/dist/stellar-sdk.min.js +1 -1
- package/lib/contract/spec.js +13 -4
- package/lib/horizon/horizon_axios_client.js +1 -1
- package/lib/minimal/contract/spec.js +13 -4
- package/lib/minimal/horizon/horizon_axios_client.js +1 -1
- package/lib/minimal/rpc/axios.js +1 -1
- package/lib/no-axios/contract/spec.js +13 -4
- package/lib/no-axios/horizon/horizon_axios_client.js +1 -1
- package/lib/no-axios/rpc/axios.js +1 -1
- package/lib/no-eventsource/contract/spec.js +13 -4
- package/lib/no-eventsource/horizon/horizon_axios_client.js +1 -1
- package/lib/no-eventsource/rpc/axios.js +1 -1
- package/lib/rpc/axios.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ A breaking change will get clearly marked in this log.
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## [v14.3.3](https://github.com/stellar/js-stellar-sdk/compare/v14.3.2...v14.3.3)
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
* `Spec.nativeToScVal` supports parsing Muxed Address([#1274](https://github.com/stellar/js-stellar-sdk/pull/1274)),
|
|
13
|
+
|
|
9
14
|
## [v14.3.2](https://github.com/stellar/js-stellar-sdk/compare/v14.3.1...v14.3.2)
|
|
10
15
|
|
|
11
16
|
### Added
|
|
@@ -6692,6 +6692,7 @@ function stringToScVal(str, ty) {
|
|
|
6692
6692
|
case stellar_base_min.xdr.ScSpecType.scSpecTypeSymbol().value:
|
|
6693
6693
|
return stellar_base_min.xdr.ScVal.scvSymbol(str);
|
|
6694
6694
|
case stellar_base_min.xdr.ScSpecType.scSpecTypeAddress().value:
|
|
6695
|
+
case stellar_base_min.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
|
|
6695
6696
|
return stellar_base_min.Address.fromString(str).toScVal();
|
|
6696
6697
|
case stellar_base_min.xdr.ScSpecType.scSpecTypeU64().value:
|
|
6697
6698
|
return new stellar_base_min.XdrLargeInt("u64", str).toScVal();
|
|
@@ -6764,6 +6765,11 @@ var PRIMITIVE_DEFINITONS = {
|
|
|
6764
6765
|
format: "address",
|
|
6765
6766
|
description: "Address can be a public key or contract id"
|
|
6766
6767
|
},
|
|
6768
|
+
MuxedAddress: {
|
|
6769
|
+
type: "string",
|
|
6770
|
+
format: "address",
|
|
6771
|
+
description: "Stellar public key with M prefix combining a G address and unique ID"
|
|
6772
|
+
},
|
|
6767
6773
|
ScString: {
|
|
6768
6774
|
type: "string",
|
|
6769
6775
|
description: "ScString is a string"
|
|
@@ -6826,19 +6832,13 @@ function typeRef(typeDef) {
|
|
|
6826
6832
|
}
|
|
6827
6833
|
case stellar_base_min.xdr.ScSpecType.scSpecTypeTimepoint().value:
|
|
6828
6834
|
{
|
|
6835
|
+
ref = "Timepoint";
|
|
6829
6836
|
throw new Error("Timepoint type not supported");
|
|
6830
|
-
// removed by dead control flow
|
|
6831
|
-
|
|
6832
|
-
// removed by dead control flow
|
|
6833
|
-
|
|
6834
6837
|
}
|
|
6835
6838
|
case stellar_base_min.xdr.ScSpecType.scSpecTypeDuration().value:
|
|
6836
6839
|
{
|
|
6840
|
+
ref = "Duration";
|
|
6837
6841
|
throw new Error("Duration not supported");
|
|
6838
|
-
// removed by dead control flow
|
|
6839
|
-
|
|
6840
|
-
// removed by dead control flow
|
|
6841
|
-
|
|
6842
6842
|
}
|
|
6843
6843
|
case stellar_base_min.xdr.ScSpecType.scSpecTypeU128().value:
|
|
6844
6844
|
{
|
|
@@ -6880,6 +6880,11 @@ function typeRef(typeDef) {
|
|
|
6880
6880
|
ref = "Address";
|
|
6881
6881
|
break;
|
|
6882
6882
|
}
|
|
6883
|
+
case stellar_base_min.xdr.ScSpecType.scSpecTypeMuxedAddress().value:
|
|
6884
|
+
{
|
|
6885
|
+
ref = "MuxedAddress";
|
|
6886
|
+
break;
|
|
6887
|
+
}
|
|
6883
6888
|
case stellar_base_min.xdr.ScSpecType.scSpecTypeOption().value:
|
|
6884
6889
|
{
|
|
6885
6890
|
var opt = typeDef.option();
|
|
@@ -9150,7 +9155,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
9150
9155
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9151
9156
|
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); }
|
|
9152
9157
|
|
|
9153
|
-
var version = "14.3.
|
|
9158
|
+
var version = "14.3.3";
|
|
9154
9159
|
function createHttpClient(headers) {
|
|
9155
9160
|
return (0,http_client/* create */.vt)({
|
|
9156
9161
|
headers: _objectSpread(_objectSpread({}, headers), {}, {
|
|
@@ -18189,7 +18194,7 @@ function horizon_axios_client_toPropertyKey(t) { var i = horizon_axios_client_to
|
|
|
18189
18194
|
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); }
|
|
18190
18195
|
|
|
18191
18196
|
|
|
18192
|
-
var version = "14.3.
|
|
18197
|
+
var version = "14.3.3";
|
|
18193
18198
|
var SERVER_TIME_MAP = {};
|
|
18194
18199
|
function toSeconds(ms) {
|
|
18195
18200
|
return Math.floor(ms / 1000);
|