@paraspell/evm 13.11.0 → 14.1.0-rc

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.
Files changed (2) hide show
  1. package/dist/index.mjs +11 -20
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { UnsupportedOperationError, assertHasId, assertEvmAddress, getAssetsObject, getParaId, isOverrideLocationSpecifier, findAssetInfoOrThrow, abstractDecimals, getNativeAssetSymbol, InvalidCurrencyError, formatAssetIdToERC20, parseUnits, getParaEthTransferFees, pickCompatibleXcmVersion, createCustomXcmOnDest, createAsset, generateMessageId, TX_CLIENT_TIMEOUT_MS, BridgeHaltedError, getBridgeStatus, MissingParameterError, NumberFormatError, registerEvmExtension } from '@paraspell/sdk-core';
1
+ import { UnsupportedOperationError, assertHasId, assertEvmAddress, getAssetsObject, getParaId, findAssetInfoOrThrow, abstractDecimals, getNativeAssetSymbol, InvalidCurrencyError, formatAssetIdToERC20, parseUnits, getParaEthTransferFees, pickCompatibleXcmVersion, createCustomXcmOnDest, createAsset, generateMessageId, TX_CLIENT_TIMEOUT_MS, BridgeHaltedError, getBridgeStatus, MissingParameterError, NumberFormatError, registerEvmExtension } from '@paraspell/sdk-core';
2
2
  import { encodeFunctionData, maxUint64 } from 'viem';
3
3
  import { darwinia, moonriver, moonbeam } from 'viem/chains';
4
4
 
@@ -394,9 +394,6 @@ var buildMoonbeamEvm = function buildMoonbeamEvm(options) {
394
394
  if (Array.isArray(currency)) {
395
395
  throw new UnsupportedOperationError('Multi-assets are not yet supported for EVM transfers');
396
396
  }
397
- if ('location' in currency && isOverrideLocationSpecifier(currency.location)) {
398
- throw new UnsupportedOperationError('Override location is not supported for EVM transfers');
399
- }
400
397
  var foundAsset = findAssetInfoOrThrow(from, currency, to);
401
398
  var amount = abstractDecimals(currency.amount, foundAsset.decimals, api);
402
399
  if (from === to) {
@@ -540,24 +537,18 @@ var buildMoonbeamToEth = /*#__PURE__*/function () {
540
537
  }
541
538
  throw new UnsupportedOperationError('Multi-assets are not yet supported for EVM transfers');
542
539
  case 4:
543
- if (!('location' in currency && isOverrideLocationSpecifier(currency.location))) {
544
- _context.n = 5;
545
- break;
546
- }
547
- throw new UnsupportedOperationError('Override location is not supported for EVM transfers');
548
- case 5:
549
540
  foundAsset = findAssetInfoOrThrow(from, currency, to);
550
541
  amount = abstractDecimals(currency.amount, foundAsset.decimals, api);
551
542
  ethAsset = findAssetInfoOrThrow('Ethereum', {
552
543
  symbol: foundAsset.symbol
553
544
  });
554
545
  assertHasId(ethAsset);
555
- _context.n = 6;
546
+ _context.n = 5;
556
547
  return api.init(from, TX_CLIENT_TIMEOUT_MS);
557
- case 6:
558
- _context.n = 7;
548
+ case 5:
549
+ _context.n = 6;
559
550
  return generateMessageId(api, sender, getParaId(from), ethAsset.assetId, recipient, amount);
560
- case 7:
551
+ case 6:
561
552
  messageId = _context.v;
562
553
  version = pickCompatibleXcmVersion(api, from, to);
563
554
  customXcm = createCustomXcmOnDest({
@@ -576,17 +567,17 @@ var buildMoonbeamToEth = /*#__PURE__*/function () {
576
567
  beneficiaryLocation: {},
577
568
  version: version
578
569
  }, from, messageId, ethAsset);
579
- _context.n = 8;
570
+ _context.n = 7;
580
571
  return api.objectToHex(customXcm, 'XcmVersionedXcm', version);
581
- case 8:
572
+ case 7:
582
573
  customXcmOnDest = _context.v;
583
- _context.n = 9;
574
+ _context.n = 8;
584
575
  return api.createApiForChain('AssetHubPolkadot');
585
- case 9:
576
+ case 8:
586
577
  assetHubApi = _context.v;
587
- _context.n = 10;
578
+ _context.n = 9;
588
579
  return getParaEthTransferFees(assetHubApi);
589
- case 10:
580
+ case 9:
590
581
  _yield$getParaEthTran = _context.v;
591
582
  _yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
592
583
  bridgeFee = _yield$getParaEthTran2[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/evm",
3
- "version": "13.11.0",
3
+ "version": "14.1.0-rc",
4
4
  "description": "Optional EVM extension for @paraspell/sdk enabling interaction with EVM-compatible chains.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "author": "",
26
26
  "dependencies": {
27
27
  "viem": "^2.53.1",
28
- "@paraspell/sdk-core": "13.11.0"
28
+ "@paraspell/sdk-core": "14.1.0-rc"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@babel/plugin-syntax-import-attributes": "^7.29.7",