@paraspell/assets 11.14.8 → 11.14.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/dist/index.cjs CHANGED
@@ -3062,6 +3062,27 @@ var EnergyWebX = {
3062
3062
  }
3063
3063
  ],
3064
3064
  otherAssets: [
3065
+ {
3066
+ symbol: "USDC",
3067
+ decimals: 6,
3068
+ existentialDeposit: "10000",
3069
+ location: {
3070
+ parents: 1,
3071
+ interior: {
3072
+ X3: [
3073
+ {
3074
+ Parachain: 1000
3075
+ },
3076
+ {
3077
+ PalletInstance: 50
3078
+ },
3079
+ {
3080
+ GeneralIndex: 1337
3081
+ }
3082
+ ]
3083
+ }
3084
+ }
3085
+ }
3065
3086
  ]
3066
3087
  };
3067
3088
  var Hydration = {
@@ -21329,6 +21350,13 @@ var hasXcmPaymentApiSupport = function hasXcmPaymentApiSupport(chain) {
21329
21350
  return getAssetsObject(chain).supportsXcmPaymentApi && !DISABLED_CHAINS.includes(chain);
21330
21351
  };
21331
21352
 
21353
+ var isAssetXcEqual = function isAssetXcEqual(asset1, asset2) {
21354
+ var ml1 = asset1.location;
21355
+ var ml2 = asset2.location;
21356
+ if (ml1 && ml2 && sdkCommon.deepEqual(ml1, ml2)) return true;
21357
+ return isSymbolMatch(asset1.symbol, asset2.symbol);
21358
+ };
21359
+
21332
21360
  /**
21333
21361
  * Retrieves the list of assets that are supported for transfers between two specified chains.
21334
21362
  *
@@ -21347,7 +21375,7 @@ var getSupportedAssets = function getSupportedAssets(origin, destination) {
21347
21375
  }
21348
21376
  var supportedAssets = originAssets.filter(function (asset) {
21349
21377
  return destinationAssets.some(function (a) {
21350
- return normalizeSymbol(a.symbol) === normalizeSymbol(asset.symbol);
21378
+ return isAssetXcEqual(a, asset);
21351
21379
  });
21352
21380
  });
21353
21381
  return supportedAssets;
@@ -21386,13 +21414,6 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
21386
21414
  return isSymbolMatch(asset1.symbol, asset2.symbol);
21387
21415
  };
21388
21416
 
21389
- var isAssetXcEqual = function isAssetXcEqual(asset1, asset2) {
21390
- var ml1 = asset1.location;
21391
- var ml2 = asset2.location;
21392
- if (ml1 && ml2 && sdkCommon.deepEqual(ml1, ml2)) return true;
21393
- return isSymbolMatch(asset1.symbol, asset2.symbol);
21394
- };
21395
-
21396
21417
  exports.DuplicateAssetError = DuplicateAssetError;
21397
21418
  exports.DuplicateAssetIdError = DuplicateAssetIdError;
21398
21419
  exports.Foreign = Foreign;
package/dist/index.mjs CHANGED
@@ -3060,6 +3060,27 @@ var EnergyWebX = {
3060
3060
  }
3061
3061
  ],
3062
3062
  otherAssets: [
3063
+ {
3064
+ symbol: "USDC",
3065
+ decimals: 6,
3066
+ existentialDeposit: "10000",
3067
+ location: {
3068
+ parents: 1,
3069
+ interior: {
3070
+ X3: [
3071
+ {
3072
+ Parachain: 1000
3073
+ },
3074
+ {
3075
+ PalletInstance: 50
3076
+ },
3077
+ {
3078
+ GeneralIndex: 1337
3079
+ }
3080
+ ]
3081
+ }
3082
+ }
3083
+ }
3063
3084
  ]
3064
3085
  };
3065
3086
  var Hydration = {
@@ -21327,6 +21348,13 @@ var hasXcmPaymentApiSupport = function hasXcmPaymentApiSupport(chain) {
21327
21348
  return getAssetsObject(chain).supportsXcmPaymentApi && !DISABLED_CHAINS.includes(chain);
21328
21349
  };
21329
21350
 
21351
+ var isAssetXcEqual = function isAssetXcEqual(asset1, asset2) {
21352
+ var ml1 = asset1.location;
21353
+ var ml2 = asset2.location;
21354
+ if (ml1 && ml2 && deepEqual(ml1, ml2)) return true;
21355
+ return isSymbolMatch(asset1.symbol, asset2.symbol);
21356
+ };
21357
+
21330
21358
  /**
21331
21359
  * Retrieves the list of assets that are supported for transfers between two specified chains.
21332
21360
  *
@@ -21345,7 +21373,7 @@ var getSupportedAssets = function getSupportedAssets(origin, destination) {
21345
21373
  }
21346
21374
  var supportedAssets = originAssets.filter(function (asset) {
21347
21375
  return destinationAssets.some(function (a) {
21348
- return normalizeSymbol(a.symbol) === normalizeSymbol(asset.symbol);
21376
+ return isAssetXcEqual(a, asset);
21349
21377
  });
21350
21378
  });
21351
21379
  return supportedAssets;
@@ -21384,11 +21412,4 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
21384
21412
  return isSymbolMatch(asset1.symbol, asset2.symbol);
21385
21413
  };
21386
21414
 
21387
- var isAssetXcEqual = function isAssetXcEqual(asset1, asset2) {
21388
- var ml1 = asset1.location;
21389
- var ml2 = asset2.location;
21390
- if (ml1 && ml2 && deepEqual(ml1, ml2)) return true;
21391
- return isSymbolMatch(asset1.symbol, asset2.symbol);
21392
- };
21393
-
21394
21415
  export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, assertEdDefined, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoOnDest, findAssetInfoOrThrow, findAssetOnDestOrThrow, findBestMatches, findNativeAssetInfo, findNativeAssetInfoOrThrow, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetLocation, getAssets, getAssetsObject, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositOrThrow, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getSupportedDestinations, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isAssetXcEqual, isChainEvm, isForeignAsset, isOverrideLocationSpecifier, isSymbolMatch, isSymbolSpecifier, isTAsset, normalizeLocation, normalizeSymbol };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/assets",
3
- "version": "11.14.8",
3
+ "version": "11.14.10",
4
4
  "description": "Assets for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@paraspell/sdk-common": "11.14.8"
26
+ "@paraspell/sdk-common": "11.14.10"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/plugin-syntax-import-attributes": "^7.27.1",