@paraspell/assets 13.4.1 → 13.5.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.
Files changed (2) hide show
  1. package/dist/index.mjs +83 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -6802,6 +6802,29 @@ var AssetHubPolkadot = {
6802
6802
  existentialDeposit: "1000000000000",
6803
6803
  isFeeAsset: true
6804
6804
  },
6805
+ {
6806
+ assetId: "50000515",
6807
+ symbol: "WUD",
6808
+ decimals: 18,
6809
+ location: {
6810
+ parents: 1,
6811
+ interior: {
6812
+ X3: [
6813
+ {
6814
+ Parachain: 1000
6815
+ },
6816
+ {
6817
+ PalletInstance: 50
6818
+ },
6819
+ {
6820
+ GeneralIndex: 50000515
6821
+ }
6822
+ ]
6823
+ }
6824
+ },
6825
+ existentialDeposit: "1000000000000",
6826
+ alias: "WUD4"
6827
+ },
6805
6828
  {
6806
6829
  assetId: "108",
6807
6830
  symbol: "GAME",
@@ -7169,6 +7192,29 @@ var AssetHubPolkadot = {
7169
7192
  existentialDeposit: "1",
7170
7193
  alias: "PEPE2"
7171
7194
  },
7195
+ {
7196
+ assetId: "50000509",
7197
+ symbol: "WUD",
7198
+ decimals: 18,
7199
+ location: {
7200
+ parents: 1,
7201
+ interior: {
7202
+ X3: [
7203
+ {
7204
+ Parachain: 1000
7205
+ },
7206
+ {
7207
+ PalletInstance: 50
7208
+ },
7209
+ {
7210
+ GeneralIndex: 50000509
7211
+ }
7212
+ ]
7213
+ }
7214
+ },
7215
+ existentialDeposit: "1000000000000",
7216
+ alias: "WUD3"
7217
+ },
7172
7218
  {
7173
7219
  assetId: "50000470",
7174
7220
  symbol: "USDt",
@@ -7351,6 +7397,29 @@ var AssetHubPolkadot = {
7351
7397
  },
7352
7398
  existentialDeposit: "1000000"
7353
7399
  },
7400
+ {
7401
+ assetId: "50000516",
7402
+ symbol: "WUD",
7403
+ decimals: 18,
7404
+ location: {
7405
+ parents: 1,
7406
+ interior: {
7407
+ X3: [
7408
+ {
7409
+ Parachain: 1000
7410
+ },
7411
+ {
7412
+ PalletInstance: 50
7413
+ },
7414
+ {
7415
+ GeneralIndex: 50000516
7416
+ }
7417
+ ]
7418
+ }
7419
+ },
7420
+ existentialDeposit: "1000000000000",
7421
+ alias: "WUD5"
7422
+ },
7354
7423
  {
7355
7424
  assetId: "31337",
7356
7425
  symbol: "WUD",
@@ -19415,6 +19484,14 @@ var findAssetInfoOnDest = function findAssetInfoOnDest(origin, destination, curr
19415
19484
  });
19416
19485
  if (match) return match;
19417
19486
  }
19487
+ // MYTH has two valid locations (native on Mythos, ERC-20 on Ethereum),
19488
+ // so resolve by symbol for the Mythos -> Ethereum Snowbridge transfer.
19489
+ if (isSb && origin === 'Mythos' && resolvedOriginAsset.symbol === 'MYTH') {
19490
+ var _match = findAssetInfo(destination, {
19491
+ symbol: 'MYTH'
19492
+ });
19493
+ if (_match) return _match;
19494
+ }
19418
19495
  return findAssetInfo(destination, {
19419
19496
  location: resolvedOriginAsset.location
19420
19497
  });
@@ -19699,7 +19776,12 @@ var getSupportedAssets = function getSupportedAssets(origin, destination) {
19699
19776
  var stablecoinAssets = findStablecoinAssets(origin);
19700
19777
  return [].concat(_toConsumableArray(filteredSystemAssets), _toConsumableArray(stablecoinAssets));
19701
19778
  } else {
19702
- return [].concat(_toConsumableArray(systemAssets), _toConsumableArray(supportedAssets));
19779
+ // MYTH has two valid locations (native on Mythos, ERC-20 on Ethereum),
19780
+ // so it isn't matched by isAssetXcEqual. Include it explicitly.
19781
+ var mythosNative = origin === 'Mythos' && destination === 'Ethereum' ? originAssets.filter(function (asset) {
19782
+ return asset.symbol === 'MYTH';
19783
+ }) : [];
19784
+ return [].concat(_toConsumableArray(systemAssets), _toConsumableArray(mythosNative), _toConsumableArray(supportedAssets));
19703
19785
  }
19704
19786
  }
19705
19787
  return supportedAssets;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/assets",
3
- "version": "13.4.1",
3
+ "version": "13.5.0",
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": "13.4.1"
25
+ "@paraspell/sdk-common": "13.5.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/plugin-syntax-import-attributes": "^7.28.6",