@paraspell/swap 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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.mjs +165 -67
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
  </a>
16
16
  </p>
17
17
  <p>How to swap <a href = "https://paraspell.github.io/docs/xcm-sdk/send-xcm.html#swap" \>[here]</p>
18
- <p>XCM SDK starter template project <a href = "https://github.com/paraspell/xcm-sdk-template" \>[here]</p>
18
+ <p>Generate XCM SDK starter project <a href="https://paraspell.github.io/docs/paraspell-cli/getting-started.html">[here]</a></p>
19
19
  </div>
20
20
 
21
21
  <br /><br />
package/dist/index.mjs CHANGED
@@ -1782,17 +1782,23 @@ var Hydration = {
1782
1782
  {
1783
1783
  parents: 1,
1784
1784
  interior: {
1785
- X3: [
1785
+ X4: [
1786
1786
  {
1787
- Parachain: 2004
1787
+ Parachain: 2034
1788
+ },
1789
+ {
1790
+ GeneralKey: {
1791
+ length: 2,
1792
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
1793
+ }
1788
1794
  },
1789
1795
  {
1790
- PalletInstance: 110
1796
+ GeneralIndex: 2
1791
1797
  },
1792
1798
  {
1793
- AccountKey20: {
1794
- network: null,
1795
- key: "0x931715fee2d06333043d11f658c8ce934ac61d0c"
1799
+ GeneralKey: {
1800
+ length: 32,
1801
+ data: "0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
1796
1802
  }
1797
1803
  }
1798
1804
  ]
@@ -1827,17 +1833,23 @@ var Hydration = {
1827
1833
  {
1828
1834
  parents: 1,
1829
1835
  interior: {
1830
- X3: [
1836
+ X4: [
1831
1837
  {
1832
- Parachain: 2004
1838
+ Parachain: 2034
1833
1839
  },
1834
1840
  {
1835
- PalletInstance: 110
1841
+ GeneralKey: {
1842
+ length: 2,
1843
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
1844
+ }
1836
1845
  },
1837
1846
  {
1838
- AccountKey20: {
1839
- network: null,
1840
- key: "0xab3f0245b83feb11d15aaffefd7ad465a59817ed"
1847
+ GeneralIndex: 2
1848
+ },
1849
+ {
1850
+ GeneralKey: {
1851
+ length: 32,
1852
+ data: "0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
1841
1853
  }
1842
1854
  }
1843
1855
  ]
@@ -2111,17 +2123,23 @@ var Hydration = {
2111
2123
  {
2112
2124
  parents: 1,
2113
2125
  interior: {
2114
- X3: [
2126
+ X4: [
2115
2127
  {
2116
- Parachain: 2004
2128
+ Parachain: 2034
2129
+ },
2130
+ {
2131
+ GeneralKey: {
2132
+ length: 2,
2133
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
2134
+ }
2117
2135
  },
2118
2136
  {
2119
- PalletInstance: 110
2137
+ GeneralIndex: 2
2120
2138
  },
2121
2139
  {
2122
- AccountKey20: {
2123
- network: null,
2124
- key: "0xe57ebd2d67b462e9926e04a8e33f01cd0d64346d"
2140
+ GeneralKey: {
2141
+ length: 32,
2142
+ data: "0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599"
2125
2143
  }
2126
2144
  }
2127
2145
  ]
@@ -2248,17 +2266,23 @@ var Hydration = {
2248
2266
  {
2249
2267
  parents: 1,
2250
2268
  interior: {
2251
- X3: [
2269
+ X4: [
2252
2270
  {
2253
- Parachain: 2004
2271
+ Parachain: 2034
2254
2272
  },
2255
2273
  {
2256
- PalletInstance: 110
2274
+ GeneralKey: {
2275
+ length: 2,
2276
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
2277
+ }
2257
2278
  },
2258
2279
  {
2259
- AccountKey20: {
2260
- network: null,
2261
- key: "0x3f9610a50630bc7d4530736942ee2bc9e00e8de8"
2280
+ GeneralIndex: 30
2281
+ },
2282
+ {
2283
+ GeneralKey: {
2284
+ length: 32,
2285
+ data: "0x00000000000000000000000060a3e35cc302bfa44cb288bc5a4f316fdb1adb42"
2262
2286
  }
2263
2287
  }
2264
2288
  ]
@@ -2319,17 +2343,23 @@ var Hydration = {
2319
2343
  {
2320
2344
  parents: 1,
2321
2345
  interior: {
2322
- X3: [
2346
+ X4: [
2323
2347
  {
2324
- Parachain: 2004
2348
+ Parachain: 2034
2325
2349
  },
2326
2350
  {
2327
- PalletInstance: 110
2351
+ GeneralKey: {
2352
+ length: 2,
2353
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
2354
+ }
2328
2355
  },
2329
2356
  {
2330
- AccountKey20: {
2331
- network: null,
2332
- key: "0xe9f9a2e3deae4093c00fbc57b22bb51a4c05ad88"
2357
+ GeneralIndex: 1
2358
+ },
2359
+ {
2360
+ GeneralKey: {
2361
+ length: 32,
2362
+ data: "0xfcd141e9832caf10ad917495ca0f271b5b293cd47027ea737007ed40eb39a0bd"
2333
2363
  }
2334
2364
  }
2335
2365
  ]
@@ -2415,17 +2445,23 @@ var Hydration = {
2415
2445
  {
2416
2446
  parents: 1,
2417
2447
  interior: {
2418
- X3: [
2448
+ X4: [
2419
2449
  {
2420
- Parachain: 2004
2450
+ Parachain: 2034
2421
2451
  },
2422
2452
  {
2423
- PalletInstance: 110
2453
+ GeneralKey: {
2454
+ length: 2,
2455
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
2456
+ }
2424
2457
  },
2425
2458
  {
2426
- AccountKey20: {
2427
- network: null,
2428
- key: "0xda430218862d3db25de9f61458645dde49a9e9c1"
2459
+ GeneralIndex: 2
2460
+ },
2461
+ {
2462
+ GeneralKey: {
2463
+ length: 32,
2464
+ data: "0x000000000000000000000000a3931d71877c0e7a3148cb7eb4463524fec27fbd"
2429
2465
  }
2430
2466
  }
2431
2467
  ]
@@ -2461,6 +2497,22 @@ var Hydration = {
2461
2497
  ]
2462
2498
  }
2463
2499
  },
2500
+ {
2501
+ parents: 1,
2502
+ interior: {
2503
+ X2: [
2504
+ {
2505
+ Parachain: 2034
2506
+ },
2507
+ {
2508
+ AccountKey20: {
2509
+ network: null,
2510
+ key: "0x6a21891db0940491603f3cca0a9f4dba4c6e810c"
2511
+ }
2512
+ }
2513
+ ]
2514
+ }
2515
+ },
2464
2516
  {
2465
2517
  parents: 1,
2466
2518
  interior: {
@@ -2494,17 +2546,23 @@ var Hydration = {
2494
2546
  {
2495
2547
  parents: 1,
2496
2548
  interior: {
2497
- X3: [
2549
+ X4: [
2498
2550
  {
2499
- Parachain: 2004
2551
+ Parachain: 2034
2500
2552
  },
2501
2553
  {
2502
- PalletInstance: 110
2554
+ GeneralKey: {
2555
+ length: 2,
2556
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
2557
+ }
2503
2558
  },
2504
2559
  {
2505
- AccountKey20: {
2506
- network: null,
2507
- key: "0x484ecce6775143d3335ed2c7bcb22151c53b9f49"
2560
+ GeneralIndex: 21
2561
+ },
2562
+ {
2563
+ GeneralKey: {
2564
+ length: 32,
2565
+ data: "0x9258181f5ceac8dbffb7030890243caed69a9599d2886d957a9cb7656af3bdb3"
2508
2566
  }
2509
2567
  }
2510
2568
  ]
@@ -2513,17 +2571,23 @@ var Hydration = {
2513
2571
  {
2514
2572
  parents: 1,
2515
2573
  interior: {
2516
- X3: [
2574
+ X4: [
2517
2575
  {
2518
- Parachain: 2004
2576
+ Parachain: 2034
2519
2577
  },
2520
2578
  {
2521
- PalletInstance: 110
2579
+ GeneralKey: {
2580
+ length: 2,
2581
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
2582
+ }
2522
2583
  },
2523
2584
  {
2524
- AccountKey20: {
2525
- network: null,
2526
- key: "0x52b2f622f5676e92dbea3092004eb9ffb85a8d07"
2585
+ GeneralIndex: 1
2586
+ },
2587
+ {
2588
+ GeneralKey: {
2589
+ length: 32,
2590
+ data: "0x26759f460ee5f743ed66d27c8f2a5623bf39d53ed575955320661e6e13e0e3da"
2527
2591
  }
2528
2592
  }
2529
2593
  ]
@@ -2538,17 +2602,23 @@ var Hydration = {
2538
2602
  {
2539
2603
  parents: 1,
2540
2604
  interior: {
2541
- X3: [
2605
+ X4: [
2542
2606
  {
2543
- Parachain: 2004
2607
+ Parachain: 2034
2544
2608
  },
2545
2609
  {
2546
- PalletInstance: 110
2610
+ GeneralKey: {
2611
+ length: 2,
2612
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
2613
+ }
2547
2614
  },
2548
2615
  {
2549
- AccountKey20: {
2550
- network: null,
2551
- key: "0x06e605775296e851ff43b4daa541bb0984e9d6fd"
2616
+ GeneralIndex: 2
2617
+ },
2618
+ {
2619
+ GeneralKey: {
2620
+ length: 32,
2621
+ data: "0x0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f"
2552
2622
  }
2553
2623
  }
2554
2624
  ]
@@ -2936,6 +3006,22 @@ var Hydration = {
2936
3006
  ]
2937
3007
  }
2938
3008
  },
3009
+ {
3010
+ parents: 1,
3011
+ interior: {
3012
+ X2: [
3013
+ {
3014
+ Parachain: 2034
3015
+ },
3016
+ {
3017
+ AccountKey20: {
3018
+ network: null,
3019
+ key: "0x8184e2f7c477d165772c21f7a2dbbb61a76e7fc4"
3020
+ }
3021
+ }
3022
+ ]
3023
+ }
3024
+ },
2939
3025
  {
2940
3026
  parents: 1,
2941
3027
  interior: {
@@ -3009,17 +3095,23 @@ var Hydration = {
3009
3095
  {
3010
3096
  parents: 1,
3011
3097
  interior: {
3012
- X3: [
3098
+ X4: [
3013
3099
  {
3014
- Parachain: 2004
3100
+ Parachain: 2034
3015
3101
  },
3016
3102
  {
3017
- PalletInstance: 110
3103
+ GeneralKey: {
3104
+ length: 2,
3105
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
3106
+ }
3018
3107
  },
3019
3108
  {
3020
- AccountKey20: {
3021
- network: null,
3022
- key: "0xc30e9ca94cf52f3bf5692aacf81353a27052c46f"
3109
+ GeneralIndex: 2
3110
+ },
3111
+ {
3112
+ GeneralKey: {
3113
+ length: 32,
3114
+ data: "0x000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7"
3023
3115
  }
3024
3116
  }
3025
3117
  ]
@@ -3106,17 +3198,23 @@ var Hydration = {
3106
3198
  {
3107
3199
  parents: 1,
3108
3200
  interior: {
3109
- X3: [
3201
+ X4: [
3110
3202
  {
3111
- Parachain: 2004
3203
+ Parachain: 2034
3112
3204
  },
3113
3205
  {
3114
- PalletInstance: 110
3206
+ GeneralKey: {
3207
+ length: 2,
3208
+ data: "0x7768000000000000000000000000000000000000000000000000000000000000"
3209
+ }
3115
3210
  },
3116
3211
  {
3117
- AccountKey20: {
3118
- network: null,
3119
- key: "0x99fec54a5ad36d50a4bba3a41cab983a5bb86a7d"
3212
+ GeneralIndex: 1
3213
+ },
3214
+ {
3215
+ GeneralKey: {
3216
+ length: 32,
3217
+ data: "0x069b8857feab8184fb687f634618c035dac439dc1aeb3b5598a0f00000000001"
3120
3218
  }
3121
3219
  }
3122
3220
  ]
@@ -9692,7 +9790,7 @@ var getExchangeAsset = function getExchangeAsset(exchange, currency) {
9692
9790
  }
9693
9791
  asset = findAssetInfoBySymbol(otherAssets, nativeAssets, currency.symbol);
9694
9792
  } else if ('id' in currency) {
9695
- asset = findAssetInfoById(otherAssets, currency.id);
9793
+ asset = findAssetInfoById(assets, currency.id);
9696
9794
  } else {
9697
9795
  throw new RoutingResolutionError('Invalid currency input');
9698
9796
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/swap",
3
- "version": "14.1.0",
3
+ "version": "14.2.0",
4
4
  "description": "Tool for XCM cross-chain asset exchanging across Polkadot and Kusama ecosystems",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,10 +47,10 @@
47
47
  "polkadot-api": "^2.2.1",
48
48
  "react": "^19.2.8",
49
49
  "rxjs": "^7.8.2",
50
- "@paraspell/sdk": "14.1.0",
51
- "@paraspell/sdk-core": "14.1.0",
52
- "@paraspell/sdk-common": "14.1.0",
53
- "@paraspell/sdk-pjs": "14.1.0"
50
+ "@paraspell/sdk-common": "14.2.0",
51
+ "@paraspell/sdk": "14.2.0",
52
+ "@paraspell/sdk-core": "14.2.0",
53
+ "@paraspell/sdk-pjs": "14.2.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/plugin-syntax-import-attributes": "^7.29.7",