@paraspell/sdk 5.9.0 → 5.10.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.cjs CHANGED
@@ -570,7 +570,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
570
570
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
571
571
  PERFORMANCE OF THIS SOFTWARE.
572
572
  ***************************************************************************** */
573
- /* global Reflect, Promise, SuppressedError, Symbol */
573
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
574
574
 
575
575
 
576
576
  function __awaiter(thisArg, _arguments, P, generator) {
@@ -602,6 +602,12 @@ exports.Parents = void 0;
602
602
  Parents[Parents["TWO"] = 2] = "TWO";
603
603
  })(exports.Parents || (exports.Parents = {}));
604
604
 
605
+ exports.BatchMode = void 0;
606
+ (function (BatchMode) {
607
+ BatchMode["BATCH_ALL"] = "BATCH_ALL";
608
+ BatchMode["BATCH"] = "BATCH";
609
+ })(exports.BatchMode || (exports.BatchMode = {}));
610
+
605
611
  // Used to inform user, that Parachain they wish to use has not yet implemented full XCM Support
606
612
  var NoXCMSupportImplementedError = /*#__PURE__*/function (_Error) {
607
613
  function NoXCMSupportImplementedError(node) {
@@ -613,7 +619,7 @@ var NoXCMSupportImplementedError = /*#__PURE__*/function (_Error) {
613
619
  }
614
620
  _inherits(NoXCMSupportImplementedError, _Error);
615
621
  return _createClass(NoXCMSupportImplementedError);
616
- }( /*#__PURE__*/_wrapNativeSuper(Error));
622
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
617
623
 
618
624
  var Polkadot$1 = {
619
625
  relayChainAssetSymbol: "DOT",
@@ -690,6 +696,11 @@ var Acala$3 = {
690
696
  symbol: "EQD",
691
697
  decimals: 9
692
698
  },
699
+ {
700
+ assetId: "16",
701
+ symbol: "PDEX",
702
+ decimals: 12
703
+ },
693
704
  {
694
705
  assetId: "4",
695
706
  symbol: "INTR",
@@ -750,6 +761,11 @@ var Acala$3 = {
750
761
  symbol: "LDO",
751
762
  decimals: 18
752
763
  },
764
+ {
765
+ assetId: "17",
766
+ symbol: "HDX",
767
+ decimals: 12
768
+ },
753
769
  {
754
770
  assetId: "0x54a37a01cd75b616d63e0ab665bffdb0143c52ae",
755
771
  symbol: "DAI",
@@ -815,6 +831,11 @@ var Acala$3 = {
815
831
  symbol: "WBTC",
816
832
  decimals: 8
817
833
  },
834
+ {
835
+ assetId: "15",
836
+ symbol: "CFG",
837
+ decimals: 18
838
+ },
818
839
  {
819
840
  assetId: "3",
820
841
  symbol: "IBTC",
@@ -1228,11 +1249,6 @@ var Centrifuge$3 = {
1228
1249
  symbol: "USDC",
1229
1250
  decimals: 6
1230
1251
  },
1231
- {
1232
- assetId: "N",
1233
- symbol: "CFG",
1234
- decimals: 18
1235
- },
1236
1252
  {
1237
1253
  assetId: "100002",
1238
1254
  symbol: "LpBaseUSDC",
@@ -1442,6 +1458,26 @@ var Darwinia$3 = {
1442
1458
  }
1443
1459
  ],
1444
1460
  otherAssets: [
1461
+ {
1462
+ assetId: "1027",
1463
+ symbol: "ahUSDT",
1464
+ decimals: 6
1465
+ },
1466
+ {
1467
+ assetId: "1026",
1468
+ symbol: "KTON",
1469
+ decimals: 18
1470
+ },
1471
+ {
1472
+ assetId: "1028",
1473
+ symbol: "ahPINK",
1474
+ decimals: 10
1475
+ },
1476
+ {
1477
+ assetId: "1029",
1478
+ symbol: "DOT",
1479
+ decimals: 10
1480
+ }
1445
1481
  ]
1446
1482
  };
1447
1483
  var Hydration$3 = {
@@ -1787,7 +1823,7 @@ var Litentry$3 = {
1787
1823
  nativeAssets: [
1788
1824
  {
1789
1825
  symbol: "LIT",
1790
- decimals: 12
1826
+ decimals: 18
1791
1827
  }
1792
1828
  ],
1793
1829
  otherAssets: [
@@ -2235,6 +2271,11 @@ var AssetHubPolkadot$3 = {
2235
2271
  symbol: "MYTH",
2236
2272
  decimals: 18
2237
2273
  },
2274
+ {
2275
+ assetId: "22222005",
2276
+ symbol: "love",
2277
+ decimals: 12
2278
+ },
2238
2279
  {
2239
2280
  assetId: "9999",
2240
2281
  symbol: "TOM",
@@ -2250,6 +2291,11 @@ var AssetHubPolkadot$3 = {
2250
2291
  symbol: "WETH",
2251
2292
  decimals: 18
2252
2293
  },
2294
+ {
2295
+ assetId: "22222041",
2296
+ symbol: "PAD",
2297
+ decimals: 12
2298
+ },
2253
2299
  {
2254
2300
  assetId: "56",
2255
2301
  symbol: "UNION",
@@ -2260,6 +2306,11 @@ var AssetHubPolkadot$3 = {
2260
2306
  symbol: "HUB",
2261
2307
  decimals: 10
2262
2308
  },
2309
+ {
2310
+ assetId: "22222025",
2311
+ symbol: "XCMS",
2312
+ decimals: 12
2313
+ },
2263
2314
  {
2264
2315
  assetId: "81",
2265
2316
  symbol: "GVN",
@@ -2290,6 +2341,11 @@ var AssetHubPolkadot$3 = {
2290
2341
  symbol: "DUCK",
2291
2342
  decimals: 10
2292
2343
  },
2344
+ {
2345
+ assetId: "58",
2346
+ symbol: "MDMA",
2347
+ decimals: 12
2348
+ },
2293
2349
  {
2294
2350
  assetId: "222",
2295
2351
  symbol: "SHL",
@@ -2335,21 +2391,46 @@ var AssetHubPolkadot$3 = {
2335
2391
  symbol: "NFLR",
2336
2392
  decimals: 10
2337
2393
  },
2394
+ {
2395
+ assetId: "22222028",
2396
+ symbol: "COKE",
2397
+ decimals: 12
2398
+ },
2338
2399
  {
2339
2400
  assetId: "20090110",
2340
2401
  symbol: "test1",
2341
2402
  decimals: 10
2342
2403
  },
2404
+ {
2405
+ assetId: "22222024",
2406
+ symbol: "POLISD",
2407
+ decimals: 12
2408
+ },
2343
2409
  {
2344
2410
  assetId: "256",
2345
2411
  symbol: "ICE",
2346
2412
  decimals: 20
2347
2413
  },
2414
+ {
2415
+ assetId: "22222070",
2416
+ symbol: "Mill",
2417
+ decimals: 12
2418
+ },
2419
+ {
2420
+ assetId: "22222019",
2421
+ symbol: "PI",
2422
+ decimals: 12
2423
+ },
2348
2424
  {
2349
2425
  assetId: "20090130",
2350
2426
  symbol: "SUS",
2351
2427
  decimals: 10
2352
2428
  },
2429
+ {
2430
+ assetId: "108",
2431
+ symbol: "GAME",
2432
+ decimals: 10
2433
+ },
2353
2434
  {
2354
2435
  assetId: "1111",
2355
2436
  symbol: "TESTV2",
@@ -2360,21 +2441,41 @@ var AssetHubPolkadot$3 = {
2360
2441
  symbol: "USDT",
2361
2442
  decimals: 16
2362
2443
  },
2444
+ {
2445
+ assetId: "22222008",
2446
+ symbol: "ALIEN",
2447
+ decimals: 12
2448
+ },
2363
2449
  {
2364
2450
  assetId: "300",
2365
2451
  symbol: "DOGE",
2366
2452
  decimals: 6
2367
2453
  },
2454
+ {
2455
+ assetId: "22222046",
2456
+ symbol: "$PGH",
2457
+ decimals: 12
2458
+ },
2368
2459
  {
2369
2460
  assetId: "4",
2370
2461
  symbol: "EFI",
2371
2462
  decimals: 18
2372
2463
  },
2464
+ {
2465
+ assetId: "22222043",
2466
+ symbol: "DDT",
2467
+ decimals: 12
2468
+ },
2373
2469
  {
2374
2470
  assetId: "48",
2375
2471
  symbol: "SAX",
2376
2472
  decimals: 2
2377
2473
  },
2474
+ {
2475
+ assetId: "22222064",
2476
+ symbol: "RIDEMY",
2477
+ decimals: 12
2478
+ },
2378
2479
  {
2379
2480
  assetId: "21",
2380
2481
  symbol: "WBTC",
@@ -2385,6 +2486,11 @@ var AssetHubPolkadot$3 = {
2385
2486
  symbol: "DOKA",
2386
2487
  decimals: 6
2387
2488
  },
2489
+ {
2490
+ assetId: "22222050",
2491
+ symbol: "SHIVER",
2492
+ decimals: 12
2493
+ },
2388
2494
  {
2389
2495
  assetId: "28",
2390
2496
  symbol: "BULL",
@@ -2450,6 +2556,11 @@ var AssetHubPolkadot$3 = {
2450
2556
  symbol: "SHIB",
2451
2557
  decimals: 6
2452
2558
  },
2559
+ {
2560
+ assetId: "20090147",
2561
+ symbol: "RVGAV",
2562
+ decimals: 10
2563
+ },
2453
2564
  {
2454
2565
  assetId: "46",
2455
2566
  symbol: "PEPE",
@@ -2460,6 +2571,11 @@ var AssetHubPolkadot$3 = {
2460
2571
  symbol: "BSOD",
2461
2572
  decimals: 10
2462
2573
  },
2574
+ {
2575
+ assetId: "22222036",
2576
+ symbol: "Shit",
2577
+ decimals: 12
2578
+ },
2463
2579
  {
2464
2580
  assetId: "99",
2465
2581
  symbol: "Cypress",
@@ -2471,9 +2587,14 @@ var AssetHubPolkadot$3 = {
2471
2587
  decimals: 12
2472
2588
  },
2473
2589
  {
2474
- assetId: "7777",
2475
- symbol: "FUM",
2476
- decimals: 10
2590
+ assetId: "22222058",
2591
+ symbol: "PLS",
2592
+ decimals: 12
2593
+ },
2594
+ {
2595
+ assetId: "22222002",
2596
+ symbol: "TeMeL",
2597
+ decimals: 12
2477
2598
  },
2478
2599
  {
2479
2600
  assetId: "20090114",
@@ -2490,6 +2611,26 @@ var AssetHubPolkadot$3 = {
2490
2611
  symbol: "web3",
2491
2612
  decimals: 18
2492
2613
  },
2614
+ {
2615
+ assetId: "22222051",
2616
+ symbol: "NIN",
2617
+ decimals: 12
2618
+ },
2619
+ {
2620
+ assetId: "22222020",
2621
+ symbol: "CDOG",
2622
+ decimals: 12
2623
+ },
2624
+ {
2625
+ assetId: "22222073",
2626
+ symbol: "0x4b61696279c58d",
2627
+ decimals: 12
2628
+ },
2629
+ {
2630
+ assetId: "22222074",
2631
+ symbol: "$JAM",
2632
+ decimals: 12
2633
+ },
2493
2634
  {
2494
2635
  assetId: "20090111",
2495
2636
  symbol: "txt",
@@ -2500,6 +2641,16 @@ var AssetHubPolkadot$3 = {
2500
2641
  symbol: "DED",
2501
2642
  decimals: 18
2502
2643
  },
2644
+ {
2645
+ assetId: "22222062",
2646
+ symbol: "ALPHA",
2647
+ decimals: 12
2648
+ },
2649
+ {
2650
+ assetId: "75",
2651
+ symbol: "TeMe14",
2652
+ decimals: 12
2653
+ },
2503
2654
  {
2504
2655
  assetId: "20090119",
2505
2656
  symbol: "MDGA",
@@ -2515,6 +2666,16 @@ var AssetHubPolkadot$3 = {
2515
2666
  symbol: "IBW",
2516
2667
  decimals: 10
2517
2668
  },
2669
+ {
2670
+ assetId: "22222075",
2671
+ symbol: "DUD",
2672
+ decimals: 12
2673
+ },
2674
+ {
2675
+ assetId: "22222022",
2676
+ symbol: "X",
2677
+ decimals: 12
2678
+ },
2518
2679
  {
2519
2680
  assetId: "122",
2520
2681
  symbol: "TESTING",
@@ -2535,6 +2696,21 @@ var AssetHubPolkadot$3 = {
2535
2696
  symbol: "JAMD",
2536
2697
  decimals: 10
2537
2698
  },
2699
+ {
2700
+ assetId: "57",
2701
+ symbol: "MCP",
2702
+ decimals: 12
2703
+ },
2704
+ {
2705
+ assetId: "22222021",
2706
+ symbol: "BBB",
2707
+ decimals: 12
2708
+ },
2709
+ {
2710
+ assetId: "22222009",
2711
+ symbol: "china",
2712
+ decimals: 12
2713
+ },
2538
2714
  {
2539
2715
  assetId: "14",
2540
2716
  symbol: "LEAP",
@@ -2570,6 +2746,11 @@ var AssetHubPolkadot$3 = {
2570
2746
  symbol: "STINK",
2571
2747
  decimals: 10
2572
2748
  },
2749
+ {
2750
+ assetId: "22222068",
2751
+ symbol: "V",
2752
+ decimals: 12
2753
+ },
2573
2754
  {
2574
2755
  assetId: "20090143",
2575
2756
  symbol: "DMSTR",
@@ -2601,9 +2782,14 @@ var AssetHubPolkadot$3 = {
2601
2782
  decimals: 10
2602
2783
  },
2603
2784
  {
2604
- assetId: "323",
2605
- symbol: "DGNNNC",
2606
- decimals: 6
2785
+ assetId: "22222078",
2786
+ symbol: "JAMTON",
2787
+ decimals: 12
2788
+ },
2789
+ {
2790
+ assetId: "73",
2791
+ symbol: "TeMe12",
2792
+ decimals: 12
2607
2793
  },
2608
2794
  {
2609
2795
  assetId: "77",
@@ -2615,6 +2801,11 @@ var AssetHubPolkadot$3 = {
2615
2801
  symbol: "DOGE",
2616
2802
  decimals: 10
2617
2803
  },
2804
+ {
2805
+ assetId: "22222029",
2806
+ symbol: "dog",
2807
+ decimals: 12
2808
+ },
2618
2809
  {
2619
2810
  assetId: "9002",
2620
2811
  symbol: "TAPE",
@@ -2630,6 +2821,16 @@ var AssetHubPolkadot$3 = {
2630
2821
  symbol: "GIO",
2631
2822
  decimals: 10
2632
2823
  },
2824
+ {
2825
+ assetId: "22222053",
2826
+ symbol: "DOTZ",
2827
+ decimals: 12
2828
+ },
2829
+ {
2830
+ assetId: "1747",
2831
+ symbol: "EMR",
2832
+ decimals: 10
2833
+ },
2633
2834
  {
2634
2835
  assetId: "31",
2635
2836
  symbol: "WOOD",
@@ -2685,6 +2886,11 @@ var AssetHubPolkadot$3 = {
2685
2886
  symbol: "SKL",
2686
2887
  decimals: 6
2687
2888
  },
2889
+ {
2890
+ assetId: "22222077",
2891
+ symbol: "SAPIEN",
2892
+ decimals: 12
2893
+ },
2688
2894
  {
2689
2895
  assetId: "15",
2690
2896
  symbol: "Meme",
@@ -2695,6 +2901,21 @@ var AssetHubPolkadot$3 = {
2695
2901
  symbol: "BUG",
2696
2902
  decimals: 12
2697
2903
  },
2904
+ {
2905
+ assetId: "22222013",
2906
+ symbol: "TM",
2907
+ decimals: 12
2908
+ },
2909
+ {
2910
+ assetId: "22222010",
2911
+ symbol: "TP",
2912
+ decimals: 12
2913
+ },
2914
+ {
2915
+ assetId: "22222071",
2916
+ symbol: "WUDFUD",
2917
+ decimals: 12
2918
+ },
2698
2919
  {
2699
2920
  assetId: "78",
2700
2921
  symbol: "COCA",
@@ -2715,6 +2936,11 @@ var AssetHubPolkadot$3 = {
2715
2936
  symbol: "PEPE",
2716
2937
  decimals: 10
2717
2938
  },
2939
+ {
2940
+ assetId: "20090144",
2941
+ symbol: "CHUG",
2942
+ decimals: 10
2943
+ },
2718
2944
  {
2719
2945
  assetId: "2",
2720
2946
  symbol: "BTC",
@@ -2735,6 +2961,16 @@ var AssetHubPolkadot$3 = {
2735
2961
  symbol: "POO",
2736
2962
  decimals: 10
2737
2963
  },
2964
+ {
2965
+ assetId: "22222031",
2966
+ symbol: "VRN",
2967
+ decimals: 12
2968
+ },
2969
+ {
2970
+ assetId: "22222014",
2971
+ symbol: "GIT",
2972
+ decimals: 12
2973
+ },
2738
2974
  {
2739
2975
  assetId: "20090129",
2740
2976
  symbol: "FCD",
@@ -2745,6 +2981,16 @@ var AssetHubPolkadot$3 = {
2745
2981
  symbol: "SATS",
2746
2982
  decimals: 6
2747
2983
  },
2984
+ {
2985
+ assetId: "22222034",
2986
+ symbol: "0xf09f9980",
2987
+ decimals: 12
2988
+ },
2989
+ {
2990
+ assetId: "74",
2991
+ symbol: "TeMe13",
2992
+ decimals: 12
2993
+ },
2748
2994
  {
2749
2995
  assetId: "70",
2750
2996
  symbol: "STEEBOR",
@@ -2755,11 +3001,31 @@ var AssetHubPolkadot$3 = {
2755
3001
  symbol: "HTG",
2756
3002
  decimals: 10
2757
3003
  },
3004
+ {
3005
+ assetId: "12746",
3006
+ symbol: "TTTT",
3007
+ decimals: 6
3008
+ },
2758
3009
  {
2759
3010
  assetId: "32",
2760
3011
  symbol: "CLAY",
2761
3012
  decimals: 10
2762
3013
  },
3014
+ {
3015
+ assetId: "22222035",
3016
+ symbol: ".WH",
3017
+ decimals: 12
3018
+ },
3019
+ {
3020
+ assetId: "82",
3021
+ symbol: "ANGRY",
3022
+ decimals: 12
3023
+ },
3024
+ {
3025
+ assetId: "22222065",
3026
+ symbol: "BBQ",
3027
+ decimals: 12
3028
+ },
2763
3029
  {
2764
3030
  assetId: "2106",
2765
3031
  symbol: "STREAK",
@@ -2780,11 +3046,31 @@ var AssetHubPolkadot$3 = {
2780
3046
  symbol: "STAR",
2781
3047
  decimals: 6
2782
3048
  },
3049
+ {
3050
+ assetId: "22222001",
3051
+ symbol: "OMG2",
3052
+ decimals: 12
3053
+ },
3054
+ {
3055
+ assetId: "22222042",
3056
+ symbol: "CORE",
3057
+ decimals: 12
3058
+ },
3059
+ {
3060
+ assetId: "22222018",
3061
+ symbol: "WOLF",
3062
+ decimals: 12
3063
+ },
2783
3064
  {
2784
3065
  assetId: "49",
2785
3066
  symbol: "TeMe7",
2786
3067
  decimals: 12
2787
3068
  },
3069
+ {
3070
+ assetId: "22222044",
3071
+ symbol: "DONUT",
3072
+ decimals: 12
3073
+ },
2788
3074
  {
2789
3075
  assetId: "868367",
2790
3076
  symbol: "VSC",
@@ -2800,6 +3086,11 @@ var AssetHubPolkadot$3 = {
2800
3086
  symbol: "JTO",
2801
3087
  decimals: 10
2802
3088
  },
3089
+ {
3090
+ assetId: "22222037",
3091
+ symbol: "KSM",
3092
+ decimals: 12
3093
+ },
2803
3094
  {
2804
3095
  assetId: "53",
2805
3096
  symbol: "TeMe9",
@@ -2820,6 +3111,11 @@ var AssetHubPolkadot$3 = {
2820
3111
  symbol: "GAVUN",
2821
3112
  decimals: 10
2822
3113
  },
3114
+ {
3115
+ assetId: "22222059",
3116
+ symbol: "GOOD",
3117
+ decimals: 12
3118
+ },
2823
3119
  {
2824
3120
  assetId: "43",
2825
3121
  symbol: "TeMe5",
@@ -2835,6 +3131,16 @@ var AssetHubPolkadot$3 = {
2835
3131
  symbol: "DOTA",
2836
3132
  decimals: 6
2837
3133
  },
3134
+ {
3135
+ assetId: "22222003",
3136
+ symbol: "TeMe2L",
3137
+ decimals: 12
3138
+ },
3139
+ {
3140
+ assetId: "22222039",
3141
+ symbol: "DTS",
3142
+ decimals: 12
3143
+ },
2838
3144
  {
2839
3145
  assetId: "5",
2840
3146
  symbol: "PLX",
@@ -2845,11 +3151,21 @@ var AssetHubPolkadot$3 = {
2845
3151
  symbol: "DOTA",
2846
3152
  decimals: 4
2847
3153
  },
3154
+ {
3155
+ assetId: "83",
3156
+ symbol: "BOYS",
3157
+ decimals: 12
3158
+ },
2848
3159
  {
2849
3160
  assetId: "7",
2850
3161
  symbol: "lucky7",
2851
3162
  decimals: 20
2852
3163
  },
3164
+ {
3165
+ assetId: "22222055",
3166
+ symbol: "TOP",
3167
+ decimals: 12
3168
+ },
2853
3169
  {
2854
3170
  assetId: "4242",
2855
3171
  symbol: "GAVUN",
@@ -2865,6 +3181,11 @@ var AssetHubPolkadot$3 = {
2865
3181
  symbol: "ETH",
2866
3182
  decimals: 10
2867
3183
  },
3184
+ {
3185
+ assetId: "22222072",
3186
+ symbol: "BNG",
3187
+ decimals: 12
3188
+ },
2868
3189
  {
2869
3190
  assetId: "201",
2870
3191
  symbol: "WUD",
@@ -2900,6 +3221,11 @@ var AssetHubPolkadot$3 = {
2900
3221
  symbol: "BORK",
2901
3222
  decimals: 10
2902
3223
  },
3224
+ {
3225
+ assetId: "22222048",
3226
+ symbol: "PKSK",
3227
+ decimals: 12
3228
+ },
2903
3229
  {
2904
3230
  assetId: "33441",
2905
3231
  symbol: "MPACT",
@@ -2925,6 +3251,11 @@ var AssetHubPolkadot$3 = {
2925
3251
  symbol: "PGOLD",
2926
3252
  decimals: 7
2927
3253
  },
3254
+ {
3255
+ assetId: "22222038",
3256
+ symbol: "VOR",
3257
+ decimals: 12
3258
+ },
2928
3259
  {
2929
3260
  assetId: "777",
2930
3261
  symbol: "777",
@@ -2940,16 +3271,41 @@ var AssetHubPolkadot$3 = {
2940
3271
  symbol: "test1",
2941
3272
  decimals: 10
2942
3273
  },
3274
+ {
3275
+ assetId: "22222076",
3276
+ symbol: "AAPL",
3277
+ decimals: 12
3278
+ },
2943
3279
  {
2944
3280
  assetId: "567",
2945
3281
  symbol: "ANT",
2946
3282
  decimals: 6
2947
3283
  },
3284
+ {
3285
+ assetId: "457",
3286
+ symbol: "HGVH",
3287
+ decimals: 10
3288
+ },
3289
+ {
3290
+ assetId: "68",
3291
+ symbol: "Coin68",
3292
+ decimals: 12
3293
+ },
2948
3294
  {
2949
3295
  assetId: "54",
2950
3296
  symbol: "TeMe10",
2951
3297
  decimals: 12
2952
3298
  },
3299
+ {
3300
+ assetId: "22222023",
3301
+ symbol: "LURPIS",
3302
+ decimals: 12
3303
+ },
3304
+ {
3305
+ assetId: "22222066",
3306
+ symbol: "DUW",
3307
+ decimals: 12
3308
+ },
2953
3309
  {
2954
3310
  assetId: "1230",
2955
3311
  symbol: "HAM",
@@ -2960,11 +3316,21 @@ var AssetHubPolkadot$3 = {
2960
3316
  symbol: "RNET",
2961
3317
  decimals: 0
2962
3318
  },
3319
+ {
3320
+ assetId: "22222027",
3321
+ symbol: "TDC",
3322
+ decimals: 12
3323
+ },
2963
3324
  {
2964
3325
  assetId: "9003",
2965
3326
  symbol: "KTRL",
2966
3327
  decimals: 10
2967
3328
  },
3329
+ {
3330
+ assetId: "22222033",
3331
+ symbol: "H@SH",
3332
+ decimals: 12
3333
+ },
2968
3334
  {
2969
3335
  assetId: "1313",
2970
3336
  symbol: "GGI",
@@ -2990,11 +3356,21 @@ var AssetHubPolkadot$3 = {
2990
3356
  symbol: "dot",
2991
3357
  decimals: 0
2992
3358
  },
3359
+ {
3360
+ assetId: "22222067",
3361
+ symbol: "ZALUPA",
3362
+ decimals: 12
3363
+ },
2993
3364
  {
2994
3365
  assetId: "90",
2995
3366
  symbol: "ATC",
2996
3367
  decimals: 6
2997
3368
  },
3369
+ {
3370
+ assetId: "22222017",
3371
+ symbol: "SANTA",
3372
+ decimals: 12
3373
+ },
2998
3374
  {
2999
3375
  assetId: "80",
3000
3376
  symbol: "GOVD",
@@ -3020,11 +3396,21 @@ var AssetHubPolkadot$3 = {
3020
3396
  symbol: "HYDRA",
3021
3397
  decimals: 10
3022
3398
  },
3399
+ {
3400
+ assetId: "22222057",
3401
+ symbol: "DIO",
3402
+ decimals: 12
3403
+ },
3023
3404
  {
3024
3405
  assetId: "10000",
3025
3406
  symbol: "DOGE",
3026
3407
  decimals: 6
3027
3408
  },
3409
+ {
3410
+ assetId: "59",
3411
+ symbol: "OK",
3412
+ decimals: 12
3413
+ },
3028
3414
  {
3029
3415
  assetId: "2820",
3030
3416
  symbol: "HOOT",
@@ -3035,6 +3421,21 @@ var AssetHubPolkadot$3 = {
3035
3421
  symbol: "PP",
3036
3422
  decimals: 10
3037
3423
  },
3424
+ {
3425
+ assetId: "22222069",
3426
+ symbol: "HELLO",
3427
+ decimals: 12
3428
+ },
3429
+ {
3430
+ assetId: "22222007",
3431
+ symbol: "NaCl",
3432
+ decimals: 12
3433
+ },
3434
+ {
3435
+ assetId: "2567",
3436
+ symbol: "TSTRM",
3437
+ decimals: 6
3438
+ },
3038
3439
  {
3039
3440
  assetId: "51",
3040
3441
  symbol: "JAMA",
@@ -3055,6 +3456,11 @@ var AssetHubPolkadot$3 = {
3055
3456
  symbol: "clay",
3056
3457
  decimals: 20
3057
3458
  },
3459
+ {
3460
+ assetId: "22222016",
3461
+ symbol: "MRSHE",
3462
+ decimals: 12
3463
+ },
3058
3464
  {
3059
3465
  assetId: "20090134",
3060
3466
  symbol: "DOTCOIN",
@@ -3065,11 +3471,31 @@ var AssetHubPolkadot$3 = {
3065
3471
  symbol: "BRZ",
3066
3472
  decimals: 6
3067
3473
  },
3474
+ {
3475
+ assetId: "22222049",
3476
+ symbol: "LUCKY",
3477
+ decimals: 12
3478
+ },
3068
3479
  {
3069
3480
  assetId: "8008",
3070
3481
  symbol: "HOBO",
3071
3482
  decimals: 2
3072
3483
  },
3484
+ {
3485
+ assetId: "20090146",
3486
+ symbol: "DOPE ",
3487
+ decimals: 10
3488
+ },
3489
+ {
3490
+ assetId: "22222047",
3491
+ symbol: "GWIF",
3492
+ decimals: 12
3493
+ },
3494
+ {
3495
+ assetId: "22222030",
3496
+ symbol: "PIGS",
3497
+ decimals: 12
3498
+ },
3073
3499
  {
3074
3500
  assetId: "60",
3075
3501
  symbol: "ANT",
@@ -3085,6 +3511,11 @@ var AssetHubPolkadot$3 = {
3085
3511
  symbol: "SITE",
3086
3512
  decimals: 10
3087
3513
  },
3514
+ {
3515
+ assetId: "20090145",
3516
+ symbol: "ROCK",
3517
+ decimals: 10
3518
+ },
3088
3519
  {
3089
3520
  assetId: "6666",
3090
3521
  symbol: "CHAOS",
@@ -3130,6 +3561,21 @@ var AssetHubPolkadot$3 = {
3130
3561
  symbol: "usdc",
3131
3562
  decimals: 10
3132
3563
  },
3564
+ {
3565
+ assetId: "22222000",
3566
+ symbol: "OMG",
3567
+ decimals: 12
3568
+ },
3569
+ {
3570
+ assetId: "20090149",
3571
+ symbol: "TOD",
3572
+ decimals: 10
3573
+ },
3574
+ {
3575
+ assetId: "22222045",
3576
+ symbol: "O",
3577
+ decimals: 12
3578
+ },
3133
3579
  {
3134
3580
  assetId: "2000",
3135
3581
  symbol: "DAO",
@@ -3140,6 +3586,11 @@ var AssetHubPolkadot$3 = {
3140
3586
  symbol: "DOT",
3141
3587
  decimals: 20
3142
3588
  },
3589
+ {
3590
+ assetId: "22222056",
3591
+ symbol: "KEK",
3592
+ decimals: 12
3593
+ },
3143
3594
  {
3144
3595
  assetId: "6969",
3145
3596
  symbol: "LEEMO",
@@ -3155,6 +3606,11 @@ var AssetHubPolkadot$3 = {
3155
3606
  symbol: "KAS",
3156
3607
  decimals: 12
3157
3608
  },
3609
+ {
3610
+ assetId: "22222054",
3611
+ symbol: "DON",
3612
+ decimals: 12
3613
+ },
3158
3614
  {
3159
3615
  assetId: "1337",
3160
3616
  symbol: "USDC",
@@ -3175,11 +3631,21 @@ var AssetHubPolkadot$3 = {
3175
3631
  symbol: "BOOTY",
3176
3632
  decimals: 10
3177
3633
  },
3634
+ {
3635
+ assetId: "112233",
3636
+ symbol: "MTA",
3637
+ decimals: 10
3638
+ },
3178
3639
  {
3179
3640
  assetId: "17",
3180
3641
  symbol: "WIFD",
3181
3642
  decimals: 10
3182
3643
  },
3644
+ {
3645
+ assetId: "63",
3646
+ symbol: "JBM",
3647
+ decimals: 12
3648
+ },
3183
3649
  {
3184
3650
  assetId: "1180",
3185
3651
  symbol: "KRAK",
@@ -3205,6 +3671,16 @@ var AssetHubPolkadot$3 = {
3205
3671
  symbol: "DAL",
3206
3672
  decimals: 18
3207
3673
  },
3674
+ {
3675
+ assetId: "22222032",
3676
+ symbol: "FKDC",
3677
+ decimals: 12
3678
+ },
3679
+ {
3680
+ assetId: "22222015",
3681
+ symbol: "B",
3682
+ decimals: 12
3683
+ },
3208
3684
  {
3209
3685
  assetId: "23",
3210
3686
  symbol: "PINK",
@@ -3230,6 +3706,11 @@ var AssetHubPolkadot$3 = {
3230
3706
  symbol: "HASH",
3231
3707
  decimals: 18
3232
3708
  },
3709
+ {
3710
+ assetId: "65",
3711
+ symbol: "TeMe11",
3712
+ decimals: 12
3713
+ },
3233
3714
  {
3234
3715
  assetId: "9001",
3235
3716
  symbol: "BOMB",
@@ -3270,11 +3751,41 @@ var AssetHubPolkadot$3 = {
3270
3751
  symbol: "ETH",
3271
3752
  decimals: 10
3272
3753
  },
3754
+ {
3755
+ assetId: "22222061",
3756
+ symbol: "MONAD",
3757
+ decimals: 12
3758
+ },
3759
+ {
3760
+ assetId: "22222006",
3761
+ symbol: "LFG",
3762
+ decimals: 12
3763
+ },
3764
+ {
3765
+ assetId: "64",
3766
+ symbol: "CPcoin",
3767
+ decimals: 12
3768
+ },
3273
3769
  {
3274
3770
  assetId: "4157",
3275
3771
  symbol: "PDOG",
3276
3772
  decimals: 10
3277
3773
  },
3774
+ {
3775
+ assetId: "20090148",
3776
+ symbol: "BOB",
3777
+ decimals: 10
3778
+ },
3779
+ {
3780
+ assetId: "22222040",
3781
+ symbol: "NOFUN",
3782
+ decimals: 12
3783
+ },
3784
+ {
3785
+ assetId: "22222026",
3786
+ symbol: "DDOT",
3787
+ decimals: 12
3788
+ },
3278
3789
  {
3279
3790
  assetId: "660301",
3280
3791
  symbol: "GRL",
@@ -3300,16 +3811,51 @@ var AssetHubPolkadot$3 = {
3300
3811
  symbol: "WOOD",
3301
3812
  decimals: 10
3302
3813
  },
3814
+ {
3815
+ assetId: "22222060",
3816
+ symbol: "TATE",
3817
+ decimals: 12
3818
+ },
3819
+ {
3820
+ assetId: "22222011",
3821
+ symbol: "PM",
3822
+ decimals: 12
3823
+ },
3303
3824
  {
3304
3825
  assetId: "20090127",
3305
3826
  symbol: "PAMPIT",
3306
3827
  decimals: 10
3307
3828
  },
3829
+ {
3830
+ assetId: "22222004",
3831
+ symbol: "TeMeL3",
3832
+ decimals: 12
3833
+ },
3834
+ {
3835
+ assetId: "62",
3836
+ symbol: "CPDOT",
3837
+ decimals: 12
3838
+ },
3839
+ {
3840
+ assetId: "22222012",
3841
+ symbol: "DAMN",
3842
+ decimals: 12
3843
+ },
3308
3844
  {
3309
3845
  assetId: "2230",
3310
3846
  symbol: "GBILL",
3311
3847
  decimals: 8
3312
3848
  },
3849
+ {
3850
+ assetId: "22222063",
3851
+ symbol: "MAXCAT",
3852
+ decimals: 12
3853
+ },
3854
+ {
3855
+ assetId: "22222052",
3856
+ symbol: "MODE",
3857
+ decimals: 12
3858
+ },
3313
3859
  {
3314
3860
  assetId: "92",
3315
3861
  symbol: "TeMe2",
@@ -3333,6 +3879,21 @@ var Altair$3 = {
3333
3879
  }
3334
3880
  ],
3335
3881
  otherAssets: [
3882
+ {
3883
+ assetId: "3",
3884
+ symbol: "KSM",
3885
+ decimals: 12
3886
+ },
3887
+ {
3888
+ assetId: "1",
3889
+ symbol: "USDT",
3890
+ decimals: 6
3891
+ },
3892
+ {
3893
+ assetId: "2",
3894
+ symbol: "aUSD",
3895
+ decimals: 12
3896
+ }
3336
3897
  ]
3337
3898
  };
3338
3899
  var Amplitude$3 = {
@@ -3346,6 +3907,21 @@ var Amplitude$3 = {
3346
3907
  }
3347
3908
  ],
3348
3909
  otherAssets: [
3910
+ {
3911
+ assetId: "2",
3912
+ symbol: "PICA",
3913
+ decimals: 12
3914
+ },
3915
+ {
3916
+ assetId: "1",
3917
+ symbol: "USDT",
3918
+ decimals: 6
3919
+ },
3920
+ {
3921
+ assetId: "0",
3922
+ symbol: "KSM",
3923
+ decimals: 12
3924
+ }
3349
3925
  ]
3350
3926
  };
3351
3927
  var Bajun$3 = {
@@ -3618,6 +4194,11 @@ var Crab$3 = {
3618
4194
  }
3619
4195
  ],
3620
4196
  otherAssets: [
4197
+ {
4198
+ assetId: "1026",
4199
+ symbol: "CKTON",
4200
+ decimals: 18
4201
+ }
3621
4202
  ]
3622
4203
  };
3623
4204
  var CrustShadow$3 = {
@@ -3752,6 +4333,16 @@ var Curio$3 = {
3752
4333
  assetId: "0",
3753
4334
  symbol: "BSX",
3754
4335
  decimals: 12
4336
+ },
4337
+ {
4338
+ assetId: "2",
4339
+ symbol: "VAL",
4340
+ decimals: 18
4341
+ },
4342
+ {
4343
+ assetId: "1",
4344
+ symbol: "XOR",
4345
+ decimals: 18
3755
4346
  }
3756
4347
  ]
3757
4348
  };
@@ -4084,7 +4675,7 @@ var Litmus$3 = {
4084
4675
  nativeAssets: [
4085
4676
  {
4086
4677
  symbol: "LIT",
4087
- decimals: 12
4678
+ decimals: 18
4088
4679
  }
4089
4680
  ],
4090
4681
  otherAssets: [
@@ -5507,11 +6098,6 @@ var AssetHubKusama$3 = {
5507
6098
  symbol: "XEN",
5508
6099
  decimals: 10
5509
6100
  },
5510
- {
5511
- assetId: "4294967291",
5512
- symbol: "PRIME",
5513
- decimals: 7
5514
- },
5515
6101
  {
5516
6102
  assetId: "777777",
5517
6103
  symbol: "DEFI",
@@ -6734,7 +7320,7 @@ var InvalidCurrencyError = /*#__PURE__*/function (_Error) {
6734
7320
  }
6735
7321
  _inherits(InvalidCurrencyError, _Error);
6736
7322
  return _createClass(InvalidCurrencyError);
6737
- }( /*#__PURE__*/_wrapNativeSuper(Error));
7323
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
6738
7324
 
6739
7325
  // Used to inform user, that Parachain they wish to use is not supported yet
6740
7326
  var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
@@ -6747,7 +7333,7 @@ var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
6747
7333
  }
6748
7334
  _inherits(NodeNotSupportedError, _Error);
6749
7335
  return _createClass(NodeNotSupportedError);
6750
- }( /*#__PURE__*/_wrapNativeSuper(Error));
7336
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
6751
7337
 
6752
7338
  // Used to inform user, that Parachain they wish to use does not support scenario they wish to use yet
6753
7339
  var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
@@ -6760,7 +7346,7 @@ var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
6760
7346
  }
6761
7347
  _inherits(ScenarioNotSupportedError, _Error);
6762
7348
  return _createClass(ScenarioNotSupportedError);
6763
- }( /*#__PURE__*/_wrapNativeSuper(Error));
7349
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
6764
7350
 
6765
7351
  var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
6766
7352
  function IncompatibleNodesError(message) {
@@ -6772,7 +7358,7 @@ var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
6772
7358
  }
6773
7359
  _inherits(IncompatibleNodesError, _Error);
6774
7360
  return _createClass(IncompatibleNodesError);
6775
- }( /*#__PURE__*/_wrapNativeSuper(Error));
7361
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
6776
7362
 
6777
7363
  var DuplicateAssetError = /*#__PURE__*/function (_Error) {
6778
7364
  function DuplicateAssetError(symbol) {
@@ -6784,7 +7370,7 @@ var DuplicateAssetError = /*#__PURE__*/function (_Error) {
6784
7370
  }
6785
7371
  _inherits(DuplicateAssetError, _Error);
6786
7372
  return _createClass(DuplicateAssetError);
6787
- }( /*#__PURE__*/_wrapNativeSuper(Error));
7373
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
6788
7374
 
6789
7375
  var constructRelayToParaParameters = function constructRelayToParaParameters(_ref, version) {
6790
7376
  var api = _ref.api,
@@ -6954,12 +7540,12 @@ var findAssetBySymbol = function findAssetBySymbol(node, destination, otherAsset
6954
7540
  var assetSymbol = _ref3.symbol;
6955
7541
  return (assetSymbol === null || assetSymbol === void 0 ? void 0 : assetSymbol.toLowerCase()) === symbol.toLowerCase();
6956
7542
  });
6957
- if (otherAssetsMatches.length > 1 && !isRelayDestination && isSymbol === undefined) {
6958
- throw new DuplicateAssetError(symbol);
6959
- }
6960
7543
  if (node === 'Astar' || node === 'Shiden') {
6961
7544
  return nativeAssetsMatches[0] || otherAssetsMatches[0] || null;
6962
7545
  }
7546
+ if (otherAssetsMatches.length > 1 && !isRelayDestination && isSymbol === undefined) {
7547
+ throw new DuplicateAssetError(symbol);
7548
+ }
6963
7549
  return otherAssetsMatches[0] || nativeAssetsMatches[0] || null;
6964
7550
  };
6965
7551
  var findAssetById = function findAssetById(assets, assetId) {
@@ -7820,7 +8406,7 @@ var Centrifuge$1 = "1000000000000";
7820
8406
  var ComposableFinance$1 = "100000000000";
7821
8407
  var Darwinia$1 = "0";
7822
8408
  var Hydration$1 = "1000000000000";
7823
- var Litentry$1 = "100000000000";
8409
+ var Litentry$1 = "100000000000000000";
7824
8410
  var Moonbeam$1 = "0";
7825
8411
  var Parallel$1 = "100000000000";
7826
8412
  var AssetHubKusama$1 = "3333333";
@@ -7839,7 +8425,7 @@ var Imbue$1 = "1000000";
7839
8425
  var Integritee$1 = "1000000000";
7840
8426
  var InvArchTinker$1 = "1000000000";
7841
8427
  var Karura$1 = "100000000000";
7842
- var Litmus$1 = "100000000000";
8428
+ var Litmus$1 = "100000000000000000";
7843
8429
  var Moonriver$1 = "0";
7844
8430
  var ParallelHeiko$1 = "10000000000";
7845
8431
  var Picasso$1 = "100000000000";
@@ -8198,8 +8784,9 @@ var OpenChannelBuilder = /*#__PURE__*/function () {
8198
8784
  }();
8199
8785
 
8200
8786
  var RelayToParaBuilder = /*#__PURE__*/function () {
8201
- function RelayToParaBuilder(api, to, paraIdTo) {
8787
+ function RelayToParaBuilder(api, to, batchManager, paraIdTo) {
8202
8788
  _classCallCheck(this, RelayToParaBuilder);
8789
+ this.batchManager = batchManager;
8203
8790
  this.api = api;
8204
8791
  this.to = to;
8205
8792
  this.paraIdTo = paraIdTo;
@@ -8241,6 +8828,15 @@ var RelayToParaBuilder = /*#__PURE__*/function () {
8241
8828
  version: this._version
8242
8829
  };
8243
8830
  }
8831
+ }, {
8832
+ key: "addToBatch",
8833
+ value: function addToBatch() {
8834
+ this.batchManager.addTransaction({
8835
+ func: transferRelayToPara,
8836
+ options: this.buildOptions()
8837
+ });
8838
+ return new GeneralBuilder(this.batchManager, this.api, undefined, this.to);
8839
+ }
8244
8840
  }, {
8245
8841
  key: "build",
8246
8842
  value: function build() {
@@ -8283,15 +8879,16 @@ var RelayToParaBuilder = /*#__PURE__*/function () {
8283
8879
  }
8284
8880
  }], [{
8285
8881
  key: "create",
8286
- value: function create(api, to, paraIdTo) {
8287
- return new RelayToParaBuilder(api, to, paraIdTo);
8882
+ value: function create(api, to, batchManager, paraIdTo) {
8883
+ return new RelayToParaBuilder(api, to, batchManager, paraIdTo);
8288
8884
  }
8289
8885
  }]);
8290
8886
  }();
8291
8887
 
8292
8888
  var ParaToParaBuilder = /*#__PURE__*/function () {
8293
- function ParaToParaBuilder(api, from, to, currency, paraIdTo) {
8889
+ function ParaToParaBuilder(api, from, to, currency, batchManager, paraIdTo) {
8294
8890
  _classCallCheck(this, ParaToParaBuilder);
8891
+ this.batchManager = batchManager;
8295
8892
  this.api = api;
8296
8893
  this.from = from;
8297
8894
  this.to = to;
@@ -8344,6 +8941,16 @@ var ParaToParaBuilder = /*#__PURE__*/function () {
8344
8941
  version: this._version
8345
8942
  };
8346
8943
  }
8944
+ }, {
8945
+ key: "addToBatch",
8946
+ value: function addToBatch() {
8947
+ var options = this.buildOptions();
8948
+ this.batchManager.addTransaction({
8949
+ func: send,
8950
+ options: options
8951
+ });
8952
+ return new GeneralBuilder(this.batchManager, this.api, this.from);
8953
+ }
8347
8954
  }, {
8348
8955
  key: "build",
8349
8956
  value: function build() {
@@ -8352,12 +8959,18 @@ var ParaToParaBuilder = /*#__PURE__*/function () {
8352
8959
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8353
8960
  while (1) switch (_context.prev = _context.next) {
8354
8961
  case 0:
8962
+ if (this.batchManager.isEmpty()) {
8963
+ _context.next = 2;
8964
+ break;
8965
+ }
8966
+ throw new Error('Transaction manager contains batched items. Use buildBatch() to process them.');
8967
+ case 2:
8355
8968
  options = this.buildOptions();
8356
- _context.next = 3;
8969
+ _context.next = 5;
8357
8970
  return send(options);
8358
- case 3:
8971
+ case 5:
8359
8972
  return _context.abrupt("return", _context.sent);
8360
- case 4:
8973
+ case 6:
8361
8974
  case "end":
8362
8975
  return _context.stop();
8363
8976
  }
@@ -8386,15 +8999,16 @@ var ParaToParaBuilder = /*#__PURE__*/function () {
8386
8999
  }
8387
9000
  }], [{
8388
9001
  key: "createParaToPara",
8389
- value: function createParaToPara(api, from, to, currency, paraIdTo) {
8390
- return new ParaToParaBuilder(api, from, to, currency, paraIdTo);
9002
+ value: function createParaToPara(api, from, to, currency, batchManager, paraIdTo) {
9003
+ return new ParaToParaBuilder(api, from, to, currency, batchManager, paraIdTo);
8391
9004
  }
8392
9005
  }]);
8393
9006
  }();
8394
9007
 
8395
9008
  var ParaToRelayBuilder = /*#__PURE__*/function () {
8396
- function ParaToRelayBuilder(api, from, amount, feeAsset) {
9009
+ function ParaToRelayBuilder(api, from, amount, batchManager, feeAsset) {
8397
9010
  _classCallCheck(this, ParaToRelayBuilder);
9011
+ this.batchManager = batchManager;
8398
9012
  this.api = api;
8399
9013
  this.from = from;
8400
9014
  this.amount = amount;
@@ -8436,6 +9050,16 @@ var ParaToRelayBuilder = /*#__PURE__*/function () {
8436
9050
  version: this._version
8437
9051
  };
8438
9052
  }
9053
+ }, {
9054
+ key: "addToBatch",
9055
+ value: function addToBatch() {
9056
+ var options = this.buildOptions();
9057
+ this.batchManager.addTransaction({
9058
+ func: send,
9059
+ options: options
9060
+ });
9061
+ return new GeneralBuilder(this.batchManager, this.api, this.from);
9062
+ }
8439
9063
  }, {
8440
9064
  key: "build",
8441
9065
  value: function build() {
@@ -8478,8 +9102,8 @@ var ParaToRelayBuilder = /*#__PURE__*/function () {
8478
9102
  }
8479
9103
  }], [{
8480
9104
  key: "create",
8481
- value: function create(api, from, amount, feeAsset) {
8482
- return new ParaToRelayBuilder(api, from, amount, feeAsset);
9105
+ value: function create(api, from, amount, batchManager, feeAsset) {
9106
+ return new ParaToRelayBuilder(api, from, amount, batchManager, feeAsset);
8483
9107
  }
8484
9108
  }]);
8485
9109
  }();
@@ -8494,7 +9118,7 @@ var MissingApiPromiseError = /*#__PURE__*/function (_Error) {
8494
9118
  }
8495
9119
  _inherits(MissingApiPromiseError, _Error);
8496
9120
  return _createClass(MissingApiPromiseError);
8497
- }( /*#__PURE__*/_wrapNativeSuper(Error));
9121
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
8498
9122
 
8499
9123
  var buildBeneficiaryInput = function buildBeneficiaryInput(api, address) {
8500
9124
  if (isTMultiLocation(address)) {
@@ -8657,9 +9281,104 @@ var AssetClaimBuilder = /*#__PURE__*/function () {
8657
9281
  }]);
8658
9282
  }();
8659
9283
 
9284
+ var BatchTransactionManager = /*#__PURE__*/function () {
9285
+ function BatchTransactionManager() {
9286
+ _classCallCheck(this, BatchTransactionManager);
9287
+ this.transactions = [];
9288
+ }
9289
+ return _createClass(BatchTransactionManager, [{
9290
+ key: "addTransaction",
9291
+ value: function addTransaction(transaction) {
9292
+ this.transactions.push(transaction);
9293
+ }
9294
+ }, {
9295
+ key: "isEmpty",
9296
+ value: function isEmpty() {
9297
+ return this.transactions.length === 0;
9298
+ }
9299
+ }, {
9300
+ key: "buildBatch",
9301
+ value: function buildBatch(api_1, from_1, to_1) {
9302
+ return __awaiter(this, arguments, void 0, function (api, from, to) {
9303
+ var _this = this;
9304
+ var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {
9305
+ mode: exports.BatchMode.BATCH_ALL
9306
+ };
9307
+ return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9308
+ var apiWithFallback, mode, sameFrom, results, txs;
9309
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
9310
+ while (1) switch (_context.prev = _context.next) {
9311
+ case 0:
9312
+ if (!(!from && !to)) {
9313
+ _context.next = 2;
9314
+ break;
9315
+ }
9316
+ throw new Error('From or to node is required');
9317
+ case 2:
9318
+ if (!(to && _typeof(to) === 'object')) {
9319
+ _context.next = 4;
9320
+ break;
9321
+ }
9322
+ throw new Error('Please provide ApiPromise instance.');
9323
+ case 4:
9324
+ if (!(api !== null && api !== void 0)) {
9325
+ _context.next = 8;
9326
+ break;
9327
+ }
9328
+ _context.t0 = api;
9329
+ _context.next = 11;
9330
+ break;
9331
+ case 8:
9332
+ _context.next = 10;
9333
+ return createApiInstanceForNode(from !== null && from !== void 0 ? from : determineRelayChain(to));
9334
+ case 10:
9335
+ _context.t0 = _context.sent;
9336
+ case 11:
9337
+ apiWithFallback = _context.t0;
9338
+ mode = options.mode;
9339
+ if (!(_this.transactions.length === 0)) {
9340
+ _context.next = 15;
9341
+ break;
9342
+ }
9343
+ throw new Error('No transactions to batch.');
9344
+ case 15:
9345
+ sameFrom = _this.transactions.every(function (tx) {
9346
+ if ('origin' in tx.options) {
9347
+ return tx.options.origin === from;
9348
+ }
9349
+ return true;
9350
+ });
9351
+ if (sameFrom) {
9352
+ _context.next = 18;
9353
+ break;
9354
+ }
9355
+ throw new Error('All transactions must have the same origin.');
9356
+ case 18:
9357
+ results = _this.transactions.map(function (options) {
9358
+ var func = options.func,
9359
+ txOptions = options.options;
9360
+ return func(txOptions);
9361
+ });
9362
+ _context.next = 21;
9363
+ return Promise.all(results);
9364
+ case 21:
9365
+ txs = _context.sent;
9366
+ return _context.abrupt("return", mode === exports.BatchMode.BATCH_ALL ? apiWithFallback.tx.utility.batchAll(txs) : apiWithFallback.tx.utility.batch(txs));
9367
+ case 23:
9368
+ case "end":
9369
+ return _context.stop();
9370
+ }
9371
+ }, _callee);
9372
+ })();
9373
+ });
9374
+ }
9375
+ }]);
9376
+ }();
9377
+
8660
9378
  var ToGeneralBuilder = /*#__PURE__*/function () {
8661
- function ToGeneralBuilder(api, from, to, paraIdTo) {
9379
+ function ToGeneralBuilder(api, from, to, batchManager, paraIdTo) {
8662
9380
  _classCallCheck(this, ToGeneralBuilder);
9381
+ this.batchManager = batchManager;
8663
9382
  this.api = api;
8664
9383
  this.from = from;
8665
9384
  this.to = to;
@@ -8668,7 +9387,7 @@ var ToGeneralBuilder = /*#__PURE__*/function () {
8668
9387
  return _createClass(ToGeneralBuilder, [{
8669
9388
  key: "currency",
8670
9389
  value: function currency(_currency) {
8671
- return ParaToParaBuilder.createParaToPara(this.api, this.from, this.to, _currency, this.paraIdTo);
9390
+ return ParaToParaBuilder.createParaToPara(this.api, this.from, this.to, _currency, this.batchManager, this.paraIdTo);
8672
9391
  }
8673
9392
  }, {
8674
9393
  key: "openChannel",
@@ -8681,15 +9400,16 @@ var ToGeneralBuilder = /*#__PURE__*/function () {
8681
9400
  }]);
8682
9401
  }();
8683
9402
  var FromGeneralBuilder = /*#__PURE__*/function () {
8684
- function FromGeneralBuilder(api, from) {
9403
+ function FromGeneralBuilder(api, from, batchManager) {
8685
9404
  _classCallCheck(this, FromGeneralBuilder);
9405
+ this.batchManager = batchManager;
8686
9406
  this.api = api;
8687
9407
  this.from = from;
8688
9408
  }
8689
9409
  return _createClass(FromGeneralBuilder, [{
8690
9410
  key: "to",
8691
9411
  value: function to(node, paraIdTo) {
8692
- return new ToGeneralBuilder(this.api, this.from, node, paraIdTo);
9412
+ return new ToGeneralBuilder(this.api, this.from, node, this.batchManager, paraIdTo);
8693
9413
  }
8694
9414
  }, {
8695
9415
  key: "feeAsset",
@@ -8700,7 +9420,7 @@ var FromGeneralBuilder = /*#__PURE__*/function () {
8700
9420
  }, {
8701
9421
  key: "amount",
8702
9422
  value: function amount(_amount) {
8703
- return ParaToRelayBuilder.create(this.api, this.from, _amount, this._feeAsset);
9423
+ return ParaToRelayBuilder.create(this.api, this.from, _amount, this.batchManager, this._feeAsset);
8704
9424
  }
8705
9425
  }, {
8706
9426
  key: "closeChannel",
@@ -8713,29 +9433,100 @@ var FromGeneralBuilder = /*#__PURE__*/function () {
8713
9433
  }]);
8714
9434
  }();
8715
9435
  var GeneralBuilder = /*#__PURE__*/function () {
8716
- function GeneralBuilder(api) {
9436
+ function GeneralBuilder(batchManager, api, _from, _to) {
8717
9437
  _classCallCheck(this, GeneralBuilder);
9438
+ this.batchManager = batchManager;
8718
9439
  this.api = api;
9440
+ this._from = _from;
9441
+ this._to = _to;
8719
9442
  }
8720
9443
  return _createClass(GeneralBuilder, [{
8721
9444
  key: "from",
8722
9445
  value: function from(node) {
8723
- return new FromGeneralBuilder(this.api, node);
9446
+ return new FromGeneralBuilder(this.api, node, this.batchManager);
8724
9447
  }
8725
9448
  }, {
8726
9449
  key: "to",
8727
9450
  value: function to(node, paraIdTo) {
8728
- return RelayToParaBuilder.create(this.api, node, paraIdTo);
9451
+ return RelayToParaBuilder.create(this.api, node, this.batchManager, paraIdTo);
8729
9452
  }
8730
9453
  }, {
8731
9454
  key: "claimFrom",
8732
9455
  value: function claimFrom(node) {
8733
9456
  return AssetClaimBuilder.create(this.api, node);
8734
9457
  }
9458
+ }, {
9459
+ key: "buildBatch",
9460
+ value: function buildBatch(options) {
9461
+ return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9462
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
9463
+ while (1) switch (_context.prev = _context.next) {
9464
+ case 0:
9465
+ return _context.abrupt("return", this.batchManager.buildBatch(this.api, this._from, this._to, options));
9466
+ case 1:
9467
+ case "end":
9468
+ return _context.stop();
9469
+ }
9470
+ }, _callee, this);
9471
+ }));
9472
+ }
8735
9473
  }]);
8736
9474
  }();
8737
9475
  var Builder = function Builder(api) {
8738
- return new GeneralBuilder(api);
9476
+ return new GeneralBuilder(new BatchTransactionManager(), api);
9477
+ };
9478
+
9479
+ var findEthAsset = function findEthAsset(currency) {
9480
+ var ethAssets = getOtherAssets('Ethereum');
9481
+ var ethAsset = ethAssets.find(function (asset) {
9482
+ return asset.symbol === currency;
9483
+ });
9484
+ if (!ethAsset) {
9485
+ throw new InvalidCurrencyError("Currency ".concat(currency, " is not supported for Ethereum transfers"));
9486
+ }
9487
+ return ethAsset;
9488
+ };
9489
+
9490
+ var createContext = function createContext(executionUrl, config) {
9491
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9492
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
9493
+ while (1) switch (_context.prev = _context.next) {
9494
+ case 0:
9495
+ _context.next = 2;
9496
+ return api.contextFactory({
9497
+ ethereum: {
9498
+ execution_url: executionUrl,
9499
+ beacon_url: config.BEACON_HTTP_API
9500
+ },
9501
+ polkadot: {
9502
+ url: {
9503
+ bridgeHub: config.BRIDGE_HUB_URL,
9504
+ assetHub: config.ASSET_HUB_URL,
9505
+ relaychain: config.RELAY_CHAIN_URL,
9506
+ parachains: config.PARACHAINS
9507
+ }
9508
+ },
9509
+ appContracts: {
9510
+ gateway: config.GATEWAY_CONTRACT,
9511
+ beefy: config.BEEFY_CONTRACT
9512
+ }
9513
+ });
9514
+ case 2:
9515
+ return _context.abrupt("return", _context.sent);
9516
+ case 3:
9517
+ case "end":
9518
+ return _context.stop();
9519
+ }
9520
+ }, _callee);
9521
+ }));
9522
+ };
9523
+
9524
+ var checkPlanFailure = function checkPlanFailure(plan) {
9525
+ if (plan.failure) {
9526
+ throw new Error("Failed to validate send: ".concat(plan.failure.errors.map(function (e) {
9527
+ return e.message;
9528
+ }).join('\n\n')));
9529
+ }
8739
9530
  };
8740
9531
 
8741
9532
  var transferEthToPolkadot = function transferEthToPolkadot(provider_1, _a) {
@@ -8746,65 +9537,31 @@ var transferEthToPolkadot = function transferEthToPolkadot(provider_1, _a) {
8746
9537
  amount = _ref.amount,
8747
9538
  currency = _ref.currency;
8748
9539
  return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8749
- var ethAssets, ethAsset, env, config, context, destParaId, plan, result;
9540
+ var ethAsset, env, context, destParaId, plan, result;
8750
9541
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8751
9542
  while (1) switch (_context.prev = _context.next) {
8752
9543
  case 0:
8753
- ethAssets = getOtherAssets('Ethereum');
8754
- ethAsset = ethAssets.find(function (asset) {
8755
- return asset.symbol === currency;
8756
- });
8757
- if (ethAsset) {
8758
- _context.next = 4;
8759
- break;
8760
- }
8761
- throw new InvalidCurrencyError("Currency ".concat(currency, " is not supported for Ethereum transfers"));
8762
- case 4:
9544
+ ethAsset = findEthAsset(currency);
8763
9545
  env = api.environment.SNOWBRIDGE_ENV['polkadot_mainnet'];
8764
- config = env.config;
8765
- _context.next = 8;
8766
- return api.contextFactory({
8767
- ethereum: {
8768
- execution_url: provider,
8769
- beacon_url: config.BEACON_HTTP_API
8770
- },
8771
- polkadot: {
8772
- url: {
8773
- bridgeHub: config.BRIDGE_HUB_URL,
8774
- assetHub: config.ASSET_HUB_URL,
8775
- relaychain: config.RELAY_CHAIN_URL,
8776
- parachains: config.PARACHAINS
8777
- }
8778
- },
8779
- appContracts: {
8780
- gateway: config.GATEWAY_CONTRACT,
8781
- beefy: config.BEEFY_CONTRACT
8782
- }
8783
- });
8784
- case 8:
9546
+ _context.next = 4;
9547
+ return createContext(provider, env.config);
9548
+ case 4:
8785
9549
  context = _context.sent;
8786
9550
  destParaId = getParaId(to);
8787
- _context.next = 12;
9551
+ _context.next = 8;
8788
9552
  return api.toPolkadot.validateSend(context, signer, address, ethAsset.assetId, destParaId, BigInt(amount), BigInt(0));
8789
- case 12:
9553
+ case 8:
8790
9554
  plan = _context.sent;
8791
- if (!plan.failure) {
8792
- _context.next = 15;
8793
- break;
8794
- }
8795
- throw new Error("Failed to validate send: ".concat(plan.failure.errors.map(function (e) {
8796
- return e.message;
8797
- }).join('\n\n')));
8798
- case 15:
8799
- _context.next = 17;
9555
+ checkPlanFailure(plan);
9556
+ _context.next = 12;
8800
9557
  return api.toPolkadot.send(context, signer, plan);
8801
- case 17:
9558
+ case 12:
8802
9559
  result = _context.sent;
8803
9560
  return _context.abrupt("return", {
8804
9561
  result: result,
8805
9562
  plan: plan
8806
9563
  });
8807
- case 19:
9564
+ case 14:
8808
9565
  case "end":
8809
9566
  return _context.stop();
8810
9567
  }
@@ -9403,7 +10160,6 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
9403
10160
  parameters: parameters
9404
10161
  };
9405
10162
  }
9406
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9407
10163
  return (_api$tx$module = api.tx[module])[section].apply(_api$tx$module, _toConsumableArray(parameters));
9408
10164
  }
9409
10165
  }]);
@@ -10511,11 +11267,6 @@ var Polkadex = /*#__PURE__*/function (_ParachainNode) {
10511
11267
  var currencyID = input.currencyID;
10512
11268
  return XTokensTransferImpl.transferXTokens(input, currencyID);
10513
11269
  }
10514
- }, {
10515
- key: "getProvider",
10516
- value: function getProvider() {
10517
- return getAllNodeProviders(this.node)[1];
10518
- }
10519
11270
  }]);
10520
11271
  }(ParachainNode);
10521
11272
 
@@ -11085,6 +11836,11 @@ var getAllNodeProviders = function getAllNodeProviders(node) {
11085
11836
  return Object.values(providers !== null && providers !== void 0 ? providers : []);
11086
11837
  };
11087
11838
  var getNodeProvider = function getNodeProvider(node) {
11839
+ if (node === 'Polkadot') {
11840
+ return endpoints.prodRelayPolkadot.providers[0];
11841
+ } else if (node === 'Kusama') {
11842
+ return endpoints.prodRelayKusama.providers[0];
11843
+ }
11088
11844
  return getNode(node).getProvider();
11089
11845
  };
11090
11846
  var createApiInstance = function createApiInstance(wsUrl) {
@@ -11172,7 +11928,7 @@ var KeepAliveError = /*#__PURE__*/function (_Error) {
11172
11928
  }
11173
11929
  _inherits(KeepAliveError, _Error);
11174
11930
  return _createClass(KeepAliveError);
11175
- }( /*#__PURE__*/_wrapNativeSuper(Error));
11931
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
11176
11932
 
11177
11933
  var edMap = edMapJson;
11178
11934
  var getExistentialDeposit = function getExistentialDeposit(node) {
@@ -11322,7 +12078,7 @@ var checkKeepAlive = function checkKeepAlive(_a) {
11322
12078
  });
11323
12079
  };
11324
12080
 
11325
- var transformOptions = function transformOptions(options) {
12081
+ var transformSendOptions = function transformSendOptions(options) {
11326
12082
  var currency = options.currency;
11327
12083
  if (isTCurrencySpecifier(currency)) {
11328
12084
  if ('symbol' in currency) {
@@ -11342,13 +12098,14 @@ var transformOptions = function transformOptions(options) {
11342
12098
  isSymbol: undefined
11343
12099
  });
11344
12100
  };
12101
+
11345
12102
  var sendCommon = function sendCommon(options) {
11346
12103
  return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11347
- var _a, _b, _transformOptions, api, origin, currency, amount, address, destination, paraIdTo, destApiForKeepAlive, feeAsset, version, isSymbol, _transformOptions$ser, serializedApiCallEnabled, isMultiLocationDestination, isMultiLocationCurrency, isBridge, isRelayDestination, originRelayChainSymbol, destinationRelayChainSymbol, originNode, assetCheckEnabled, asset, apiWithFallback, amountStr, currencyStr;
12104
+ var _a, _b, _transformSendOptions, api, origin, currency, amount, address, destination, paraIdTo, destApiForKeepAlive, feeAsset, version, isSymbol, _transformSendOptions2, serializedApiCallEnabled, isMultiLocationDestination, isMultiLocationCurrency, isBridge, isRelayDestination, originRelayChainSymbol, destinationRelayChainSymbol, originNode, assetCheckEnabled, asset, apiWithFallback, amountStr, currencyStr;
11348
12105
  return _regeneratorRuntime().wrap(function _callee$(_context) {
11349
12106
  while (1) switch (_context.prev = _context.next) {
11350
12107
  case 0:
11351
- _transformOptions = transformOptions(options), api = _transformOptions.api, origin = _transformOptions.origin, currency = _transformOptions.currency, amount = _transformOptions.amount, address = _transformOptions.address, destination = _transformOptions.destination, paraIdTo = _transformOptions.paraIdTo, destApiForKeepAlive = _transformOptions.destApiForKeepAlive, feeAsset = _transformOptions.feeAsset, version = _transformOptions.version, isSymbol = _transformOptions.isSymbol, _transformOptions$ser = _transformOptions.serializedApiCallEnabled, serializedApiCallEnabled = _transformOptions$ser === void 0 ? false : _transformOptions$ser;
12108
+ _transformSendOptions = transformSendOptions(options), api = _transformSendOptions.api, origin = _transformSendOptions.origin, currency = _transformSendOptions.currency, amount = _transformSendOptions.amount, address = _transformSendOptions.address, destination = _transformSendOptions.destination, paraIdTo = _transformSendOptions.paraIdTo, destApiForKeepAlive = _transformSendOptions.destApiForKeepAlive, feeAsset = _transformSendOptions.feeAsset, version = _transformSendOptions.version, isSymbol = _transformSendOptions.isSymbol, _transformSendOptions2 = _transformSendOptions.serializedApiCallEnabled, serializedApiCallEnabled = _transformSendOptions2 === void 0 ? false : _transformSendOptions2;
11352
12109
  if (!((!isTMulti(currency) || isTMultiLocation(currency)) && amount === null)) {
11353
12110
  _context.next = 3;
11354
12111
  break;
@@ -11519,13 +12276,10 @@ var sendSerializedApiCall = function sendSerializedApiCall(options) {
11519
12276
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
11520
12277
  while (1) switch (_context2.prev = _context2.next) {
11521
12278
  case 0:
11522
- _context2.next = 2;
11523
- return sendCommon(Object.assign(Object.assign({}, options), {
12279
+ return _context2.abrupt("return", sendCommon(Object.assign(Object.assign({}, options), {
11524
12280
  serializedApiCallEnabled: true
11525
- }));
11526
- case 2:
11527
- return _context2.abrupt("return", _context2.sent);
11528
- case 3:
12281
+ })));
12282
+ case 1:
11529
12283
  case "end":
11530
12284
  return _context2.stop();
11531
12285
  }
@@ -11537,11 +12291,8 @@ var send = function send(options) {
11537
12291
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
11538
12292
  while (1) switch (_context3.prev = _context3.next) {
11539
12293
  case 0:
11540
- _context3.next = 2;
11541
- return sendCommon(options);
11542
- case 2:
11543
- return _context3.abrupt("return", _context3.sent);
11544
- case 3:
12294
+ return _context3.abrupt("return", sendCommon(options));
12295
+ case 1:
11545
12296
  case "end":
11546
12297
  return _context3.stop();
11547
12298
  }
@@ -11640,11 +12391,8 @@ var transferRelayToPara = function transferRelayToPara(options) {
11640
12391
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
11641
12392
  while (1) switch (_context5.prev = _context5.next) {
11642
12393
  case 0:
11643
- _context5.next = 2;
11644
- return transferRelayToParaCommon(options);
11645
- case 2:
11646
- return _context5.abrupt("return", _context5.sent);
11647
- case 3:
12394
+ return _context5.abrupt("return", transferRelayToParaCommon(options));
12395
+ case 1:
11648
12396
  case "end":
11649
12397
  return _context5.stop();
11650
12398
  }
@@ -11656,13 +12404,10 @@ var transferRelayToParaSerializedApiCall = function transferRelayToParaSerialize
11656
12404
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
11657
12405
  while (1) switch (_context6.prev = _context6.next) {
11658
12406
  case 0:
11659
- _context6.next = 2;
11660
- return transferRelayToParaCommon(Object.assign(Object.assign({}, options), {
12407
+ return _context6.abrupt("return", transferRelayToParaCommon(Object.assign(Object.assign({}, options), {
11661
12408
  serializedApiCallEnabled: true
11662
- }));
11663
- case 2:
11664
- return _context6.abrupt("return", _context6.sent);
11665
- case 3:
12409
+ })));
12410
+ case 1:
11666
12411
  case "end":
11667
12412
  return _context6.stop();
11668
12413
  }
@@ -11670,8 +12415,60 @@ var transferRelayToParaSerializedApiCall = function transferRelayToParaSerialize
11670
12415
  }));
11671
12416
  };
11672
12417
 
12418
+ var buildEthTransferOptions = function buildEthTransferOptions(_a) {
12419
+ return __awaiter(void 0, [_a], void 0, function (_ref) {
12420
+ var currency = _ref.currency,
12421
+ to = _ref.to,
12422
+ address = _ref.address,
12423
+ destAddress = _ref.destAddress,
12424
+ amount = _ref.amount;
12425
+ return /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12426
+ var ethAsset, env, EXECUTION_URL, context, destParaId, signer, plan;
12427
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
12428
+ while (1) switch (_context.prev = _context.next) {
12429
+ case 0:
12430
+ ethAsset = findEthAsset(currency);
12431
+ env = api.environment.SNOWBRIDGE_ENV['polkadot_mainnet'];
12432
+ EXECUTION_URL = 'https://eth.llamarpc.com';
12433
+ _context.next = 5;
12434
+ return createContext(EXECUTION_URL, env.config);
12435
+ case 5:
12436
+ context = _context.sent;
12437
+ destParaId = getParaId(to);
12438
+ signer = {
12439
+ getAddress: function getAddress() {
12440
+ return Promise.resolve(address);
12441
+ }
12442
+ };
12443
+ _context.next = 10;
12444
+ return api.toPolkadot.validateSend(context, signer, destAddress, ethAsset.assetId, destParaId, BigInt(amount), BigInt(0));
12445
+ case 10:
12446
+ plan = _context.sent;
12447
+ checkPlanFailure(plan);
12448
+ if (plan.success) {
12449
+ _context.next = 14;
12450
+ break;
12451
+ }
12452
+ throw new Error('Failed to validate send');
12453
+ case 14:
12454
+ return _context.abrupt("return", {
12455
+ token: plan.success.token,
12456
+ destinationParaId: plan.success.destinationParaId,
12457
+ destinationFee: plan.success.destinationFee,
12458
+ amount: plan.success.amount
12459
+ });
12460
+ case 15:
12461
+ case "end":
12462
+ return _context.stop();
12463
+ }
12464
+ }, _callee);
12465
+ })();
12466
+ });
12467
+ };
12468
+
11673
12469
  var index = /*#__PURE__*/Object.freeze({
11674
12470
  __proto__: null,
12471
+ buildEthTransferOptions: buildEthTransferOptions,
11675
12472
  send: send,
11676
12473
  sendSerializedApiCall: sendSerializedApiCall,
11677
12474
  transferRelayToPara: transferRelayToPara,
@@ -11695,6 +12492,7 @@ exports.OpenChannelBuilder = OpenChannelBuilder;
11695
12492
  exports.SUPPORTED_PALLETS = SUPPORTED_PALLETS;
11696
12493
  exports.ScenarioNotSupportedError = ScenarioNotSupportedError;
11697
12494
  exports.assets = index$1;
12495
+ exports.buildEthTransferOptions = buildEthTransferOptions;
11698
12496
  exports.closeChannels = index$3;
11699
12497
  exports.createApiInstanceForNode = createApiInstanceForNode;
11700
12498
  exports.getAllAssetsSymbols = getAllAssetsSymbols;
@@ -11721,4 +12519,9 @@ exports.getTNode = getTNode;
11721
12519
  exports.getTransferInfo = getTransferInfo;
11722
12520
  exports.hasSupportForAsset = hasSupportForAsset;
11723
12521
  exports.openChannels = index$2;
12522
+ exports.send = send;
12523
+ exports.sendSerializedApiCall = sendSerializedApiCall;
12524
+ exports.transferRelayToPara = transferRelayToPara;
12525
+ exports.transferRelayToParaCommon = transferRelayToParaCommon;
12526
+ exports.transferRelayToParaSerializedApiCall = transferRelayToParaSerializedApiCall;
11724
12527
  exports.xcmPallet = index;