@paraspell/sdk-core 10.10.9 → 10.10.10

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 CHANGED
@@ -38,13 +38,19 @@ This package serves as a `core` component for both `@paraspell/sdk` and `@parasp
38
38
 
39
39
  XCM SDK can be tested in [Playground](https://playground.paraspell.xyz/xcm-sdk/xcm-transfer).
40
40
 
41
+ ## Get Support 🚑
42
+
43
+ - Contact form on our [landing page](https://paraspell.xyz/#contact-us).
44
+ - Message us on our [X](https://x.com/paraspell).
45
+ - Support channel on [telegram](https://t.me/paraspell).
46
+
41
47
  ## License
42
48
 
43
49
  Made with 💛 by [ParaSpell✨](https://paraspell.xyz/)
44
50
 
45
51
  Published under [MIT License](https://github.com/paraspell/xcm-tools/blob/main/packages/sdk-core/LICENSE).
46
52
 
47
- ## Support
53
+ ## Supported by
48
54
 
49
55
  <div align="center">
50
56
  <p align="center">
package/dist/index.cjs CHANGED
@@ -5117,7 +5117,9 @@ var dryRunInternal = /*#__PURE__*/function () {
5117
5117
  _context.n = 3;
5118
5118
  break;
5119
5119
  }
5120
- if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5120
+ if (destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub'))) {
5121
+ hopCurrency = assets.getNativeAssetSymbol(currentChain);
5122
+ } else if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5121
5123
  hopCurrency = assets.findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo).symbol;
5122
5124
  } else if (isDestination) {
5123
5125
  hopCurrency = assets.findAssetOnDestOrThrow(origin, currentChain, currency).symbol;
@@ -5733,7 +5735,7 @@ var getXcmFee = /*#__PURE__*/function () {
5733
5735
  });
5734
5736
  case 1:
5735
5737
  hopResult = _context.v;
5736
- if (hopResult.feeType === 'dryRun') {
5738
+ if (hopResult.feeType === 'dryRun' && !(destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub')))) {
5737
5739
  if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5738
5740
  hopCurrency = assets.findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo).symbol;
5739
5741
  } else if (destination === currentChain) {
@@ -6167,11 +6169,11 @@ var send = /*#__PURE__*/function () {
6167
6169
 
6168
6170
  var attemptDryRunFee = /*#__PURE__*/function () {
6169
6171
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
6170
- var currency, builder, reductionPcts, lastReduction, result, _i, _reductionPcts, percentage, modifiedBuilder, _t, _t2, _t3, _t4, _t5, _t6, _t7;
6172
+ var origin, currency, builder, reductionPcts, lastReduction, result, _i, _reductionPcts, percentage, modifiedBuilder, _t, _t2, _t3, _t4, _t5, _t6, _t7;
6171
6173
  return _regenerator().w(function (_context) {
6172
6174
  while (1) switch (_context.n) {
6173
6175
  case 0:
6174
- currency = options.currency, builder = options.builder;
6176
+ origin = options.origin, currency = options.currency, builder = options.builder;
6175
6177
  reductionPcts = [0, 10, 20, 30, 40, 50];
6176
6178
  lastReduction = reductionPcts[reductionPcts.length - 1];
6177
6179
  result = null;
@@ -6201,7 +6203,7 @@ var attemptDryRunFee = /*#__PURE__*/function () {
6201
6203
  return _t(_t7);
6202
6204
  case 3:
6203
6205
  result = _context.v;
6204
- if (!(result.feeType === 'dryRun' || percentage === lastReduction)) {
6206
+ if (!(result.feeType === 'dryRun' || percentage === lastReduction || !assets.hasDryRunSupport(origin))) {
6205
6207
  _context.n = 4;
6206
6208
  break;
6207
6209
  }
package/dist/index.mjs CHANGED
@@ -5118,7 +5118,9 @@ var dryRunInternal = /*#__PURE__*/function () {
5118
5118
  _context.n = 3;
5119
5119
  break;
5120
5120
  }
5121
- if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5121
+ if (destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub'))) {
5122
+ hopCurrency = getNativeAssetSymbol(currentChain);
5123
+ } else if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5122
5124
  hopCurrency = findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo).symbol;
5123
5125
  } else if (isDestination) {
5124
5126
  hopCurrency = findAssetOnDestOrThrow(origin, currentChain, currency).symbol;
@@ -5734,7 +5736,7 @@ var getXcmFee = /*#__PURE__*/function () {
5734
5736
  });
5735
5737
  case 1:
5736
5738
  hopResult = _context.v;
5737
- if (hopResult.feeType === 'dryRun') {
5739
+ if (hopResult.feeType === 'dryRun' && !(destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub')))) {
5738
5740
  if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5739
5741
  hopCurrency = findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo).symbol;
5740
5742
  } else if (destination === currentChain) {
@@ -6168,11 +6170,11 @@ var send = /*#__PURE__*/function () {
6168
6170
 
6169
6171
  var attemptDryRunFee = /*#__PURE__*/function () {
6170
6172
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
6171
- var currency, builder, reductionPcts, lastReduction, result, _i, _reductionPcts, percentage, modifiedBuilder, _t, _t2, _t3, _t4, _t5, _t6, _t7;
6173
+ var origin, currency, builder, reductionPcts, lastReduction, result, _i, _reductionPcts, percentage, modifiedBuilder, _t, _t2, _t3, _t4, _t5, _t6, _t7;
6172
6174
  return _regenerator().w(function (_context) {
6173
6175
  while (1) switch (_context.n) {
6174
6176
  case 0:
6175
- currency = options.currency, builder = options.builder;
6177
+ origin = options.origin, currency = options.currency, builder = options.builder;
6176
6178
  reductionPcts = [0, 10, 20, 30, 40, 50];
6177
6179
  lastReduction = reductionPcts[reductionPcts.length - 1];
6178
6180
  result = null;
@@ -6202,7 +6204,7 @@ var attemptDryRunFee = /*#__PURE__*/function () {
6202
6204
  return _t(_t7);
6203
6205
  case 3:
6204
6206
  result = _context.v;
6205
- if (!(result.feeType === 'dryRun' || percentage === lastReduction)) {
6207
+ if (!(result.feeType === 'dryRun' || percentage === lastReduction || !hasDryRunSupport(origin))) {
6206
6208
  _context.n = 4;
6207
6209
  break;
6208
6210
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-core",
3
- "version": "10.10.9",
3
+ "version": "10.10.10",
4
4
  "description": "SDK core for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,9 +26,9 @@
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "@scure/base": "^1.2.6",
28
28
  "viem": "^2.31.6",
29
- "@paraspell/assets": "10.10.9",
30
- "@paraspell/sdk-common": "10.10.9",
31
- "@paraspell/pallets": "10.10.9"
29
+ "@paraspell/assets": "10.10.10",
30
+ "@paraspell/pallets": "10.10.10",
31
+ "@paraspell/sdk-common": "10.10.10"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/plugin-syntax-import-attributes": "^7.27.1",