@paraspell/assets 14.3.3 → 14.3.4

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 CHANGED
@@ -16,6 +16,10 @@ interface TAssetV4<T = bigint> {
16
16
  };
17
17
  }
18
18
 
19
+ type TErc20Info = {
20
+ balanceSlot: number;
21
+ contract?: string;
22
+ };
19
23
  type TAssetInfo = {
20
24
  decimals: number;
21
25
  symbol: string;
@@ -24,6 +28,7 @@ type TAssetInfo = {
24
28
  location: TLocation;
25
29
  existentialDeposit?: string;
26
30
  isFeeAsset?: boolean;
31
+ erc20?: TErc20Info;
27
32
  alias?: string;
28
33
  };
29
34
  type TAssetInfoWithId = TAssetInfo & {
@@ -300,4 +305,4 @@ declare const extractAssetLocation: <T = bigint>(asset: TAsset<T>) => TLocation;
300
305
  declare const getAssetLocation: (chain: TChain, currency: TCurrencyInput) => TLocation | null;
301
306
 
302
307
  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, isDestinationReachable, isDestinationReachableImpl, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
303
- 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 };
308
+ 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
@@ -2960,6 +2960,9 @@ var Hydration = {
2960
2960
  symbol: "HUSDe",
2961
2961
  decimals: 18,
2962
2962
  existentialDeposit: "33000000000000000",
2963
+ erc20: {
2964
+ balanceSlot: 52
2965
+ },
2963
2966
  location: {
2964
2967
  parents: 1,
2965
2968
  interior: {
@@ -2983,6 +2986,10 @@ var Hydration = {
2983
2986
  symbol: "HOLLAR",
2984
2987
  decimals: 18,
2985
2988
  existentialDeposit: "20000000000000000",
2989
+ erc20: {
2990
+ balanceSlot: 3,
2991
+ contract: "0x531a654d1696ed52e7275a8cede955e82620f99a"
2992
+ },
2986
2993
  location: {
2987
2994
  parents: 1,
2988
2995
  interior: {
@@ -2991,10 +2998,7 @@ var Hydration = {
2991
2998
  Parachain: 2034
2992
2999
  },
2993
3000
  {
2994
- AccountKey20: {
2995
- network: null,
2996
- key: "0x531a654d1696ed52e7275a8cede955e82620f99a"
2997
- }
3001
+ GeneralIndex: 222
2998
3002
  }
2999
3003
  ]
3000
3004
  }
@@ -3006,6 +3010,9 @@ var Hydration = {
3006
3010
  symbol: "aSOL",
3007
3011
  decimals: 9,
3008
3012
  existentialDeposit: "221956",
3013
+ erc20: {
3014
+ balanceSlot: 52
3015
+ },
3009
3016
  location: {
3010
3017
  parents: 1,
3011
3018
  interior: {
@@ -3029,6 +3036,9 @@ var Hydration = {
3029
3036
  symbol: "aSIGIL",
3030
3037
  decimals: 18,
3031
3038
  existentialDeposit: "20000000000000000",
3039
+ erc20: {
3040
+ balanceSlot: 52
3041
+ },
3032
3042
  location: {
3033
3043
  parents: 1,
3034
3044
  interior: {
@@ -3052,6 +3062,9 @@ var Hydration = {
3052
3062
  symbol: "GETH",
3053
3063
  decimals: 18,
3054
3064
  existentialDeposit: "8202803876747",
3065
+ erc20: {
3066
+ balanceSlot: 52
3067
+ },
3055
3068
  location: {
3056
3069
  parents: 1,
3057
3070
  interior: {
@@ -3099,6 +3112,9 @@ var Hydration = {
3099
3112
  symbol: "aDOT",
3100
3113
  decimals: 10,
3101
3114
  existentialDeposit: "54125333",
3115
+ erc20: {
3116
+ balanceSlot: 52
3117
+ },
3102
3118
  location: {
3103
3119
  parents: 1,
3104
3120
  interior: {
@@ -3122,6 +3138,9 @@ var Hydration = {
3122
3138
  symbol: "aapyUSD",
3123
3139
  decimals: 18,
3124
3140
  existentialDeposit: "14705882352941200",
3141
+ erc20: {
3142
+ balanceSlot: 52
3143
+ },
3125
3144
  location: {
3126
3145
  parents: 1,
3127
3146
  interior: {
@@ -3145,6 +3164,9 @@ var Hydration = {
3145
3164
  symbol: "HUSDT",
3146
3165
  decimals: 18,
3147
3166
  existentialDeposit: "33000000000000000",
3167
+ erc20: {
3168
+ balanceSlot: 52
3169
+ },
3148
3170
  location: {
3149
3171
  parents: 1,
3150
3172
  interior: {
@@ -3242,6 +3264,9 @@ var Hydration = {
3242
3264
  symbol: "GIGAHDX",
3243
3265
  decimals: 12,
3244
3266
  existentialDeposit: "0",
3267
+ erc20: {
3268
+ balanceSlot: 52
3269
+ },
3245
3270
  location: {
3246
3271
  parents: 1,
3247
3272
  interior: {
@@ -3483,6 +3508,9 @@ var Hydration = {
3483
3508
  symbol: "a3-Pool",
3484
3509
  decimals: 18,
3485
3510
  existentialDeposit: "33000000000000000",
3511
+ erc20: {
3512
+ balanceSlot: 52
3513
+ },
3486
3514
  location: {
3487
3515
  parents: 1,
3488
3516
  interior: {
@@ -3529,6 +3557,9 @@ var Hydration = {
3529
3557
  symbol: "HUSDS",
3530
3558
  decimals: 18,
3531
3559
  existentialDeposit: "33000000000000000",
3560
+ erc20: {
3561
+ balanceSlot: 52
3562
+ },
3532
3563
  location: {
3533
3564
  parents: 1,
3534
3565
  interior: {
@@ -3603,6 +3634,9 @@ var Hydration = {
3603
3634
  symbol: "atBTC",
3604
3635
  decimals: 18,
3605
3636
  existentialDeposit: "208779411374",
3637
+ erc20: {
3638
+ balanceSlot: 52
3639
+ },
3606
3640
  location: {
3607
3641
  parents: 1,
3608
3642
  interior: {
@@ -3736,6 +3770,9 @@ var Hydration = {
3736
3770
  symbol: "HEURC",
3737
3771
  decimals: 18,
3738
3772
  existentialDeposit: "17241379310344828",
3773
+ erc20: {
3774
+ balanceSlot: 52
3775
+ },
3739
3776
  location: {
3740
3777
  parents: 1,
3741
3778
  interior: {
@@ -3933,6 +3970,9 @@ var Hydration = {
3933
3970
  symbol: "aPAXG",
3934
3971
  decimals: 18,
3935
3972
  existentialDeposit: "4675946889957",
3973
+ erc20: {
3974
+ balanceSlot: 52
3975
+ },
3936
3976
  location: {
3937
3977
  parents: 1,
3938
3978
  interior: {
@@ -4106,6 +4146,9 @@ var Hydration = {
4106
4146
  symbol: "aUSDT",
4107
4147
  decimals: 6,
4108
4148
  existentialDeposit: "22409",
4149
+ erc20: {
4150
+ balanceSlot: 52
4151
+ },
4109
4152
  location: {
4110
4153
  parents: 1,
4111
4154
  interior: {
@@ -4229,6 +4272,9 @@ var Hydration = {
4229
4272
  symbol: "uBIL",
4230
4273
  decimals: 18,
4231
4274
  existentialDeposit: "20000000000000000",
4275
+ erc20: {
4276
+ balanceSlot: 51
4277
+ },
4232
4278
  location: {
4233
4279
  parents: 1,
4234
4280
  interior: {
@@ -4494,6 +4540,9 @@ var Hydration = {
4494
4540
  symbol: "aUSDC",
4495
4541
  decimals: 6,
4496
4542
  existentialDeposit: "22409",
4543
+ erc20: {
4544
+ balanceSlot: 52
4545
+ },
4497
4546
  location: {
4498
4547
  parents: 1,
4499
4548
  interior: {
@@ -4517,6 +4566,9 @@ var Hydration = {
4517
4566
  symbol: "aEURC",
4518
4567
  decimals: 6,
4519
4568
  existentialDeposit: "17241",
4569
+ erc20: {
4570
+ balanceSlot: 52
4571
+ },
4520
4572
  location: {
4521
4573
  parents: 1,
4522
4574
  interior: {
@@ -4592,6 +4644,9 @@ var Hydration = {
4592
4644
  symbol: "avDOT",
4593
4645
  decimals: 10,
4594
4646
  existentialDeposit: "36627790",
4647
+ erc20: {
4648
+ balanceSlot: 52
4649
+ },
4595
4650
  location: {
4596
4651
  parents: 1,
4597
4652
  interior: {
@@ -4615,6 +4670,9 @@ var Hydration = {
4615
4670
  symbol: "aETH",
4616
4671
  decimals: 18,
4617
4672
  existentialDeposit: "8202803876747",
4673
+ erc20: {
4674
+ balanceSlot: 52
4675
+ },
4618
4676
  location: {
4619
4677
  parents: 1,
4620
4678
  interior: {
@@ -4754,6 +4812,9 @@ var Hydration = {
4754
4812
  symbol: "HUSDC",
4755
4813
  decimals: 18,
4756
4814
  existentialDeposit: "33000000000000000",
4815
+ erc20: {
4816
+ balanceSlot: 52
4817
+ },
4757
4818
  location: {
4758
4819
  parents: 1,
4759
4820
  interior: {
@@ -4800,6 +4861,9 @@ var Hydration = {
4800
4861
  symbol: "aWBTC",
4801
4862
  decimals: 8,
4802
4863
  existentialDeposit: "40",
4864
+ erc20: {
4865
+ balanceSlot: 52
4866
+ },
4803
4867
  location: {
4804
4868
  parents: 1,
4805
4869
  interior: {
@@ -4962,6 +5026,9 @@ var Hydration = {
4962
5026
  symbol: "BIL",
4963
5027
  decimals: 18,
4964
5028
  existentialDeposit: "20000000000000000",
5029
+ erc20: {
5030
+ balanceSlot: 52
5031
+ },
4965
5032
  location: {
4966
5033
  parents: 1,
4967
5034
  interior: {
@@ -5060,6 +5127,9 @@ var Hydration = {
5060
5127
  symbol: "GDOT",
5061
5128
  decimals: 18,
5062
5129
  existentialDeposit: "5290724013368937",
5130
+ erc20: {
5131
+ balanceSlot: 52
5132
+ },
5063
5133
  location: {
5064
5134
  parents: 1,
5065
5135
  interior: {
@@ -5166,6 +5236,9 @@ var Hydration = {
5166
5236
  symbol: "GSOL",
5167
5237
  decimals: 18,
5168
5238
  existentialDeposit: "221802682843910",
5239
+ erc20: {
5240
+ balanceSlot: 52
5241
+ },
5169
5242
  location: {
5170
5243
  parents: 1,
5171
5244
  interior: {
@@ -5189,6 +5262,9 @@ var Hydration = {
5189
5262
  symbol: "aPRIME",
5190
5263
  decimals: 6,
5191
5264
  existentialDeposit: "9901",
5265
+ erc20: {
5266
+ balanceSlot: 52
5267
+ },
5192
5268
  location: {
5193
5269
  parents: 1,
5194
5270
  interior: {
@@ -5379,6 +5455,29 @@ var AssetHubPolkadot = {
5379
5455
  existentialDeposit: "500000000000000",
5380
5456
  alias: "WETH1"
5381
5457
  },
5458
+ {
5459
+ assetId: "50000546",
5460
+ symbol: "DOT",
5461
+ decimals: 10,
5462
+ location: {
5463
+ parents: 1,
5464
+ interior: {
5465
+ X3: [
5466
+ {
5467
+ Parachain: 1000
5468
+ },
5469
+ {
5470
+ PalletInstance: 50
5471
+ },
5472
+ {
5473
+ GeneralIndex: 50000546
5474
+ }
5475
+ ]
5476
+ }
5477
+ },
5478
+ existentialDeposit: "1",
5479
+ alias: "DOT6"
5480
+ },
5382
5481
  {
5383
5482
  assetId: "50000075",
5384
5483
  symbol: "BILL",
@@ -5747,6 +5846,29 @@ var AssetHubPolkadot = {
5747
5846
  existentialDeposit: "1",
5748
5847
  alias: "DOT5"
5749
5848
  },
5849
+ {
5850
+ assetId: "50000545",
5851
+ symbol: "USDt",
5852
+ decimals: 6,
5853
+ location: {
5854
+ parents: 1,
5855
+ interior: {
5856
+ X3: [
5857
+ {
5858
+ Parachain: 1000
5859
+ },
5860
+ {
5861
+ PalletInstance: 50
5862
+ },
5863
+ {
5864
+ GeneralIndex: 50000545
5865
+ }
5866
+ ]
5867
+ }
5868
+ },
5869
+ existentialDeposit: "1",
5870
+ alias: "USDt5"
5871
+ },
5750
5872
  {
5751
5873
  assetId: "50000534",
5752
5874
  symbol: "DOT",
@@ -5908,6 +6030,29 @@ var AssetHubPolkadot = {
5908
6030
  existentialDeposit: "10000",
5909
6031
  alias: "USDt2"
5910
6032
  },
6033
+ {
6034
+ assetId: "50000547",
6035
+ symbol: "DOT",
6036
+ decimals: 10,
6037
+ location: {
6038
+ parents: 1,
6039
+ interior: {
6040
+ X3: [
6041
+ {
6042
+ Parachain: 1000
6043
+ },
6044
+ {
6045
+ PalletInstance: 50
6046
+ },
6047
+ {
6048
+ GeneralIndex: 50000547
6049
+ }
6050
+ ]
6051
+ }
6052
+ },
6053
+ existentialDeposit: "1",
6054
+ alias: "DOT7"
6055
+ },
5911
6056
  {
5912
6057
  assetId: "201",
5913
6058
  symbol: "WUD",
@@ -14224,6 +14369,9 @@ var HydrationPaseo = {
14224
14369
  symbol: "HUSDe",
14225
14370
  decimals: 18,
14226
14371
  existentialDeposit: "33000000000000000",
14372
+ erc20: {
14373
+ balanceSlot: 52
14374
+ },
14227
14375
  location: {
14228
14376
  parents: 1,
14229
14377
  interior: {
@@ -14247,6 +14395,10 @@ var HydrationPaseo = {
14247
14395
  symbol: "HOLLAR",
14248
14396
  decimals: 18,
14249
14397
  existentialDeposit: "0",
14398
+ erc20: {
14399
+ balanceSlot: 3,
14400
+ contract: "0x531a654d1696ed52e7275a8cede955e82620f99a"
14401
+ },
14250
14402
  location: {
14251
14403
  parents: 1,
14252
14404
  interior: {
@@ -14255,10 +14407,7 @@ var HydrationPaseo = {
14255
14407
  Parachain: 2034
14256
14408
  },
14257
14409
  {
14258
- AccountKey20: {
14259
- network: null,
14260
- key: "0x531a654d1696ed52e7275a8cede955e82620f99a"
14261
- }
14410
+ GeneralIndex: 222
14262
14411
  }
14263
14412
  ]
14264
14413
  }
@@ -14270,6 +14419,9 @@ var HydrationPaseo = {
14270
14419
  symbol: "GETH",
14271
14420
  decimals: 18,
14272
14421
  existentialDeposit: "8202803876747",
14422
+ erc20: {
14423
+ balanceSlot: 52
14424
+ },
14273
14425
  location: {
14274
14426
  parents: 1,
14275
14427
  interior: {
@@ -14317,6 +14469,9 @@ var HydrationPaseo = {
14317
14469
  symbol: "aDOT",
14318
14470
  decimals: 10,
14319
14471
  existentialDeposit: "54125333",
14472
+ erc20: {
14473
+ balanceSlot: 52
14474
+ },
14320
14475
  location: {
14321
14476
  parents: 1,
14322
14477
  interior: {
@@ -14340,6 +14495,9 @@ var HydrationPaseo = {
14340
14495
  symbol: "HUSDT",
14341
14496
  decimals: 18,
14342
14497
  existentialDeposit: "33000000000000000",
14498
+ erc20: {
14499
+ balanceSlot: 52
14500
+ },
14343
14501
  location: {
14344
14502
  parents: 1,
14345
14503
  interior: {
@@ -14616,6 +14774,9 @@ var HydrationPaseo = {
14616
14774
  symbol: "a3-Pool",
14617
14775
  decimals: 18,
14618
14776
  existentialDeposit: "33000000000000000",
14777
+ erc20: {
14778
+ balanceSlot: 52
14779
+ },
14619
14780
  location: {
14620
14781
  parents: 1,
14621
14782
  interior: {
@@ -14662,6 +14823,9 @@ var HydrationPaseo = {
14662
14823
  symbol: "HUSDS",
14663
14824
  decimals: 18,
14664
14825
  existentialDeposit: "33000000000000000",
14826
+ erc20: {
14827
+ balanceSlot: 52
14828
+ },
14665
14829
  location: {
14666
14830
  parents: 1,
14667
14831
  interior: {
@@ -14736,6 +14900,9 @@ var HydrationPaseo = {
14736
14900
  symbol: "atBTC",
14737
14901
  decimals: 18,
14738
14902
  existentialDeposit: "208779411374",
14903
+ erc20: {
14904
+ balanceSlot: 52
14905
+ },
14739
14906
  location: {
14740
14907
  parents: 1,
14741
14908
  interior: {
@@ -15102,6 +15269,9 @@ var HydrationPaseo = {
15102
15269
  symbol: "aUSDT",
15103
15270
  decimals: 6,
15104
15271
  existentialDeposit: "22409",
15272
+ erc20: {
15273
+ balanceSlot: 52
15274
+ },
15105
15275
  location: {
15106
15276
  parents: 1,
15107
15277
  interior: {
@@ -15390,6 +15560,9 @@ var HydrationPaseo = {
15390
15560
  symbol: "aUSDC",
15391
15561
  decimals: 6,
15392
15562
  existentialDeposit: "22409",
15563
+ erc20: {
15564
+ balanceSlot: 52
15565
+ },
15393
15566
  location: {
15394
15567
  parents: 1,
15395
15568
  interior: {
@@ -15465,6 +15638,9 @@ var HydrationPaseo = {
15465
15638
  symbol: "avDOT",
15466
15639
  decimals: 10,
15467
15640
  existentialDeposit: "36627790",
15641
+ erc20: {
15642
+ balanceSlot: 52
15643
+ },
15468
15644
  location: {
15469
15645
  parents: 1,
15470
15646
  interior: {
@@ -15488,6 +15664,9 @@ var HydrationPaseo = {
15488
15664
  symbol: "aETH",
15489
15665
  decimals: 18,
15490
15666
  existentialDeposit: "8202803876747",
15667
+ erc20: {
15668
+ balanceSlot: 52
15669
+ },
15491
15670
  location: {
15492
15671
  parents: 1,
15493
15672
  interior: {
@@ -15600,6 +15779,9 @@ var HydrationPaseo = {
15600
15779
  symbol: "HUSDC",
15601
15780
  decimals: 18,
15602
15781
  existentialDeposit: "33000000000000000",
15782
+ erc20: {
15783
+ balanceSlot: 52
15784
+ },
15603
15785
  location: {
15604
15786
  parents: 1,
15605
15787
  interior: {
@@ -15646,6 +15828,9 @@ var HydrationPaseo = {
15646
15828
  symbol: "aWBTC",
15647
15829
  decimals: 8,
15648
15830
  existentialDeposit: "40",
15831
+ erc20: {
15832
+ balanceSlot: 52
15833
+ },
15649
15834
  location: {
15650
15835
  parents: 1,
15651
15836
  interior: {
@@ -15883,6 +16068,9 @@ var HydrationPaseo = {
15883
16068
  symbol: "GDOT",
15884
16069
  decimals: 18,
15885
16070
  existentialDeposit: "5290724013368937",
16071
+ erc20: {
16072
+ balanceSlot: 52
16073
+ },
15886
16074
  location: {
15887
16075
  parents: 1,
15888
16076
  interior: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/assets",
3
- "version": "14.3.3",
3
+ "version": "14.3.4",
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.3.3"
25
+ "@paraspell/sdk-common": "14.3.4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/plugin-syntax-import-attributes": "^7.29.7",