@paraspell/assets 10.5.1 → 10.5.2

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
@@ -12548,6 +12548,10 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
12548
12548
  return asset1.symbol.toLowerCase() === asset2.symbol.toLowerCase();
12549
12549
  };
12550
12550
 
12551
+ var isSymbolMatch = function isSymbolMatch(symbolA, symbolB) {
12552
+ return normalizeSymbol(symbolA) === normalizeSymbol(symbolB);
12553
+ };
12554
+
12551
12555
  var extractMultiAssetLoc = function extractMultiAssetLoc(multiAsset) {
12552
12556
  return 'Concrete' in multiAsset.id ? multiAsset.id.Concrete : multiAsset.id;
12553
12557
  };
@@ -12600,6 +12604,7 @@ exports.isAssetEqual = isAssetEqual;
12600
12604
  exports.isForeignAsset = isForeignAsset;
12601
12605
  exports.isNodeEvm = isNodeEvm;
12602
12606
  exports.isOverrideMultiLocationSpecifier = isOverrideMultiLocationSpecifier;
12607
+ exports.isSymbolMatch = isSymbolMatch;
12603
12608
  exports.isSymbolSpecifier = isSymbolSpecifier;
12604
12609
  exports.isTMultiAsset = isTMultiAsset;
12605
12610
  exports.normalizeMultiLocation = normalizeMultiLocation;
package/dist/index.d.ts CHANGED
@@ -198,6 +198,8 @@ declare const getSupportedDestinations: (origin: TNodeWithRelayChains, currency:
198
198
 
199
199
  declare const isAssetEqual: (asset1: TAsset, asset2: TAsset) => boolean;
200
200
 
201
+ declare const isSymbolMatch: (symbolA: string, symbolB: string) => boolean;
202
+
201
203
  /**
202
204
  * Converts a multi-location to a specific XCM version . Defaults to XCM v4.
203
205
  *
@@ -285,5 +287,5 @@ declare const extractMultiAssetLoc: (multiAsset: TMultiAsset) => TMultiLocation;
285
287
 
286
288
  declare const getAssetMultiLocation: (node: TNodeWithRelayChains, currency: TCurrencyInput) => TMultiLocation | null;
287
289
 
288
- export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findAssetForNodeOrThrow, findAssetOnDest, findAssetOnDestOrThrow, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getExistentialDepositOrThrow, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getSupportedDestinations, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolSpecifier, isTMultiAsset, normalizeMultiLocation, normalizeSymbol };
290
+ export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findAssetForNodeOrThrow, findAssetOnDest, findAssetOnDestOrThrow, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getExistentialDepositOrThrow, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getSupportedDestinations, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolMatch, isSymbolSpecifier, isTMultiAsset, normalizeMultiLocation, normalizeSymbol };
289
291
  export type { TAmount, TAsset, TAssetJsonMap, TCurrency, TCurrencyCore, TCurrencyInput, TCurrencyInputWithAmount, TCurrencySymbol, TCurrencySymbolValue, TForeignAsset, TMultiAsset, TMultiAssetV3, TMultiAssetV4, TMultiAssetWithFee, TMultiLocationValue, TMultiLocationValueWithOverride, TNativeAsset, TNodeAssets, TOverrideMultiLocationSpecifier, TSymbolSpecifier, WithAmount };
package/dist/index.mjs CHANGED
@@ -12546,6 +12546,10 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
12546
12546
  return asset1.symbol.toLowerCase() === asset2.symbol.toLowerCase();
12547
12547
  };
12548
12548
 
12549
+ var isSymbolMatch = function isSymbolMatch(symbolA, symbolB) {
12550
+ return normalizeSymbol(symbolA) === normalizeSymbol(symbolB);
12551
+ };
12552
+
12549
12553
  var extractMultiAssetLoc = function extractMultiAssetLoc(multiAsset) {
12550
12554
  return 'Concrete' in multiAsset.id ? multiAsset.id.Concrete : multiAsset.id;
12551
12555
  };
@@ -12558,4 +12562,4 @@ var getAssetMultiLocation = function getAssetMultiLocation(node, currency) {
12558
12562
  return asset.multiLocation;
12559
12563
  };
12560
12564
 
12561
- export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findAssetForNodeOrThrow, findAssetOnDest, findAssetOnDestOrThrow, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getExistentialDepositOrThrow, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getSupportedDestinations, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolSpecifier, isTMultiAsset, normalizeMultiLocation, normalizeSymbol };
12565
+ export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findAssetForNodeOrThrow, findAssetOnDest, findAssetOnDestOrThrow, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getExistentialDepositOrThrow, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getSupportedDestinations, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolMatch, isSymbolSpecifier, isTMultiAsset, normalizeMultiLocation, normalizeSymbol };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/assets",
3
- "version": "10.5.1",
3
+ "version": "10.5.2",
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": "10.5.1"
26
+ "@paraspell/sdk-common": "10.5.2"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/plugin-syntax-import-attributes": "^7.27.1",