@paraspell/assets 14.2.0 → 14.2.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 +3 -1
- package/dist/index.mjs +30 -42
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -240,6 +240,8 @@ declare const findNativeAssetInfo: (chain: TChain) => TAssetInfo | null;
|
|
|
240
240
|
declare const findNativeAssetInfoOrThrowImpl: <TCustomChain extends string = never>(chain: TChain | TCustomChain, ctx?: TCustomCtx) => TAssetInfo;
|
|
241
241
|
declare const findNativeAssetInfoOrThrow: (chain: TChain) => TAssetInfo;
|
|
242
242
|
|
|
243
|
+
declare const STABLECOIN_IDS: number[];
|
|
244
|
+
|
|
243
245
|
/**
|
|
244
246
|
* Error thrown when a custom asset's location collides with an existing
|
|
245
247
|
* registry asset and `forceOverride` was not set.
|
|
@@ -294,5 +296,5 @@ declare const extractAssetLocation: <T = bigint>(asset: TAsset<T>) => TLocation;
|
|
|
294
296
|
|
|
295
297
|
declare const getAssetLocation: (chain: TChain, currency: TCurrencyInput) => TLocation | null;
|
|
296
298
|
|
|
297
|
-
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, assertEdDefined, canonicalizeLocation, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoImpl, findAssetInfoOnDest, findAssetInfoOnDestImpl, findAssetInfoOrThrow, findAssetInfoOrThrowImpl, findAssetOnDestOrThrow, findAssetOnDestOrThrowImpl, findBestMatches, findNativeAssetInfo, findNativeAssetInfoImpl, findNativeAssetInfoOrThrow, findNativeAssetInfoOrThrowImpl, getAllAssetsSymbols, getAssetLocation, getAssets, getAssetsImpl, getAssetsObject, getAssetsObjectImpl, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositImpl, getExistentialDepositOrThrow, getExistentialDepositOrThrowImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAdditionalSubstrateBridgeAsset, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
|
|
299
|
+
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, STABLECOIN_IDS, assertEdDefined, canonicalizeLocation, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoImpl, findAssetInfoOnDest, findAssetInfoOnDestImpl, findAssetInfoOrThrow, findAssetInfoOrThrowImpl, findAssetOnDestOrThrow, findAssetOnDestOrThrowImpl, findBestMatches, findNativeAssetInfo, findNativeAssetInfoImpl, findNativeAssetInfoOrThrow, findNativeAssetInfoOrThrowImpl, getAllAssetsSymbols, getAssetLocation, getAssets, getAssetsImpl, getAssetsObject, getAssetsObjectImpl, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositImpl, getExistentialDepositOrThrow, getExistentialDepositOrThrowImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAdditionalSubstrateBridgeAsset, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
|
|
298
300
|
export type { TAmount, TAsset, TAssetInfo, TAssetInfoWithId, TAssetJsonMap, TAssetV3, TAssetV4, TAssetWithFee, TChainAssetsInfo, TCurrency, TCurrencyCore, TCurrencyInput, TCurrencyInputWithAmount, TCurrencySymbol, TCurrencySymbolValue, TCustomAssetInfo, TCustomAssetsMap, TCustomAssetsMapNormalized, TCustomCtx, TLocationValue, TSingleCurrencyInput, TSingleCurrencyInputWithAmount, TSymbolSpecifier, WithAmount, WithComplexAmount, WithOptionalAmount };
|
package/dist/index.mjs
CHANGED
|
@@ -1739,21 +1739,14 @@ var BifrostPolkadot = {
|
|
|
1739
1739
|
location: {
|
|
1740
1740
|
parents: 1,
|
|
1741
1741
|
interior: {
|
|
1742
|
-
|
|
1742
|
+
X1: [
|
|
1743
1743
|
{
|
|
1744
1744
|
Parachain: 2030
|
|
1745
|
-
},
|
|
1746
|
-
{
|
|
1747
|
-
GeneralKey: {
|
|
1748
|
-
length: 2,
|
|
1749
|
-
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
1750
|
-
}
|
|
1751
1745
|
}
|
|
1752
1746
|
]
|
|
1753
1747
|
}
|
|
1754
1748
|
},
|
|
1755
|
-
isNative: true
|
|
1756
|
-
isFeeAsset: true
|
|
1749
|
+
isNative: true
|
|
1757
1750
|
},
|
|
1758
1751
|
{
|
|
1759
1752
|
assetId: "6",
|
|
@@ -5702,28 +5695,6 @@ var AssetHubPolkadot = {
|
|
|
5702
5695
|
existentialDeposit: "1000000000000",
|
|
5703
5696
|
alias: "dot2"
|
|
5704
5697
|
},
|
|
5705
|
-
{
|
|
5706
|
-
assetId: "22222078",
|
|
5707
|
-
symbol: "JAMTON",
|
|
5708
|
-
decimals: 12,
|
|
5709
|
-
location: {
|
|
5710
|
-
parents: 1,
|
|
5711
|
-
interior: {
|
|
5712
|
-
X3: [
|
|
5713
|
-
{
|
|
5714
|
-
Parachain: 1000
|
|
5715
|
-
},
|
|
5716
|
-
{
|
|
5717
|
-
PalletInstance: 50
|
|
5718
|
-
},
|
|
5719
|
-
{
|
|
5720
|
-
GeneralIndex: 22222078
|
|
5721
|
-
}
|
|
5722
|
-
]
|
|
5723
|
-
}
|
|
5724
|
-
},
|
|
5725
|
-
existentialDeposit: "1000000000000"
|
|
5726
|
-
},
|
|
5727
5698
|
{
|
|
5728
5699
|
assetId: "50000069",
|
|
5729
5700
|
symbol: "LOTY",
|
|
@@ -7648,21 +7619,14 @@ var BifrostKusama = {
|
|
|
7648
7619
|
location: {
|
|
7649
7620
|
parents: 1,
|
|
7650
7621
|
interior: {
|
|
7651
|
-
|
|
7622
|
+
X1: [
|
|
7652
7623
|
{
|
|
7653
7624
|
Parachain: 2001
|
|
7654
|
-
},
|
|
7655
|
-
{
|
|
7656
|
-
GeneralKey: {
|
|
7657
|
-
length: 2,
|
|
7658
|
-
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
7659
|
-
}
|
|
7660
7625
|
}
|
|
7661
7626
|
]
|
|
7662
7627
|
}
|
|
7663
7628
|
},
|
|
7664
|
-
isNative: true
|
|
7665
|
-
isFeeAsset: true
|
|
7629
|
+
isNative: true
|
|
7666
7630
|
},
|
|
7667
7631
|
{
|
|
7668
7632
|
symbol: "KSM",
|
|
@@ -8843,7 +8807,8 @@ var Jamton = {
|
|
|
8843
8807
|
}
|
|
8844
8808
|
]
|
|
8845
8809
|
}
|
|
8846
|
-
}
|
|
8810
|
+
},
|
|
8811
|
+
isFeeAsset: true
|
|
8847
8812
|
},
|
|
8848
8813
|
{
|
|
8849
8814
|
assetId: "1",
|
|
@@ -9565,6 +9530,29 @@ var AssetHubKusama = {
|
|
|
9565
9530
|
},
|
|
9566
9531
|
existentialDeposit: "1000000"
|
|
9567
9532
|
},
|
|
9533
|
+
{
|
|
9534
|
+
assetId: "50000013",
|
|
9535
|
+
symbol: "KSM",
|
|
9536
|
+
decimals: 12,
|
|
9537
|
+
location: {
|
|
9538
|
+
parents: 1,
|
|
9539
|
+
interior: {
|
|
9540
|
+
X3: [
|
|
9541
|
+
{
|
|
9542
|
+
Parachain: 1000
|
|
9543
|
+
},
|
|
9544
|
+
{
|
|
9545
|
+
PalletInstance: 50
|
|
9546
|
+
},
|
|
9547
|
+
{
|
|
9548
|
+
GeneralIndex: 50000013
|
|
9549
|
+
}
|
|
9550
|
+
]
|
|
9551
|
+
}
|
|
9552
|
+
},
|
|
9553
|
+
existentialDeposit: "1",
|
|
9554
|
+
alias: "KSM4"
|
|
9555
|
+
},
|
|
9568
9556
|
{
|
|
9569
9557
|
assetId: "18",
|
|
9570
9558
|
symbol: "HEI",
|
|
@@ -17184,4 +17172,4 @@ var isSymbolMatch = function isSymbolMatch(symbolA, symbolB) {
|
|
|
17184
17172
|
return normalizeSymbol(symbolA) === normalizeSymbol(symbolB);
|
|
17185
17173
|
};
|
|
17186
17174
|
|
|
17187
|
-
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, assertEdDefined, canonicalizeLocation, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoImpl, findAssetInfoOnDest, findAssetInfoOnDestImpl, findAssetInfoOrThrow, findAssetInfoOrThrowImpl, findAssetOnDestOrThrow, findAssetOnDestOrThrowImpl, findBestMatches, findNativeAssetInfo, findNativeAssetInfoImpl, findNativeAssetInfoOrThrow, findNativeAssetInfoOrThrowImpl, getAllAssetsSymbols, getAssetLocation, getAssets, getAssetsImpl, getAssetsObject, getAssetsObjectImpl, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositImpl, getExistentialDepositOrThrow, getExistentialDepositOrThrowImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAdditionalSubstrateBridgeAsset, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
|
|
17175
|
+
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, STABLECOIN_IDS, assertEdDefined, canonicalizeLocation, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoImpl, findAssetInfoOnDest, findAssetInfoOnDestImpl, findAssetInfoOrThrow, findAssetInfoOrThrowImpl, findAssetOnDestOrThrow, findAssetOnDestOrThrowImpl, findBestMatches, findNativeAssetInfo, findNativeAssetInfoImpl, findNativeAssetInfoOrThrow, findNativeAssetInfoOrThrowImpl, getAllAssetsSymbols, getAssetLocation, getAssets, getAssetsImpl, getAssetsObject, getAssetsObjectImpl, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositImpl, getExistentialDepositOrThrow, getExistentialDepositOrThrowImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAdditionalSubstrateBridgeAsset, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, 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": "14.2.
|
|
3
|
+
"version": "14.2.1",
|
|
4
4
|
"description": "Assets for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@paraspell/sdk-common": "14.2.
|
|
25
|
+
"@paraspell/sdk-common": "14.2.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-syntax-import-attributes": "^7.29.7",
|