@paraspell/assets 14.5.1 → 14.5.3

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 +95 -23
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -3708,6 +3708,31 @@ var Hydration = {
3708
3708
  }
3709
3709
  }
3710
3710
  },
3711
+ {
3712
+ assetId: "5550",
3713
+ symbol: "jsHOLLAR",
3714
+ decimals: 18,
3715
+ existentialDeposit: "10000000000000000",
3716
+ erc20: {
3717
+ balanceSlot: 0
3718
+ },
3719
+ location: {
3720
+ parents: 1,
3721
+ interior: {
3722
+ X2: [
3723
+ {
3724
+ Parachain: 2034
3725
+ },
3726
+ {
3727
+ AccountKey20: {
3728
+ network: null,
3729
+ key: "0xb94025f14fdc01f8e3b0c34311bcbae0febd1a4a"
3730
+ }
3731
+ }
3732
+ ]
3733
+ }
3734
+ }
3735
+ },
3711
3736
  {
3712
3737
  assetId: "1006",
3713
3738
  symbol: "atBTC",
@@ -3756,6 +3781,32 @@ var Hydration = {
3756
3781
  }
3757
3782
  }
3758
3783
  },
3784
+ {
3785
+ assetId: "1013",
3786
+ symbol: "aNEAR",
3787
+ decimals: 24,
3788
+ existentialDeposit: "2074688796680497925311",
3789
+ erc20: {
3790
+ balanceSlot: 52
3791
+ },
3792
+ location: {
3793
+ parents: 1,
3794
+ interior: {
3795
+ X2: [
3796
+ {
3797
+ Parachain: 2034
3798
+ },
3799
+ {
3800
+ AccountKey20: {
3801
+ network: null,
3802
+ key: "0x3a31ff0a1e07da4158677ce861980cdf2e316b78"
3803
+ }
3804
+ }
3805
+ ]
3806
+ }
3807
+ },
3808
+ isFeeAsset: true
3809
+ },
3759
3810
  {
3760
3811
  assetId: "1000796",
3761
3812
  symbol: "LDO",
@@ -5451,6 +5502,31 @@ var Hydration = {
5451
5502
  },
5452
5503
  isFeeAsset: true
5453
5504
  },
5505
+ {
5506
+ assetId: "5551",
5507
+ symbol: "jETH",
5508
+ decimals: 18,
5509
+ existentialDeposit: "1000",
5510
+ erc20: {
5511
+ balanceSlot: 51
5512
+ },
5513
+ location: {
5514
+ parents: 1,
5515
+ interior: {
5516
+ X2: [
5517
+ {
5518
+ Parachain: 2034
5519
+ },
5520
+ {
5521
+ AccountKey20: {
5522
+ network: null,
5523
+ key: "0x98db179d65b8abc53946bd89b3433a4fd3bfb60c"
5524
+ }
5525
+ }
5526
+ ]
5527
+ }
5528
+ }
5529
+ },
5454
5530
  {
5455
5531
  assetId: "1043",
5456
5532
  symbol: "aPRIME",
@@ -17432,8 +17508,6 @@ var isDestinationReachable = function isDestinationReachable(origin, destination
17432
17508
  };
17433
17509
 
17434
17510
  var getSupportedAssetsImpl = function getSupportedAssetsImpl(origin, destination, ctx) {
17435
- var isSubBridge = isSubstrateBridge(origin, destination);
17436
- var isSb = isSnowbridge(origin, destination);
17437
17511
  if (!isDestinationReachableImpl(origin, destination, ctx)) return [];
17438
17512
  var originAssets = getAssetsImpl(origin, ctx);
17439
17513
  var destinationAssets = getAssetsImpl(destination, ctx);
@@ -17442,29 +17516,27 @@ var getSupportedAssetsImpl = function getSupportedAssetsImpl(origin, destination
17442
17516
  return isAssetEqual(a, asset);
17443
17517
  });
17444
17518
  });
17445
- if (isSubBridge || isSb) {
17519
+ if (isSubstrateBridge(origin, destination)) {
17520
+ var nativeSymbols = [origin, destination].map(function (chain) {
17521
+ return getNativeAssetSymbolImpl(chain, ctx);
17522
+ });
17446
17523
  var systemAssets = originAssets.filter(function (asset) {
17447
- return isSystemAsset(asset);
17524
+ return isSystemAsset(asset) && nativeSymbols.includes(asset.symbol);
17448
17525
  });
17449
- if (isSubBridge) {
17450
- var nativeSymbols = [origin, destination].map(function (chain) {
17451
- return getNativeAssetSymbolImpl(chain, ctx);
17452
- });
17453
- var filteredSystemAssets = systemAssets.filter(function (_ref) {
17454
- var symbol = _ref.symbol;
17455
- return nativeSymbols.includes(symbol);
17456
- });
17457
- var stablecoinAssets = findStablecoinAssets(origin);
17458
- var additionalBridgeAssets = supportedAssets.filter(isAdditionalSubstrateBridgeAsset);
17459
- return [].concat(_toConsumableArray(filteredSystemAssets), _toConsumableArray(stablecoinAssets), _toConsumableArray(additionalBridgeAssets));
17460
- } else {
17461
- // MYTH has two valid locations (native on Mythos, ERC-20 on Ethereum),
17462
- // so it isn't matched by isAssetEqual. Include it explicitly.
17463
- var mythosNative = origin === 'Mythos' && destination === 'Ethereum' ? originAssets.filter(function (asset) {
17464
- return asset.symbol === 'MYTH';
17465
- }) : [];
17466
- return [].concat(_toConsumableArray(systemAssets), _toConsumableArray(mythosNative), _toConsumableArray(supportedAssets));
17467
- }
17526
+ var stablecoinAssets = findStablecoinAssets(origin);
17527
+ var additionalBridgeAssets = supportedAssets.filter(isAdditionalSubstrateBridgeAsset);
17528
+ return [].concat(_toConsumableArray(systemAssets), _toConsumableArray(stablecoinAssets), _toConsumableArray(additionalBridgeAssets));
17529
+ }
17530
+ if (isSnowbridge(origin, destination)) {
17531
+ var _systemAssets = originAssets.filter(function (asset) {
17532
+ return isSystemAsset(asset) && findBestMatches(destinationAssets, asset.symbol).length > 0;
17533
+ });
17534
+ // MYTH has two valid locations (native on Mythos, ERC-20 on Ethereum),
17535
+ // so it isn't matched by isAssetEqual. Include it explicitly.
17536
+ var mythosNative = origin === 'Mythos' ? originAssets.filter(function (asset) {
17537
+ return asset.symbol === 'MYTH';
17538
+ }) : [];
17539
+ return [].concat(_toConsumableArray(_systemAssets), _toConsumableArray(mythosNative), _toConsumableArray(supportedAssets));
17468
17540
  }
17469
17541
  return supportedAssets;
17470
17542
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/assets",
3
- "version": "14.5.1",
3
+ "version": "14.5.3",
4
4
  "description": "Assets for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@paraspell/sdk-common": "14.5.1"
25
+ "@paraspell/sdk-common": "14.5.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/plugin-syntax-import-attributes": "^7.29.7",