@stellar/stellar-sdk 14.6.0 → 14.6.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/dist/stellar-sdk-minimal.js +16 -6
- package/dist/stellar-sdk-minimal.min.js +1 -1
- package/dist/stellar-sdk-no-axios.js +16 -6
- package/dist/stellar-sdk-no-axios.min.js +1 -1
- package/dist/stellar-sdk-no-eventsource.js +16 -6
- package/dist/stellar-sdk-no-eventsource.min.js +1 -1
- package/dist/stellar-sdk.js +16 -6
- package/dist/stellar-sdk.min.js +1 -1
- package/lib/horizon/horizon_axios_client.js +1 -1
- package/lib/minimal/horizon/horizon_axios_client.js +1 -1
- package/lib/minimal/rpc/axios.js +1 -1
- package/lib/minimal/rpc/transaction.js +13 -3
- package/lib/no-axios/horizon/horizon_axios_client.js +1 -1
- package/lib/no-axios/rpc/axios.js +1 -1
- package/lib/no-axios/rpc/transaction.js +13 -3
- package/lib/no-eventsource/horizon/horizon_axios_client.js +1 -1
- package/lib/no-eventsource/rpc/axios.js +1 -1
- package/lib/no-eventsource/rpc/transaction.js +13 -3
- package/lib/rpc/axios.js +1 -1
- package/lib/rpc/transaction.js +13 -3
- package/package.json +1 -1
|
@@ -4920,7 +4920,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
4920
4920
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
4921
4921
|
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); }
|
|
4922
4922
|
|
|
4923
|
-
var version = "14.6.
|
|
4923
|
+
var version = "14.6.1";
|
|
4924
4924
|
function createHttpClient(headers) {
|
|
4925
4925
|
return (0,http_client/* create */.vt)({
|
|
4926
4926
|
headers: _objectSpread(_objectSpread({}, headers), {}, {
|
|
@@ -9793,7 +9793,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
9793
9793
|
// EXTERNAL MODULE: ./src/contract/index.ts + 7 modules
|
|
9794
9794
|
var contract = __webpack_require__(8250);
|
|
9795
9795
|
;// ./package.json
|
|
9796
|
-
const package_namespaceObject = {"rE":"14.6.
|
|
9796
|
+
const package_namespaceObject = {"rE":"14.6.1"};
|
|
9797
9797
|
;// ./src/bindings/config.ts
|
|
9798
9798
|
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); }
|
|
9799
9799
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -25031,10 +25031,20 @@ function assembleTransaction(raw, simulation) {
|
|
|
25031
25031
|
if (!_api__WEBPACK_IMPORTED_MODULE_1__/* .Api */ .j.isSimulationSuccess(success)) {
|
|
25032
25032
|
throw new Error("simulation incorrect: ".concat(JSON.stringify(success)));
|
|
25033
25033
|
}
|
|
25034
|
-
var classicFeeNum
|
|
25035
|
-
|
|
25034
|
+
var classicFeeNum;
|
|
25035
|
+
try {
|
|
25036
|
+
classicFeeNum = BigInt(raw.fee);
|
|
25037
|
+
} catch (_unused) {
|
|
25038
|
+
classicFeeNum = BigInt(0);
|
|
25039
|
+
}
|
|
25040
|
+
var rawSorobanData = raw.toEnvelope().v1().tx().ext().value();
|
|
25041
|
+
if (rawSorobanData) {
|
|
25042
|
+
if (classicFeeNum - rawSorobanData.resourceFee().toBigInt() > BigInt(0)) {
|
|
25043
|
+
classicFeeNum -= rawSorobanData.resourceFee().toBigInt();
|
|
25044
|
+
}
|
|
25045
|
+
}
|
|
25036
25046
|
var txnBuilder = _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.TransactionBuilder.cloneFrom(raw, {
|
|
25037
|
-
fee:
|
|
25047
|
+
fee: classicFeeNum.toString(),
|
|
25038
25048
|
sorobanData: success.transactionData.build(),
|
|
25039
25049
|
networkPassphrase: raw.networkPassphrase
|
|
25040
25050
|
});
|
|
@@ -28265,7 +28275,7 @@ function horizon_axios_client_toPropertyKey(t) { var i = horizon_axios_client_to
|
|
|
28265
28275
|
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); }
|
|
28266
28276
|
|
|
28267
28277
|
|
|
28268
|
-
var version = "14.6.
|
|
28278
|
+
var version = "14.6.1";
|
|
28269
28279
|
var SERVER_TIME_MAP = {};
|
|
28270
28280
|
function toSeconds(ms) {
|
|
28271
28281
|
return Math.floor(ms / 1000);
|