@stellar/stellar-base 11.0.0 → 11.0.1
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 +7 -0
- package/dist/stellar-base.js +375 -369
- package/dist/stellar-base.min.js +1 -1
- package/lib/account.js +2 -3
- package/lib/address.js +2 -3
- package/lib/asset.js +2 -3
- package/lib/auth.js +1 -1
- package/lib/claimant.js +2 -3
- package/lib/contract.js +2 -3
- package/lib/events.js +1 -1
- package/lib/fee_bump_transaction.js +3 -4
- package/lib/generated/curr_generated.js +1 -1
- package/lib/generated/next_generated.js +1 -1
- package/lib/keypair.js +2 -3
- package/lib/liquidity_pool_asset.js +2 -3
- package/lib/liquidity_pool_id.js +2 -3
- package/lib/memo.js +2 -3
- package/lib/muxed_account.js +2 -3
- package/lib/numbers/int128.js +3 -4
- package/lib/numbers/int256.js +3 -4
- package/lib/numbers/sc_int.js +2 -2
- package/lib/numbers/uint128.js +3 -4
- package/lib/numbers/uint256.js +3 -4
- package/lib/numbers/xdr_large_int.js +2 -3
- package/lib/operation.js +3 -4
- package/lib/signerkey.js +2 -3
- package/lib/soroban.js +2 -3
- package/lib/sorobandata_builder.js +2 -3
- package/lib/strkey.js +2 -3
- package/lib/transaction.js +3 -4
- package/lib/transaction_base.js +2 -3
- package/lib/transaction_builder.js +2 -3
- package/package.json +15 -15
package/lib/operation.js
CHANGED
|
@@ -17,13 +17,13 @@ var _xdr = _interopRequireDefault(require("./xdr"));
|
|
|
17
17
|
var ops = _interopRequireWildcard(require("./operations"));
|
|
18
18
|
var _decode_encode_muxed_account = require("./util/decode_encode_muxed_account");
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
22
22
|
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); }
|
|
23
23
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
24
|
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); } }
|
|
25
25
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
26
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
26
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
27
|
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); } /* eslint-disable no-bitwise */
|
|
28
28
|
var ONE = 10000000;
|
|
29
29
|
var MAX_INT64 = '9223372036854775807';
|
|
@@ -110,7 +110,7 @@ var Operation = exports.Operation = /*#__PURE__*/function () {
|
|
|
110
110
|
function Operation() {
|
|
111
111
|
_classCallCheck(this, Operation);
|
|
112
112
|
}
|
|
113
|
-
_createClass(Operation, null, [{
|
|
113
|
+
return _createClass(Operation, null, [{
|
|
114
114
|
key: "setSourceAccount",
|
|
115
115
|
value: function setSourceAccount(opAttributes, opts) {
|
|
116
116
|
if (opts.source) {
|
|
@@ -568,7 +568,6 @@ var Operation = exports.Operation = /*#__PURE__*/function () {
|
|
|
568
568
|
return xdrObject;
|
|
569
569
|
}
|
|
570
570
|
}]);
|
|
571
|
-
return Operation;
|
|
572
571
|
}();
|
|
573
572
|
function extractRevokeSponshipDetails(attrs, result) {
|
|
574
573
|
switch (attrs["switch"]().name) {
|
package/lib/signerkey.js
CHANGED
|
@@ -11,7 +11,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
11
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
12
|
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); } }
|
|
13
13
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); }
|
|
16
16
|
/**
|
|
17
17
|
* A container class with helpers to convert between signer keys
|
|
@@ -26,7 +26,7 @@ var SignerKey = exports.SignerKey = /*#__PURE__*/function () {
|
|
|
26
26
|
function SignerKey() {
|
|
27
27
|
_classCallCheck(this, SignerKey);
|
|
28
28
|
}
|
|
29
|
-
_createClass(SignerKey, null, [{
|
|
29
|
+
return _createClass(SignerKey, null, [{
|
|
30
30
|
key: "decodeAddress",
|
|
31
31
|
value:
|
|
32
32
|
/**
|
|
@@ -99,5 +99,4 @@ var SignerKey = exports.SignerKey = /*#__PURE__*/function () {
|
|
|
99
99
|
return (0, _strkey.encodeCheck)(strkeyType, raw);
|
|
100
100
|
}
|
|
101
101
|
}]);
|
|
102
|
-
return SignerKey;
|
|
103
102
|
}();
|
package/lib/soroban.js
CHANGED
|
@@ -14,14 +14,14 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
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); } }
|
|
16
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
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
19
|
/* Helper class to assist with formatting and parsing token amounts. */
|
|
20
20
|
var Soroban = exports.Soroban = /*#__PURE__*/function () {
|
|
21
21
|
function Soroban() {
|
|
22
22
|
_classCallCheck(this, Soroban);
|
|
23
23
|
}
|
|
24
|
-
_createClass(Soroban, null, [{
|
|
24
|
+
return _createClass(Soroban, null, [{
|
|
25
25
|
key: "formatTokenAmount",
|
|
26
26
|
value:
|
|
27
27
|
/**
|
|
@@ -92,5 +92,4 @@ var Soroban = exports.Soroban = /*#__PURE__*/function () {
|
|
|
92
92
|
return shifted.toString();
|
|
93
93
|
}
|
|
94
94
|
}]);
|
|
95
|
-
return Soroban;
|
|
96
95
|
}();
|
|
@@ -11,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
13
|
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; }
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); }
|
|
16
16
|
/**
|
|
17
17
|
* Supports building {@link xdr.SorobanTransactionData} structures with various
|
|
@@ -75,7 +75,7 @@ var SorobanDataBuilder = exports.SorobanDataBuilder = /*#__PURE__*/function () {
|
|
|
75
75
|
* @param {Uint8Array|Buffer|string} data raw input to decode
|
|
76
76
|
* @returns {xdr.SorobanTransactionData}
|
|
77
77
|
*/
|
|
78
|
-
_createClass(SorobanDataBuilder, [{
|
|
78
|
+
return _createClass(SorobanDataBuilder, [{
|
|
79
79
|
key: "setResourceFee",
|
|
80
80
|
value:
|
|
81
81
|
/**
|
|
@@ -214,5 +214,4 @@ var SorobanDataBuilder = exports.SorobanDataBuilder = /*#__PURE__*/function () {
|
|
|
214
214
|
return _xdr["default"].SorobanTransactionData.fromXDR(data, typeof data === 'string' ? 'base64' : 'raw');
|
|
215
215
|
}
|
|
216
216
|
}]);
|
|
217
|
-
return SorobanDataBuilder;
|
|
218
217
|
}();
|
package/lib/strkey.js
CHANGED
|
@@ -13,7 +13,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
13
13
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
14
|
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); } }
|
|
15
15
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
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); } /* eslint no-bitwise: ["error", {"allow": ["<<", ">>", "^", "&", "&="]}] */
|
|
18
18
|
var versionBytes = {
|
|
19
19
|
ed25519PublicKey: 6 << 3,
|
|
@@ -49,7 +49,7 @@ var StrKey = exports.StrKey = /*#__PURE__*/function () {
|
|
|
49
49
|
function StrKey() {
|
|
50
50
|
_classCallCheck(this, StrKey);
|
|
51
51
|
}
|
|
52
|
-
_createClass(StrKey, null, [{
|
|
52
|
+
return _createClass(StrKey, null, [{
|
|
53
53
|
key: "encodeEd25519PublicKey",
|
|
54
54
|
value:
|
|
55
55
|
/**
|
|
@@ -269,7 +269,6 @@ var StrKey = exports.StrKey = /*#__PURE__*/function () {
|
|
|
269
269
|
return strkeyTypes[address[0]];
|
|
270
270
|
}
|
|
271
271
|
}]);
|
|
272
|
-
return StrKey;
|
|
273
272
|
}();
|
|
274
273
|
/**
|
|
275
274
|
* Sanity-checks whether or not a strkey *appears* valid.
|
package/lib/transaction.js
CHANGED
|
@@ -16,7 +16,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
17
|
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); } }
|
|
18
18
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
20
|
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); }
|
|
21
21
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22
22
|
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); }
|
|
@@ -45,7 +45,6 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
|
|
|
45
45
|
* @extends TransactionBase
|
|
46
46
|
*/
|
|
47
47
|
var Transaction = exports.Transaction = /*#__PURE__*/function (_TransactionBase) {
|
|
48
|
-
_inherits(Transaction, _TransactionBase);
|
|
49
48
|
function Transaction(envelope, networkPassphrase) {
|
|
50
49
|
var _this;
|
|
51
50
|
_classCallCheck(this, Transaction);
|
|
@@ -130,7 +129,8 @@ var Transaction = exports.Transaction = /*#__PURE__*/function (_TransactionBase)
|
|
|
130
129
|
* @property {string} 64 bit unix timestamp
|
|
131
130
|
* @readonly
|
|
132
131
|
*/
|
|
133
|
-
|
|
132
|
+
_inherits(Transaction, _TransactionBase);
|
|
133
|
+
return _createClass(Transaction, [{
|
|
134
134
|
key: "timeBounds",
|
|
135
135
|
get: function get() {
|
|
136
136
|
return this._timeBounds;
|
|
@@ -364,5 +364,4 @@ var Transaction = exports.Transaction = /*#__PURE__*/function (_TransactionBase)
|
|
|
364
364
|
return balanceId.toXDR('hex');
|
|
365
365
|
}
|
|
366
366
|
}]);
|
|
367
|
-
return Transaction;
|
|
368
367
|
}(_transaction_base.TransactionBase);
|
package/lib/transaction_base.js
CHANGED
|
@@ -12,7 +12,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
12
12
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
13
|
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); } }
|
|
14
14
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); }
|
|
17
17
|
/**
|
|
18
18
|
* @ignore
|
|
@@ -33,7 +33,7 @@ var TransactionBase = exports.TransactionBase = /*#__PURE__*/function () {
|
|
|
33
33
|
* @type {Array.<xdr.DecoratedSignature>}
|
|
34
34
|
* @readonly
|
|
35
35
|
*/
|
|
36
|
-
_createClass(TransactionBase, [{
|
|
36
|
+
return _createClass(TransactionBase, [{
|
|
37
37
|
key: "signatures",
|
|
38
38
|
get: function get() {
|
|
39
39
|
return this._signatures;
|
|
@@ -244,5 +244,4 @@ var TransactionBase = exports.TransactionBase = /*#__PURE__*/function () {
|
|
|
244
244
|
return this.toEnvelope().toXDR().toString('base64');
|
|
245
245
|
}
|
|
246
246
|
}]);
|
|
247
|
-
return TransactionBase;
|
|
248
247
|
}();
|
|
@@ -31,7 +31,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
31
31
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
32
32
|
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); } }
|
|
33
33
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
34
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
34
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
35
35
|
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); }
|
|
36
36
|
/**
|
|
37
37
|
* Minimum base fee for transactions. If this fee is below the network
|
|
@@ -190,7 +190,7 @@ var TransactionBuilder = exports.TransactionBuilder = /*#__PURE__*/function () {
|
|
|
190
190
|
*
|
|
191
191
|
* @todo This cannot clone {@link FeeBumpTransaction}s, yet.
|
|
192
192
|
*/
|
|
193
|
-
_createClass(TransactionBuilder, [{
|
|
193
|
+
return _createClass(TransactionBuilder, [{
|
|
194
194
|
key: "addOperation",
|
|
195
195
|
value:
|
|
196
196
|
/**
|
|
@@ -739,7 +739,6 @@ var TransactionBuilder = exports.TransactionBuilder = /*#__PURE__*/function () {
|
|
|
739
739
|
return new _transaction.Transaction(envelope, networkPassphrase);
|
|
740
740
|
}
|
|
741
741
|
}]);
|
|
742
|
-
return TransactionBuilder;
|
|
743
742
|
}();
|
|
744
743
|
/**
|
|
745
744
|
* Checks whether a provided object is a valid Date.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stellar/stellar-base",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "Low-level support library for the Stellar network.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -70,36 +70,36 @@
|
|
|
70
70
|
},
|
|
71
71
|
"homepage": "https://github.com/stellar/js-stellar-base",
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@babel/cli": "^7.
|
|
74
|
-
"@babel/core": "^7.
|
|
75
|
-
"@babel/eslint-parser": "^7.
|
|
73
|
+
"@babel/cli": "^7.24.1",
|
|
74
|
+
"@babel/core": "^7.24.1",
|
|
75
|
+
"@babel/eslint-parser": "^7.24.1",
|
|
76
76
|
"@babel/eslint-plugin": "^7.23.5",
|
|
77
|
-
"@babel/preset-env": "^7.
|
|
77
|
+
"@babel/preset-env": "^7.24.1",
|
|
78
78
|
"@babel/register": "^7.23.7",
|
|
79
79
|
"@definitelytyped/dtslint": "^0.0.182",
|
|
80
80
|
"@istanbuljs/nyc-config-babel": "3.0.0",
|
|
81
|
-
"@types/node": "^20.11.
|
|
81
|
+
"@types/node": "^20.11.30",
|
|
82
82
|
"@typescript-eslint/parser": "^6.20.0",
|
|
83
83
|
"babel-loader": "^9.1.3",
|
|
84
84
|
"babel-plugin-istanbul": "^6.1.1",
|
|
85
85
|
"chai": "^4.3.10",
|
|
86
86
|
"chai-as-promised": "^7.1.1",
|
|
87
87
|
"cross-env": "^7.0.3",
|
|
88
|
-
"eslint": "^8.
|
|
88
|
+
"eslint": "^8.57.0",
|
|
89
89
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
90
90
|
"eslint-config-prettier": "^9.1.0",
|
|
91
91
|
"eslint-plugin-import": "^2.29.1",
|
|
92
92
|
"eslint-plugin-node": "^11.1.0",
|
|
93
93
|
"eslint-plugin-prefer-import": "^0.0.1",
|
|
94
94
|
"eslint-plugin-prettier": "^5.1.3",
|
|
95
|
-
"eslint-webpack-plugin": "^4.
|
|
95
|
+
"eslint-webpack-plugin": "^4.1.0",
|
|
96
96
|
"ghooks": "^2.0.4",
|
|
97
97
|
"husky": "^8.0.3",
|
|
98
98
|
"jsdoc": "^4.0.2",
|
|
99
|
-
"karma": "^6.4.
|
|
99
|
+
"karma": "^6.4.3",
|
|
100
100
|
"karma-chrome-launcher": "^3.1.0",
|
|
101
101
|
"karma-coverage": "^2.2.1",
|
|
102
|
-
"karma-firefox-launcher": "^2.1.
|
|
102
|
+
"karma-firefox-launcher": "^2.1.3",
|
|
103
103
|
"karma-mocha": "^2.0.0",
|
|
104
104
|
"karma-sinon-chai": "^2.0.2",
|
|
105
105
|
"karma-webpack": "^5.0.1",
|
|
@@ -115,19 +115,19 @@
|
|
|
115
115
|
"taffydb": "^2.7.3",
|
|
116
116
|
"terser-webpack-plugin": "^5.3.10",
|
|
117
117
|
"ts-node": "^10.9.2",
|
|
118
|
-
"
|
|
118
|
+
"typescript": "^5.4.2",
|
|
119
|
+
"webpack": "^5.90.3",
|
|
119
120
|
"webpack-cli": "^5.1.1"
|
|
120
121
|
},
|
|
121
122
|
"dependencies": {
|
|
122
|
-
"@stellar/js-xdr": "^3.1.
|
|
123
|
+
"@stellar/js-xdr": "^3.1.1",
|
|
123
124
|
"base32.js": "^0.1.0",
|
|
124
125
|
"bignumber.js": "^9.1.2",
|
|
125
126
|
"buffer": "^6.0.3",
|
|
126
127
|
"sha.js": "^2.3.6",
|
|
127
|
-
"tweetnacl": "^1.0.3"
|
|
128
|
-
"typescript": "^5.3.3"
|
|
128
|
+
"tweetnacl": "^1.0.3"
|
|
129
129
|
},
|
|
130
130
|
"optionalDependencies": {
|
|
131
|
-
"sodium-native": "^4.0.
|
|
131
|
+
"sodium-native": "^4.0.10"
|
|
132
132
|
}
|
|
133
133
|
}
|