@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
|
@@ -7226,7 +7226,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
7226
7226
|
// EXTERNAL MODULE: ./src/contract/index.ts + 7 modules
|
|
7227
7227
|
var contract = __webpack_require__(250);
|
|
7228
7228
|
;// ./package.json
|
|
7229
|
-
const package_namespaceObject = {"rE":"14.6.
|
|
7229
|
+
const package_namespaceObject = {"rE":"14.6.1"};
|
|
7230
7230
|
;// ./src/bindings/config.ts
|
|
7231
7231
|
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); }
|
|
7232
7232
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -13950,7 +13950,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
13950
13950
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13951
13951
|
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); }
|
|
13952
13952
|
|
|
13953
|
-
var version = "14.6.
|
|
13953
|
+
var version = "14.6.1";
|
|
13954
13954
|
function createHttpClient(headers) {
|
|
13955
13955
|
return (0,http_client/* create */.vt)({
|
|
13956
13956
|
headers: _objectSpread(_objectSpread({}, headers), {}, {
|
|
@@ -19892,10 +19892,20 @@ function assembleTransaction(raw, simulation) {
|
|
|
19892
19892
|
if (!_api__WEBPACK_IMPORTED_MODULE_1__/* .Api */ .j.isSimulationSuccess(success)) {
|
|
19893
19893
|
throw new Error("simulation incorrect: ".concat(JSON.stringify(success)));
|
|
19894
19894
|
}
|
|
19895
|
-
var classicFeeNum
|
|
19896
|
-
|
|
19895
|
+
var classicFeeNum;
|
|
19896
|
+
try {
|
|
19897
|
+
classicFeeNum = BigInt(raw.fee);
|
|
19898
|
+
} catch (_unused) {
|
|
19899
|
+
classicFeeNum = BigInt(0);
|
|
19900
|
+
}
|
|
19901
|
+
var rawSorobanData = raw.toEnvelope().v1().tx().ext().value();
|
|
19902
|
+
if (rawSorobanData) {
|
|
19903
|
+
if (classicFeeNum - rawSorobanData.resourceFee().toBigInt() > BigInt(0)) {
|
|
19904
|
+
classicFeeNum -= rawSorobanData.resourceFee().toBigInt();
|
|
19905
|
+
}
|
|
19906
|
+
}
|
|
19897
19907
|
var txnBuilder = _stellar_stellar_base__WEBPACK_IMPORTED_MODULE_0__.TransactionBuilder.cloneFrom(raw, {
|
|
19898
|
-
fee:
|
|
19908
|
+
fee: classicFeeNum.toString(),
|
|
19899
19909
|
sorobanData: success.transactionData.build(),
|
|
19900
19910
|
networkPassphrase: raw.networkPassphrase
|
|
19901
19911
|
});
|
|
@@ -23583,7 +23593,7 @@ function horizon_axios_client_toPropertyKey(t) { var i = horizon_axios_client_to
|
|
|
23583
23593
|
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); }
|
|
23584
23594
|
|
|
23585
23595
|
|
|
23586
|
-
var version = "14.6.
|
|
23596
|
+
var version = "14.6.1";
|
|
23587
23597
|
var SERVER_TIME_MAP = {};
|
|
23588
23598
|
function toSeconds(ms) {
|
|
23589
23599
|
return Math.floor(ms / 1000);
|