@paraspell/assets 11.14.8 → 11.14.9
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 +8 -8
- package/dist/index.mjs +8 -8
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -21329,6 +21329,13 @@ var hasXcmPaymentApiSupport = function hasXcmPaymentApiSupport(chain) {
|
|
|
21329
21329
|
return getAssetsObject(chain).supportsXcmPaymentApi && !DISABLED_CHAINS.includes(chain);
|
|
21330
21330
|
};
|
|
21331
21331
|
|
|
21332
|
+
var isAssetXcEqual = function isAssetXcEqual(asset1, asset2) {
|
|
21333
|
+
var ml1 = asset1.location;
|
|
21334
|
+
var ml2 = asset2.location;
|
|
21335
|
+
if (ml1 && ml2 && sdkCommon.deepEqual(ml1, ml2)) return true;
|
|
21336
|
+
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21337
|
+
};
|
|
21338
|
+
|
|
21332
21339
|
/**
|
|
21333
21340
|
* Retrieves the list of assets that are supported for transfers between two specified chains.
|
|
21334
21341
|
*
|
|
@@ -21347,7 +21354,7 @@ var getSupportedAssets = function getSupportedAssets(origin, destination) {
|
|
|
21347
21354
|
}
|
|
21348
21355
|
var supportedAssets = originAssets.filter(function (asset) {
|
|
21349
21356
|
return destinationAssets.some(function (a) {
|
|
21350
|
-
return
|
|
21357
|
+
return isAssetXcEqual(a, asset);
|
|
21351
21358
|
});
|
|
21352
21359
|
});
|
|
21353
21360
|
return supportedAssets;
|
|
@@ -21386,13 +21393,6 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
|
|
|
21386
21393
|
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21387
21394
|
};
|
|
21388
21395
|
|
|
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
21396
|
exports.DuplicateAssetError = DuplicateAssetError;
|
|
21397
21397
|
exports.DuplicateAssetIdError = DuplicateAssetIdError;
|
|
21398
21398
|
exports.Foreign = Foreign;
|
package/dist/index.mjs
CHANGED
|
@@ -21327,6 +21327,13 @@ var hasXcmPaymentApiSupport = function hasXcmPaymentApiSupport(chain) {
|
|
|
21327
21327
|
return getAssetsObject(chain).supportsXcmPaymentApi && !DISABLED_CHAINS.includes(chain);
|
|
21328
21328
|
};
|
|
21329
21329
|
|
|
21330
|
+
var isAssetXcEqual = function isAssetXcEqual(asset1, asset2) {
|
|
21331
|
+
var ml1 = asset1.location;
|
|
21332
|
+
var ml2 = asset2.location;
|
|
21333
|
+
if (ml1 && ml2 && deepEqual(ml1, ml2)) return true;
|
|
21334
|
+
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21335
|
+
};
|
|
21336
|
+
|
|
21330
21337
|
/**
|
|
21331
21338
|
* Retrieves the list of assets that are supported for transfers between two specified chains.
|
|
21332
21339
|
*
|
|
@@ -21345,7 +21352,7 @@ var getSupportedAssets = function getSupportedAssets(origin, destination) {
|
|
|
21345
21352
|
}
|
|
21346
21353
|
var supportedAssets = originAssets.filter(function (asset) {
|
|
21347
21354
|
return destinationAssets.some(function (a) {
|
|
21348
|
-
return
|
|
21355
|
+
return isAssetXcEqual(a, asset);
|
|
21349
21356
|
});
|
|
21350
21357
|
});
|
|
21351
21358
|
return supportedAssets;
|
|
@@ -21384,11 +21391,4 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
|
|
|
21384
21391
|
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21385
21392
|
};
|
|
21386
21393
|
|
|
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
21394
|
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.
|
|
3
|
+
"version": "11.14.9",
|
|
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.
|
|
26
|
+
"@paraspell/sdk-common": "11.14.9"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/plugin-syntax-import-attributes": "^7.27.1",
|