@paraspell/assets 14.1.0 → 14.2.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 CHANGED
@@ -185,6 +185,8 @@ declare const getSupportedAssets: (origin: TChain, destination: TChain) => TAsse
185
185
 
186
186
  declare const getSupportedDestinations: (origin: TChain, currency: TCurrencyCore) => TChain[];
187
187
 
188
+ declare const isAdditionalSubstrateBridgeAsset: (asset: TAssetInfo) => boolean;
189
+
188
190
  declare const isAssetEqual: (asset1: TAssetInfo, asset2: TAssetInfo) => boolean;
189
191
 
190
192
  declare const isStableCoinAsset: (asset: TAssetInfo, assetId?: number) => boolean;
@@ -292,5 +294,5 @@ declare const extractAssetLocation: <T = bigint>(asset: TAsset<T>) => TLocation;
292
294
 
293
295
  declare const getAssetLocation: (chain: TChain, currency: TCurrencyInput) => TLocation | null;
294
296
 
295
- 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, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
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 };
296
298
  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
@@ -1,4 +1,4 @@
1
- import { ParaSpellError, Version, deepEqual, isChain, isExternalChain, getJunctionValue, hasJunction, Parents, RELAYCHAINS, replaceBigInt, isCustomChain, isSubstrateBridge, isSnowbridge, SUBSTRATE_CHAINS, CHAINS, ETHEREUM_BRIDGE_ORIGINS } from '@paraspell/sdk-common';
1
+ import { ParaSpellError, Version, deepEqual, isChain, isExternalChain, getJunctionValue, hasJunction, Parents, RELAYCHAINS, replaceBigInt, isCustomChain, isSubstrateBridge, isSnowbridge, ETHEREUM_BRIDGE_ORIGINS, SUBSTRATE_CHAINS, CHAINS } from '@paraspell/sdk-common';
2
2
 
