@paraspell/assets 14.5.2 → 14.5.4

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 +121 -25
  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",
@@ -13868,7 +13944,8 @@ var AssetHubPaseo = {
13868
13944
  ]
13869
13945
  }
13870
13946
  },
13871
- existentialDeposit: "100"
13947
+ existentialDeposit: "100",
13948
+ alias: "USDT1"
13872
13949
  },
13873
13950
  {
13874
13951
  assetId: "50000688",
@@ -13915,6 +13992,29 @@ var AssetHubPaseo = {
13915
13992
  existentialDeposit: "1",
13916
13993
  alias: "USDC2"
13917
13994
  },
13995
+ {
13996
+ assetId: "50001050",
13997
+ symbol: "USDT",
13998
+ decimals: 6,
13999
+ location: {
14000
+ parents: 1,
14001
+ interior: {
14002
+ X3: [
14003
+ {
14004
+ Parachain: 1000
14005
+ },
14006
+ {
14007
+ PalletInstance: 50
14008
+ },
14009
+ {
14010
+ GeneralIndex: 50001050
14011
+ }
14012
+ ]
14013
+ }
14014
+ },
14015
+ existentialDeposit: "1",
14016
+ alias: "USDT2"
14017
+ },
13918
14018
  {
13919
14019
  assetId: "50000309",
13920
14020
  symbol: "USDC",
@@ -16873,7 +16973,7 @@ var findAssetInfoByLoc = function findAssetInfoByLoc(foreignAssets, location) {
16873
16973
  }
16874
16974
  var normalizedLocation = canonicalizeLocation(location);
16875
16975
  return foreignAssets.find(function (asset) {
16876
- return asset.location && deepEqual(normalizedLocation, canonicalizeLocation(asset.location));
16976
+ return deepEqual(normalizedLocation, canonicalizeLocation(asset.location));
16877
16977
  });
16878
16978
  };
16879
16979
 
@@ -17432,8 +17532,6 @@ var isDestinationReachable = function isDestinationReachable(origin, destination
17432
17532
  };
17433
17533
 
17434
17534
  var getSupportedAssetsImpl = function getSupportedAssetsImpl(origin, destination, ctx) {
17435
- var isSubBridge = isSubstrateBridge(origin, destination);
17436
- var isSb = isSnowbridge(origin, destination);
17437
17535
  if (!isDestinationReachableImpl(origin, destination, ctx)) return [];
17438
17536
  var originAssets = getAssetsImpl(origin, ctx);
17439
17537
  var destinationAssets = getAssetsImpl(destination, ctx);
@@ -17442,29 +17540,27 @@ var getSupportedAssetsImpl = function getSupportedAssetsImpl(origin, destination
17442
17540
  return isAssetEqual(a, asset);
17443
17541
  });
17444
17542
  });
17445
- if (isSubBridge || isSb) {
17543
+ if (isSubstrateBridge(origin, destination)) {
17544
+ var nativeSymbols = [origin, destination].map(function (chain) {
17545
+ return getNativeAssetSymbolImpl(chain, ctx);
17546
+ });
17446
17547
  var systemAssets = originAssets.filter(function (asset) {
17447
- return isSystemAsset(asset);
17548
+ return isSystemAsset(asset) && nativeSymbols.includes(asset.symbol);
17448
17549
  });
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
- }
17550
+ var stablecoinAssets = findStablecoinAssets(origin);
17551
+ var additionalBridgeAssets = supportedAssets.filter(isAdditionalSubstrateBridgeAsset);
17552
+ return [].concat(_toConsumableArray(systemAssets), _toConsumableArray(stablecoinAssets), _toConsumableArray(additionalBridgeAssets));
17553
+ }
17554
+ if (isSnowbridge(origin, destination)) {
17555
+ var _systemAssets = originAssets.filter(function (asset) {
17556
+ return isSystemAsset(asset) && findBestMatches(destinationAssets, asset.symbol).length > 0;
17557
+ });
17558
+ // MYTH has two valid locations (native on Mythos, ERC-20 on Ethereum),
17559
+ // so it isn't matched by isAssetEqual. Include it explicitly.
17560
+ var mythosNative = origin === 'Mythos' ? originAssets.filter(function (asset) {
17561
+ return asset.symbol === 'MYTH';
17562
+ }) : [];
17563
+ return [].concat(_toConsumableArray(_systemAssets), _toConsumableArray(mythosNative), _toConsumableArray(supportedAssets));
17468
17564
  }
17469
17565
  return supportedAssets;
17470
17566
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/assets",
3
- "version": "14.5.2",
3
+ "version": "14.5.4",
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.2"
25
+ "@paraspell/sdk-common": "14.5.4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/plugin-syntax-import-attributes": "^7.29.7",