@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
|
@@ -3074,7 +3074,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3074
3074
|
// EXTERNAL MODULE: ./src/contract/index.ts + 7 modules
|
|
3075
3075
|
var contract = __webpack_require__(250);
|
|
3076
3076
|
;// ./package.json
|
|
3077
|
-
const package_namespaceObject = {"rE":"14.6.
|
|
3077
|
+
const package_namespaceObject = {"rE":"14.6.1"};
|
|
3078
3078
|
;// ./src/bindings/config.ts
|
|
3079
3079
|
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); }
|
|
3080
3080
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -9820,7 +9820,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
9820
9820
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9821
9821
|
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); }
|
|
9822
9822
|
|
|
9823
|
-
var version = "14.6.
|
|
9823
|
+
var version = "14.6.1";
|
|
9824
9824
|
function createHttpClient(headers) {
|
|
9825
9825
|
return (0,http_client/* create */.vt)({
|
|
9826
9826
|
headers: _objectSpread(_objectSpread({}, headers), {}, {
|
|
@@ -15720,10 +15720,20 @@ function assembleTransaction(raw, simulation) {
|
|
|
15720
15720
|
if (!_api__WEBPACK_IMPORTED_MODULE_1__/* .Api */ .j.isSimulationSuccess(success)) {
|
|
15721
15721
|
throw new Error("simulation incorrect: ".concat(JSON.stringify(success)));
|
|
15722
15722
|
}
|
|
15723
|
-
var classicFeeNum
|
|
15724
|
-
|
|
15723
|
+
var classicFeeNum;
|
|
15724
|
+
try {
|
|
15725
|
+
classicFeeNum = BigInt(raw.fee);
|
|
15726
|
+
} catch (_unused) {
|
|
15727
|
+
classicFeeNum = BigInt(0);
|
|
15728
|
+
}
|
|
15729
|
+
var rawSorobanData = raw.toEnvelope().v1().tx().ext().value();
|
|
15730
|
+
if (rawSorobanData) {
|
|
15731
|
+
if (classicFeeNum - rawSorobanData.resourceFee().toBigInt() > BigInt(0)) {
|
|
15732
|
+
classicFeeNum -= rawSorobanData.resourceFee().toBigInt();
|
|
15733
|
+
}
|
|
15734
|
+
}
|
|
15725
15735
|
var txnBuilder = _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.TransactionBuilder.cloneFrom(raw, {
|
|
15726
|
-
fee:
|
|
15736
|
+
fee: classicFeeNum.toString(),
|
|
15727
15737
|
sorobanData: success.transactionData.build(),
|
|
15728
15738
|
networkPassphrase: raw.networkPassphrase
|
|
15729
15739
|
});
|
|
@@ -19411,7 +19421,7 @@ function horizon_axios_client_toPropertyKey(t) { var i = horizon_axios_client_to
|
|
|
19411
19421
|
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); }
|
|
19412
19422
|
|
|
19413
19423
|
|
|
19414
|
-
var version = "14.6.
|
|
19424
|
+
var version = "14.6.1";
|
|
19415
19425
|
var SERVER_TIME_MAP = {};
|
|
19416
19426
|
function toSeconds(ms) {
|
|
19417
19427
|
return Math.floor(ms / 1000);
|