@paraspell/assets 14.3.6 → 14.4.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.d.ts +5 -9
- package/dist/index.mjs +187 -322
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ type TAssetInfo = {
|
|
|
26
26
|
isNative?: boolean;
|
|
27
27
|
assetId?: string;
|
|
28
28
|
location: TLocation;
|
|
29
|
-
existentialDeposit
|
|
29
|
+
existentialDeposit: string;
|
|
30
30
|
isFeeAsset?: boolean;
|
|
31
31
|
erc20?: TErc20Info;
|
|
32
32
|
alias?: string;
|
|
@@ -94,18 +94,14 @@ type TCustomCtx = {
|
|
|
94
94
|
customChainAssets?: Record<string, TChainAssetsInfo>;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
declare const getExistentialDepositImpl: <TCustomChain extends string = never>(chain: TChain | TCustomChain, currency?: TCurrencyCore, ctx?: TCustomCtx) => bigint
|
|
97
|
+
declare const getExistentialDepositImpl: <TCustomChain extends string = never>(chain: TChain | TCustomChain, currency?: TCurrencyCore, ctx?: TCustomCtx) => bigint;
|
|
98
98
|
/**
|
|
99
99
|
* Retrieves the existential deposit value for a given chain.
|
|
100
100
|
*
|
|
101
101
|
* @param chain - The chain for which to get the existential deposit.
|
|
102
|
-
* @returns The existential deposit as a bigint
|
|
102
|
+
* @returns The existential deposit as a bigint.
|
|
103
103
|
*/
|
|
104
|
-
declare const getExistentialDeposit: (chain: TChain, currency?: TCurrencyCore) => bigint
|
|
105
|
-
declare const assertEdDefined: <TCustomChain extends string = never>(ed: bigint | null, chain?: TChain | TCustomChain, currency?: TCurrencyCore) => asserts ed is bigint;
|
|
106
|
-
declare const getExistentialDepositOrThrowImpl: <TCustomChain extends string = never>(chain: TChain | TCustomChain, currency?: TCurrencyCore, ctx?: TCustomCtx) => bigint;
|
|
107
|
-
declare const getExistentialDepositOrThrow: (chain: TChain, currency?: TCurrencyCore) => bigint;
|
|
108
|
-
declare const getEdFromAssetOrThrow: (asset: TAssetInfo) => bigint;
|
|
104
|
+
declare const getExistentialDeposit: (chain: TChain, currency?: TCurrencyCore) => bigint;
|
|
109
105
|
|
|
110
106
|
declare const getFeeAssets: (chain: TChain) => Omit<TAssetInfo, "isFeeAsset">[];
|
|
111
107
|
|
|
@@ -304,5 +300,5 @@ declare const extractAssetLocation: <T = bigint>(asset: TAsset<T>) => TLocation;
|
|
|
304
300
|
|
|
305
301
|
declare const getAssetLocation: (chain: TChain, currency: TCurrencyInput) => TLocation | null;
|
|
306
302
|
|
|
307
|
-
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, STABLECOIN_IDS,
|
|
303
|
+
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, STABLECOIN_IDS, 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, getExistentialDeposit, getExistentialDepositImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAdditionalSubstrateBridgeAsset, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isDestinationReachable, isDestinationReachableImpl, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
|
|
308
304
|
export type { TAmount, TAsset, TAssetInfo, TAssetInfoWithId, TAssetJsonMap, TAssetV3, TAssetV4, TAssetWithFee, TChainAssetsInfo, TCurrency, TCurrencyCore, TCurrencyInput, TCurrencyInputWithAmount, TCurrencySymbol, TCurrencySymbolValue, TCustomAssetInfo, TCustomAssetsMap, TCustomAssetsMapNormalized, TCustomCtx, TErc20Info, TLocationValue, TSingleCurrencyInput, TSingleCurrencyInputWithAmount, TSymbolSpecifier, WithAmount, WithComplexAmount, WithOptionalAmount };
|
package/dist/index.mjs
CHANGED
|
@@ -3057,6 +3057,38 @@ var Hydration = {
|
|
|
3057
3057
|
},
|
|
3058
3058
|
isFeeAsset: true
|
|
3059
3059
|
},
|
|
3060
|
+
{
|
|
3061
|
+
assetId: "1001356",
|
|
3062
|
+
symbol: "SPY",
|
|
3063
|
+
decimals: 18,
|
|
3064
|
+
existentialDeposit: "13061480386097",
|
|
3065
|
+
location: {
|
|
3066
|
+
parents: 1,
|
|
3067
|
+
interior: {
|
|
3068
|
+
X4: [
|
|
3069
|
+
{
|
|
3070
|
+
Parachain: 2034
|
|
3071
|
+
},
|
|
3072
|
+
{
|
|
3073
|
+
GeneralKey: {
|
|
3074
|
+
length: 2,
|
|
3075
|
+
data: "0x7768000000000000000000000000000000000000000000000000000000000000"
|
|
3076
|
+
}
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
GeneralIndex: 72
|
|
3080
|
+
},
|
|
3081
|
+
{
|
|
3082
|
+
GeneralKey: {
|
|
3083
|
+
length: 32,
|
|
3084
|
+
data: "0x000000000000000000000000117cc2133c37b721f49de2a7a74833232b3b4c0c"
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
]
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
isFeeAsset: true
|
|
3091
|
+
},
|
|
3060
3092
|
{
|
|
3061
3093
|
assetId: "420",
|
|
3062
3094
|
symbol: "GETH",
|
|
@@ -3504,24 +3536,30 @@ var Hydration = {
|
|
|
3504
3536
|
isFeeAsset: true
|
|
3505
3537
|
},
|
|
3506
3538
|
{
|
|
3507
|
-
assetId: "
|
|
3508
|
-
symbol: "
|
|
3509
|
-
decimals:
|
|
3510
|
-
existentialDeposit: "
|
|
3511
|
-
erc20: {
|
|
3512
|
-
balanceSlot: 52
|
|
3513
|
-
},
|
|
3539
|
+
assetId: "1001357",
|
|
3540
|
+
symbol: "ZEC",
|
|
3541
|
+
decimals: 8,
|
|
3542
|
+
existentialDeposit: "674",
|
|
3514
3543
|
location: {
|
|
3515
3544
|
parents: 1,
|
|
3516
3545
|
interior: {
|
|
3517
|
-
|
|
3546
|
+
X4: [
|
|
3518
3547
|
{
|
|
3519
3548
|
Parachain: 2034
|
|
3520
3549
|
},
|
|
3521
3550
|
{
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3551
|
+
GeneralKey: {
|
|
3552
|
+
length: 2,
|
|
3553
|
+
data: "0x7768000000000000000000000000000000000000000000000000000000000000"
|
|
3554
|
+
}
|
|
3555
|
+
},
|
|
3556
|
+
{
|
|
3557
|
+
GeneralIndex: 15
|
|
3558
|
+
},
|
|
3559
|
+
{
|
|
3560
|
+
GeneralKey: {
|
|
3561
|
+
length: 32,
|
|
3562
|
+
data: "0x3174446b8cc98197d6f2c9e504d6d229f0adb00d2b7566af0e54a84a876fef0f"
|
|
3525
3563
|
}
|
|
3526
3564
|
}
|
|
3527
3565
|
]
|
|
@@ -3881,32 +3919,6 @@ var Hydration = {
|
|
|
3881
3919
|
},
|
|
3882
3920
|
isFeeAsset: true
|
|
3883
3921
|
},
|
|
3884
|
-
{
|
|
3885
|
-
assetId: "1001354",
|
|
3886
|
-
symbol: "aDOT-HOLLAR",
|
|
3887
|
-
decimals: 18,
|
|
3888
|
-
existentialDeposit: "20000000000000000",
|
|
3889
|
-
erc20: {
|
|
3890
|
-
balanceSlot: 0
|
|
3891
|
-
},
|
|
3892
|
-
location: {
|
|
3893
|
-
parents: 1,
|
|
3894
|
-
interior: {
|
|
3895
|
-
X2: [
|
|
3896
|
-
{
|
|
3897
|
-
Parachain: 2034
|
|
3898
|
-
},
|
|
3899
|
-
{
|
|
3900
|
-
AccountKey20: {
|
|
3901
|
-
network: null,
|
|
3902
|
-
key: "0xa206d0959813f17c17c87147271c49065438648a"
|
|
3903
|
-
}
|
|
3904
|
-
}
|
|
3905
|
-
]
|
|
3906
|
-
}
|
|
3907
|
-
},
|
|
3908
|
-
isFeeAsset: true
|
|
3909
|
-
},
|
|
3910
3922
|
{
|
|
3911
3923
|
assetId: "41",
|
|
3912
3924
|
symbol: "CFG",
|
|
@@ -4123,6 +4135,38 @@ var Hydration = {
|
|
|
4123
4135
|
},
|
|
4124
4136
|
isFeeAsset: true
|
|
4125
4137
|
},
|
|
4138
|
+
{
|
|
4139
|
+
assetId: "1001355",
|
|
4140
|
+
symbol: "HYPE",
|
|
4141
|
+
decimals: 18,
|
|
4142
|
+
existentialDeposit: "114285714285714",
|
|
4143
|
+
location: {
|
|
4144
|
+
parents: 1,
|
|
4145
|
+
interior: {
|
|
4146
|
+
X4: [
|
|
4147
|
+
{
|
|
4148
|
+
Parachain: 2034
|
|
4149
|
+
},
|
|
4150
|
+
{
|
|
4151
|
+
GeneralKey: {
|
|
4152
|
+
length: 2,
|
|
4153
|
+
data: "0x7768000000000000000000000000000000000000000000000000000000000000"
|
|
4154
|
+
}
|
|
4155
|
+
},
|
|
4156
|
+
{
|
|
4157
|
+
GeneralIndex: 47
|
|
4158
|
+
},
|
|
4159
|
+
{
|
|
4160
|
+
GeneralKey: {
|
|
4161
|
+
length: 32,
|
|
4162
|
+
data: "0x0000000000000000000000005555555555555555555555555555555555555555"
|
|
4163
|
+
}
|
|
4164
|
+
}
|
|
4165
|
+
]
|
|
4166
|
+
}
|
|
4167
|
+
},
|
|
4168
|
+
isFeeAsset: true
|
|
4169
|
+
},
|
|
4126
4170
|
{
|
|
4127
4171
|
assetId: "1001168",
|
|
4128
4172
|
symbol: "XON",
|
|
@@ -4806,6 +4850,38 @@ var Hydration = {
|
|
|
4806
4850
|
},
|
|
4807
4851
|
isFeeAsset: true
|
|
4808
4852
|
},
|
|
4853
|
+
{
|
|
4854
|
+
assetId: "1001358",
|
|
4855
|
+
symbol: "NEAR",
|
|
4856
|
+
decimals: 24,
|
|
4857
|
+
existentialDeposit: "2074688796680497925311",
|
|
4858
|
+
location: {
|
|
4859
|
+
parents: 1,
|
|
4860
|
+
interior: {
|
|
4861
|
+
X4: [
|
|
4862
|
+
{
|
|
4863
|
+
Parachain: 2034
|
|
4864
|
+
},
|
|
4865
|
+
{
|
|
4866
|
+
GeneralKey: {
|
|
4867
|
+
length: 2,
|
|
4868
|
+
data: "0x7768000000000000000000000000000000000000000000000000000000000000"
|
|
4869
|
+
}
|
|
4870
|
+
},
|
|
4871
|
+
{
|
|
4872
|
+
GeneralIndex: 15
|
|
4873
|
+
},
|
|
4874
|
+
{
|
|
4875
|
+
GeneralKey: {
|
|
4876
|
+
length: 32,
|
|
4877
|
+
data: "0xb55c490bafb82aeb4b950fa479341c1b5fbfa814f8253b6acdf8426b7cd9d3c0"
|
|
4878
|
+
}
|
|
4879
|
+
}
|
|
4880
|
+
]
|
|
4881
|
+
}
|
|
4882
|
+
},
|
|
4883
|
+
isFeeAsset: true
|
|
4884
|
+
},
|
|
4809
4885
|
{
|
|
4810
4886
|
assetId: "1000809",
|
|
4811
4887
|
symbol: "wstETH",
|
|
@@ -6079,6 +6155,29 @@ var AssetHubPolkadot = {
|
|
|
6079
6155
|
existentialDeposit: "1",
|
|
6080
6156
|
alias: "DOT7"
|
|
6081
6157
|
},
|
|
6158
|
+
{
|
|
6159
|
+
assetId: "7873",
|
|
6160
|
+
symbol: "dotUSD",
|
|
6161
|
+
decimals: 6,
|
|
6162
|
+
location: {
|
|
6163
|
+
parents: 1,
|
|
6164
|
+
interior: {
|
|
6165
|
+
X3: [
|
|
6166
|
+
{
|
|
6167
|
+
Parachain: 1000
|
|
6168
|
+
},
|
|
6169
|
+
{
|
|
6170
|
+
PalletInstance: 50
|
|
6171
|
+
},
|
|
6172
|
+
{
|
|
6173
|
+
GeneralIndex: 7873
|
|
6174
|
+
}
|
|
6175
|
+
]
|
|
6176
|
+
}
|
|
6177
|
+
},
|
|
6178
|
+
existentialDeposit: "10000",
|
|
6179
|
+
isFeeAsset: true
|
|
6180
|
+
},
|
|
6082
6181
|
{
|
|
6083
6182
|
assetId: "201",
|
|
6084
6183
|
symbol: "WUD",
|
|
@@ -6282,6 +6381,7 @@ var AssetHubPolkadot = {
|
|
|
6282
6381
|
}
|
|
6283
6382
|
},
|
|
6284
6383
|
existentialDeposit: "10000000",
|
|
6384
|
+
isFeeAsset: true,
|
|
6285
6385
|
alias: "WUD2"
|
|
6286
6386
|
},
|
|
6287
6387
|
{
|
|
@@ -6465,7 +6565,8 @@ var AssetHubPolkadot = {
|
|
|
6465
6565
|
]
|
|
6466
6566
|
}
|
|
6467
6567
|
},
|
|
6468
|
-
existentialDeposit: "1000000000000"
|
|
6568
|
+
existentialDeposit: "1000000000000",
|
|
6569
|
+
isFeeAsset: true
|
|
6469
6570
|
},
|
|
6470
6571
|
{
|
|
6471
6572
|
symbol: "sUSDe",
|
|
@@ -8103,168 +8204,6 @@ var BifrostKusama = {
|
|
|
8103
8204
|
}
|
|
8104
8205
|
]
|
|
8105
8206
|
};
|
|
8106
|
-
var CrustShadow = {
|
|
8107
|
-
relaychainSymbol: "KSM",
|
|
8108
|
-
nativeAssetSymbol: "CSM",
|
|
8109
|
-
isEVM: false,
|
|
8110
|
-
ss58Prefix: 66,
|
|
8111
|
-
supportsDryRunApi: false,
|
|
8112
|
-
supportsXcmPaymentApi: false,
|
|
8113
|
-
assets: [
|
|
8114
|
-
{
|
|
8115
|
-
symbol: "CSM",
|
|
8116
|
-
isNative: true,
|
|
8117
|
-
decimals: 12,
|
|
8118
|
-
existentialDeposit: "100000000000",
|
|
8119
|
-
location: {
|
|
8120
|
-
parents: 1,
|
|
8121
|
-
interior: {
|
|
8122
|
-
X1: [
|
|
8123
|
-
{
|
|
8124
|
-
Parachain: 2012
|
|
8125
|
-
}
|
|
8126
|
-
]
|
|
8127
|
-
}
|
|
8128
|
-
}
|
|
8129
|
-
},
|
|
8130
|
-
{
|
|
8131
|
-
assetId: "16797826370226091782818345603793389938",
|
|
8132
|
-
symbol: "SDN",
|
|
8133
|
-
decimals: 18,
|
|
8134
|
-
existentialDeposit: "1000000",
|
|
8135
|
-
location: {
|
|
8136
|
-
parents: 1,
|
|
8137
|
-
interior: {
|
|
8138
|
-
X1: [
|
|
8139
|
-
{
|
|
8140
|
-
Parachain: 2007
|
|
8141
|
-
}
|
|
8142
|
-
]
|
|
8143
|
-
}
|
|
8144
|
-
}
|
|
8145
|
-
},
|
|
8146
|
-
{
|
|
8147
|
-
assetId: "108036400430056508975016746969135344601",
|
|
8148
|
-
symbol: "XRT",
|
|
8149
|
-
decimals: 9,
|
|
8150
|
-
existentialDeposit: "1",
|
|
8151
|
-
location: {
|
|
8152
|
-
parents: 1,
|
|
8153
|
-
interior: {
|
|
8154
|
-
X1: [
|
|
8155
|
-
{
|
|
8156
|
-
Parachain: 2048
|
|
8157
|
-
}
|
|
8158
|
-
]
|
|
8159
|
-
}
|
|
8160
|
-
}
|
|
8161
|
-
},
|
|
8162
|
-
{
|
|
8163
|
-
assetId: "173481220575862801646329923366065693029",
|
|
8164
|
-
symbol: "CRAB",
|
|
8165
|
-
decimals: 18,
|
|
8166
|
-
existentialDeposit: "1",
|
|
8167
|
-
location: {
|
|
8168
|
-
parents: 1,
|
|
8169
|
-
interior: {
|
|
8170
|
-
X2: [
|
|
8171
|
-
{
|
|
8172
|
-
Parachain: 2105
|
|
8173
|
-
},
|
|
8174
|
-
{
|
|
8175
|
-
PalletInstance: 5
|
|
8176
|
-
}
|
|
8177
|
-
]
|
|
8178
|
-
}
|
|
8179
|
-
}
|
|
8180
|
-
},
|
|
8181
|
-
{
|
|
8182
|
-
assetId: "214920334981412447805621250067209749032",
|
|
8183
|
-
symbol: "AUSD",
|
|
8184
|
-
decimals: 12,
|
|
8185
|
-
existentialDeposit: "1",
|
|
8186
|
-
location: {
|
|
8187
|
-
parents: 1,
|
|
8188
|
-
interior: {
|
|
8189
|
-
X2: [
|
|
8190
|
-
{
|
|
8191
|
-
Parachain: 2000
|
|
8192
|
-
},
|
|
8193
|
-
{
|
|
8194
|
-
GeneralKey: {
|
|
8195
|
-
length: 2,
|
|
8196
|
-
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
8197
|
-
}
|
|
8198
|
-
}
|
|
8199
|
-
]
|
|
8200
|
-
}
|
|
8201
|
-
}
|
|
8202
|
-
},
|
|
8203
|
-
{
|
|
8204
|
-
assetId: "232263652204149413431520870009560565298",
|
|
8205
|
-
symbol: "MOVR",
|
|
8206
|
-
decimals: 18,
|
|
8207
|
-
existentialDeposit: "1000000",
|
|
8208
|
-
location: {
|
|
8209
|
-
parents: 1,
|
|
8210
|
-
interior: {
|
|
8211
|
-
X2: [
|
|
8212
|
-
{
|
|
8213
|
-
Parachain: 2023
|
|
8214
|
-
},
|
|
8215
|
-
{
|
|
8216
|
-
PalletInstance: 10
|
|
8217
|
-
}
|
|
8218
|
-
]
|
|
8219
|
-
}
|
|
8220
|
-
}
|
|
8221
|
-
},
|
|
8222
|
-
{
|
|
8223
|
-
assetId: "10810581592933651521121702237638664357",
|
|
8224
|
-
symbol: "KAR",
|
|
8225
|
-
decimals: 12,
|
|
8226
|
-
existentialDeposit: "1",
|
|
8227
|
-
location: {
|
|
8228
|
-
parents: 1,
|
|
8229
|
-
interior: {
|
|
8230
|
-
X2: [
|
|
8231
|
-
{
|
|
8232
|
-
Parachain: 2000
|
|
8233
|
-
},
|
|
8234
|
-
{
|
|
8235
|
-
GeneralKey: {
|
|
8236
|
-
length: 2,
|
|
8237
|
-
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
8238
|
-
}
|
|
8239
|
-
}
|
|
8240
|
-
]
|
|
8241
|
-
}
|
|
8242
|
-
}
|
|
8243
|
-
},
|
|
8244
|
-
{
|
|
8245
|
-
assetId: "319623561105283008236062145480775032445",
|
|
8246
|
-
symbol: "BNC",
|
|
8247
|
-
decimals: 12,
|
|
8248
|
-
existentialDeposit: "1",
|
|
8249
|
-
location: {
|
|
8250
|
-
parents: 1,
|
|
8251
|
-
interior: {
|
|
8252
|
-
X2: [
|
|
8253
|
-
{
|
|
8254
|
-
Parachain: 2001
|
|
8255
|
-
},
|
|
8256
|
-
{
|
|
8257
|
-
GeneralKey: {
|
|
8258
|
-
length: 2,
|
|
8259
|
-
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
8260
|
-
}
|
|
8261
|
-
}
|
|
8262
|
-
]
|
|
8263
|
-
}
|
|
8264
|
-
}
|
|
8265
|
-
}
|
|
8266
|
-
]
|
|
8267
|
-
};
|
|
8268
8207
|
var Encointer = {
|
|
8269
8208
|
relaychainSymbol: "KSM",
|
|
8270
8209
|
nativeAssetSymbol: "KSM",
|
|
@@ -8903,6 +8842,29 @@ var Jamton = {
|
|
|
8903
8842
|
},
|
|
8904
8843
|
isNative: true
|
|
8905
8844
|
},
|
|
8845
|
+
{
|
|
8846
|
+
assetId: "3",
|
|
8847
|
+
symbol: "XAUH",
|
|
8848
|
+
decimals: 18,
|
|
8849
|
+
existentialDeposit: "0",
|
|
8850
|
+
location: {
|
|
8851
|
+
parents: 1,
|
|
8852
|
+
interior: {
|
|
8853
|
+
X2: [
|
|
8854
|
+
{
|
|
8855
|
+
Parachain: 3397
|
|
8856
|
+
},
|
|
8857
|
+
{
|
|
8858
|
+
GeneralKey: {
|
|
8859
|
+
length: 32,
|
|
8860
|
+
data: "0x0000000000000000000000000000000000000000000000000000000078617568"
|
|
8861
|
+
}
|
|
8862
|
+
}
|
|
8863
|
+
]
|
|
8864
|
+
}
|
|
8865
|
+
},
|
|
8866
|
+
isNative: true
|
|
8867
|
+
},
|
|
8906
8868
|
{
|
|
8907
8869
|
assetId: "0",
|
|
8908
8870
|
symbol: "DOT",
|
|
@@ -10908,76 +10870,6 @@ var Unique = {
|
|
|
10908
10870
|
}
|
|
10909
10871
|
]
|
|
10910
10872
|
};
|
|
10911
|
-
var Crust = {
|
|
10912
|
-
relaychainSymbol: "DOT",
|
|
10913
|
-
nativeAssetSymbol: "CRU",
|
|
10914
|
-
isEVM: false,
|
|
10915
|
-
ss58Prefix: 0,
|
|
10916
|
-
supportsDryRunApi: false,
|
|
10917
|
-
supportsXcmPaymentApi: false,
|
|
10918
|
-
assets: [
|
|
10919
|
-
{
|
|
10920
|
-
symbol: "CRU",
|
|
10921
|
-
isNative: true,
|
|
10922
|
-
decimals: 12,
|
|
10923
|
-
existentialDeposit: "100000000",
|
|
10924
|
-
location: {
|
|
10925
|
-
parents: 1,
|
|
10926
|
-
interior: {
|
|
10927
|
-
X1: [
|
|
10928
|
-
{
|
|
10929
|
-
Parachain: 2008
|
|
10930
|
-
}
|
|
10931
|
-
]
|
|
10932
|
-
}
|
|
10933
|
-
}
|
|
10934
|
-
},
|
|
10935
|
-
{
|
|
10936
|
-
assetId: "187224307232923873519830480073807488153",
|
|
10937
|
-
symbol: "EQD",
|
|
10938
|
-
decimals: 9,
|
|
10939
|
-
existentialDeposit: "1000",
|
|
10940
|
-
location: {
|
|
10941
|
-
parents: 1,
|
|
10942
|
-
interior: {
|
|
10943
|
-
X2: [
|
|
10944
|
-
{
|
|
10945
|
-
Parachain: 2011
|
|
10946
|
-
},
|
|
10947
|
-
{
|
|
10948
|
-
GeneralKey: {
|
|
10949
|
-
length: 3,
|
|
10950
|
-
data: "0x6571640000000000000000000000000000000000000000000000000000000000"
|
|
10951
|
-
}
|
|
10952
|
-
}
|
|
10953
|
-
]
|
|
10954
|
-
}
|
|
10955
|
-
}
|
|
10956
|
-
},
|
|
10957
|
-
{
|
|
10958
|
-
assetId: "64174511183114006009298114091987195453",
|
|
10959
|
-
symbol: "PINK",
|
|
10960
|
-
decimals: 10,
|
|
10961
|
-
existentialDeposit: "1",
|
|
10962
|
-
location: {
|
|
10963
|
-
parents: 1,
|
|
10964
|
-
interior: {
|
|
10965
|
-
X3: [
|
|
10966
|
-
{
|
|
10967
|
-
Parachain: 1000
|
|
10968
|
-
},
|
|
10969
|
-
{
|
|
10970
|
-
PalletInstance: 50
|
|
10971
|
-
},
|
|
10972
|
-
{
|
|
10973
|
-
GeneralIndex: 23
|
|
10974
|
-
}
|
|
10975
|
-
]
|
|
10976
|
-
}
|
|
10977
|
-
}
|
|
10978
|
-
}
|
|
10979
|
-
]
|
|
10980
|
-
};
|
|
10981
10873
|
var NeuroWeb = {
|
|
10982
10874
|
relaychainSymbol: "DOT",
|
|
10983
10875
|
nativeAssetSymbol: "NEURO",
|
|
@@ -14001,6 +13893,28 @@ var AssetHubPaseo = {
|
|
|
14001
13893
|
},
|
|
14002
13894
|
existentialDeposit: "100000000"
|
|
14003
13895
|
},
|
|
13896
|
+
{
|
|
13897
|
+
assetId: "50001037",
|
|
13898
|
+
symbol: "wUSDT",
|
|
13899
|
+
decimals: 6,
|
|
13900
|
+
location: {
|
|
13901
|
+
parents: 1,
|
|
13902
|
+
interior: {
|
|
13903
|
+
X3: [
|
|
13904
|
+
{
|
|
13905
|
+
Parachain: 1000
|
|
13906
|
+
},
|
|
13907
|
+
{
|
|
13908
|
+
PalletInstance: 50
|
|
13909
|
+
},
|
|
13910
|
+
{
|
|
13911
|
+
GeneralIndex: 50001037
|
|
13912
|
+
}
|
|
13913
|
+
]
|
|
13914
|
+
}
|
|
13915
|
+
},
|
|
13916
|
+
existentialDeposit: "1"
|
|
13917
|
+
},
|
|
14004
13918
|
{
|
|
14005
13919
|
assetId: "8",
|
|
14006
13920
|
symbol: "PEPE",
|
|
@@ -14795,32 +14709,6 @@ var HydrationPaseo = {
|
|
|
14795
14709
|
},
|
|
14796
14710
|
isFeeAsset: true
|
|
14797
14711
|
},
|
|
14798
|
-
{
|
|
14799
|
-
assetId: "1008",
|
|
14800
|
-
symbol: "a3-Pool",
|
|
14801
|
-
decimals: 18,
|
|
14802
|
-
existentialDeposit: "33000000000000000",
|
|
14803
|
-
erc20: {
|
|
14804
|
-
balanceSlot: 52
|
|
14805
|
-
},
|
|
14806
|
-
location: {
|
|
14807
|
-
parents: 1,
|
|
14808
|
-
interior: {
|
|
14809
|
-
X2: [
|
|
14810
|
-
{
|
|
14811
|
-
Parachain: 2034
|
|
14812
|
-
},
|
|
14813
|
-
{
|
|
14814
|
-
AccountKey20: {
|
|
14815
|
-
network: null,
|
|
14816
|
-
key: "0xc09cf2f85367f3c2ab66e094283de3a499cb9108"
|
|
14817
|
-
}
|
|
14818
|
-
}
|
|
14819
|
-
]
|
|
14820
|
-
}
|
|
14821
|
-
},
|
|
14822
|
-
isFeeAsset: true
|
|
14823
|
-
},
|
|
14824
14712
|
{
|
|
14825
14713
|
assetId: "1000085",
|
|
14826
14714
|
symbol: "WUD",
|
|
@@ -16471,7 +16359,6 @@ var assetsMapJson = {
|
|
|
16471
16359
|
AssetHubPolkadot: AssetHubPolkadot,
|
|
16472
16360
|
Basilisk: Basilisk,
|
|
16473
16361
|
BifrostKusama: BifrostKusama,
|
|
16474
|
-
CrustShadow: CrustShadow,
|
|
16475
16362
|
Encointer: Encointer,
|
|
16476
16363
|
Karura: Karura,
|
|
16477
16364
|
Jamton: Jamton,
|
|
@@ -16483,7 +16370,6 @@ var assetsMapJson = {
|
|
|
16483
16370
|
CoretimeKusama: CoretimeKusama,
|
|
16484
16371
|
CoretimePolkadot: CoretimePolkadot,
|
|
16485
16372
|
Unique: Unique,
|
|
16486
|
-
Crust: Crust,
|
|
16487
16373
|
NeuroWeb: NeuroWeb,
|
|
16488
16374
|
Pendulum: Pendulum,
|
|
16489
16375
|
Collectives: Collectives,
|
|
@@ -17021,9 +16907,6 @@ var findNativeAssetInfoOrThrow = function findNativeAssetInfoOrThrow(chain) {
|
|
|
17021
16907
|
return findNativeAssetInfoOrThrowImpl(chain);
|
|
17022
16908
|
};
|
|
17023
16909
|
|
|
17024
|
-
var extractEdFromAsset = function extractEdFromAsset(asset) {
|
|
17025
|
-
return asset.existentialDeposit ? BigInt(asset.existentialDeposit) : null;
|
|
17026
|
-
};
|
|
17027
16910
|
var getExistentialDepositImpl = function getExistentialDepositImpl(chain, currency, ctx) {
|
|
17028
16911
|
var asset;
|
|
17029
16912
|
if (!currency) {
|
|
@@ -17037,35 +16920,17 @@ var getExistentialDepositImpl = function getExistentialDepositImpl(chain, curren
|
|
|
17037
16920
|
} else {
|
|
17038
16921
|
asset = findAssetInfoOrThrowImpl(chain, currency, undefined, ctx);
|
|
17039
16922
|
}
|
|
17040
|
-
return
|
|
16923
|
+
return BigInt(asset.existentialDeposit);
|
|
17041
16924
|
};
|
|
17042
16925
|
/**
|
|
17043
16926
|
* Retrieves the existential deposit value for a given chain.
|
|
17044
16927
|
*
|
|
17045
16928
|
* @param chain - The chain for which to get the existential deposit.
|
|
17046
|
-
* @returns The existential deposit as a bigint
|
|
16929
|
+
* @returns The existential deposit as a bigint.
|
|
17047
16930
|
*/
|
|
17048
16931
|
var getExistentialDeposit = function getExistentialDeposit(chain, currency) {
|
|
17049
16932
|
return getExistentialDepositImpl(chain, currency);
|
|
17050
16933
|
};
|
|
17051
|
-
var assertEdDefined = function assertEdDefined(ed, chain, currency) {
|
|
17052
|
-
if (ed === undefined || ed === null) {
|
|
17053
|
-
throw new InvalidCurrencyError("Existential deposit not found for currency ".concat(JSON.stringify(currency, replaceBigInt)).concat(chain ? " on chain ".concat(chain, ".") : '.'));
|
|
17054
|
-
}
|
|
17055
|
-
};
|
|
17056
|
-
var getExistentialDepositOrThrowImpl = function getExistentialDepositOrThrowImpl(chain, currency, ctx) {
|
|
17057
|
-
var ed = getExistentialDepositImpl(chain, currency, ctx);
|
|
17058
|
-
assertEdDefined(ed, chain, currency);
|
|
17059
|
-
return ed;
|
|
17060
|
-
};
|
|
17061
|
-
var getExistentialDepositOrThrow = function getExistentialDepositOrThrow(chain, currency) {
|
|
17062
|
-
return getExistentialDepositOrThrowImpl(chain, currency);
|
|
17063
|
-
};
|
|
17064
|
-
var getEdFromAssetOrThrow = function getEdFromAssetOrThrow(asset) {
|
|
17065
|
-
var ed = extractEdFromAsset(asset);
|
|
17066
|
-
assertEdDefined(ed, undefined, asset);
|
|
17067
|
-
return ed;
|
|
17068
|
-
};
|
|
17069
16934
|
|
|
17070
16935
|
var _excluded = ["isFeeAsset"];
|
|
17071
16936
|
var getFeeAssets = function getFeeAssets(chain) {
|
|
@@ -17371,4 +17236,4 @@ var isSymbolMatch = function isSymbolMatch(symbolA, symbolB) {
|
|
|
17371
17236
|
return normalizeSymbol(symbolA) === normalizeSymbol(symbolB);
|
|
17372
17237
|
};
|
|
17373
17238
|
|
|
17374
|
-
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, STABLECOIN_IDS,
|
|
17239
|
+
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, STABLECOIN_IDS, 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, getExistentialDeposit, getExistentialDepositImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAdditionalSubstrateBridgeAsset, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isDestinationReachable, isDestinationReachableImpl, 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.
|
|
3
|
+
"version": "14.4.2",
|
|
4
4
|
"description": "Assets for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,24 +22,24 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@paraspell/sdk-common": "14.
|
|
25
|
+
"@paraspell/sdk-common": "14.4.2"
|
|
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
|
-
"@polkadot-api/metadata-builders": "^0.15.
|
|
32
|
-
"@polkadot-api/substrate-bindings": "^0.21.
|
|
31
|
+
"@polkadot-api/metadata-builders": "^0.15.2",
|
|
32
|
+
"@polkadot-api/substrate-bindings": "^0.21.2",
|
|
33
33
|
"@rollup/plugin-babel": "^7.1.0",
|
|
34
34
|
"@rollup/plugin-json": "^6.1.0",
|
|
35
35
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
36
|
-
"@snowbridge/registry": "^1.1
|
|
37
|
-
"@vitest/coverage-v8": "^
|
|
38
|
-
"dotenv": "^
|
|
39
|
-
"polkadot-api": "^3.
|
|
40
|
-
"rollup": "^4.
|
|
36
|
+
"@snowbridge/registry": "^1.2.1",
|
|
37
|
+
"@vitest/coverage-v8": "^5.0.2",
|
|
38
|
+
"dotenv": "^18.0.4",
|
|
39
|
+
"polkadot-api": "^3.2.0",
|
|
40
|
+
"rollup": "^4.63.5",
|
|
41
41
|
"rollup-plugin-dts": "^6.5.1",
|
|
42
|
-
"tsx": "^4.23.
|
|
42
|
+
"tsx": "^4.23.15"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"compile": "tsc --noEmit",
|