@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
package/dist/stellar-sdk.js
CHANGED
|
@@ -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"); }
|
|
@@ -29165,10 +29165,20 @@ function assembleTransaction(raw, simulation) {
|
|
|
29165
29165
|
if (!_api__WEBPACK_IMPORTED_MODULE_1__/* .Api */ .j.isSimulationSuccess(success)) {
|
|
29166
29166
|
throw new Error("simulation incorrect: ".concat(JSON.stringify(success)));
|
|
29167
29167
|
}
|
|
29168
|
-
var classicFeeNum
|
|
29169
|
-
|
|
29168
|
+
var classicFeeNum;
|
|
29169
|
+
try {
|
|
29170
|
+
classicFeeNum = BigInt(raw.fee);
|
|
29171
|
+
} catch (_unused) {
|
|
29172
|
+
classicFeeNum = BigInt(0);
|
|
29173
|
+
}
|
|
29174
|
+
var rawSorobanData = raw.toEnvelope().v1().tx().ext().value();
|
|
29175
|
+
if (rawSorobanData) {
|
|
29176
|
+
if (classicFeeNum - rawSorobanData.resourceFee().toBigInt() > BigInt(0)) {
|
|
29177
|
+
classicFeeNum -= rawSorobanData.resourceFee().toBigInt();
|
|
29178
|
+
}
|
|
29179
|
+
}
|
|
29170
29180
|
var txnBuilder = _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.TransactionBuilder.cloneFrom(raw, {
|
|
29171
|
-
fee:
|
|
29181
|
+
fee: classicFeeNum.toString(),
|
|
29172
29182
|
sorobanData: success.transactionData.build(),
|
|
29173
29183
|
networkPassphrase: raw.networkPassphrase
|
|
29174
29184
|
});
|
|
@@ -32399,7 +32409,7 @@ function horizon_axios_client_toPropertyKey(t) { var i = horizon_axios_client_to
|
|
|
32399
32409
|
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); }
|
|
32400
32410
|
|
|
32401
32411
|
|
|
32402
|
-
var version = "14.6.
|
|
32412
|
+
var version = "14.6.1";
|
|
32403
32413
|
var SERVER_TIME_MAP = {};
|
|
32404
32414
|
function toSeconds(ms) {
|
|
32405
32415
|
return Math.floor(ms / 1000);
|