@paraspell/sdk-dedot 13.11.0 → 14.0.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/README.md +5 -8
- package/dist/index.d.ts +2 -10
- package/dist/index.mjs +36 -50
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -125,10 +125,7 @@ import * as paraspell from '@paraspell/sdk-dedot'
|
|
|
125
125
|
|
|
126
126
|
> [!NOTE]
|
|
127
127
|
> **Latest news:**
|
|
128
|
-
> -
|
|
129
|
-
> - Swap extension is now available on every XCM SDK version: https://paraspell.github.io/docs/xcm-sdk/getting-started.html#install-swap-extension
|
|
130
|
-
> - EVM extension is now available: https://paraspell.github.io/docs/xcm-sdk/getting-started.html#install-evm-extension
|
|
131
|
-
> - Snowbridge extension is now available: https://paraspell.github.io/docs/xcm-sdk/getting-started.html#install-snowbridge-extension
|
|
128
|
+
> - V13 > V14 Migration guide: https://paraspell.github.io/docs/migration/v13-to-v14.html
|
|
132
129
|
|
|
133
130
|
|
|
134
131
|
### Sending XCM
|
|
@@ -341,7 +338,7 @@ SDK features ability to add custom chain and/or custom assets simply by adding i
|
|
|
341
338
|
{
|
|
342
339
|
symbol: 'USDC',
|
|
343
340
|
decimals: 6,
|
|
344
|
-
existentialDeposit:
|
|
341
|
+
existentialDeposit: 100000000, //Needs to be in plancks
|
|
345
342
|
location: {
|
|
346
343
|
parents: 1,
|
|
347
344
|
interior: { X3: [{ Parachain: 1000 }, { PalletInstance: 50 }, {
|
|
@@ -360,7 +357,7 @@ SDK features ability to add custom chain and/or custom assets simply by adding i
|
|
|
360
357
|
symbol: 'MYNEWUSD',
|
|
361
358
|
decimals: 6,
|
|
362
359
|
assetId: '9999',
|
|
363
|
-
existentialDeposit:
|
|
360
|
+
existentialDeposit: 100000000, //Needs to be in plancks
|
|
364
361
|
location: {
|
|
365
362
|
parents: 0,
|
|
366
363
|
interior: { X2: [{ PalletInstance: 50 }, { GeneralIndex: 9999 }] }
|
|
@@ -371,7 +368,7 @@ SDK features ability to add custom chain and/or custom assets simply by adding i
|
|
|
371
368
|
symbol: 'USDT',
|
|
372
369
|
decimals: 6,
|
|
373
370
|
assetId: '1984',
|
|
374
|
-
existentialDeposit:
|
|
371
|
+
existentialDeposit: 100000000, //Needs to be in plancks
|
|
375
372
|
location: {
|
|
376
373
|
parents: 0,
|
|
377
374
|
interior: { X2: [{ PalletInstance: 50 }, { GeneralIndex: 1984 }] }
|
|
@@ -729,7 +726,7 @@ We run an open Bug Bounty Program that rewards contributors for reporting and fi
|
|
|
729
726
|
|
|
730
727
|
Made with 💛 by [ParaSpell✨](https://paraspell.xyz/)
|
|
731
728
|
|
|
732
|
-
Published under [MIT License](https://github.com/paraspell/xcm-tools/blob/main/packages/sdk/LICENSE).
|
|
729
|
+
Published under [MIT License](https://github.com/paraspell/xcm-tools/blob/main/packages/sdk-dedot/LICENSE).
|
|
733
730
|
|
|
734
731
|
## Supported by
|
|
735
732
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _paraspell_sdk_core from '@paraspell/sdk-core';
|
|
2
|
-
import { Foreign, ForeignAbstract, Native,
|
|
2
|
+
import { Foreign, ForeignAbstract, Native, findAssetInfo, getAllAssetsSymbols, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTChain, isChainEvm, TSubstrateChain, TBuilderOptions, TApiOrUrl, GeneralBuilder as GeneralBuilder$1, TCustomChainFrom, TTransferBaseOptions } from '@paraspell/sdk-core';
|
|
3
3
|
export * from '@paraspell/sdk-core';
|
|
4
4
|
import { DedotClient as DedotClient$1 } from 'dedot';
|
|
5
5
|
import { GenericSubstrateApi as GenericSubstrateApi$1, ChainSubmittableExtrinsic as ChainSubmittableExtrinsic$1, IKeyringPair as IKeyringPair$1 } from 'dedot/types';
|
|
@@ -22,11 +22,8 @@ declare const getBalance: (options: _paraspell_sdk_core.TGetBalanceCommonOptions
|
|
|
22
22
|
declare const assets_Foreign: typeof Foreign;
|
|
23
23
|
declare const assets_ForeignAbstract: typeof ForeignAbstract;
|
|
24
24
|
declare const assets_Native: typeof Native;
|
|
25
|
-
declare const assets_Override: typeof Override;
|
|
26
25
|
declare const assets_findAssetInfo: typeof findAssetInfo;
|
|
27
26
|
declare const assets_getAllAssetsSymbols: typeof getAllAssetsSymbols;
|
|
28
|
-
declare const assets_getAssetDecimals: typeof getAssetDecimals;
|
|
29
|
-
declare const assets_getAssetId: typeof getAssetId;
|
|
30
27
|
declare const assets_getAssets: typeof getAssets;
|
|
31
28
|
declare const assets_getAssetsObject: typeof getAssetsObject;
|
|
32
29
|
declare const assets_getBalance: typeof getBalance;
|
|
@@ -37,18 +34,14 @@ declare const assets_getOtherAssets: typeof getOtherAssets;
|
|
|
37
34
|
declare const assets_getRelayChainSymbol: typeof getRelayChainSymbol;
|
|
38
35
|
declare const assets_getSupportedAssets: typeof getSupportedAssets;
|
|
39
36
|
declare const assets_getTChain: typeof getTChain;
|
|
40
|
-
declare const assets_hasSupportForAsset: typeof hasSupportForAsset;
|
|
41
37
|
declare const assets_isChainEvm: typeof isChainEvm;
|
|
42
38
|
declare namespace assets {
|
|
43
39
|
export {
|
|
44
40
|
assets_Foreign as Foreign,
|
|
45
41
|
assets_ForeignAbstract as ForeignAbstract,
|
|
46
42
|
assets_Native as Native,
|
|
47
|
-
assets_Override as Override,
|
|
48
43
|
assets_findAssetInfo as findAssetInfo,
|
|
49
44
|
assets_getAllAssetsSymbols as getAllAssetsSymbols,
|
|
50
|
-
assets_getAssetDecimals as getAssetDecimals,
|
|
51
|
-
assets_getAssetId as getAssetId,
|
|
52
45
|
assets_getAssets as getAssets,
|
|
53
46
|
assets_getAssetsObject as getAssetsObject,
|
|
54
47
|
assets_getBalance as getBalance,
|
|
@@ -59,7 +52,6 @@ declare namespace assets {
|
|
|
59
52
|
assets_getRelayChainSymbol as getRelayChainSymbol,
|
|
60
53
|
assets_getSupportedAssets as getSupportedAssets,
|
|
61
54
|
assets_getTChain as getTChain,
|
|
62
|
-
assets_hasSupportForAsset as hasSupportForAsset,
|
|
63
55
|
assets_isChainEvm as isChainEvm,
|
|
64
56
|
};
|
|
65
57
|
}
|
|
@@ -77,7 +69,7 @@ type GeneralBuilder<T extends Partial<TTransferBaseOptions<TDedotApi, TDedotExtr
|
|
|
77
69
|
|
|
78
70
|
declare const dryRun: (options: _paraspell_sdk_core.TDryRunBaseOptions<ChainSubmittableExtrinsic, never> & {
|
|
79
71
|
api?: TApiOrUrl<TDedotApi>;
|
|
80
|
-
}) => Promise<_paraspell_sdk_core.TDryRunResult
|
|
72
|
+
}) => Promise<_paraspell_sdk_core.TDryRunResult<never>>;
|
|
81
73
|
declare const dryRunOrigin: (options: _paraspell_sdk_core.TDryRunCallBaseOptions<ChainSubmittableExtrinsic, never> & {
|
|
82
74
|
api?: TApiOrUrl<TDedotApi>;
|
|
83
75
|
}) => Promise<_paraspell_sdk_core.TDryRunChainResult>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getEvmPrivateKeyHex, getNativeAssetSymbol, getOtherAssets, NumberFormatError, createClientCache, MAX_CLIENTS, EXTENSION_MS, createClientPoolHelpers, BatchMode, isConfig, isCustomChain, isSenderSigner, PolkadotApi, UnsupportedOperationError,
|
|
1
|
+
import { getEvmPrivateKeyHex, getNativeAssetSymbol, getOtherAssets, NumberFormatError, createClientCache, MAX_CLIENTS, EXTENSION_MS, createClientPoolHelpers, BatchMode, isConfig, isCustomChain, isSenderSigner, PolkadotApi, UnsupportedOperationError, buildDryRunError, resolveModuleError, RuntimeApiUnavailableError, wrapTxBypass, localizeLocation, createAssetId, addXcmVersionHeader, isAssetEqual, RELAY_LOCATION, replaceBigInt, createChainClient as createChainClient$1, getBalance as getBalance$1, Foreign, ForeignAbstract, Native, findAssetInfo, getAllAssetsSymbols, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssets, getRelayChainSymbol, getSupportedAssets, getTChain, isChainEvm, convertSs58 as convertSs58$1, Builder as Builder$1, getBridgeStatus as getBridgeStatus$1, getParaEthTransferFees as getParaEthTransferFees$1, DRY_RUN_CLIENT_TIMEOUT_MS, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1 } from '@paraspell/sdk-core';
|
|
2
2
|
export * from '@paraspell/sdk-core';
|
|
3
3
|
import { stringPascalCase, isEvmAddress, decodeAddress, isHex, u8aToHex, hexToU8a, stringToU8a, blake2AsHex } from 'dedot/utils';
|
|
4
4
|
import { Keyring } from '@polkadot/keyring';
|
|
@@ -750,22 +750,22 @@ var extractDryRunXcmFailureReason = function extractDryRunXcmFailureReason(resul
|
|
|
750
750
|
var executionResult = result === null || result === void 0 || (_result$value = result.value) === null || _result$value === void 0 ? void 0 : _result$value.executionResult;
|
|
751
751
|
var error = executionResult === null || executionResult === void 0 || (_executionResult$valu = executionResult.value) === null || _executionResult$valu === void 0 ? void 0 : _executionResult$valu.error;
|
|
752
752
|
var failureType = (_ref3 = (_ref4 = (_ref5 = (_error$error$type = error === null || error === void 0 || (_error$error = error.error) === null || _error$error === void 0 ? void 0 : _error$error.type) !== null && _error$error$type !== void 0 ? _error$error$type : error === null || error === void 0 || (_error$value = error.value) === null || _error$value === void 0 || (_error$value = _error$value.error) === null || _error$value === void 0 ? void 0 : _error$value.type) !== null && _ref5 !== void 0 ? _ref5 : error === null || error === void 0 || (_error$value2 = error.value) === null || _error$value2 === void 0 || (_error$value2 = _error$value2.value) === null || _error$value2 === void 0 ? void 0 : _error$value2.type) !== null && _ref4 !== void 0 ? _ref4 : error === null || error === void 0 || (_error$value3 = error.value) === null || _error$value3 === void 0 ? void 0 : _error$value3.type) !== null && _ref3 !== void 0 ? _ref3 : error === null || error === void 0 ? void 0 : error.type;
|
|
753
|
-
var
|
|
753
|
+
var instructionIndex = typeof (error === null || error === void 0 ? void 0 : error.index) === "number" ? error.index : undefined;
|
|
754
754
|
if (typeof failureType === "string") {
|
|
755
755
|
return {
|
|
756
|
-
|
|
757
|
-
|
|
756
|
+
reason: failureType,
|
|
757
|
+
instructionIndex: instructionIndex
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
760
|
if (typeof (executionResult === null || executionResult === void 0 ? void 0 : executionResult.type) === "string") {
|
|
761
761
|
return {
|
|
762
|
-
|
|
763
|
-
|
|
762
|
+
reason: executionResult.type,
|
|
763
|
+
instructionIndex: instructionIndex
|
|
764
764
|
};
|
|
765
765
|
}
|
|
766
766
|
return {
|
|
767
|
-
|
|
768
|
-
|
|
767
|
+
reason: JSON.stringify((_ref6 = (_result$value2 = result === null || result === void 0 ? void 0 : result.value) !== null && _result$value2 !== void 0 ? _result$value2 : result) !== null && _ref6 !== void 0 ? _ref6 : "Unknown error structure", replaceBigInt),
|
|
768
|
+
instructionIndex: instructionIndex
|
|
769
769
|
};
|
|
770
770
|
};
|
|
771
771
|
var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
@@ -1165,16 +1165,16 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1165
1165
|
var otherErr = (_execErr$error$Other = (_execErr$error2 = execErr.error) === null || _execErr$error2 === void 0 ? void 0 : _execErr$error2.Other) !== null && _execErr$error$Other !== void 0 ? _execErr$error$Other : (_execErr$error3 = execErr.error) === null || _execErr$error3 === void 0 ? void 0 : _execErr$error3.other;
|
|
1166
1166
|
if (otherErr) {
|
|
1167
1167
|
return {
|
|
1168
|
-
|
|
1168
|
+
reason: String(otherErr)
|
|
1169
1169
|
};
|
|
1170
1170
|
}
|
|
1171
1171
|
if (typeof execErr.error === "string") {
|
|
1172
1172
|
return {
|
|
1173
|
-
|
|
1173
|
+
reason: execErr.error
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
1176
|
return {
|
|
1177
|
-
|
|
1177
|
+
reason: JSON.stringify(execErr.error)
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
1180
|
var erroredEvent = findFailingEventInResult(result);
|
|
@@ -1188,17 +1188,17 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1188
1188
|
return resolveModuleError(chain, subErr);
|
|
1189
1189
|
}
|
|
1190
1190
|
return {
|
|
1191
|
-
|
|
1191
|
+
reason: err.type
|
|
1192
1192
|
};
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
return {
|
|
1196
|
-
|
|
1196
|
+
reason: JSON.stringify(result !== null && result !== void 0 ? result : "Unknown error")
|
|
1197
1197
|
};
|
|
1198
1198
|
}; // Attempt 1: WITHOUT version
|
|
1199
1199
|
isSuccess = false;
|
|
1200
1200
|
failureErr = {
|
|
1201
|
-
|
|
1201
|
+
reason: ""
|
|
1202
1202
|
};
|
|
1203
1203
|
shouldRetryWithVersion = false;
|
|
1204
1204
|
_context7.p = 6;
|
|
@@ -1209,7 +1209,7 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1209
1209
|
isSuccess = getExecutionSuccessFromResult(result);
|
|
1210
1210
|
if (!isSuccess) {
|
|
1211
1211
|
failureErr = extractFailureReasonFromResult(result);
|
|
1212
|
-
if (failureErr.
|
|
1212
|
+
if (failureErr.reason === "VersionedConversionFailed") {
|
|
1213
1213
|
shouldRetryWithVersion = true;
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
@@ -1229,7 +1229,9 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1229
1229
|
case 9:
|
|
1230
1230
|
return _context7.a(2, {
|
|
1231
1231
|
success: false,
|
|
1232
|
-
|
|
1232
|
+
dryRunError: {
|
|
1233
|
+
reason: msg
|
|
1234
|
+
},
|
|
1233
1235
|
asset: resolvedFeeAsset.asset
|
|
1234
1236
|
});
|
|
1235
1237
|
case 10:
|
|
@@ -1252,17 +1254,14 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1252
1254
|
_context7.p = 13;
|
|
1253
1255
|
_t3 = _context7.v;
|
|
1254
1256
|
_msg = _t3 instanceof Error ? _t3.message : String(_t3);
|
|
1255
|
-
if (!failureErr.
|
|
1257
|
+
if (!failureErr.reason) {
|
|
1256
1258
|
failureErr = {
|
|
1257
|
-
|
|
1259
|
+
reason: _msg
|
|
1258
1260
|
};
|
|
1259
1261
|
}
|
|
1260
1262
|
return _context7.a(2, {
|
|
1261
1263
|
success: false,
|
|
1262
|
-
|
|
1263
|
-
failureSubReason: failureErr.failureSubReason,
|
|
1264
|
-
failureIndex: failureErr.failureIndex,
|
|
1265
|
-
failureInstruction: getFailingInstruction((_result = result) === null || _result === void 0 || (_result = _result.value) === null || _result === void 0 ? void 0 : _result.localXcm, failureErr.failureIndex),
|
|
1264
|
+
dryRunError: buildDryRunError(failureErr, (_result = result) === null || _result === void 0 || (_result = _result.value) === null || _result === void 0 ? void 0 : _result.localXcm),
|
|
1266
1265
|
asset: resolvedFeeAsset.asset
|
|
1267
1266
|
});
|
|
1268
1267
|
case 14:
|
|
@@ -1272,10 +1271,9 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1272
1271
|
}
|
|
1273
1272
|
return _context7.a(2, {
|
|
1274
1273
|
success: false,
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
failureInstruction: getFailingInstruction((_result2 = result) === null || _result2 === void 0 || (_result2 = _result2.value) === null || _result2 === void 0 ? void 0 : _result2.localXcm, failureErr.failureIndex),
|
|
1274
|
+
dryRunError: buildDryRunError(_objectSpread2(_objectSpread2({}, failureErr), {}, {
|
|
1275
|
+
reason: failureErr.reason || "Unknown error"
|
|
1276
|
+
}), (_result2 = result) === null || _result2 === void 0 || (_result2 = _result2.value) === null || _result2 === void 0 ? void 0 : _result2.localXcm),
|
|
1279
1277
|
asset: resolvedFeeAsset.asset
|
|
1280
1278
|
});
|
|
1281
1279
|
case 15:
|
|
@@ -1365,7 +1363,6 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1365
1363
|
transformedAssetId,
|
|
1366
1364
|
execFeeRes,
|
|
1367
1365
|
execFee,
|
|
1368
|
-
bridgeHubExecFee,
|
|
1369
1366
|
deliveryFee,
|
|
1370
1367
|
_args7 = arguments,
|
|
1371
1368
|
_t5;
|
|
@@ -1422,10 +1419,7 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1422
1419
|
_context9.n = 5;
|
|
1423
1420
|
return this.getBridgeHubFallbackExecFee(chain, weight, asset, version);
|
|
1424
1421
|
case 5:
|
|
1425
|
-
|
|
1426
|
-
if (typeof bridgeHubExecFee === "bigint") {
|
|
1427
|
-
execFee = bridgeHubExecFee;
|
|
1428
|
-
}
|
|
1422
|
+
execFee = _context9.v;
|
|
1429
1423
|
case 6:
|
|
1430
1424
|
_context9.n = 7;
|
|
1431
1425
|
return this.getDeliveryFee(chain, forwardedXcm, asset, assetLocalizedLoc, version);
|
|
@@ -1531,7 +1525,7 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1531
1525
|
_context1.n = 2;
|
|
1532
1526
|
break;
|
|
1533
1527
|
}
|
|
1534
|
-
return _context1.a(2,
|
|
1528
|
+
return _context1.a(2, 0n);
|
|
1535
1529
|
case 2:
|
|
1536
1530
|
ahApi = this.clone();
|
|
1537
1531
|
assetHubChain = "AssetHub".concat(this.getRelayChainOf(chain));
|
|
@@ -1547,13 +1541,7 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1547
1541
|
});
|
|
1548
1542
|
case 4:
|
|
1549
1543
|
convertedExecFee = _context1.v;
|
|
1550
|
-
|
|
1551
|
-
_context1.n = 5;
|
|
1552
|
-
break;
|
|
1553
|
-
}
|
|
1554
|
-
return _context1.a(2, convertedExecFee);
|
|
1555
|
-
case 5:
|
|
1556
|
-
return _context1.a(2, undefined);
|
|
1544
|
+
return _context1.a(2, typeof convertedExecFee === "bigint" ? convertedExecFee : 0n);
|
|
1557
1545
|
}
|
|
1558
1546
|
}, _callee1, this);
|
|
1559
1547
|
}));
|
|
@@ -1601,7 +1589,7 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1601
1589
|
value: function () {
|
|
1602
1590
|
var _getDryRunXcm = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(_ref10) {
|
|
1603
1591
|
var _result$value5;
|
|
1604
|
-
var originLocation, xcm, asset, chain, version, supportsDryRunApi, transformedOriginLocation, result, executionResult, isSuccess,
|
|
1592
|
+
var originLocation, xcm, asset, chain, version, supportsDryRunApi, transformedOriginLocation, result, executionResult, isSuccess, failure, actualWeight, weight, forwardedXcms, destParaId, fee;
|
|
1605
1593
|
return _regenerator().w(function (_context11) {
|
|
1606
1594
|
while (1) switch (_context11.n) {
|
|
1607
1595
|
case 0:
|
|
@@ -1624,12 +1612,10 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1624
1612
|
_context11.n = 3;
|
|
1625
1613
|
break;
|
|
1626
1614
|
}
|
|
1627
|
-
|
|
1615
|
+
failure = extractDryRunXcmFailureReason(result);
|
|
1628
1616
|
return _context11.a(2, {
|
|
1629
1617
|
success: false,
|
|
1630
|
-
|
|
1631
|
-
failureIndex: failureIndex,
|
|
1632
|
-
failureInstruction: getFailingInstruction(xcm, failureIndex),
|
|
1618
|
+
dryRunError: buildDryRunError(failure, xcm),
|
|
1633
1619
|
asset: asset
|
|
1634
1620
|
});
|
|
1635
1621
|
case 3:
|
|
@@ -1651,7 +1637,9 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1651
1637
|
}
|
|
1652
1638
|
return _context11.a(2, {
|
|
1653
1639
|
success: false,
|
|
1654
|
-
|
|
1640
|
+
dryRunError: {
|
|
1641
|
+
reason: "Failed to retrieve fee from XcmPaymentApi"
|
|
1642
|
+
},
|
|
1655
1643
|
asset: asset
|
|
1656
1644
|
});
|
|
1657
1645
|
case 5:
|
|
@@ -1666,7 +1654,9 @@ var DedotApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1666
1654
|
case 6:
|
|
1667
1655
|
return _context11.a(2, {
|
|
1668
1656
|
success: false,
|
|
1669
|
-
|
|
1657
|
+
dryRunError: {
|
|
1658
|
+
reason: "Cannot determine destination fee. XcmPaymentApi is not supported by this chain"
|
|
1659
|
+
},
|
|
1670
1660
|
asset: asset
|
|
1671
1661
|
});
|
|
1672
1662
|
}
|
|
@@ -1859,11 +1849,8 @@ var assets = /*#__PURE__*/Object.freeze({
|
|
|
1859
1849
|
Foreign: Foreign,
|
|
1860
1850
|
ForeignAbstract: ForeignAbstract,
|
|
1861
1851
|
Native: Native,
|
|
1862
|
-
Override: Override,
|
|
1863
1852
|
findAssetInfo: findAssetInfo,
|
|
1864
1853
|
getAllAssetsSymbols: getAllAssetsSymbols,
|
|
1865
|
-
getAssetDecimals: getAssetDecimals,
|
|
1866
|
-
getAssetId: getAssetId,
|
|
1867
1854
|
getAssets: getAssets,
|
|
1868
1855
|
getAssetsObject: getAssetsObject,
|
|
1869
1856
|
getBalance: getBalance,
|
|
@@ -1874,7 +1861,6 @@ var assets = /*#__PURE__*/Object.freeze({
|
|
|
1874
1861
|
getRelayChainSymbol: getRelayChainSymbol,
|
|
1875
1862
|
getSupportedAssets: getSupportedAssets,
|
|
1876
1863
|
getTChain: getTChain,
|
|
1877
|
-
hasSupportForAsset: hasSupportForAsset,
|
|
1878
1864
|
isChainEvm: isChainEvm
|
|
1879
1865
|
});
|
|
1880
1866
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-dedot",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "Dedot-based SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@paraspell/sdk-
|
|
26
|
-
"@paraspell/sdk-
|
|
25
|
+
"@paraspell/sdk-common": "14.0.0",
|
|
26
|
+
"@paraspell/sdk-core": "14.0.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"dedot": ">= 1.3.0",
|