@paraspell/sdk 11.8.3 → 11.8.4
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/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1375,11 +1375,11 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1375
1375
|
value: function () {
|
|
1376
1376
|
var _getDryRunCall = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(options) {
|
|
1377
1377
|
var _this = this;
|
|
1378
|
-
var tx, chain, address, feeAsset, bypassOptions, _options$useRootOrigi, useRootOrigin, supportsDryRunApi, DEFAULT_XCM_VERSION, basePayload, resolvedTx, performDryRunCall, getExecutionSuccessFromResult, extractFailureReasonFromResult, result, isSuccess, failureOutputReason, initialFailureReason, usedAsset, usedSymbol, actualWeight, weight, forwardedXcms, destParaId, executionFee, nativeAsset, hasLocation, xcmFee, fee, _t4;
|
|
1378
|
+
var tx, chain, destination, address, feeAsset, bypassOptions, _options$useRootOrigi, useRootOrigin, supportsDryRunApi, DEFAULT_XCM_VERSION, basePayload, resolvedTx, performDryRunCall, getExecutionSuccessFromResult, extractFailureReasonFromResult, result, isSuccess, failureOutputReason, initialFailureReason, usedAsset, usedSymbol, actualWeight, weight, forwardedXcms, destParaId, executionFee, nativeAsset, hasLocation, xcmFee, fee, _t4;
|
|
1379
1379
|
return _regenerator().w(function (_context20) {
|
|
1380
1380
|
while (1) switch (_context20.n) {
|
|
1381
1381
|
case 0:
|
|
1382
|
-
tx = options.tx, chain = options.chain, address = options.address, feeAsset = options.feeAsset, bypassOptions = options.bypassOptions, _options$useRootOrigi = options.useRootOrigin, useRootOrigin = _options$useRootOrigi === void 0 ? false : _options$useRootOrigi;
|
|
1382
|
+
tx = options.tx, chain = options.chain, destination = options.destination, address = options.address, feeAsset = options.feeAsset, bypassOptions = options.bypassOptions, _options$useRootOrigi = options.useRootOrigin, useRootOrigin = _options$useRootOrigi === void 0 ? false : _options$useRootOrigi;
|
|
1383
1383
|
supportsDryRunApi = sdkCore.getAssetsObject(chain).supportsDryRunApi;
|
|
1384
1384
|
if (supportsDryRunApi) {
|
|
1385
1385
|
_context20.n = 1;
|
|
@@ -1508,7 +1508,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1508
1508
|
executionFee = _context20.v;
|
|
1509
1509
|
nativeAsset = sdkCore.findNativeAssetInfoOrThrow(chain);
|
|
1510
1510
|
hasLocation = feeAsset ? Boolean(feeAsset.location) : Boolean(nativeAsset === null || nativeAsset === void 0 ? void 0 : nativeAsset.location);
|
|
1511
|
-
if (!(sdkCore.hasXcmPaymentApiSupport(chain) && result.value.local_xcm && hasLocation && feeAsset)) {
|
|
1511
|
+
if (!(sdkCore.hasXcmPaymentApiSupport(chain) && result.value.local_xcm && hasLocation && (feeAsset || chain.startsWith('AssetHub') && destination === 'Ethereum'))) {
|
|
1512
1512
|
_context20.n = 11;
|
|
1513
1513
|
break;
|
|
1514
1514
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1374,11 +1374,11 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1374
1374
|
value: function () {
|
|
1375
1375
|
var _getDryRunCall = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(options) {
|
|
1376
1376
|
var _this = this;
|
|
1377
|
-
var tx, chain, address, feeAsset, bypassOptions, _options$useRootOrigi, useRootOrigin, supportsDryRunApi, DEFAULT_XCM_VERSION, basePayload, resolvedTx, performDryRunCall, getExecutionSuccessFromResult, extractFailureReasonFromResult, result, isSuccess, failureOutputReason, initialFailureReason, usedAsset, usedSymbol, actualWeight, weight, forwardedXcms, destParaId, executionFee, nativeAsset, hasLocation, xcmFee, fee, _t4;
|
|
1377
|
+
var tx, chain, destination, address, feeAsset, bypassOptions, _options$useRootOrigi, useRootOrigin, supportsDryRunApi, DEFAULT_XCM_VERSION, basePayload, resolvedTx, performDryRunCall, getExecutionSuccessFromResult, extractFailureReasonFromResult, result, isSuccess, failureOutputReason, initialFailureReason, usedAsset, usedSymbol, actualWeight, weight, forwardedXcms, destParaId, executionFee, nativeAsset, hasLocation, xcmFee, fee, _t4;
|
|
1378
1378
|
return _regenerator().w(function (_context20) {
|
|
1379
1379
|
while (1) switch (_context20.n) {
|
|
1380
1380
|
case 0:
|
|
1381
|
-
tx = options.tx, chain = options.chain, address = options.address, feeAsset = options.feeAsset, bypassOptions = options.bypassOptions, _options$useRootOrigi = options.useRootOrigin, useRootOrigin = _options$useRootOrigi === void 0 ? false : _options$useRootOrigi;
|
|
1381
|
+
tx = options.tx, chain = options.chain, destination = options.destination, address = options.address, feeAsset = options.feeAsset, bypassOptions = options.bypassOptions, _options$useRootOrigi = options.useRootOrigin, useRootOrigin = _options$useRootOrigi === void 0 ? false : _options$useRootOrigi;
|
|
1382
1382
|
supportsDryRunApi = getAssetsObject(chain).supportsDryRunApi;
|
|
1383
1383
|
if (supportsDryRunApi) {
|
|
1384
1384
|
_context20.n = 1;
|
|
@@ -1507,7 +1507,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1507
1507
|
executionFee = _context20.v;
|
|
1508
1508
|
nativeAsset = findNativeAssetInfoOrThrow(chain);
|
|
1509
1509
|
hasLocation = feeAsset ? Boolean(feeAsset.location) : Boolean(nativeAsset === null || nativeAsset === void 0 ? void 0 : nativeAsset.location);
|
|
1510
|
-
if (!(hasXcmPaymentApiSupport(chain) && result.value.local_xcm && hasLocation && feeAsset)) {
|
|
1510
|
+
if (!(hasXcmPaymentApiSupport(chain) && result.value.local_xcm && hasLocation && (feeAsset || chain.startsWith('AssetHub') && destination === 'Ethereum'))) {
|
|
1511
1511
|
_context20.n = 11;
|
|
1512
1512
|
break;
|
|
1513
1513
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "11.8.
|
|
3
|
+
"version": "11.8.4",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@noble/hashes": "^1.8.0",
|
|
27
27
|
"viem": "^2.36.0",
|
|
28
|
-
"@paraspell/sdk-core": "11.8.
|
|
28
|
+
"@paraspell/sdk-core": "11.8.4"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"polkadot-api": ">= 1.17.2 < 2"
|