3
3
  function _arrayLikeToArray(r, a) {
4
4
  (null == a || a > r.length) && (a = r.length);
@@ -3195,17 +3195,23 @@ var Hydration = {
3195
3195
  location: {
3196
3196
  parents: 1,
3197
3197
  interior: {
3198
- X3: [
3198
+ X4: [
3199
3199
  {
3200
- Parachain: 2004
3200
+ Parachain: 2034
3201
3201
  },
3202
3202
  {
3203
- PalletInstance: 110
3203
+ GeneralKey: {
3204
+ length: 2,
3205
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
3206
+ }
3204
3207
  },
3205
3208
  {
3206
- AccountKey20: {
3207
- network: null,
3208
- key: "0x931715fee2d06333043d11f658c8ce934ac61d0c"
3209
+ GeneralIndex: 2
3210
+ },
3211
+ {
3212
+ GeneralKey: {
3213
+ length: 32,
3214
+ data: "0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
3209
3215
  }
3210
3216
  }
3211
3217
  ]
@@ -3262,17 +3268,23 @@ var Hydration = {
3262
3268
  location: {
3263
3269
  parents: 1,
3264
3270
  interior: {
3265
- X3: [
3271
+ X4: [
3266
3272
  {
3267
- Parachain: 2004
3273
+ Parachain: 2034
3268
3274
  },
3269
3275
  {
3270
- PalletInstance: 110
3276
+ GeneralKey: {
3277
+ length: 2,
3278
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
3279
+ }
3271
3280
  },
3272
3281
  {
3273
- AccountKey20: {
3274
- network: null,
3275
- key: "0xab3f0245b83feb11d15aaffefd7ad465a59817ed"
3282
+ GeneralIndex: 2
3283
+ },
3284
+ {
3285
+ GeneralKey: {
3286
+ length: 32,
3287
+ data: "0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
3276
3288
  }
3277
3289
  }
3278
3290
  ]
@@ -3667,17 +3679,23 @@ var Hydration = {
3667
3679
  location: {
3668
3680
  parents: 1,
3669
3681
  interior: {
3670
- X3: [
3682
+ X4: [
3671
3683
  {
3672
- Parachain: 2004
3684
+ Parachain: 2034
3673
3685
  },
3674
3686
  {
3675
- PalletInstance: 110
3687
+ GeneralKey: {
3688
+ length: 2,
3689
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
3690
+ }
3676
3691
  },
3677
3692
  {
3678
- AccountKey20: {
3679
- network: null,
3680
- key: "0xe57ebd2d67b462e9926e04a8e33f01cd0d64346d"
3693
+ GeneralIndex: 2
3694
+ },
3695
+ {
3696
+ GeneralKey: {
3697
+ length: 32,
3698
+ data: "0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599"
3681
3699
  }
3682
3700
  }
3683
3701
  ]
@@ -3862,17 +3880,23 @@ var Hydration = {
3862
3880
  location: {
3863
3881
  parents: 1,
3864
3882
  interior: {
3865
- X3: [
3883
+ X4: [
3866
3884
  {
3867
- Parachain: 2004
3885
+ Parachain: 2034
3868
3886
  },
3869
3887
  {
3870
- PalletInstance: 110
3888
+ GeneralKey: {
3889
+ length: 2,
3890
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
3891
+ }
3871
3892
  },
3872
3893
  {
3873
- AccountKey20: {
3874
- network: null,
3875
- key: "0x3f9610a50630bc7d4530736942ee2bc9e00e8de8"
3894
+ GeneralIndex: 30
3895
+ },
3896
+ {
3897
+ GeneralKey: {
3898
+ length: 32,
3899
+ data: "0x00000000000000000000000060a3e35cc302bfa44cb288bc5a4f316fdb1adb42"
3876
3900
  }
3877
3901
  }
3878
3902
  ]
@@ -3962,17 +3986,23 @@ var Hydration = {
3962
3986
  location: {
3963
3987
  parents: 1,
3964
3988
  interior: {
3965
- X3: [
3989
+ X4: [
3966
3990
  {
3967
- Parachain: 2004
3991
+ Parachain: 2034
3968
3992
  },
3969
3993
  {
3970
- PalletInstance: 110
3994
+ GeneralKey: {
3995
+ length: 2,
3996
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
3997
+ }
3971
3998
  },
3972
3999
  {
3973
- AccountKey20: {
3974
- network: null,
3975
- key: "0xe9f9a2e3deae4093c00fbc57b22bb51a4c05ad88"
4000
+ GeneralIndex: 1
4001
+ },
4002
+ {
4003
+ GeneralKey: {
4004
+ length: 32,
4005
+ data: "0xfcd141e9832caf10ad917495ca0f271b5b293cd47027ea737007ed40eb39a0bd"
3976
4006
  }
3977
4007
  }
3978
4008
  ]
@@ -4125,17 +4155,23 @@ var Hydration = {
4125
4155
  location: {
4126
4156
  parents: 1,
4127
4157
  interior: {
4128
- X3: [
4158
+ X4: [
4129
4159
  {
4130
- Parachain: 2004
4160
+ Parachain: 2034
4131
4161
  },
4132
4162
  {
4133
- PalletInstance: 110
4163
+ GeneralKey: {
4164
+ length: 2,
4165
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
4166
+ }
4134
4167
  },
4135
4168
  {
4136
- AccountKey20: {
4137
- network: null,
4138
- key: "0xda430218862d3db25de9f61458645dde49a9e9c1"
4169
+ GeneralIndex: 2
4170
+ },
4171
+ {
4172
+ GeneralKey: {
4173
+ length: 32,
4174
+ data: "0x000000000000000000000000a3931d71877c0e7a3148cb7eb4463524fec27fbd"
4139
4175
  }
4140
4176
  }
4141
4177
  ]
@@ -4188,6 +4224,29 @@ var Hydration = {
4188
4224
  },
4189
4225
  isFeeAsset: true
4190
4226
  },
4227
+ {
4228
+ assetId: "550",
4229
+ symbol: "uBIL",
4230
+ decimals: 18,
4231
+ existentialDeposit: "20000000000000000",
4232
+ location: {
4233
+ parents: 1,
4234
+ interior: {
4235
+ X2: [
4236
+ {
4237
+ Parachain: 2034
4238
+ },
4239
+ {
4240
+ AccountKey20: {
4241
+ network: null,
4242
+ key: "0x6a21891db0940491603f3cca0a9f4dba4c6e810c"
4243
+ }
4244
+ }
4245
+ ]
4246
+ }
4247
+ },
4248
+ isFeeAsset: true
4249
+ },
4191
4250
  {
4192
4251
  assetId: "29",
4193
4252
  symbol: "PLMC",
@@ -4240,17 +4299,23 @@ var Hydration = {
4240
4299
  location: {
4241
4300
  parents: 1,
4242
4301
  interior: {
4243
- X3: [
4302
+ X4: [
4244
4303
  {
4245
- Parachain: 2004
4304
+ Parachain: 2034
4246
4305
  },
4247
4306
  {
4248
- PalletInstance: 110
4307
+ GeneralKey: {
4308
+ length: 2,
4309
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
4310
+ }
4249
4311
  },
4250
4312
  {
4251
- AccountKey20: {
4252
- network: null,
4253
- key: "0x484ecce6775143d3335ed2c7bcb22151c53b9f49"
4313
+ GeneralIndex: 21
4314
+ },
4315
+ {
4316
+ GeneralKey: {
4317
+ length: 32,
4318
+ data: "0x9258181f5ceac8dbffb7030890243caed69a9599d2886d957a9cb7656af3bdb3"
4254
4319
  }
4255
4320
  }
4256
4321
  ]
@@ -4266,17 +4331,23 @@ var Hydration = {
4266
4331
  location: {
4267
4332
  parents: 1,
4268
4333
  interior: {
4269
- X3: [
4334
+ X4: [
4270
4335
  {
4271
- Parachain: 2004
4336
+ Parachain: 2034
4272
4337
  },
4273
4338
  {
4274
- PalletInstance: 110
4339
+ GeneralKey: {
4340
+ length: 2,
4341
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
4342
+ }
4275
4343
  },
4276
4344
  {
4277
- AccountKey20: {
4278
- network: null,
4279
- key: "0x52b2f622f5676e92dbea3092004eb9ffb85a8d07"
4345
+ GeneralIndex: 1
4346
+ },
4347
+ {
4348
+ GeneralKey: {
4349
+ length: 32,
4350
+ data: "0x26759f460ee5f743ed66d27c8f2a5623bf39d53ed575955320661e6e13e0e3da"
4280
4351
  }
4281
4352
  }
4282
4353
  ]
@@ -4305,17 +4376,23 @@ var Hydration = {
4305
4376
  location: {
4306
4377
  parents: 1,
4307
4378
  interior: {
4308
- X3: [
4379
+ X4: [
4309
4380
  {
4310
- Parachain: 2004
4381
+ Parachain: 2034
4311
4382
  },
4312
4383
  {
4313
- PalletInstance: 110
4384
+ GeneralKey: {
4385
+ length: 2,
4386
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
4387
+ }
4314
4388
  },
4315
4389
  {
4316
- AccountKey20: {
4317
- network: null,
4318
- key: "0x06e605775296e851ff43b4daa541bb0984e9d6fd"
4390
+ GeneralIndex: 2
4391
+ },
4392
+ {
4393
+ GeneralKey: {
4394
+ length: 32,
4395
+ data: "0x0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f"
4319
4396
  }
4320
4397
  }
4321
4398
  ]
@@ -4880,6 +4957,29 @@ var Hydration = {
4880
4957
  isFeeAsset: true,
4881
4958
  alias: "WBTC3"
4882
4959
  },
4960
+ {
4961
+ assetId: "55",
4962
+ symbol: "BIL",
4963
+ decimals: 18,
4964
+ existentialDeposit: "20000000000000000",
4965
+ location: {
4966
+ parents: 1,
4967
+ interior: {
4968
+ X2: [
4969
+ {
4970
+ Parachain: 2034
4971
+ },
4972
+ {
4973
+ AccountKey20: {
4974
+ network: null,
4975
+ key: "0x8184e2f7c477d165772c21f7a2dbbb61a76e7fc4"
4976
+ }
4977
+ }
4978
+ ]
4979
+ }
4980
+ },
4981
+ isFeeAsset: true
4982
+ },
4883
4983
  {
4884
4984
  assetId: "17",
4885
4985
  symbol: "INTR",
@@ -4986,17 +5086,23 @@ var Hydration = {
4986
5086
  location: {
4987
5087
  parents: 1,
4988
5088
  interior: {
4989
- X3: [
5089
+ X4: [
4990
5090
  {
4991
- Parachain: 2004
5091
+ Parachain: 2034
4992
5092
  },
4993
5093
  {
4994
- PalletInstance: 110
5094
+ GeneralKey: {
5095
+ length: 2,
5096
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
5097
+ }
4995
5098
  },
4996
5099
  {
4997
- AccountKey20: {
4998
- network: null,
4999
- key: "0xc30e9ca94cf52f3bf5692aacf81353a27052c46f"
5100
+ GeneralIndex: 2
5101
+ },
5102
+ {
5103
+ GeneralKey: {
5104
+ length: 32,
5105
+ data: "0x000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7"
5000
5106
  }
5001
5107
  }
5002
5108
  ]
@@ -5126,17 +5232,23 @@ var Hydration = {
5126
5232
  location: {
5127
5233
  parents: 1,
5128
5234
  interior: {
5129
- X3: [
5235
+ X4: [
5130
5236
  {
5131
- Parachain: 2004
5237
+ Parachain: 2034
5132
5238
  },
5133
5239
  {
5134
- PalletInstance: 110
5240
+ GeneralKey: {
5241
+ length: 2,
5242
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
5243
+ }
5135
5244
  },
5136
5245
  {
5137
- AccountKey20: {
5138
- network: null,
5139
- key: "0x99fec54a5ad36d50a4bba3a41cab983a5bb86a7d"
5246
+ GeneralIndex: 1
5247
+ },
5248
+ {
5249
+ GeneralKey: {
5250
+ length: 32,
5251
+ data: "0x069b8857feab8184fb687f634618c035dac439dc1aeb3b5598a0f00000000001"
5140
5252
  }
5141
5253
  }
5142
5254
  ]
@@ -8651,8 +8763,8 @@ var Jamton = {
8651
8763
  nativeAssetSymbol: "DOTON",
8652
8764
  isEVM: false,
8653
8765
  ss58Prefix: 5589,
8654
- supportsDryRunApi: false,
8655
- supportsXcmPaymentApi: false,
8766
+ supportsDryRunApi: true,
8767
+ supportsXcmPaymentApi: true,
8656
8768
  assets: [
8657
8769
  {
8658
8770
  assetId: "0",
@@ -8671,55 +8783,6 @@ var Jamton = {
8671
8783
  },
8672
8784
  isNative: true
8673
8785
  },
8674
- {
8675
- assetId: "2",
8676
- symbol: "jamTON",
8677
- decimals: 9,
8678
- existentialDeposit: "1000000",
8679
- location: {
8680
- parents: 1,
8681
- interior: {
8682
- X3: [
8683
- {
8684
- Parachain: 1000
8685
- },
8686
- {
8687
- PalletInstance: 50
8688
- },
8689
- {
8690
- GeneralIndex: 22222078
8691
- }
8692
- ]
8693
- }
8694
- },
8695
- isNative: true
8696
- },
8697
- {
8698
- assetId: "1",
8699
- symbol: "stDOT",
8700
- decimals: 10,
8701
- existentialDeposit: "10000000",
8702
- location: {
8703
- parents: 1,
8704
- interior: {
8705
- X3: [
8706
- {
8707
- Parachain: 2004
8708
- },
8709
- {
8710
- PalletInstance: 110
8711
- },
8712
- {
8713
- AccountKey20: {
8714
- network: null,
8715
- key: "0xbc7e02c4178a7df7d3e564323a5c359dc96c4db4"
8716
- }
8717
- }
8718
- ]
8719
- }
8720
- },
8721
- isNative: true
8722
- },
8723
8786
  {
8724
8787
  assetId: "0",
8725
8788
  symbol: "DOT",
@@ -8730,7 +8793,8 @@ var Jamton = {
8730
8793
  interior: {
8731
8794
  Here: null
8732
8795
  }
8733
- }
8796
+ },
8797
+ isFeeAsset: true
8734
8798
  },
8735
8799
  {
8736
8800
  assetId: "2",
@@ -8752,7 +8816,8 @@ var Jamton = {
8752
8816
  }
8753
8817
  ]
8754
8818
  }
8755
- }
8819
+ },
8820
+ isFeeAsset: true
8756
8821
  },
8757
8822
  {
8758
8823
  assetId: "3",
@@ -8800,7 +8865,8 @@ var Jamton = {
8800
8865
  }
8801
8866
  ]
8802
8867
  }
8803
- }
8868
+ },
8869
+ isFeeAsset: true
8804
8870
  }
8805
8871
  ]
8806
8872
  };
@@ -11380,6 +11446,32 @@ var Ethereum = {
11380
11446
  }
11381
11447
  }
11382
11448
  },
11449
+ {
11450
+ symbol: "apyUSD",
11451
+ assetId: "0x38eeb52f0771140d10c4e9a9a72349a329fe8a6a",
11452
+ decimals: 18,
11453
+ existentialDeposit: "1",
11454
+ location: {
11455
+ parents: 2,
11456
+ interior: {
11457
+ X2: [
11458
+ {
11459
+ GlobalConsensus: {
11460
+ Ethereum: {
11461
+ chainId: 1
11462
+ }
11463
+ }
11464
+ },
11465
+ {
11466
+ AccountKey20: {
11467
+ network: null,
11468
+ key: "0x38eeb52f0771140d10c4e9a9a72349a329fe8a6a"
11469
+ }
11470
+ }
11471
+ ]
11472
+ }
11473
+ }
11474
+ },
11383
11475
  {
11384
11476
  symbol: "EURC",
11385
11477
  assetId: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c",
@@ -16034,6 +16126,145 @@ var NeuroWebPaseo = {
16034
16126
  }
16035
16127
  ]
16036
16128
  };
16129
+ var Curio = {
16130
+ relaychainSymbol: "KSM",
16131
+ nativeAssetSymbol: "CGT",
16132
+ isEVM: false,
16133
+ ss58Prefix: 777,
16134
+ supportsDryRunApi: true,
16135
+ supportsXcmPaymentApi: true,
16136
+ assets: [
16137
+ {
16138
+ symbol: "CGT",
16139
+ decimals: 18,
16140
+ existentialDeposit: "10000000000000000",
16141
+ location: {
16142
+ parents: 2,
16143
+ interior: {
16144
+ X2: [
16145
+ {
16146
+ GlobalConsensus: {
16147
+ Ethereum: {
16148
+ chainId: 1
16149
+ }
16150
+ }
16151
+ },
16152
+ {
16153
+ AccountKey20: {
16154
+ network: null,
16155
+ key: "0x0e186357c323c806c1efdad36d217f7a54b63d18"
16156
+ }
16157
+ }
16158
+ ]
16159
+ }
16160
+ },
16161
+ isNative: true,
16162
+ isFeeAsset: true
16163
+ },
16164
+ {
16165
+ symbol: "KSM",
16166
+ decimals: 12,
16167
+ existentialDeposit: "333333333",
16168
+ location: {
16169
+ parents: 1,
16170
+ interior: {
16171
+ Here: null
16172
+ }
16173
+ },
16174
+ isNative: true,
16175
+ isFeeAsset: true
16176
+ },
16177
+ {
16178
+ assetId: "0",
16179
+ symbol: "BSX",
16180
+ decimals: 12,
16181
+ existentialDeposit: "1000000000000",
16182
+ location: {
16183
+ parents: 1,
16184
+ interior: {
16185
+ X2: [
16186
+ {
16187
+ Parachain: 2090
16188
+ },
16189
+ {
16190
+ GeneralIndex: 0
16191
+ }
16192
+ ]
16193
+ }
16194
+ },
16195
+ isFeeAsset: true
16196
+ },
16197
+ {
16198
+ assetId: "2",
16199
+ symbol: "VAL",
16200
+ decimals: 18,
16201
+ existentialDeposit: "1000000000000000",
16202
+ location: {
16203
+ parents: 1,
16204
+ interior: {
16205
+ X2: [
16206
+ {
16207
+ Parachain: 2011
16208
+ },
16209
+ {
16210
+ GeneralKey: {
16211
+ length: 32,
16212
+ data: "0x0200040000000000000000000000000000000000000000000000000000000000"
16213
+ }
16214
+ }
16215
+ ]
16216
+ }
16217
+ },
16218
+ isFeeAsset: true
16219
+ },
16220
+ {
16221
+ assetId: "3",
16222
+ symbol: "PSWAP",
16223
+ decimals: 18,
16224
+ existentialDeposit: "1000000000000000000",
16225
+ location: {
16226
+ parents: 1,
16227
+ interior: {
16228
+ X2: [
16229
+ {
16230
+ Parachain: 2011
16231
+ },
16232
+ {
16233
+ GeneralKey: {
16234
+ length: 32,
16235
+ data: "0x0200050000000000000000000000000000000000000000000000000000000000"
16236
+ }
16237
+ }
16238
+ ]
16239
+ }
16240
+ },
16241
+ isFeeAsset: true
16242
+ },
16243
+ {
16244
+ assetId: "1",
16245
+ symbol: "XOR",
16246
+ decimals: 18,
16247
+ existentialDeposit: "1000000000000000",
16248
+ location: {
16249
+ parents: 1,
16250
+ interior: {
16251
+ X2: [
16252
+ {
16253
+ Parachain: 2011
16254
+ },
16255
+ {
16256
+ GeneralKey: {
16257
+ length: 32,
16258
+ data: "0x0200000000000000000000000000000000000000000000000000000000000000"
16259
+ }
16260
+ }
16261
+ ]
16262
+ }
16263
+ },
16264
+ isFeeAsset: true
16265
+ }
16266
+ ]
16267
+ };
16037
16268
  var assetsMapJson = {
16038
16269
  Polkadot: Polkadot,
16039
16270
  Kusama: Kusama,
@@ -16086,7 +16317,8 @@ var assetsMapJson = {
16086
16317
  HeimaPaseo: HeimaPaseo,
16087
16318
  EnergyWebXPaseo: EnergyWebXPaseo,
16088
16319
  HydrationPaseo: HydrationPaseo,
16089
- NeuroWebPaseo: NeuroWebPaseo
16320
+ NeuroWebPaseo: NeuroWebPaseo,
16321
+ Curio: Curio
16090
16322
  };
16091
16323
 
16092
16324
  /**
@@ -16788,26 +17020,41 @@ var getNativeAssetSymbol = function getNativeAssetSymbol(chain) {
16788
17020
  return getNativeAssetSymbolImpl(chain);
16789
17021
  };
16790
17022
  var hasDryRunSupportImpl = function hasDryRunSupportImpl(chain, ctx) {
16791
- // These chains have DryRun but it's not working
16792
- var DISABLED_CHAINS = ['Basilisk', 'Jamton'];
16793
- return getAssetsObjectImpl(chain, ctx).supportsDryRunApi && !DISABLED_CHAINS.some(function (disabled) {
16794
- return disabled === chain;
16795
- });
17023
+ return getAssetsObjectImpl(chain, ctx).supportsDryRunApi;
16796
17024
  };
16797
17025
  var hasDryRunSupport = function hasDryRunSupport(chain) {
16798
17026
  return hasDryRunSupportImpl(chain);
16799
17027
  };
16800
17028
  var hasXcmPaymentApiSupportImpl = function hasXcmPaymentApiSupportImpl(chain, ctx) {
16801
- // These chains have XcmPaymentApi but it's not working
16802
- var DISABLED_CHAINS = ['Basilisk', 'Jamton'];
16803
- return getAssetsObjectImpl(chain, ctx).supportsXcmPaymentApi && !DISABLED_CHAINS.some(function (disabled) {
16804
- return disabled === chain;
16805
- });
17029
+ return getAssetsObjectImpl(chain, ctx).supportsXcmPaymentApi;
16806
17030
  };
16807
17031
  var hasXcmPaymentApiSupport = function hasXcmPaymentApiSupport(chain) {
16808
17032
  return hasXcmPaymentApiSupportImpl(chain);
16809
17033
  };
16810
17034
 
17035
+ var ADDITIONAL_SUBSTRATE_BRIDGE_ASSET_LOCATIONS = [{
17036
+ parents: 2,
17037
+ interior: {
17038
+ X2: [{
17039
+ GlobalConsensus: {
17040
+ Ethereum: {
17041
+ chainId: 1
17042
+ }
17043
+ }
17044
+ }, {
17045
+ AccountKey20: {
17046
+ network: null,
17047
+ key: '0x0e186357c323c806c1efdad36d217f7a54b63d18'
17048
+ }
17049
+ }]
17050
+ }
17051
+ }];
17052
+ var isAdditionalSubstrateBridgeAsset = function isAdditionalSubstrateBridgeAsset(asset) {
17053
+ return ADDITIONAL_SUBSTRATE_BRIDGE_ASSET_LOCATIONS.some(function (location) {
17054
+ return deepEqual(asset.location, location);
17055
+ });
17056
+ };
17057
+
16811
17058
  var isAssetEqual = function isAssetEqual(asset1, asset2) {
16812
17059
  var loc1 = asset1.location;
16813
17060
  var loc2 = asset2.location;
@@ -16815,6 +17062,11 @@ var isAssetEqual = function isAssetEqual(asset1, asset2) {
16815
17062
  };
16816
17063
 
16817
17064
  var getSupportedAssetsImpl = function getSupportedAssetsImpl(origin, destination, ctx) {
17065
+ var isSubBridge = isSubstrateBridge(origin, destination);
17066
+ var isSb = isSnowbridge(origin, destination);
17067
+ if (isSb && !ETHEREUM_BRIDGE_ORIGINS.some(function (chain) {
17068
+ return chain === origin;
17069
+ })) return [];
16818
17070
  var originAssets = getAssetsImpl(origin, ctx);
16819
17071
  var destinationAssets = getAssetsImpl(destination, ctx);
16820
17072
  var supportedAssets = originAssets.filter(function (asset) {
@@ -16822,8 +17074,6 @@ var getSupportedAssetsImpl = function getSupportedAssetsImpl(origin, destination
16822
17074
  return isAssetEqual(a, asset);
16823
17075
  });
16824
17076
  });
16825
- var isSubBridge = isSubstrateBridge(origin, destination);
16826
- var isSb = isSnowbridge(origin, destination);
16827
17077
  if (isSubBridge || isSb) {
16828
17078
  var systemAssets = originAssets.filter(function (asset) {
16829
17079
  return isSystemAsset(asset);
@@ -16837,7 +17087,8 @@ var getSupportedAssetsImpl = function getSupportedAssetsImpl(origin, destination
16837
17087
  return nativeSymbols.includes(symbol);
16838
17088
  });
16839
17089
  var stablecoinAssets = findStablecoinAssets(origin);
16840
- return [].concat(_toConsumableArray(filteredSystemAssets), _toConsumableArray(stablecoinAssets));
17090
+ var additionalBridgeAssets = supportedAssets.filter(isAdditionalSubstrateBridgeAsset);
17091
+ return [].concat(_toConsumableArray(filteredSystemAssets), _toConsumableArray(stablecoinAssets), _toConsumableArray(additionalBridgeAssets));
16841
17092
  } else {
16842
17093
  // MYTH has two valid locations (native on Mythos, ERC-20 on Ethereum),
16843
17094
  // so it isn't matched by isAssetEqual. Include it explicitly.
@@ -16902,7 +17153,7 @@ var getSupportedDestinations = function getSupportedDestinations(origin, currenc
16902
17153
  }
16903
17154
  if (isUnsupportedAssetHubNative(origin, destination, originAsset, nativeAssets)) return false;
16904
17155
  if (isSubstrateBridge(origin, destination)) {
16905
- return isSystemAsset(originAsset) || isStableCoinAsset(originAsset);
17156
+ return isSystemAsset(originAsset) || isStableCoinAsset(originAsset) || isAdditionalSubstrateBridgeAsset(originAsset);
16906
17157
  }
16907
17158
  try {
16908
17159
  return !!findAssetInfoOnDest(origin, destination, currency, originAsset);
@@ -16933,4 +17184,4 @@ var isSymbolMatch = function isSymbolMatch(symbolA, symbolB) {
16933
17184
  return normalizeSymbol(symbolA) === normalizeSymbol(symbolB);
16934
17185
  };
16935
17186
 
16936
- 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, isAssetEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/assets",
3
- "version": "14.1.0",
3
+ "version": "14.2.0",
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.1.0"
25
+ "@paraspell/sdk-common": "14.2.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/plugin-syntax-import-attributes": "^7.29.7",