@paraspell/assets 14.3.5 → 14.4.0
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 +140 -296
- 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
|
]
|
|
@@ -4123,6 +4161,38 @@ var Hydration = {
|
|
|
4123
4161
|
},
|
|
4124
4162
|
isFeeAsset: true
|
|
4125
4163
|
},
|
|
4164
|
+
{
|
|
4165
|
+
assetId: "1001355",
|
|
4166
|
+
symbol: "HYPE",
|
|
4167
|
+
decimals: 18,
|
|
4168
|
+
existentialDeposit: "114285714285714",
|
|
4169
|
+
location: {
|
|
4170
|
+
parents: 1,
|
|
4171
|
+
interior: {
|
|
4172
|
+
X4: [
|
|
4173
|
+
{
|
|
4174
|
+
Parachain: 2034
|
|
4175
|
+
},
|
|
4176
|
+
{
|
|
4177
|
+
GeneralKey: {
|
|
4178
|
+
length: 2,
|
|
4179
|
+
data: "0x7768000000000000000000000000000000000000000000000000000000000000"
|
|
4180
|
+
}
|
|
4181
|
+
},
|
|
4182
|
+
{
|
|
4183
|
+
GeneralIndex: 47
|
|
4184
|
+
},
|
|
4185
|
+
{
|
|
4186
|
+
GeneralKey: {
|
|
4187
|
+
length: 32,
|
|
4188
|
+
data: "0x0000000000000000000000005555555555555555555555555555555555555555"
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4191
|
+
]
|
|
4192
|
+
}
|
|
4193
|
+
},
|
|
4194
|
+
isFeeAsset: true
|
|
4195
|
+
},
|
|
4126
4196
|
{
|
|
4127
4197
|
assetId: "1001168",
|
|
4128
4198
|
symbol: "XON",
|
|
@@ -4806,6 +4876,38 @@ var Hydration = {
|
|
|
4806
4876
|
},
|
|
4807
4877
|
isFeeAsset: true
|
|
4808
4878
|
},
|
|
4879
|
+
{
|
|
4880
|
+
assetId: "1001358",
|
|
4881
|
+
symbol: "NEAR",
|
|
4882
|
+
decimals: 24,
|
|
4883
|
+
existentialDeposit: "2074688796680497925311",
|
|
4884
|
+
location: {
|
|
4885
|
+
parents: 1,
|
|
4886
|
+
interior: {
|
|
4887
|
+
X4: [
|
|
4888
|
+
{
|
|
4889
|
+
Parachain: 2034
|
|
4890
|
+
},
|
|
4891
|
+
{
|
|
4892
|
+
GeneralKey: {
|
|
4893
|
+
length: 2,
|
|
4894
|
+
data: "0x7768000000000000000000000000000000000000000000000000000000000000"
|
|
4895
|
+
}
|
|
4896
|
+
},
|
|
4897
|
+
{
|
|
4898
|
+
GeneralIndex: 15
|
|
4899
|
+
},
|
|
4900
|
+
{
|
|
4901
|
+
GeneralKey: {
|
|
4902
|
+
length: 32,
|
|
4903
|
+
data: "0xb55c490bafb82aeb4b950fa479341c1b5fbfa814f8253b6acdf8426b7cd9d3c0"
|
|
4904
|
+
}
|
|
4905
|
+
}
|
|
4906
|
+
]
|
|
4907
|
+
}
|
|
4908
|
+
},
|
|
4909
|
+
isFeeAsset: true
|
|
4910
|
+
},
|
|
4809
4911
|
{
|
|
4810
4912
|
assetId: "1000809",
|
|
4811
4913
|
symbol: "wstETH",
|
|
@@ -6465,7 +6567,8 @@ var AssetHubPolkadot = {
|
|
|
6465
6567
|
]
|
|
6466
6568
|
}
|
|
6467
6569
|
},
|
|
6468
|
-
existentialDeposit: "1000000000000"
|
|
6570
|
+
existentialDeposit: "1000000000000",
|
|
6571
|
+
isFeeAsset: true
|
|
6469
6572
|
},
|
|
6470
6573
|
{
|
|
6471
6574
|
symbol: "sUSDe",
|
|
@@ -8103,168 +8206,6 @@ var BifrostKusama = {
|
|
|
8103
8206
|
}
|
|
8104
8207
|
]
|
|
8105
8208
|
};
|
|
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
8209
|
var Encointer = {
|
|
8269
8210
|
relaychainSymbol: "KSM",
|
|
8270
8211
|
nativeAssetSymbol: "KSM",
|
|
@@ -10908,76 +10849,6 @@ var Unique = {
|
|
|
10908
10849
|
}
|
|
10909
10850
|
]
|
|
10910
10851
|
};
|
|
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
10852
|
var NeuroWeb = {
|
|
10982
10853
|
relaychainSymbol: "DOT",
|
|
10983
10854
|
nativeAssetSymbol: "NEURO",
|
|
@@ -14001,6 +13872,28 @@ var AssetHubPaseo = {
|
|
|
14001
13872
|
},
|
|
14002
13873
|
existentialDeposit: "100000000"
|
|
14003
13874
|
},
|
|
13875
|
+
{
|
|
13876
|
+
assetId: "50001037",
|
|
13877
|
+
symbol: "wUSDT",
|
|
13878
|
+
decimals: 6,
|
|
13879
|
+
location: {
|
|
13880
|
+
parents: 1,
|
|
13881
|
+
interior: {
|
|
13882
|
+
X3: [
|
|
13883
|
+
{
|
|
13884
|
+
Parachain: 1000
|
|
13885
|
+
},
|
|
13886
|
+
{
|
|
13887
|
+
PalletInstance: 50
|
|
13888
|
+
},
|
|
13889
|
+
{
|
|
13890
|
+
GeneralIndex: 50001037
|
|
13891
|
+
}
|
|
13892
|
+
]
|
|
13893
|
+
}
|
|
13894
|
+
},
|
|
13895
|
+
existentialDeposit: "1"
|
|
13896
|
+
},
|
|
14004
13897
|
{
|
|
14005
13898
|
assetId: "8",
|
|
14006
13899
|
symbol: "PEPE",
|
|
@@ -14795,32 +14688,6 @@ var HydrationPaseo = {
|
|
|
14795
14688
|
},
|
|
14796
14689
|
isFeeAsset: true
|
|
14797
14690
|
},
|
|
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
14691
|
{
|
|
14825
14692
|
assetId: "1000085",
|
|
14826
14693
|
symbol: "WUD",
|
|
@@ -16471,7 +16338,6 @@ var assetsMapJson = {
|
|
|
16471
16338
|
AssetHubPolkadot: AssetHubPolkadot,
|
|
16472
16339
|
Basilisk: Basilisk,
|
|
16473
16340
|
BifrostKusama: BifrostKusama,
|
|
16474
|
-
CrustShadow: CrustShadow,
|
|
16475
16341
|
Encointer: Encointer,
|
|
16476
16342
|
Karura: Karura,
|
|
16477
16343
|
Jamton: Jamton,
|
|
@@ -16483,7 +16349,6 @@ var assetsMapJson = {
|
|
|
16483
16349
|
CoretimeKusama: CoretimeKusama,
|
|
16484
16350
|
CoretimePolkadot: CoretimePolkadot,
|
|
16485
16351
|
Unique: Unique,
|
|
16486
|
-
Crust: Crust,
|
|
16487
16352
|
NeuroWeb: NeuroWeb,
|
|
16488
16353
|
Pendulum: Pendulum,
|
|
16489
16354
|
Collectives: Collectives,
|
|
@@ -17021,9 +16886,6 @@ var findNativeAssetInfoOrThrow = function findNativeAssetInfoOrThrow(chain) {
|
|
|
17021
16886
|
return findNativeAssetInfoOrThrowImpl(chain);
|
|
17022
16887
|
};
|
|
17023
16888
|
|
|
17024
|
-
var extractEdFromAsset = function extractEdFromAsset(asset) {
|
|
17025
|
-
return asset.existentialDeposit ? BigInt(asset.existentialDeposit) : null;
|
|
17026
|
-
};
|
|
17027
16889
|
var getExistentialDepositImpl = function getExistentialDepositImpl(chain, currency, ctx) {
|
|
17028
16890
|
var asset;
|
|
17029
16891
|
if (!currency) {
|
|
@@ -17037,35 +16899,17 @@ var getExistentialDepositImpl = function getExistentialDepositImpl(chain, curren
|
|
|
17037
16899
|
} else {
|
|
17038
16900
|
asset = findAssetInfoOrThrowImpl(chain, currency, undefined, ctx);
|
|
17039
16901
|
}
|
|
17040
|
-
return
|
|
16902
|
+
return BigInt(asset.existentialDeposit);
|
|
17041
16903
|
};
|
|
17042
16904
|
/**
|
|
17043
16905
|
* Retrieves the existential deposit value for a given chain.
|
|
17044
16906
|
*
|
|
17045
16907
|
* @param chain - The chain for which to get the existential deposit.
|
|
17046
|
-
* @returns The existential deposit as a bigint
|
|
16908
|
+
* @returns The existential deposit as a bigint.
|
|
17047
16909
|
*/
|
|
17048
16910
|
var getExistentialDeposit = function getExistentialDeposit(chain, currency) {
|
|
17049
16911
|
return getExistentialDepositImpl(chain, currency);
|
|
17050
16912
|
};
|
|
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
16913
|
|
|
17070
16914
|
var _excluded = ["isFeeAsset"];
|
|
17071
16915
|
var getFeeAssets = function getFeeAssets(chain) {
|
|
@@ -17371,4 +17215,4 @@ var isSymbolMatch = function isSymbolMatch(symbolA, symbolB) {
|
|
|
17371
17215
|
return normalizeSymbol(symbolA) === normalizeSymbol(symbolB);
|
|
17372
17216
|
};
|
|
17373
17217
|
|
|
17374
|
-
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, STABLECOIN_IDS,
|
|
17218
|
+
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.0",
|
|
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.0"
|
|
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",
|