@paraspell/assets 11.14.7 → 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 +15 -9
- package/dist/index.mjs +15 -9
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2900,7 +2900,7 @@ var Xode = {
|
|
|
2900
2900
|
otherAssets: [
|
|
2901
2901
|
{
|
|
2902
2902
|
assetId: "1000000002",
|
|
2903
|
-
symbol: "
|
|
2903
|
+
symbol: "gXON",
|
|
2904
2904
|
decimals: 12,
|
|
2905
2905
|
existentialDeposit: "1000000000"
|
|
2906
2906
|
},
|
|
@@ -4266,6 +4266,12 @@ var Hydration = {
|
|
|
4266
4266
|
},
|
|
4267
4267
|
isFeeAsset: true
|
|
4268
4268
|
},
|
|
4269
|
+
{
|
|
4270
|
+
assetId: "42",
|
|
4271
|
+
symbol: "EURC",
|
|
4272
|
+
decimals: 6,
|
|
4273
|
+
existentialDeposit: "14000"
|
|
4274
|
+
},
|
|
4269
4275
|
{
|
|
4270
4276
|
assetId: "102",
|
|
4271
4277
|
symbol: "2-Pool",
|
|
@@ -21323,6 +21329,13 @@ var hasXcmPaymentApiSupport = function hasXcmPaymentApiSupport(chain) {
|
|
|
21323
21329
|
return getAssetsObject(chain).supportsXcmPaymentApi && !DISABLED_CHAINS.includes(chain);
|
|
21324
21330
|
};
|
|
21325
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
|
+
|
|
21326
21339
|
/**
|
|
21327
21340
|
* Retrieves the list of assets that are supported for transfers between two specified chains.
|
|
21328
21341
|
*
|
|
@@ -21341,7 +21354,7 @@ var getSupportedAssets = function getSupportedAssets(origin, destination) {
|
|
|
21341
21354
|
}
|
|
21342
21355
|
var supportedAssets = originAssets.filter(function (asset) {
|
|
21343
21356
|
return destinationAssets.some(function (a) {
|
|
21344
|
-
return
|
|
21357
|
+
return isAssetXcEqual(a, asset);
|
|
21345
21358
|
});
|
|
21346
21359
|
});
|
|
21347
21360
|
return supportedAssets;
|
|
@@ -21380,13 +21393,6 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
|
|
|
21380
21393
|
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21381
21394
|
};
|
|
21382
21395
|
|
|
21383
|
-
var isAssetXcEqual = function isAssetXcEqual(asset1, asset2) {
|
|
21384
|
-
var ml1 = asset1.location;
|
|
21385
|
-
var ml2 = asset2.location;
|
|
21386
|
-
if (ml1 && ml2 && sdkCommon.deepEqual(ml1, ml2)) return true;
|
|
21387
|
-
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21388
|
-
};
|
|
21389
|
-
|
|
21390
21396
|
exports.DuplicateAssetError = DuplicateAssetError;
|
|
21391
21397
|
exports.DuplicateAssetIdError = DuplicateAssetIdError;
|
|
21392
21398
|
exports.Foreign = Foreign;
|
package/dist/index.mjs
CHANGED
|
@@ -2898,7 +2898,7 @@ var Xode = {
|
|
|
2898
2898
|
otherAssets: [
|
|
2899
2899
|
{
|
|
2900
2900
|
assetId: "1000000002",
|
|
2901
|
-
symbol: "
|
|
2901
|
+
symbol: "gXON",
|
|
2902
2902
|
decimals: 12,
|
|
2903
2903
|
existentialDeposit: "1000000000"
|
|
2904
2904
|
},
|
|
@@ -4264,6 +4264,12 @@ var Hydration = {
|
|
|
4264
4264
|
},
|
|
4265
4265
|
isFeeAsset: true
|
|
4266
4266
|
},
|
|
4267
|
+
{
|
|
4268
|
+
assetId: "42",
|
|
4269
|
+
symbol: "EURC",
|
|
4270
|
+
decimals: 6,
|
|
4271
|
+
existentialDeposit: "14000"
|
|
4272
|
+
},
|
|
4267
4273
|
{
|
|
4268
4274
|
assetId: "102",
|
|
4269
4275
|
symbol: "2-Pool",
|
|
@@ -21321,6 +21327,13 @@ var hasXcmPaymentApiSupport = function hasXcmPaymentApiSupport(chain) {
|
|
|
21321
21327
|
return getAssetsObject(chain).supportsXcmPaymentApi && !DISABLED_CHAINS.includes(chain);
|
|
21322
21328
|
};
|
|
21323
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
|
+
|
|
21324
21337
|
/**
|
|
21325
21338
|
* Retrieves the list of assets that are supported for transfers between two specified chains.
|
|
21326
21339
|
*
|
|
@@ -21339,7 +21352,7 @@ var getSupportedAssets = function getSupportedAssets(origin, destination) {
|
|
|
21339
21352
|
}
|
|
21340
21353
|
var supportedAssets = originAssets.filter(function (asset) {
|
|
21341
21354
|
return destinationAssets.some(function (a) {
|
|
21342
|
-
return
|
|
21355
|
+
return isAssetXcEqual(a, asset);
|
|
21343
21356
|
});
|
|
21344
21357
|
});
|
|
21345
21358
|
return supportedAssets;
|
|
@@ -21378,11 +21391,4 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
|
|
|
21378
21391
|
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21379
21392
|
};
|
|
21380
21393
|
|
|
21381
|
-
var isAssetXcEqual = function isAssetXcEqual(asset1, asset2) {
|
|
21382
|
-
var ml1 = asset1.location;
|
|
21383
|
-
var ml2 = asset2.location;
|
|
21384
|
-
if (ml1 && ml2 && deepEqual(ml1, ml2)) return true;
|
|
21385
|
-
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21386
|
-
};
|
|
21387
|
-
|
|
21388
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",
|