@paraspell/sdk 12.4.0 → 12.5.0
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.mjs +3 -2
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1019,7 +1019,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1019
1019
|
value: function () {
|
|
1020
1020
|
var _getDryRunCall = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(options) {
|
|
1021
1021
|
var _this = this;
|
|
1022
|
-
var tx, chain, destination, address, feeAsset, bypassOptions, _options$useRootOrigi, useRootOrigin, supportsDryRunApi, DEFAULT_XCM_VERSION, basePayload, resolvedTx, performDryRunCall, getExecutionSuccessFromResult, findFailureObjectFromResult, extractFailureReasonFromResult, result, isSuccess, failureOutputReason, initialFailureReason, resolvedFeeAsset, actualWeight, weight, forwardedXcms, destParaId, hasLocation, getPaymentInfoWeight, overriddenWeight, xcmFee, executionFee, fee, _t2, _t3;
|
|
1022
|
+
var tx, chain, destination, address, feeAsset, bypassOptions, _options$useRootOrigi, useRootOrigin, supportsDryRunApi, DEFAULT_XCM_VERSION, basePayload, resolvedTx, performDryRunCall, getExecutionSuccessFromResult, findFailureObjectFromResult, extractFailureReasonFromResult, result, isSuccess, failureOutputReason, initialFailureReason, resolvedFeeAsset, actualWeight, weight, forwardedXcms, destParaId, hasLocation, USE_XCM_PAYMENT_API_CHAINS, getPaymentInfoWeight, overriddenWeight, xcmFee, executionFee, fee, _t2, _t3;
|
|
1023
1023
|
return _regenerator().w(function (_context10) {
|
|
1024
1024
|
while (1) switch (_context10.n) {
|
|
1025
1025
|
case 0:
|
|
@@ -1177,7 +1177,8 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1177
1177
|
forwardedXcms = result.value.forwarded_xcms.length > 0 ? result.value.forwarded_xcms[0] : [];
|
|
1178
1178
|
destParaId = forwardedXcms.length === 0 ? undefined : forwardedXcms[0].value.interior.type === 'Here' ? 0 : forwardedXcms[0].value.interior.value.value;
|
|
1179
1179
|
hasLocation = resolvedFeeAsset.asset.location;
|
|
1180
|
-
|
|
1180
|
+
USE_XCM_PAYMENT_API_CHAINS = ['Astar'];
|
|
1181
|
+
if (!(hasXcmPaymentApiSupport(chain) && result.value.local_xcm && hasLocation && (feeAsset || USE_XCM_PAYMENT_API_CHAINS.includes(chain) || chain.startsWith('AssetHub') && destination === 'Ethereum') || resolvedFeeAsset.isCustomAsset)) {
|
|
1181
1182
|
_context10.n = 15;
|
|
1182
1183
|
break;
|
|
1183
1184
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.0",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@polkadot-api/legacy-provider": "^0.3.6",
|
|
28
28
|
"@polkadot-labs/hdkd": "^0.0.26",
|
|
29
29
|
"@polkadot-labs/hdkd-helpers": "^0.0.27",
|
|
30
|
-
"viem": "2.
|
|
31
|
-
"@paraspell/sdk-core": "12.
|
|
30
|
+
"viem": "2.45.0",
|
|
31
|
+
"@paraspell/sdk-core": "12.5.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"polkadot-api": ">= 1.23.1 < 2"
|