@paraspell/assets 13.9.0 → 13.10.1
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.d.ts +1 -3
- package/dist/index.mjs +3 -7
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -226,8 +226,6 @@ declare const getSupportedDestinations: (origin: TChain, currency: TCurrencyCore
|
|
|
226
226
|
|
|
227
227
|
declare const isAssetEqual: (asset1: TAssetInfo, asset2: TAssetInfo) => boolean;
|
|
228
228
|
|
|
229
|
-
declare const isAssetXcEqual: (asset1: TAssetInfo, asset2: TAssetInfo) => boolean;
|
|
230
|
-
|
|
231
229
|
declare const isStableCoinAsset: (asset: TAssetInfo, assetId?: number) => boolean;
|
|
232
230
|
|
|
233
231
|
declare const isSymbolMatch: (symbolA: string, symbolB: string) => boolean;
|
|
@@ -335,5 +333,5 @@ declare const extractAssetLocation: <T = bigint>(asset: TAsset<T>) => TLocation;
|
|
|
335
333
|
|
|
336
334
|
declare const getAssetLocation: (chain: TChain, currency: TCurrencyInput) => TLocation | null;
|
|
337
335
|
|
|
338
|
-
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, assertEdDefined, canonicalizeLocation, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoImpl, findAssetInfoOnDest, findAssetInfoOnDestImpl, findAssetInfoOrThrow, findAssetInfoOrThrowImpl, findAssetOnDestOrThrow, findAssetOnDestOrThrowImpl, findBestMatches, findNativeAssetInfo, findNativeAssetInfoImpl, findNativeAssetInfoOrThrow, findNativeAssetInfoOrThrowImpl, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetLocation, getAssets, getAssetsImpl, getAssetsObject, getAssetsObjectImpl, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositImpl, getExistentialDepositOrThrow, getExistentialDepositOrThrowImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasSupportForAsset, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAssetEqual,
|
|
336
|
+
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, assertEdDefined, canonicalizeLocation, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoImpl, findAssetInfoOnDest, findAssetInfoOnDestImpl, findAssetInfoOrThrow, findAssetInfoOrThrowImpl, findAssetOnDestOrThrow, findAssetOnDestOrThrowImpl, findBestMatches, findNativeAssetInfo, findNativeAssetInfoImpl, findNativeAssetInfoOrThrow, findNativeAssetInfoOrThrowImpl, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetLocation, getAssets, getAssetsImpl, getAssetsObject, getAssetsObjectImpl, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositImpl, getExistentialDepositOrThrow, getExistentialDepositOrThrowImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasSupportForAsset, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isOverrideLocationSpecifier, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
|
|
339
337
|
export type { TAmount, TAsset, TAssetInfo, TAssetInfoWithId, TAssetJsonMap, TAssetV3, TAssetV4, TAssetWithFee, TChainAssetsInfo, TCurrency, TCurrencyCore, TCurrencyInput, TCurrencyInputWithAmount, TCurrencySymbol, TCurrencySymbolValue, TCustomAssetInfo, TCustomAssetsMap, TCustomAssetsMapNormalized, TCustomCtx, TLocationValue, TLocationValueWithOverride, TOverrideLocationSpecifier, TSingleCurrencyInput, TSingleCurrencyInputWithAmount, TSymbolSpecifier, WithAmount, WithComplexAmount, WithOptionalAmount };
|
package/dist/index.mjs
CHANGED
|
@@ -20116,16 +20116,12 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
|
|
|
20116
20116
|
return deepEqual(loc1, loc2);
|
|
20117
20117
|
};
|
|
20118
20118
|
|
|
20119
|
-
var isAssetXcEqual = function isAssetXcEqual(asset1, asset2) {
|
|
20120
|
-
return isAssetEqual(asset1, asset2);
|
|
20121
|
-
};
|
|
20122
|
-
|
|
20123
20119
|
var getSupportedAssetsImpl = function getSupportedAssetsImpl(origin, destination, ctx) {
|
|
20124
20120
|
var originAssets = getAssetsImpl(origin, ctx);
|
|
20125
20121
|
var destinationAssets = getAssetsImpl(destination, ctx);
|
|
20126
20122
|
var supportedAssets = originAssets.filter(function (asset) {
|
|
20127
20123
|
return destinationAssets.some(function (a) {
|
|
20128
|
-
return
|
|
20124
|
+
return isAssetEqual(a, asset);
|
|
20129
20125
|
});
|
|
20130
20126
|
});
|
|
20131
20127
|
var isSubBridge = isSubstrateBridge(origin, destination);
|
|
@@ -20146,7 +20142,7 @@ var getSupportedAssetsImpl = function getSupportedAssetsImpl(origin, destination
|
|
|
20146
20142
|
return [].concat(_toConsumableArray(filteredSystemAssets), _toConsumableArray(stablecoinAssets));
|
|
20147
20143
|
} else {
|
|
20148
20144
|
// MYTH has two valid locations (native on Mythos, ERC-20 on Ethereum),
|
|
20149
|
-
// so it isn't matched by
|
|
20145
|
+
// so it isn't matched by isAssetEqual. Include it explicitly.
|
|
20150
20146
|
var mythosNative = origin === 'Mythos' && destination === 'Ethereum' ? originAssets.filter(function (asset) {
|
|
20151
20147
|
return asset.symbol === 'MYTH';
|
|
20152
20148
|
}) : [];
|
|
@@ -20221,4 +20217,4 @@ var getSupportedDestinations = function getSupportedDestinations(origin, currenc
|
|
|
20221
20217
|
});
|
|
20222
20218
|
};
|
|
20223
20219
|
|
|
20224
|
-
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, assertEdDefined, canonicalizeLocation, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoImpl, findAssetInfoOnDest, findAssetInfoOnDestImpl, findAssetInfoOrThrow, findAssetInfoOrThrowImpl, findAssetOnDestOrThrow, findAssetOnDestOrThrowImpl, findBestMatches, findNativeAssetInfo, findNativeAssetInfoImpl, findNativeAssetInfoOrThrow, findNativeAssetInfoOrThrowImpl, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetLocation, getAssets, getAssetsImpl, getAssetsObject, getAssetsObjectImpl, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositImpl, getExistentialDepositOrThrow, getExistentialDepositOrThrowImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasSupportForAsset, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAssetEqual,
|
|
20220
|
+
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, assertEdDefined, canonicalizeLocation, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoImpl, findAssetInfoOnDest, findAssetInfoOnDestImpl, findAssetInfoOrThrow, findAssetInfoOrThrowImpl, findAssetOnDestOrThrow, findAssetOnDestOrThrowImpl, findBestMatches, findNativeAssetInfo, findNativeAssetInfoImpl, findNativeAssetInfoOrThrow, findNativeAssetInfoOrThrowImpl, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetLocation, getAssets, getAssetsImpl, getAssetsObject, getAssetsObjectImpl, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositImpl, getExistentialDepositOrThrow, getExistentialDepositOrThrowImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasSupportForAsset, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isOverrideLocationSpecifier, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/assets",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.10.1",
|
|
4
4
|
"description": "Assets for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@paraspell/sdk-common": "13.
|
|
25
|
+
"@paraspell/sdk-common": "13.10.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-syntax-import-attributes": "^7.29.7",
|
|
29
29
|
"@babel/preset-env": "^7.29.7",
|
|
30
30
|
"@codecov/rollup-plugin": "^2.0.1",
|
|
31
|
-
"@rollup/plugin-babel": "^7.
|
|
31
|
+
"@rollup/plugin-babel": "^7.1.0",
|
|
32
32
|
"@rollup/plugin-json": "^6.1.0",
|
|
33
33
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
34
34
|
"@snowbridge/registry": "^1.1.6",
|
|
35
|
-
"@vitest/coverage-v8": "^4.1.
|
|
35
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
36
36
|
"dotenv": "^17.4.2",
|
|
37
|
-
"polkadot-api": "^2.1.
|
|
38
|
-
"rollup": "^4.
|
|
37
|
+
"polkadot-api": "^2.1.7",
|
|
38
|
+
"rollup": "^4.62.2",
|
|
39
39
|
"rollup-plugin-dts": "^6.4.1",
|
|
40
40
|
"tsx": "^4.22.4",
|
|
41
|
-
"viem": "^2.
|
|
41
|
+
"viem": "^2.53.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"compile": "tsc --noEmit",
|