@paraspell/sdk-core 11.2.4 → 11.3.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
@@ -848,10 +848,6 @@ var AssetHubPolkadot$1 = {
848
848
  info: "PolkadotAssetHub",
849
849
  paraId: 1000,
850
850
  providers: [
851
- {
852
- name: "Blockops",
853
- endpoint: "wss://polkadot-assethub-rpc.blockops.network/ws"
854
- },
855
851
  {
856
852
  name: "Dwellir",
857
853
  endpoint: "wss://asset-hub-polkadot-rpc.n.dwellir.com"
@@ -1041,49 +1037,6 @@ var BridgeHubPolkadot$1 = {
1041
1037
  }
1042
1038
  ]
1043
1039
  };
1044
- var BridgeHubKusama$1 = {
1045
- name: "BridgeHub",
1046
- info: "kusamaBridgeHub",
1047
- paraId: 1002,
1048
- providers: [
1049
- {
1050
- name: "Dwellir",
1051
- endpoint: "wss://bridge-hub-kusama-rpc.n.dwellir.com"
1052
- },
1053
- {
1054
- name: "Dwellir Tunisia",
1055
- endpoint: "wss://kusama-bridge-hub-rpc-tn.dwellir.com"
1056
- },
1057
- {
1058
- name: "IBP1",
1059
- endpoint: "wss://sys.ibp.network/bridgehub-kusama"
1060
- },
1061
- {
1062
- name: "IBP2",
1063
- endpoint: "wss://bridge-hub-kusama.dotters.network"
1064
- },
1065
- {
1066
- name: "LuckyFriday",
1067
- endpoint: "wss://rpc-bridge-hub-kusama.luckyfriday.io"
1068
- },
1069
- {
1070
- name: "OnFinality",
1071
- endpoint: "wss://bridgehub-kusama.api.onfinality.io/public-ws"
1072
- },
1073
- {
1074
- name: "Parity",
1075
- endpoint: "wss://kusama-bridge-hub-rpc.polkadot.io"
1076
- },
1077
- {
1078
- name: "RadiumBlock",
1079
- endpoint: "wss://bridgehub-kusama.public.curie.radiumblock.co/ws"
1080
- },
1081
- {
1082
- name: "Stakeworld",
1083
- endpoint: "wss://ksm-rpc.stakeworld.io/bridgehub"
1084
- }
1085
- ]
1086
- };
1087
1040
  var Centrifuge$1 = {
1088
1041
  name: "Centrifuge",
1089
1042
  info: "centrifuge",
@@ -1174,32 +1127,6 @@ var Hydration$1 = {
1174
1127
  }
1175
1128
  ]
1176
1129
  };
1177
- var IntegriteeKusama$1 = {
1178
- name: "Integritee Network",
1179
- info: "integritee",
1180
- paraId: 2015,
1181
- providers: [
1182
- {
1183
- name: "Integritee",
1184
- endpoint: "wss://kusama.api.integritee.network"
1185
- },
1186
- {
1187
- name: "OnFinality",
1188
- endpoint: "wss://integritee-kusama.api.onfinality.io/public-ws"
1189
- }
1190
- ]
1191
- };
1192
- var IntegriteePaseo$1 = {
1193
- name: "Integritee Network (Paseo)",
1194
- info: "integritee",
1195
- paraId: 2039,
1196
- providers: [
1197
- {
1198
- name: "Integritee",
1199
- endpoint: "wss://paseo.api.integritee.network"
1200
- }
1201
- ]
1202
- };
1203
1130
  var Interlay$1 = {
1204
1131
  name: "Interlay",
1205
1132
  info: "interlay",
@@ -1284,347 +1211,277 @@ var Moonbeam$1 = {
1284
1211
  }
1285
1212
  ]
1286
1213
  };
1287
- var AssetHubKusama$1 = {
1288
- name: "AssetHub",
1289
- info: "KusamaAssetHub",
1290
- paraId: 1000,
1214
+ var CoretimePolkadot$1 = {
1215
+ name: "Coretime",
1216
+ info: "polkadotCoretime",
1217
+ paraId: 1005,
1291
1218
  providers: [
1292
1219
  {
1293
1220
  name: "Dwellir",
1294
- endpoint: "wss://asset-hub-kusama-rpc.n.dwellir.com"
1295
- },
1296
- {
1297
- name: "Dwellir Tunisia",
1298
- endpoint: "wss://statemine-rpc-tn.dwellir.com"
1221
+ endpoint: "wss://coretime-polkadot-rpc.n.dwellir.com"
1299
1222
  },
1300
1223
  {
1301
1224
  name: "IBP1",
1302
- endpoint: "wss://sys.ibp.network/asset-hub-kusama"
1225
+ endpoint: "wss://sys.ibp.network/coretime-polkadot"
1303
1226
  },
1304
1227
  {
1305
1228
  name: "IBP2",
1306
- endpoint: "wss://asset-hub-kusama.dotters.network"
1229
+ endpoint: "wss://coretime-polkadot.dotters.network"
1307
1230
  },
1308
1231
  {
1309
1232
  name: "LuckyFriday",
1310
- endpoint: "wss://rpc-asset-hub-kusama.luckyfriday.io"
1233
+ endpoint: "wss://rpc-coretime-polkadot.luckyfriday.io"
1311
1234
  },
1312
1235
  {
1313
1236
  name: "OnFinality",
1314
- endpoint: "wss://assethub-kusama.api.onfinality.io/public-ws"
1237
+ endpoint: "wss://coretime-polkadot.api.onfinality.io/public-ws"
1315
1238
  },
1316
1239
  {
1317
1240
  name: "Parity",
1318
- endpoint: "wss://kusama-asset-hub-rpc.polkadot.io"
1319
- },
1320
- {
1321
- name: "RadiumBlock",
1322
- endpoint: "wss://statemine.public.curie.radiumblock.co/ws"
1241
+ endpoint: "wss://polkadot-coretime-rpc.polkadot.io"
1323
1242
  },
1324
1243
  {
1325
1244
  name: "Stakeworld",
1326
- endpoint: "wss://ksm-rpc.stakeworld.io/assethub"
1245
+ endpoint: "wss://dot-rpc.stakeworld.io/coretime"
1327
1246
  }
1328
1247
  ]
1329
1248
  };
1330
- var CoretimeKusama$1 = {
1331
- name: "Coretime",
1332
- info: "kusamaCoretime",
1333
- paraId: 1005,
1249
+ var Collectives$1 = {
1250
+ name: "Collectives",
1251
+ info: "polkadotCollectives",
1252
+ paraId: 1001,
1334
1253
  providers: [
1335
1254
  {
1336
1255
  name: "Dwellir",
1337
- endpoint: "wss://coretime-kusama-rpc.n.dwellir.com"
1256
+ endpoint: "wss://collectives-polkadot-rpc.n.dwellir.com"
1257
+ },
1258
+ {
1259
+ name: "Dwellir Tunisia",
1260
+ endpoint: "wss://polkadot-collectives-rpc-tn.dwellir.com"
1338
1261
  },
1339
1262
  {
1340
1263
  name: "IBP1",
1341
- endpoint: "wss://sys.ibp.network/coretime-kusama"
1264
+ endpoint: "wss://sys.ibp.network/collectives-polkadot"
1342
1265
  },
1343
1266
  {
1344
1267
  name: "IBP2",
1345
- endpoint: "wss://coretime-kusama.dotters.network"
1268
+ endpoint: "wss://collectives-polkadot.dotters.network"
1346
1269
  },
1347
1270
  {
1348
1271
  name: "LuckyFriday",
1349
- endpoint: "wss://rpc-coretime-kusama.luckyfriday.io"
1272
+ endpoint: "wss://rpc-collectives-polkadot.luckyfriday.io"
1350
1273
  },
1351
1274
  {
1352
1275
  name: "OnFinality",
1353
- endpoint: "wss://coretime-kusama.api.onfinality.io/public-ws"
1276
+ endpoint: "wss://collectives.api.onfinality.io/public-ws"
1354
1277
  },
1355
1278
  {
1356
1279
  name: "Parity",
1357
- endpoint: "wss://kusama-coretime-rpc.polkadot.io"
1280
+ endpoint: "wss://polkadot-collectives-rpc.polkadot.io"
1281
+ },
1282
+ {
1283
+ name: "RadiumBlock",
1284
+ endpoint: "wss://collectives.public.curie.radiumblock.co/ws"
1358
1285
  },
1359
1286
  {
1360
1287
  name: "Stakeworld",
1361
- endpoint: "wss://ksm-rpc.stakeworld.io/coretime"
1288
+ endpoint: "wss://dot-rpc.stakeworld.io/collectives"
1362
1289
  }
1363
1290
  ]
1364
1291
  };
1365
- var CoretimePolkadot$1 = {
1366
- name: "Coretime",
1367
- info: "polkadotCoretime",
1368
- paraId: 1005,
1292
+ var Crust$1 = {
1293
+ name: "Crust",
1294
+ info: "crustParachain",
1295
+ paraId: 2008,
1369
1296
  providers: [
1370
1297
  {
1371
- name: "Dwellir",
1372
- endpoint: "wss://coretime-polkadot-rpc.n.dwellir.com"
1373
- },
1374
- {
1375
- name: "IBP1",
1376
- endpoint: "wss://sys.ibp.network/coretime-polkadot"
1377
- },
1378
- {
1379
- name: "IBP2",
1380
- endpoint: "wss://coretime-polkadot.dotters.network"
1298
+ name: "Crust",
1299
+ endpoint: "wss://crust-parachain.crustapps.net"
1381
1300
  },
1382
1301
  {
1383
- name: "LuckyFriday",
1384
- endpoint: "wss://rpc-coretime-polkadot.luckyfriday.io"
1302
+ name: "Crust APP",
1303
+ endpoint: "wss://crust-parachain.crustnetwork.app"
1385
1304
  },
1386
1305
  {
1387
- name: "OnFinality",
1388
- endpoint: "wss://coretime-polkadot.api.onfinality.io/public-ws"
1306
+ name: "Crust CC",
1307
+ endpoint: "wss://crust-parachain.crustnetwork.cc"
1389
1308
  },
1390
1309
  {
1391
- name: "Parity",
1392
- endpoint: "wss://polkadot-coretime-rpc.polkadot.io"
1393
- },
1310
+ name: "Crust XYZ",
1311
+ endpoint: "wss://crust-parachain.crustnetwork.xyz"
1312
+ }
1313
+ ]
1314
+ };
1315
+ var Manta$1 = {
1316
+ name: "Manta",
1317
+ info: "manta",
1318
+ paraId: 2104,
1319
+ providers: [
1394
1320
  {
1395
- name: "Stakeworld",
1396
- endpoint: "wss://dot-rpc.stakeworld.io/coretime"
1321
+ name: "Manta Network",
1322
+ endpoint: "wss://ws.manta.systems"
1397
1323
  }
1398
1324
  ]
1399
1325
  };
1400
- var Encointer$1 = {
1401
- name: "Encointer Network",
1402
- info: "encointer",
1403
- paraId: 1001,
1326
+ var Nodle$1 = {
1327
+ name: "Nodle",
1328
+ info: "nodle",
1329
+ paraId: 2026,
1404
1330
  providers: [
1405
1331
  {
1406
1332
  name: "Dwellir",
1407
- endpoint: "wss://encointer-kusama-rpc.n.dwellir.com"
1408
- },
1409
- {
1410
- name: "Encointer Association",
1411
- endpoint: "wss://kusama.api.encointer.org"
1412
- },
1413
- {
1414
- name: "IBP1",
1415
- endpoint: "wss://sys.ibp.network/encointer-kusama"
1416
- },
1417
- {
1418
- name: "IBP2",
1419
- endpoint: "wss://encointer-kusama.dotters.network"
1333
+ endpoint: "wss://nodle-rpc.dwellir.com"
1420
1334
  },
1421
1335
  {
1422
- name: "LuckyFriday",
1423
- endpoint: "wss://rpc-encointer-kusama.luckyfriday.io"
1336
+ name: "OnFinality",
1337
+ endpoint: "wss://nodle-parachain.api.onfinality.io/public-ws"
1424
1338
  }
1425
1339
  ]
1426
1340
  };
1427
- var Altair$1 = {
1428
- name: "Altair",
1429
- info: "altair",
1430
- paraId: 2088,
1341
+ var NeuroWeb$1 = {
1342
+ name: "NeuroWeb",
1343
+ info: "neuroweb",
1344
+ paraId: 2043,
1431
1345
  providers: [
1432
1346
  {
1433
- name: "OnFinality",
1434
- endpoint: "wss://altair.api.onfinality.io/public-ws"
1347
+ name: "TraceLabs",
1348
+ endpoint: "wss://parachain-rpc.origin-trail.network"
1435
1349
  }
1436
1350
  ]
1437
1351
  };
1438
- var Amplitude$1 = {
1439
- name: "Amplitude",
1440
- info: "amplitude",
1441
- paraId: 2124,
1352
+ var Pendulum$1 = {
1353
+ name: "Pendulum",
1354
+ info: "pendulum",
1355
+ paraId: 2094,
1442
1356
  providers: [
1443
1357
  {
1444
1358
  name: "PendulumChain",
1445
- endpoint: "wss://rpc-amplitude.pendulumchain.tech"
1359
+ endpoint: "wss://rpc-pendulum.prd.pendulumchain.tech"
1446
1360
  }
1447
1361
  ]
1448
1362
  };
1449
- var Basilisk$1 = {
1450
- name: "Basilisk",
1451
- info: "basilisk",
1452
- paraId: 2090,
1363
+ var Phala$1 = {
1364
+ name: "Phala Network",
1365
+ info: "phala",
1366
+ paraId: 2035,
1453
1367
  providers: [
1454
1368
  {
1455
- name: "Basilisk",
1456
- endpoint: "wss://rpc.basilisk.cloud"
1369
+ name: "Dwellir",
1370
+ endpoint: "wss://phala-rpc.n.dwellir.com"
1457
1371
  },
1458
1372
  {
1459
- name: "Dwellir",
1460
- endpoint: "wss://basilisk-rpc.n.dwellir.com"
1461
- }
1462
- ]
1463
- };
1464
- var BifrostKusama$1 = {
1465
- name: "Bifrost",
1466
- info: "bifrost",
1467
- paraId: 2001,
1468
- providers: [
1373
+ name: "Helikon",
1374
+ endpoint: "wss://rpc.helikon.io/phala"
1375
+ },
1469
1376
  {
1470
- name: "Liebi",
1471
- endpoint: "wss://bifrost-rpc.liebi.com/ws"
1377
+ name: "OnFinality",
1378
+ endpoint: "wss://phala.api.onfinality.io/public-ws"
1472
1379
  },
1473
1380
  {
1474
- name: "LiebiUS",
1475
- endpoint: "wss://us.bifrost-rpc.liebi.com/ws"
1476
- }
1477
- ]
1478
- };
1479
- var CrustShadow$1 = {
1480
- name: "Crust Shadow",
1481
- info: "shadow",
1482
- paraId: 2012,
1483
- providers: [
1484
- {
1485
- name: "Crust",
1486
- endpoint: "wss://rpc-shadow.crust.network/"
1487
- },
1488
- {
1489
- name: "Crust APP",
1490
- endpoint: "wss://rpc-shadow.crustnetwork.app"
1491
- },
1492
- {
1493
- name: "Crust CC",
1494
- endpoint: "wss://rpc-shadow.crustnetwork.cc"
1495
- },
1496
- {
1497
- name: "Crust XYZ",
1498
- endpoint: "wss://rpc-shadow.crustnetwork.xyz"
1381
+ name: "RadiumBlock",
1382
+ endpoint: "wss://phala.public.curie.radiumblock.co/ws"
1499
1383
  }
1500
1384
  ]
1501
1385
  };
1502
- var Crab$1 = {
1503
- name: "Crab",
1504
- info: "crab",
1505
- paraId: 2105,
1386
+ var Subsocial$1 = {
1387
+ name: "Subsocial",
1388
+ info: "subsocial",
1389
+ paraId: 2101,
1506
1390
  providers: [
1507
1391
  {
1508
- name: "Darwinia",
1509
- endpoint: "wss://crab-rpc.darwinia.network/"
1510
- },
1511
- {
1512
- name: "Dwellir",
1513
- endpoint: "wss://darwiniacrab-rpc.n.dwellir.com"
1392
+ name: "Dappforce",
1393
+ endpoint: "wss://para.subsocial.network"
1514
1394
  }
1515
1395
  ]
1516
1396
  };
1517
- var Karura$1 = {
1518
- name: "Karura",
1519
- info: "karura",
1520
- paraId: 2000,
1397
+ var KiltSpiritnet$1 = {
1398
+ name: "KILT Spiritnet",
1399
+ info: "kilt",
1400
+ paraId: 2086,
1521
1401
  providers: [
1522
1402
  {
1523
- name: "Acala Foundation 0",
1524
- endpoint: "wss://karura-rpc-0.aca-api.network"
1525
- },
1526
- {
1527
- name: "Acala Foundation 1",
1528
- endpoint: "wss://karura-rpc-1.aca-api.network"
1529
- },
1530
- {
1531
- name: "Acala Foundation 2",
1532
- endpoint: "wss://karura-rpc-2.aca-api.network/ws"
1403
+ name: "IBP1",
1404
+ endpoint: "wss://kilt.ibp.network"
1533
1405
  },
1534
1406
  {
1535
- name: "Acala Foundation 3",
1536
- endpoint: "wss://karura-rpc-3.aca-api.network/ws"
1407
+ name: "IBP2",
1408
+ endpoint: "wss://kilt.dotters.network"
1537
1409
  },
1538
1410
  {
1539
- name: "Dwellir",
1540
- endpoint: "wss://karura-rpc.n.dwellir.com"
1411
+ name: "KILT Foundation",
1412
+ endpoint: "wss://spiritnet.kilt.io/"
1541
1413
  }
1542
1414
  ]
1543
1415
  };
1544
- var Kintsugi$1 = {
1545
- name: "Kintsugi BTC",
1546
- info: "kintsugi",
1547
- paraId: 2092,
1416
+ var Curio$1 = {
1417
+ name: "Curio",
1418
+ info: "curio",
1419
+ paraId: 3339,
1548
1420
  providers: [
1549
1421
  {
1550
- name: "Kintsugi Labs",
1551
- endpoint: "wss://api-kusama.interlay.io/parachain"
1552
- },
1553
- {
1554
- name: "OnFinality",
1555
- endpoint: "wss://kintsugi.api.onfinality.io/public-ws"
1422
+ name: "Curio",
1423
+ endpoint: "wss://parachain.curioinvest.com/"
1556
1424
  }
1557
1425
  ]
1558
1426
  };
1559
- var Moonriver$1 = {
1560
- name: "Moonriver",
1561
- info: "moonriver",
1562
- paraId: 2023,
1427
+ var Mythos$1 = {
1428
+ name: "Mythos",
1429
+ info: "mythos",
1430
+ paraId: 3369,
1563
1431
  providers: [
1564
1432
  {
1565
- name: "Allnodes",
1566
- endpoint: "wss://moonriver-rpc.publicnode.com"
1567
- },
1568
- {
1569
- name: "Dwellir",
1570
- endpoint: "wss://moonriver-rpc.n.dwellir.com"
1571
- },
1572
- {
1573
- name: "Moonbeam Foundation",
1574
- endpoint: "wss://wss.api.moonriver.moonbeam.network"
1433
+ name: "Helikon",
1434
+ endpoint: "wss://rpc.helikon.io/mythos"
1575
1435
  },
1576
1436
  {
1577
- name: "OnFinality",
1578
- endpoint: "wss://moonriver.api.onfinality.io/public-ws"
1437
+ name: "IBP1",
1438
+ endpoint: "wss://mythos.ibp.network"
1579
1439
  },
1580
1440
  {
1581
- name: "RadiumBlock",
1582
- endpoint: "wss://moonriver.public.curie.radiumblock.co/ws"
1441
+ name: "IBP2",
1442
+ endpoint: "wss://mythos.dotters.network"
1583
1443
  },
1584
1444
  {
1585
- name: "UnitedBloc",
1586
- endpoint: "wss://moonriver.unitedbloc.com"
1445
+ name: "parity",
1446
+ endpoint: "wss://polkadot-mythos-rpc.polkadot.io"
1587
1447
  }
1588
1448
  ]
1589
1449
  };
1590
- var Laos$1 = {
1591
- name: "Laos",
1592
- info: "laos",
1593
- paraId: 3370,
1450
+ var Peaq$1 = {
1451
+ name: "peaq",
1452
+ info: "peaq",
1453
+ paraId: 3338,
1594
1454
  providers: [
1595
1455
  {
1596
- name: "laosfoundation.io",
1597
- endpoint: "wss://rpc.laos.laosfoundation.io"
1456
+ name: "OnFinality",
1457
+ endpoint: "wss://peaq.api.onfinality.io/public-ws"
1598
1458
  }
1599
1459
  ]
1600
1460
  };
1601
- var Quartz$1 = {
1602
- name: "QUARTZ by UNIQUE",
1603
- info: "quartz",
1604
- paraId: 2095,
1461
+ var Polimec$1 = {
1462
+ name: "Polimec",
1463
+ info: "polimec",
1464
+ paraId: 3344,
1605
1465
  providers: [
1606
1466
  {
1607
- name: "Geo Load Balancer",
1608
- endpoint: "wss://ws-quartz.unique.network"
1467
+ name: "Amforc",
1468
+ endpoint: "wss://polimec.rpc.amforc.com"
1609
1469
  },
1610
1470
  {
1611
- name: "Unique Asia",
1612
- endpoint: "wss://asia-ws-quartz.unique.network"
1471
+ name: "Helikon",
1472
+ endpoint: "wss://rpc.helikon.io/polimec"
1613
1473
  },
1614
1474
  {
1615
- name: "Unique Europe",
1616
- endpoint: "wss://eu-ws-quartz.unique.network"
1617
- }
1618
- ]
1619
- };
1620
- var RobonomicsKusama$1 = {
1621
- name: "Robonomics",
1622
- info: "robonomics",
1623
- paraId: 2048,
1624
- providers: [
1475
+ name: "IBP1",
1476
+ endpoint: "wss://polimec.ibp.network"
1477
+ },
1625
1478
  {
1626
- name: "Airalab",
1627
- endpoint: "wss://kusama.rpc.robonomics.network/"
1479
+ name: "IBP2",
1480
+ endpoint: "wss://polimec.dotters.network"
1481
+ },
1482
+ {
1483
+ name: "Polimec Foundation",
1484
+ endpoint: "wss://rpc.polimec.org"
1628
1485
  }
1629
1486
  ]
1630
1487
  };
@@ -1668,78 +1525,12 @@ var PeoplePolkadot$1 = {
1668
1525
  name: "Parity",
1669
1526
  endpoint: "wss://polkadot-people-rpc.polkadot.io"
1670
1527
  },
1671
- {
1672
- name: "RadiumBlock",
1673
- endpoint: "wss://people-polkadot.public.curie.radiumblock.co/ws"
1674
- },
1675
1528
  {
1676
1529
  name: "Stakeworld",
1677
1530
  endpoint: "wss://dot-rpc.stakeworld.io/people"
1678
1531
  }
1679
1532
  ]
1680
1533
  };
1681
- var PeopleKusama$1 = {
1682
- name: "People",
1683
- info: "kusamaPeople",
1684
- paraId: 1004,
1685
- providers: [
1686
- {
1687
- name: "Dwellir",
1688
- endpoint: "wss://people-kusama-rpc.n.dwellir.com"
1689
- },
1690
- {
1691
- name: "Helixstreet",
1692
- endpoint: "wss://rpc-people-kusama.helixstreet.io"
1693
- },
1694
- {
1695
- name: "IBP1",
1696
- endpoint: "wss://sys.ibp.network/people-kusama"
1697
- },
1698
- {
1699
- name: "IBP2",
1700
- endpoint: "wss://people-kusama.dotters.network"
1701
- },
1702
- {
1703
- name: "LuckyFriday",
1704
- endpoint: "wss://rpc-people-kusama.luckyfriday.io"
1705
- },
1706
- {
1707
- name: "OnFinality",
1708
- endpoint: "wss://people-kusama.api.onfinality.io/public-ws"
1709
- },
1710
- {
1711
- name: "Parity",
1712
- endpoint: "wss://kusama-people-rpc.polkadot.io"
1713
- },
1714
- {
1715
- name: "Stakeworld",
1716
- endpoint: "wss://ksm-rpc.stakeworld.io/people"
1717
- }
1718
- ]
1719
- };
1720
- var Shiden$1 = {
1721
- name: "Shiden",
1722
- info: "shiden",
1723
- paraId: 2007,
1724
- providers: [
1725
- {
1726
- name: "Astar",
1727
- endpoint: "wss://rpc.shiden.astar.network"
1728
- },
1729
- {
1730
- name: "Dwellir",
1731
- endpoint: "wss://shiden-rpc.n.dwellir.com"
1732
- },
1733
- {
1734
- name: "OnFinality",
1735
- endpoint: "wss://shiden.api.onfinality.io/public-ws"
1736
- },
1737
- {
1738
- name: "RadiumBlock",
1739
- endpoint: "wss://shiden.public.curie.radiumblock.co/ws"
1740
- }
1741
- ]
1742
- };
1743
1534
  var Unique$1 = {
1744
1535
  name: "Unique Network",
1745
1536
  info: "unique",
@@ -1771,253 +1562,443 @@ var Unique$1 = {
1771
1562
  }
1772
1563
  ]
1773
1564
  };
1774
- var Crust$1 = {
1775
- name: "Crust",
1776
- info: "crustParachain",
1777
- paraId: 2008,
1565
+ var AssetHubKusama$1 = {
1566
+ name: "AssetHub",
1567
+ info: "KusamaAssetHub",
1568
+ paraId: 1000,
1778
1569
  providers: [
1779
1570
  {
1780
- name: "Crust",
1781
- endpoint: "wss://crust-parachain.crustapps.net"
1571
+ name: "Dwellir",
1572
+ endpoint: "wss://asset-hub-kusama-rpc.n.dwellir.com"
1782
1573
  },
1783
1574
  {
1784
- name: "Crust APP",
1785
- endpoint: "wss://crust-parachain.crustnetwork.app"
1575
+ name: "Dwellir Tunisia",
1576
+ endpoint: "wss://statemine-rpc-tn.dwellir.com"
1786
1577
  },
1787
1578
  {
1788
- name: "Crust CC",
1789
- endpoint: "wss://crust-parachain.crustnetwork.cc"
1579
+ name: "IBP1",
1580
+ endpoint: "wss://sys.ibp.network/asset-hub-kusama"
1790
1581
  },
1791
1582
  {
1792
- name: "Crust XYZ",
1793
- endpoint: "wss://crust-parachain.crustnetwork.xyz"
1794
- }
1795
- ]
1796
- };
1797
- var Manta$1 = {
1798
- name: "Manta",
1799
- info: "manta",
1800
- paraId: 2104,
1801
- providers: [
1583
+ name: "IBP2",
1584
+ endpoint: "wss://asset-hub-kusama.dotters.network"
1585
+ },
1802
1586
  {
1803
- name: "Manta Network",
1804
- endpoint: "wss://ws.manta.systems"
1587
+ name: "LuckyFriday",
1588
+ endpoint: "wss://rpc-asset-hub-kusama.luckyfriday.io"
1589
+ },
1590
+ {
1591
+ name: "OnFinality",
1592
+ endpoint: "wss://assethub-kusama.api.onfinality.io/public-ws"
1593
+ },
1594
+ {
1595
+ name: "Parity",
1596
+ endpoint: "wss://kusama-asset-hub-rpc.polkadot.io"
1597
+ },
1598
+ {
1599
+ name: "RadiumBlock",
1600
+ endpoint: "wss://statemine.public.curie.radiumblock.co/ws"
1601
+ },
1602
+ {
1603
+ name: "Stakeworld",
1604
+ endpoint: "wss://ksm-rpc.stakeworld.io/assethub"
1805
1605
  }
1806
1606
  ]
1807
1607
  };
1808
- var Nodle$1 = {
1809
- name: "Nodle",
1810
- info: "nodle",
1811
- paraId: 2026,
1608
+ var BridgeHubKusama$1 = {
1609
+ name: "BridgeHub",
1610
+ info: "kusamaBridgeHub",
1611
+ paraId: 1002,
1812
1612
  providers: [
1813
1613
  {
1814
1614
  name: "Dwellir",
1815
- endpoint: "wss://nodle-rpc.dwellir.com"
1615
+ endpoint: "wss://bridge-hub-kusama-rpc.n.dwellir.com"
1616
+ },
1617
+ {
1618
+ name: "Dwellir Tunisia",
1619
+ endpoint: "wss://kusama-bridge-hub-rpc-tn.dwellir.com"
1620
+ },
1621
+ {
1622
+ name: "IBP1",
1623
+ endpoint: "wss://sys.ibp.network/bridgehub-kusama"
1624
+ },
1625
+ {
1626
+ name: "IBP2",
1627
+ endpoint: "wss://bridge-hub-kusama.dotters.network"
1628
+ },
1629
+ {
1630
+ name: "LuckyFriday",
1631
+ endpoint: "wss://rpc-bridge-hub-kusama.luckyfriday.io"
1816
1632
  },
1817
1633
  {
1818
1634
  name: "OnFinality",
1819
- endpoint: "wss://nodle-parachain.api.onfinality.io/public-ws"
1635
+ endpoint: "wss://bridgehub-kusama.api.onfinality.io/public-ws"
1636
+ },
1637
+ {
1638
+ name: "Parity",
1639
+ endpoint: "wss://kusama-bridge-hub-rpc.polkadot.io"
1640
+ },
1641
+ {
1642
+ name: "RadiumBlock",
1643
+ endpoint: "wss://bridgehub-kusama.public.curie.radiumblock.co/ws"
1644
+ },
1645
+ {
1646
+ name: "Stakeworld",
1647
+ endpoint: "wss://ksm-rpc.stakeworld.io/bridgehub"
1820
1648
  }
1821
1649
  ]
1822
1650
  };
1823
- var NeuroWeb$1 = {
1824
- name: "NeuroWeb",
1825
- info: "neuroweb",
1826
- paraId: 2043,
1651
+ var IntegriteeKusama$1 = {
1652
+ name: "Integritee Network",
1653
+ info: "integritee",
1654
+ paraId: 2015,
1827
1655
  providers: [
1828
1656
  {
1829
- name: "TraceLabs",
1830
- endpoint: "wss://parachain-rpc.origin-trail.network"
1657
+ name: "Integritee",
1658
+ endpoint: "wss://kusama.api.integritee.network"
1659
+ },
1660
+ {
1661
+ name: "OnFinality",
1662
+ endpoint: "wss://integritee-kusama.api.onfinality.io/public-ws"
1831
1663
  }
1832
1664
  ]
1833
1665
  };
1834
- var Pendulum$1 = {
1835
- name: "Pendulum",
1836
- info: "pendulum",
1837
- paraId: 2094,
1666
+ var Karura$1 = {
1667
+ name: "Karura",
1668
+ info: "karura",
1669
+ paraId: 2000,
1838
1670
  providers: [
1839
1671
  {
1840
- name: "PendulumChain",
1841
- endpoint: "wss://rpc-pendulum.prd.pendulumchain.tech"
1672
+ name: "Acala Foundation 0",
1673
+ endpoint: "wss://karura-rpc-0.aca-api.network"
1674
+ },
1675
+ {
1676
+ name: "Acala Foundation 1",
1677
+ endpoint: "wss://karura-rpc-1.aca-api.network"
1678
+ },
1679
+ {
1680
+ name: "Acala Foundation 2",
1681
+ endpoint: "wss://karura-rpc-2.aca-api.network/ws"
1682
+ },
1683
+ {
1684
+ name: "Acala Foundation 3",
1685
+ endpoint: "wss://karura-rpc-3.aca-api.network/ws"
1686
+ },
1687
+ {
1688
+ name: "Dwellir",
1689
+ endpoint: "wss://karura-rpc.n.dwellir.com"
1842
1690
  }
1843
1691
  ]
1844
1692
  };
1845
- var Zeitgeist$1 = {
1846
- name: "Zeitgeist",
1847
- info: "zeitgeist",
1693
+ var Kintsugi$1 = {
1694
+ name: "Kintsugi BTC",
1695
+ info: "kintsugi",
1848
1696
  paraId: 2092,
1849
1697
  providers: [
1698
+ {
1699
+ name: "Kintsugi Labs",
1700
+ endpoint: "wss://api-kusama.interlay.io/parachain"
1701
+ },
1850
1702
  {
1851
1703
  name: "OnFinality",
1852
- endpoint: "wss://zeitgeist.api.onfinality.io/public-ws"
1704
+ endpoint: "wss://kintsugi.api.onfinality.io/public-ws"
1853
1705
  }
1854
1706
  ]
1855
1707
  };
1856
- var Collectives$1 = {
1857
- name: "Collectives",
1858
- info: "polkadotCollectives",
1859
- paraId: 1001,
1708
+ var Moonriver$1 = {
1709
+ name: "Moonriver",
1710
+ info: "moonriver",
1711
+ paraId: 2023,
1860
1712
  providers: [
1713
+ {
1714
+ name: "Allnodes",
1715
+ endpoint: "wss://moonriver-rpc.publicnode.com"
1716
+ },
1861
1717
  {
1862
1718
  name: "Dwellir",
1863
- endpoint: "wss://collectives-polkadot-rpc.n.dwellir.com"
1719
+ endpoint: "wss://moonriver-rpc.n.dwellir.com"
1864
1720
  },
1865
1721
  {
1866
- name: "Dwellir Tunisia",
1867
- endpoint: "wss://polkadot-collectives-rpc-tn.dwellir.com"
1722
+ name: "Moonbeam Foundation",
1723
+ endpoint: "wss://wss.api.moonriver.moonbeam.network"
1724
+ },
1725
+ {
1726
+ name: "OnFinality",
1727
+ endpoint: "wss://moonriver.api.onfinality.io/public-ws"
1728
+ },
1729
+ {
1730
+ name: "RadiumBlock",
1731
+ endpoint: "wss://moonriver.public.curie.radiumblock.co/ws"
1732
+ },
1733
+ {
1734
+ name: "UnitedBloc",
1735
+ endpoint: "wss://moonriver.unitedbloc.com"
1736
+ }
1737
+ ]
1738
+ };
1739
+ var CoretimeKusama$1 = {
1740
+ name: "Coretime",
1741
+ info: "kusamaCoretime",
1742
+ paraId: 1005,
1743
+ providers: [
1744
+ {
1745
+ name: "Dwellir",
1746
+ endpoint: "wss://coretime-kusama-rpc.n.dwellir.com"
1868
1747
  },
1869
1748
  {
1870
1749
  name: "IBP1",
1871
- endpoint: "wss://sys.ibp.network/collectives-polkadot"
1750
+ endpoint: "wss://sys.ibp.network/coretime-kusama"
1872
1751
  },
1873
1752
  {
1874
1753
  name: "IBP2",
1875
- endpoint: "wss://collectives-polkadot.dotters.network"
1754
+ endpoint: "wss://coretime-kusama.dotters.network"
1876
1755
  },
1877
1756
  {
1878
1757
  name: "LuckyFriday",
1879
- endpoint: "wss://rpc-collectives-polkadot.luckyfriday.io"
1758
+ endpoint: "wss://rpc-coretime-kusama.luckyfriday.io"
1880
1759
  },
1881
1760
  {
1882
1761
  name: "OnFinality",
1883
- endpoint: "wss://collectives.api.onfinality.io/public-ws"
1762
+ endpoint: "wss://coretime-kusama.api.onfinality.io/public-ws"
1884
1763
  },
1885
1764
  {
1886
1765
  name: "Parity",
1887
- endpoint: "wss://polkadot-collectives-rpc.polkadot.io"
1888
- },
1889
- {
1890
- name: "RadiumBlock",
1891
- endpoint: "wss://collectives.public.curie.radiumblock.co/ws"
1766
+ endpoint: "wss://kusama-coretime-rpc.polkadot.io"
1892
1767
  },
1893
1768
  {
1894
1769
  name: "Stakeworld",
1895
- endpoint: "wss://dot-rpc.stakeworld.io/collectives"
1770
+ endpoint: "wss://ksm-rpc.stakeworld.io/coretime"
1896
1771
  }
1897
1772
  ]
1898
1773
  };
1899
- var Phala$1 = {
1900
- name: "Phala Network",
1901
- info: "phala",
1902
- paraId: 2035,
1774
+ var Encointer$1 = {
1775
+ name: "Encointer Network",
1776
+ info: "encointer",
1777
+ paraId: 1001,
1903
1778
  providers: [
1904
1779
  {
1905
1780
  name: "Dwellir",
1906
- endpoint: "wss://phala-rpc.n.dwellir.com"
1781
+ endpoint: "wss://encointer-kusama-rpc.n.dwellir.com"
1907
1782
  },
1908
1783
  {
1909
- name: "Helikon",
1910
- endpoint: "wss://rpc.helikon.io/phala"
1784
+ name: "Encointer Association",
1785
+ endpoint: "wss://kusama.api.encointer.org"
1911
1786
  },
1912
1787
  {
1913
- name: "OnFinality",
1914
- endpoint: "wss://phala.api.onfinality.io/public-ws"
1788
+ name: "IBP1",
1789
+ endpoint: "wss://sys.ibp.network/encointer-kusama"
1915
1790
  },
1916
1791
  {
1917
- name: "RadiumBlock",
1918
- endpoint: "wss://phala.public.curie.radiumblock.co/ws"
1792
+ name: "IBP2",
1793
+ endpoint: "wss://encointer-kusama.dotters.network"
1794
+ },
1795
+ {
1796
+ name: "LuckyFriday",
1797
+ endpoint: "wss://rpc-encointer-kusama.luckyfriday.io"
1919
1798
  }
1920
1799
  ]
1921
1800
  };
1922
- var Subsocial$1 = {
1923
- name: "Subsocial",
1924
- info: "subsocial",
1925
- paraId: 2101,
1801
+ var Altair$1 = {
1802
+ name: "Altair",
1803
+ info: "altair",
1804
+ paraId: 2088,
1926
1805
  providers: [
1927
1806
  {
1928
- name: "Dappforce",
1929
- endpoint: "wss://para.subsocial.network"
1807
+ name: "OnFinality",
1808
+ endpoint: "wss://altair.api.onfinality.io/public-ws"
1930
1809
  }
1931
1810
  ]
1932
1811
  };
1933
- var KiltSpiritnet$1 = {
1934
- name: "KILT Spiritnet",
1935
- info: "kilt",
1936
- paraId: 2086,
1812
+ var Amplitude$1 = {
1813
+ name: "Amplitude",
1814
+ info: "amplitude",
1815
+ paraId: 2124,
1937
1816
  providers: [
1938
1817
  {
1939
- name: "IBP1",
1940
- endpoint: "wss://kilt.ibp.network"
1818
+ name: "PendulumChain",
1819
+ endpoint: "wss://rpc-amplitude.pendulumchain.tech"
1820
+ }
1821
+ ]
1822
+ };
1823
+ var Basilisk$1 = {
1824
+ name: "Basilisk",
1825
+ info: "basilisk",
1826
+ paraId: 2090,
1827
+ providers: [
1828
+ {
1829
+ name: "Basilisk",
1830
+ endpoint: "wss://rpc.basilisk.cloud"
1941
1831
  },
1942
1832
  {
1943
- name: "IBP2",
1944
- endpoint: "wss://kilt.dotters.network"
1833
+ name: "Dwellir",
1834
+ endpoint: "wss://basilisk-rpc.n.dwellir.com"
1835
+ }
1836
+ ]
1837
+ };
1838
+ var BifrostKusama$1 = {
1839
+ name: "Bifrost",
1840
+ info: "bifrost",
1841
+ paraId: 2001,
1842
+ providers: [
1843
+ {
1844
+ name: "Liebi",
1845
+ endpoint: "wss://bifrost-rpc.liebi.com/ws"
1945
1846
  },
1946
1847
  {
1947
- name: "KILT Foundation",
1948
- endpoint: "wss://spiritnet.kilt.io/"
1848
+ name: "LiebiUS",
1849
+ endpoint: "wss://us.bifrost-rpc.liebi.com/ws"
1949
1850
  }
1950
1851
  ]
1951
1852
  };
1952
- var Curio$1 = {
1953
- name: "Curio",
1954
- info: "curio",
1955
- paraId: 3339,
1853
+ var CrustShadow$1 = {
1854
+ name: "Crust Shadow",
1855
+ info: "shadow",
1856
+ paraId: 2012,
1956
1857
  providers: [
1957
1858
  {
1958
- name: "Curio",
1959
- endpoint: "wss://parachain.curioinvest.com/"
1859
+ name: "Crust",
1860
+ endpoint: "wss://rpc-shadow.crust.network/"
1861
+ },
1862
+ {
1863
+ name: "Crust APP",
1864
+ endpoint: "wss://rpc-shadow.crustnetwork.app"
1865
+ },
1866
+ {
1867
+ name: "Crust CC",
1868
+ endpoint: "wss://rpc-shadow.crustnetwork.cc"
1869
+ },
1870
+ {
1871
+ name: "Crust XYZ",
1872
+ endpoint: "wss://rpc-shadow.crustnetwork.xyz"
1960
1873
  }
1961
1874
  ]
1962
1875
  };
1963
- var Mythos$1 = {
1964
- name: "Mythos",
1965
- info: "mythos",
1966
- paraId: 3369,
1876
+ var Crab$1 = {
1877
+ name: "Crab",
1878
+ info: "crab",
1879
+ paraId: 2105,
1967
1880
  providers: [
1968
1881
  {
1969
- name: "Helikon",
1970
- endpoint: "wss://rpc.helikon.io/mythos"
1882
+ name: "Darwinia",
1883
+ endpoint: "wss://crab-rpc.darwinia.network/"
1971
1884
  },
1972
1885
  {
1973
- name: "IBP1",
1974
- endpoint: "wss://mythos.ibp.network"
1886
+ name: "Dwellir",
1887
+ endpoint: "wss://darwiniacrab-rpc.n.dwellir.com"
1888
+ }
1889
+ ]
1890
+ };
1891
+ var Laos$1 = {
1892
+ name: "Laos",
1893
+ info: "laos",
1894
+ paraId: 3370,
1895
+ providers: [
1896
+ {
1897
+ name: "laosfoundation.io",
1898
+ endpoint: "wss://rpc.laos.laosfoundation.io"
1899
+ }
1900
+ ]
1901
+ };
1902
+ var Quartz$1 = {
1903
+ name: "QUARTZ by UNIQUE",
1904
+ info: "quartz",
1905
+ paraId: 2095,
1906
+ providers: [
1907
+ {
1908
+ name: "Geo Load Balancer",
1909
+ endpoint: "wss://ws-quartz.unique.network"
1975
1910
  },
1976
1911
  {
1977
- name: "IBP2",
1978
- endpoint: "wss://mythos.dotters.network"
1912
+ name: "Unique Asia",
1913
+ endpoint: "wss://asia-ws-quartz.unique.network"
1979
1914
  },
1980
1915
  {
1981
- name: "parity",
1982
- endpoint: "wss://polkadot-mythos-rpc.polkadot.io"
1916
+ name: "Unique Europe",
1917
+ endpoint: "wss://eu-ws-quartz.unique.network"
1983
1918
  }
1984
1919
  ]
1985
1920
  };
1986
- var Peaq$1 = {
1987
- name: "peaq",
1988
- info: "peaq",
1989
- paraId: 3338,
1921
+ var RobonomicsKusama$1 = {
1922
+ name: "Robonomics",
1923
+ info: "robonomics",
1924
+ paraId: 2048,
1925
+ providers: [
1926
+ {
1927
+ name: "Airalab",
1928
+ endpoint: "wss://kusama.rpc.robonomics.network/"
1929
+ }
1930
+ ]
1931
+ };
1932
+ var PeopleKusama$1 = {
1933
+ name: "People",
1934
+ info: "kusamaPeople",
1935
+ paraId: 1004,
1990
1936
  providers: [
1937
+ {
1938
+ name: "Dwellir",
1939
+ endpoint: "wss://people-kusama-rpc.n.dwellir.com"
1940
+ },
1941
+ {
1942
+ name: "Helixstreet",
1943
+ endpoint: "wss://rpc-people-kusama.helixstreet.io"
1944
+ },
1945
+ {
1946
+ name: "IBP1",
1947
+ endpoint: "wss://sys.ibp.network/people-kusama"
1948
+ },
1949
+ {
1950
+ name: "IBP2",
1951
+ endpoint: "wss://people-kusama.dotters.network"
1952
+ },
1953
+ {
1954
+ name: "LuckyFriday",
1955
+ endpoint: "wss://rpc-people-kusama.luckyfriday.io"
1956
+ },
1991
1957
  {
1992
1958
  name: "OnFinality",
1993
- endpoint: "wss://peaq.api.onfinality.io/public-ws"
1959
+ endpoint: "wss://people-kusama.api.onfinality.io/public-ws"
1960
+ },
1961
+ {
1962
+ name: "Parity",
1963
+ endpoint: "wss://kusama-people-rpc.polkadot.io"
1964
+ },
1965
+ {
1966
+ name: "Stakeworld",
1967
+ endpoint: "wss://ksm-rpc.stakeworld.io/people"
1994
1968
  }
1995
1969
  ]
1996
1970
  };
1997
- var Polimec$1 = {
1998
- name: "Polimec",
1999
- info: "polimec",
2000
- paraId: 3344,
1971
+ var Shiden$1 = {
1972
+ name: "Shiden",
1973
+ info: "shiden",
1974
+ paraId: 2007,
2001
1975
  providers: [
2002
1976
  {
2003
- name: "Amforc",
2004
- endpoint: "wss://polimec.rpc.amforc.com"
1977
+ name: "Astar",
1978
+ endpoint: "wss://rpc.shiden.astar.network"
2005
1979
  },
2006
1980
  {
2007
- name: "Helikon",
2008
- endpoint: "wss://rpc.helikon.io/polimec"
1981
+ name: "Dwellir",
1982
+ endpoint: "wss://shiden-rpc.n.dwellir.com"
2009
1983
  },
2010
1984
  {
2011
- name: "IBP1",
2012
- endpoint: "wss://polimec.ibp.network"
1985
+ name: "OnFinality",
1986
+ endpoint: "wss://shiden.api.onfinality.io/public-ws"
2013
1987
  },
2014
1988
  {
2015
- name: "IBP2",
2016
- endpoint: "wss://polimec.dotters.network"
2017
- },
1989
+ name: "RadiumBlock",
1990
+ endpoint: "wss://shiden.public.curie.radiumblock.co/ws"
1991
+ }
1992
+ ]
1993
+ };
1994
+ var Zeitgeist$1 = {
1995
+ name: "Zeitgeist",
1996
+ info: "zeitgeist",
1997
+ paraId: 2092,
1998
+ providers: [
2018
1999
  {
2019
- name: "Polimec Foundation",
2020
- endpoint: "wss://rpc.polimec.org"
2000
+ name: "OnFinality",
2001
+ endpoint: "wss://zeitgeist.api.onfinality.io/public-ws"
2021
2002
  }
2022
2003
  ]
2023
2004
  };
@@ -2097,6 +2078,17 @@ var CoretimeWestend$1 = {
2097
2078
  }
2098
2079
  ]
2099
2080
  };
2081
+ var Penpal$1 = {
2082
+ name: "Penpal",
2083
+ info: "westendPenpal",
2084
+ paraId: 2042,
2085
+ providers: [
2086
+ {
2087
+ name: "Parity",
2088
+ endpoint: "wss://westend-penpal-rpc.polkadot.io"
2089
+ }
2090
+ ]
2091
+ };
2100
2092
  var PeopleWestend$1 = {
2101
2093
  name: "People",
2102
2094
  info: "westendPeople",
@@ -2112,14 +2104,14 @@ var PeopleWestend$1 = {
2112
2104
  }
2113
2105
  ]
2114
2106
  };
2115
- var Penpal$1 = {
2116
- name: "Penpal",
2117
- info: "westendPenpal",
2118
- paraId: 2042,
2107
+ var AjunaPaseo$1 = {
2108
+ name: "Ajuna Network (Paseo)",
2109
+ info: "Ajuna(paseo)",
2110
+ paraId: 2051,
2119
2111
  providers: [
2120
2112
  {
2121
- name: "Parity",
2122
- endpoint: "wss://westend-penpal-rpc.polkadot.io"
2113
+ name: "BajunNetwork",
2114
+ endpoint: "wss://rpc-paseo.ajuna.network"
2123
2115
  }
2124
2116
  ]
2125
2117
  };
@@ -2150,6 +2142,17 @@ var AssetHubPaseo$1 = {
2150
2142
  }
2151
2143
  ]
2152
2144
  };
2145
+ var BifrostPaseo$1 = {
2146
+ name: "Bifrost",
2147
+ info: "Bifrost(Paseo)",
2148
+ paraId: 2030,
2149
+ providers: [
2150
+ {
2151
+ name: "Liebi",
2152
+ endpoint: "wss://bifrost-rpc.paseo.liebi.com/ws"
2153
+ }
2154
+ ]
2155
+ };
2153
2156
  var BridgeHubPaseo$1 = {
2154
2157
  name: "BridgeHub",
2155
2158
  info: "PaseoBridgeHub",
@@ -2180,66 +2183,6 @@ var CoretimePaseo$1 = {
2180
2183
  }
2181
2184
  ]
2182
2185
  };
2183
- var PAssetHub$1 = {
2184
- name: "PAssetHub - Contracts",
2185
- info: "PAssetHub - Contracts",
2186
- paraId: 1111,
2187
- providers: [
2188
- {
2189
- name: "IBP1",
2190
- endpoint: "wss://passet-hub-paseo.ibp.network"
2191
- },
2192
- {
2193
- name: "IBP2",
2194
- endpoint: "wss://passet-hub-paseo.dotters.network"
2195
- },
2196
- {
2197
- name: "Parity",
2198
- endpoint: "wss://testnet-passet-hub.polkadot.io"
2199
- }
2200
- ]
2201
- };
2202
- var PeoplePaseo$1 = {
2203
- name: "People",
2204
- info: "PaseoPeopleChain",
2205
- paraId: 1004,
2206
- providers: [
2207
- {
2208
- name: "Amforc",
2209
- endpoint: "wss://people-paseo.rpc.amforc.com"
2210
- },
2211
- {
2212
- name: "IBP1",
2213
- endpoint: "wss://sys.ibp.network/people-paseo"
2214
- },
2215
- {
2216
- name: "IBP2",
2217
- endpoint: "wss://people-paseo.dotters.network"
2218
- }
2219
- ]
2220
- };
2221
- var AjunaPaseo$1 = {
2222
- name: "Ajuna Network (Paseo)",
2223
- info: "Ajuna(paseo)",
2224
- paraId: 2051,
2225
- providers: [
2226
- {
2227
- name: "BajunNetwork",
2228
- endpoint: "wss://rpc-paseo.ajuna.network"
2229
- }
2230
- ]
2231
- };
2232
- var BifrostPaseo$1 = {
2233
- name: "Bifrost",
2234
- info: "Bifrost(Paseo)",
2235
- paraId: 2030,
2236
- providers: [
2237
- {
2238
- name: "Liebi",
2239
- endpoint: "wss://bifrost-rpc.paseo.liebi.com/ws"
2240
- }
2241
- ]
2242
- };
2243
2186
  var HeimaPaseo$1 = {
2244
2187
  name: "Heima paseo",
2245
2188
  info: "heima-paseo",
@@ -2262,6 +2205,17 @@ var HydrationPaseo$1 = {
2262
2205
  }
2263
2206
  ]
2264
2207
  };
2208
+ var IntegriteePaseo$1 = {
2209
+ name: "Integritee Network (Paseo)",
2210
+ info: "integritee",
2211
+ paraId: 2039,
2212
+ providers: [
2213
+ {
2214
+ name: "Integritee",
2215
+ endpoint: "wss://paseo.api.integritee.network"
2216
+ }
2217
+ ]
2218
+ };
2265
2219
  var KiltPaseo$1 = {
2266
2220
  name: "KILT Peregrine",
2267
2221
  info: "kilt",
@@ -2306,6 +2260,44 @@ var NodlePaseo$1 = {
2306
2260
  }
2307
2261
  ]
2308
2262
  };
2263
+ var PAssetHub$1 = {
2264
+ name: "PAssetHub - Contracts",
2265
+ info: "PAssetHub - Contracts",
2266
+ paraId: 1111,
2267
+ providers: [
2268
+ {
2269
+ name: "IBP1",
2270
+ endpoint: "wss://passet-hub-paseo.ibp.network"
2271
+ },
2272
+ {
2273
+ name: "IBP2",
2274
+ endpoint: "wss://passet-hub-paseo.dotters.network"
2275
+ },
2276
+ {
2277
+ name: "Parity",
2278
+ endpoint: "wss://testnet-passet-hub.polkadot.io"
2279
+ }
2280
+ ]
2281
+ };
2282
+ var PeoplePaseo$1 = {
2283
+ name: "People",
2284
+ info: "PaseoPeopleChain",
2285
+ paraId: 1004,
2286
+ providers: [
2287
+ {
2288
+ name: "Amforc",
2289
+ endpoint: "wss://people-paseo.rpc.amforc.com"
2290
+ },
2291
+ {
2292
+ name: "IBP1",
2293
+ endpoint: "wss://sys.ibp.network/people-paseo"
2294
+ },
2295
+ {
2296
+ name: "IBP2",
2297
+ endpoint: "wss://people-paseo.dotters.network"
2298
+ }
2299
+ ]
2300
+ };
2309
2301
  var ZeitgeistPaseo$1 = {
2310
2302
  name: "Zeitgeist Battery Station",
2311
2303
  info: "ZeitgeistBatteryStation",
@@ -2368,7 +2360,7 @@ var Polkadot = {
2368
2360
  },
2369
2361
  {
2370
2362
  name: "Simply Staking",
2371
- endpoint: "wss://spectrum-01.simplystaking.xyz/cG9sa2Fkb3QtMDEtOTFkMmYwZGYtcG9sa2Fkb3Q/uj77qtNEPueW1w/polkadot/mainnet/"
2363
+ endpoint: "wss://spectrum-03.simplystaking.xyz/cG9sa2Fkb3QtMDMtOTFkMmYwZGYtcG9sa2Fkb3Q/LjwBJpV3dIKyWQ/polkadot/mainnet/"
2372
2364
  },
2373
2365
  {
2374
2366
  name: "Stakeworld",
@@ -2389,6 +2381,10 @@ var Kusama = {
2389
2381
  name: "Allnodes",
2390
2382
  endpoint: "wss://kusama-rpc.publicnode.com"
2391
2383
  },
2384
+ {
2385
+ name: "Blockops",
2386
+ endpoint: "wss://kusama-public-rpc.blockops.network/ws"
2387
+ },
2392
2388
  {
2393
2389
  name: "Dwellir",
2394
2390
  endpoint: "wss://kusama-rpc.n.dwellir.com"
@@ -2488,22 +2484,40 @@ var configs = {
2488
2484
  Astar: Astar$1,
2489
2485
  BifrostPolkadot: BifrostPolkadot$1,
2490
2486
  BridgeHubPolkadot: BridgeHubPolkadot$1,
2491
- BridgeHubKusama: BridgeHubKusama$1,
2492
2487
  Centrifuge: Centrifuge$1,
2493
2488
  ComposableFinance: ComposableFinance$1,
2494
2489
  Darwinia: Darwinia$1,
2495
2490
  EnergyWebX: EnergyWebX$1,
2496
2491
  EnergyWebXPaseo: EnergyWebXPaseo$1,
2497
2492
  Hydration: Hydration$1,
2498
- IntegriteeKusama: IntegriteeKusama$1,
2499
- IntegriteePaseo: IntegriteePaseo$1,
2500
2493
  Interlay: Interlay$1,
2501
2494
  Heima: Heima$1,
2502
2495
  Jamton: Jamton$1,
2503
2496
  Moonbeam: Moonbeam$1,
2497
+ CoretimePolkadot: CoretimePolkadot$1,
2498
+ Collectives: Collectives$1,
2499
+ Crust: Crust$1,
2500
+ Manta: Manta$1,
2501
+ Nodle: Nodle$1,
2502
+ NeuroWeb: NeuroWeb$1,
2503
+ Pendulum: Pendulum$1,
2504
+ Phala: Phala$1,
2505
+ Subsocial: Subsocial$1,
2506
+ KiltSpiritnet: KiltSpiritnet$1,
2507
+ Curio: Curio$1,
2508
+ Mythos: Mythos$1,
2509
+ Peaq: Peaq$1,
2510
+ Polimec: Polimec$1,
2511
+ RobonomicsPolkadot: RobonomicsPolkadot$1,
2512
+ PeoplePolkadot: PeoplePolkadot$1,
2513
+ Unique: Unique$1,
2504
2514
  AssetHubKusama: AssetHubKusama$1,
2515
+ BridgeHubKusama: BridgeHubKusama$1,
2516
+ IntegriteeKusama: IntegriteeKusama$1,
2517
+ Karura: Karura$1,
2518
+ Kintsugi: Kintsugi$1,
2519
+ Moonriver: Moonriver$1,
2505
2520
  CoretimeKusama: CoretimeKusama$1,
2506
- CoretimePolkadot: CoretimePolkadot$1,
2507
2521
  Encointer: Encointer$1,
2508
2522
  Altair: Altair$1,
2509
2523
  Amplitude: Amplitude$1,
@@ -2511,50 +2525,32 @@ var configs = {
2511
2525
  BifrostKusama: BifrostKusama$1,
2512
2526
  CrustShadow: CrustShadow$1,
2513
2527
  Crab: Crab$1,
2514
- Karura: Karura$1,
2515
- Kintsugi: Kintsugi$1,
2516
- Moonriver: Moonriver$1,
2517
2528
  Laos: Laos$1,
2518
2529
  Quartz: Quartz$1,
2519
2530
  RobonomicsKusama: RobonomicsKusama$1,
2520
- RobonomicsPolkadot: RobonomicsPolkadot$1,
2521
- PeoplePolkadot: PeoplePolkadot$1,
2522
2531
  PeopleKusama: PeopleKusama$1,
2523
2532
  Shiden: Shiden$1,
2524
- Unique: Unique$1,
2525
- Crust: Crust$1,
2526
- Manta: Manta$1,
2527
- Nodle: Nodle$1,
2528
- NeuroWeb: NeuroWeb$1,
2529
- Pendulum: Pendulum$1,
2530
2533
  Zeitgeist: Zeitgeist$1,
2531
- Collectives: Collectives$1,
2532
- Phala: Phala$1,
2533
- Subsocial: Subsocial$1,
2534
- KiltSpiritnet: KiltSpiritnet$1,
2535
- Curio: Curio$1,
2536
- Mythos: Mythos$1,
2537
- Peaq: Peaq$1,
2538
- Polimec: Polimec$1,
2539
2534
  AssetHubWestend: AssetHubWestend$1,
2540
2535
  BridgeHubWestend: BridgeHubWestend$1,
2541
2536
  CollectivesWestend: CollectivesWestend$1,
2542
2537
  CoretimeWestend: CoretimeWestend$1,
2543
- PeopleWestend: PeopleWestend$1,
2544
2538
  Penpal: Penpal$1,
2539
+ PeopleWestend: PeopleWestend$1,
2540
+ AjunaPaseo: AjunaPaseo$1,
2545
2541
  AssetHubPaseo: AssetHubPaseo$1,
2542
+ BifrostPaseo: BifrostPaseo$1,
2546
2543
  BridgeHubPaseo: BridgeHubPaseo$1,
2547
2544
  CoretimePaseo: CoretimePaseo$1,
2548
- PAssetHub: PAssetHub$1,
2549
- PeoplePaseo: PeoplePaseo$1,
2550
- AjunaPaseo: AjunaPaseo$1,
2551
- BifrostPaseo: BifrostPaseo$1,
2552
2545
  HeimaPaseo: HeimaPaseo$1,
2553
2546
  HydrationPaseo: HydrationPaseo$1,
2547
+ IntegriteePaseo: IntegriteePaseo$1,
2554
2548
  KiltPaseo: KiltPaseo$1,
2555
2549
  LaosPaseo: LaosPaseo$1,
2556
2550
  NeuroWebPaseo: NeuroWebPaseo$1,
2557
2551
  NodlePaseo: NodlePaseo$1,
2552
+ PAssetHub: PAssetHub$1,
2553
+ PeoplePaseo: PeoplePaseo$1,
2558
2554
  ZeitgeistPaseo: ZeitgeistPaseo$1,
2559
2555
  Polkadot: Polkadot,
2560
2556
  Kusama: Kusama,
@@ -2988,11 +2984,34 @@ var reverseTransformLocation = function reverseTransformLocation(location) {
2988
2984
  });
2989
2985
  };
2990
2986
 
2987
+ /**
2988
+ * Retrieves the chain name corresponding to a specified parachain ID.
2989
+ *
2990
+ * @param paraId - The parachain ID.
2991
+ * @returns The chain name if found; otherwise, null.
2992
+ */
2993
+ var getTChain = function getTChain(paraId, ecosystem) {
2994
+ var _PARACHAINS$find;
2995
+ if (paraId === 0) {
2996
+ return ecosystem;
2997
+ }
2998
+ if (paraId === 1) {
2999
+ return 'Ethereum';
3000
+ }
3001
+ return (_PARACHAINS$find = sdkCommon.PARACHAINS.find(function (chain) {
3002
+ return getChain(chain).ecosystem === ecosystem && getParaId(chain) === paraId;
3003
+ })) !== null && _PARACHAINS$find !== void 0 ? _PARACHAINS$find : null;
3004
+ };
3005
+
3006
+ var resolveDestChain = function resolveDestChain(originChain, paraId) {
3007
+ return paraId !== undefined ? getTChain(paraId, getRelayChainOf(originChain)) : undefined;
3008
+ };
3009
+
2991
3010
  var resolveParaId = function resolveParaId(paraId, destination) {
2992
3011
  if (sdkCommon.isTLocation(destination)) {
2993
3012
  return undefined;
2994
3013
  }
2995
- return paraId !== null && paraId !== void 0 ? paraId : getParaId(destination);
3014
+ return paraId !== undefined ? paraId : getParaId(destination);
2996
3015
  };
2997
3016
 
2998
3017
  var abstractDecimals = function abstractDecimals(amount, decimals, api) {
@@ -3118,25 +3137,6 @@ var throwUnsupportedCurrency = function throwUnsupportedCurrency(currency, chain
3118
3137
  throw new assets.InvalidCurrencyError("".concat(isDestination ? 'Destination' : 'Origin', " chain ").concat(chain, " does not support currency ").concat(JSON.stringify(currency, sdkCommon.replaceBigInt), "."));
3119
3138
  };
3120
3139
 
3121
- /**
3122
- * Retrieves the chain name corresponding to a specified parachain ID.
3123
- *
3124
- * @param paraId - The parachain ID.
3125
- * @returns The chain name if found; otherwise, null.
3126
- */
3127
- var getTChain = function getTChain(paraId, ecosystem) {
3128
- var _PARACHAINS$find;
3129
- if (paraId === 0) {
3130
- return ecosystem;
3131
- }
3132
- if (paraId === 1) {
3133
- return 'Ethereum';
3134
- }
3135
- return (_PARACHAINS$find = sdkCommon.PARACHAINS.find(function (chain) {
3136
- return getChain(chain).ecosystem === ecosystem && getParaId(chain) === paraId;
3137
- })) !== null && _PARACHAINS$find !== void 0 ? _PARACHAINS$find : null;
3138
- };
3139
-
3140
3140
  var getAssetReserveChain = function getAssetReserveChain(chain, destChain, assetLocation) {
3141
3141
  var hasGlobalConsensusJunction = sdkCommon.hasJunction(assetLocation, 'GlobalConsensus');
3142
3142
  var paraId = sdkCommon.getJunctionValue(assetLocation, 'Parachain');
@@ -3147,8 +3147,10 @@ var getAssetReserveChain = function getAssetReserveChain(chain, destChain, asset
3147
3147
  }
3148
3148
  return resolvedChain;
3149
3149
  }
3150
+ var relaychain = getRelayChainOf(chain);
3151
+ var ahChain = "AssetHub".concat(relaychain);
3150
3152
  if (hasGlobalConsensusJunction) {
3151
- return 'AssetHubPolkadot';
3153
+ return ahChain;
3152
3154
  }
3153
3155
  if (sdkCommon.deepEqual(assetLocation, {
3154
3156
  parents: sdkCommon.Parents.ONE,
@@ -3156,7 +3158,7 @@ var getAssetReserveChain = function getAssetReserveChain(chain, destChain, asset
3156
3158
  Here: null
3157
3159
  }
3158
3160
  })) {
3159
- return CHAINS_DOT_RESERVE_AH.has(destChain) ? 'AssetHubPolkadot' : 'Polkadot';
3161
+ return CHAINS_DOT_RESERVE_AH.has(destChain) ? ahChain : relaychain;
3160
3162
  }
3161
3163
  return chain;
3162
3164
  };
@@ -3198,11 +3200,11 @@ var updateAsset = function updateAsset(asset, amount) {
3198
3200
  });
3199
3201
  };
3200
3202
  var getTransferType = function getTransferType(origin, destination, reserveChain) {
3201
- if (reserveChain !== undefined && origin !== reserveChain && sdkCommon.isSystemChain(origin) && sdkCommon.isSystemChain(reserveChain)) {
3203
+ if (reserveChain !== undefined && origin !== reserveChain && sdkCommon.isTrustedChain(origin) && sdkCommon.isTrustedChain(reserveChain)) {
3202
3204
  return 'teleport_to_reserve';
3203
3205
  }
3204
3206
  // Trusted chains can teleport
3205
- if (sdkCommon.isSystemChain(origin) && sdkCommon.isSystemChain(destination)) {
3207
+ if (sdkCommon.isTrustedChain(origin) && sdkCommon.isTrustedChain(destination)) {
3206
3208
  return 'teleport';
3207
3209
  }
3208
3210
  // If we need intermediary reserve (not on reserve chain)
@@ -5211,7 +5213,7 @@ var wrapTxBypass = /*#__PURE__*/function () {
5211
5213
 
5212
5214
  var getOriginXcmFeeInternal = /*#__PURE__*/function () {
5213
5215
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
5214
- var api, tx, origin, destination, senderAddress, disableFallback, feeAsset, currency, _ref$useRootOrigin, useRootOrigin, asset, amount, resolvedFeeAsset, nativeAssetSymbol, rawFee, paddedFee, sufficient, dryRunResult, _rawFee, _paddedFee, fee, forwardedXcms, destParaId, weight, currencySymbol;
5216
+ var api, tx, origin, destination, senderAddress, disableFallback, feeAsset, currency, _ref$useRootOrigin, useRootOrigin, asset, amount, resolvedFeeAsset, nativeAssetSymbol, rawFee, paddedFee, sufficient, dryRunResult, _rawFee, _paddedFee, fee, forwardedXcms, destParaId, weight;
5215
5217
  return _regenerator().w(function (_context) {
5216
5218
  while (1) switch (_context.n) {
5217
5219
  case 0:
@@ -5241,6 +5243,7 @@ var getOriginXcmFeeInternal = /*#__PURE__*/function () {
5241
5243
  return _context.a(2, {
5242
5244
  fee: paddedFee,
5243
5245
  currency: nativeAssetSymbol,
5246
+ asset: resolvedFeeAsset !== null && resolvedFeeAsset !== void 0 ? resolvedFeeAsset : asset,
5244
5247
  feeType: 'paymentInfo',
5245
5248
  sufficient: sufficient
5246
5249
  });
@@ -5268,7 +5271,9 @@ var getOriginXcmFeeInternal = /*#__PURE__*/function () {
5268
5271
  break;
5269
5272
  }
5270
5273
  return _context.a(2, {
5271
- dryRunError: dryRunResult.failureReason
5274
+ dryRunError: dryRunResult.failureReason,
5275
+ currency: dryRunResult.currency,
5276
+ asset: dryRunResult.asset
5272
5277
  });
5273
5278
  case 6:
5274
5279
  _context.n = 7;
@@ -5278,19 +5283,20 @@ var getOriginXcmFeeInternal = /*#__PURE__*/function () {
5278
5283
  _paddedFee = padFee(_rawFee, origin, destination, 'origin');
5279
5284
  return _context.a(2, {
5280
5285
  fee: _paddedFee,
5281
- currency: nativeAssetSymbol,
5286
+ currency: dryRunResult.currency,
5287
+ asset: dryRunResult.asset,
5282
5288
  feeType: 'paymentInfo',
5283
5289
  dryRunError: dryRunResult.failureReason,
5284
5290
  sufficient: false
5285
5291
  });
5286
5292
  case 8:
5287
5293
  fee = dryRunResult.fee, forwardedXcms = dryRunResult.forwardedXcms, destParaId = dryRunResult.destParaId, weight = dryRunResult.weight;
5288
- currencySymbol = resolvedFeeAsset ? resolvedFeeAsset.symbol : nativeAssetSymbol;
5289
5294
  return _context.a(2, {
5290
5295
  fee: fee,
5291
5296
  feeType: 'dryRun',
5292
5297
  sufficient: true,
5293
- currency: currencySymbol,
5298
+ currency: dryRunResult.currency,
5299
+ asset: dryRunResult.asset,
5294
5300
  forwardedXcms: forwardedXcms,
5295
5301
  destParaId: destParaId,
5296
5302
  weight: weight
@@ -5340,11 +5346,6 @@ var validateAssetSupport = function validateAssetSupport(_ref, assetCheckEnabled
5340
5346
  var origin = _ref.from,
5341
5347
  destination = _ref.to,
5342
5348
  currency = _ref.currency;
5343
- var isDestAssetHub = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
5344
- var allowedChainsToAh = ['AssetHubPolkadot', 'BridgeHubPolkadot', 'PeoplePolkadot', 'CoretimePolkadot', 'Collectives', 'BifrostPolkadot', 'BifrostKusama', 'Hydration', 'Moonbeam', 'Ajuna', 'Polimec', 'Jamton'];
5345
- if (!sdkCommon.isRelayChain(origin) && !isBridge && isDestAssetHub && !allowedChainsToAh.includes(origin) && (asset === null || asset === void 0 ? void 0 : asset.symbol) === 'DOT') {
5346
- throw new TransferToAhNotSupported("Chain ".concat(origin, " does not support DOT transfer to AssetHub"));
5347
- }
5348
5349
  var isRelayDestination = !sdkCommon.isTLocation(destination) && sdkCommon.isRelayChain(destination);
5349
5350
  var isLocationDestination = _typeof(destination) === 'object';
5350
5351
  if (!isBridge && !isRelayDestination && !isLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !assets.hasSupportForAsset(destination, asset.symbol)) {
@@ -5502,7 +5503,7 @@ var validateAssetSpecifiers = function validateAssetSpecifiers(assetCheckEnabled
5502
5503
 
5503
5504
  var getOriginXcmFeeEstimate = /*#__PURE__*/function () {
5504
5505
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
5505
- var api, tx, origin, destination, currency, senderAddress, feeAsset, originAsset, amount, rawOriginFee, originFee, resolvedFeeAsset, sufficient;
5506
+ var api, tx, origin, destination, currency, senderAddress, feeAsset, originAsset, amount, rawOriginFee, originFee, resolvedFeeAsset, sufficient, asset;
5506
5507
  return _regenerator().w(function (_context) {
5507
5508
  while (1) switch (_context.n) {
5508
5509
  case 0:
@@ -5521,9 +5522,11 @@ var getOriginXcmFeeEstimate = /*#__PURE__*/function () {
5521
5522
  }), originAsset, resolvedFeeAsset);
5522
5523
  case 2:
5523
5524
  sufficient = _context.v;
5525
+ asset = resolvedFeeAsset !== null && resolvedFeeAsset !== void 0 ? resolvedFeeAsset : originAsset;
5524
5526
  return _context.a(2, {
5525
5527
  fee: originFee,
5526
5528
  currency: assets.getNativeAssetSymbol(origin),
5529
+ asset: asset,
5527
5530
  sufficient: sufficient
5528
5531
  });
5529
5532
  }
@@ -5575,12 +5578,18 @@ var getFailureInfo$1 = function getFailureInfo(chains, hops) {
5575
5578
  };
5576
5579
  var getXcmFeeInternal = /*#__PURE__*/function () {
5577
5580
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref, useRootOrigin) {
5578
- var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, asset, amount, _yield$getOriginXcmFe, originFee, originCurrency, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, processHop, traversalResult, destFee, destCurrency, destFeeType, destDryRunError, destSufficient, destResult, _destApi, destFallback, assetHubChain, processedBridgeHub, bridgeHubChain, bridgeHubHopIndex, convertToFeeDetail, result, _getFailureInfo2, failureChain, failureReason;
5581
+ var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, asset, findNativeAssetInfo, amount, _yield$getOriginXcmFe, originFee, originCurrency, originAsset, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, processHop, traversalResult, destFee, destCurrency, destAsset, destFeeType, destDryRunError, destSufficient, destResult, _destApi, destFallback, assetHubChain, processedBridgeHub, bridgeHubChain, bridgeHubHopIndex, convertToFeeDetail, result, _getFailureInfo2, failureChain, failureReason;
5579
5582
  return _regenerator().w(function (_context2) {
5580
5583
  while (1) switch (_context2.p = _context2.n) {
5581
5584
  case 0:
5582
5585
  api = _ref.api, tx = _ref.tx, origin = _ref.origin, destination = _ref.destination, senderAddress = _ref.senderAddress, address = _ref.address, currency = _ref.currency, feeAsset = _ref.feeAsset, disableFallback = _ref.disableFallback, swapConfig = _ref.swapConfig;
5583
5586
  asset = assets.findAssetInfoOrThrow(origin, currency, destination);
5587
+ findNativeAssetInfo = function findNativeAssetInfo(chain) {
5588
+ var dest = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
5589
+ return assets.findAssetInfoOrThrow(chain, {
5590
+ symbol: assets.Native(assets.getNativeAssetSymbol(chain))
5591
+ }, dest);
5592
+ };
5584
5593
  amount = abstractDecimals(currency.amount, asset.decimals, api);
5585
5594
  _context2.n = 1;
5586
5595
  return getOriginXcmFeeInternal({
@@ -5598,6 +5607,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5598
5607
  _yield$getOriginXcmFe = _context2.v;
5599
5608
  originFee = _yield$getOriginXcmFe.fee;
5600
5609
  originCurrency = _yield$getOriginXcmFe.currency;
5610
+ originAsset = _yield$getOriginXcmFe.asset;
5601
5611
  originFeeType = _yield$getOriginXcmFe.feeType;
5602
5612
  originDryRunError = _yield$getOriginXcmFe.dryRunError;
5603
5613
  initialForwardedXcm = _yield$getOriginXcmFe.forwardedXcms;
@@ -5640,7 +5650,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5640
5650
  feeType: originFeeType
5641
5651
  }), {}, {
5642
5652
  sufficient: sufficientOriginFee,
5643
- currency: originCurrency
5653
+ currency: originCurrency,
5654
+ asset: originAsset
5644
5655
  }, originDryRunError && {
5645
5656
  dryRunError: originDryRunError
5646
5657
  }),
@@ -5653,7 +5664,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5653
5664
  }), destFeeRes.sufficient !== undefined && {
5654
5665
  sufficient: destFeeRes.sufficient
5655
5666
  }), {}, {
5656
- currency: assets.getNativeAssetSymbol(destination)
5667
+ currency: assets.getNativeAssetSymbol(destination),
5668
+ asset: findNativeAssetInfo(destination)
5657
5669
  }),
5658
5670
  hops: []
5659
5671
  };
@@ -5675,7 +5687,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5675
5687
  case 7:
5676
5688
  processHop = /*#__PURE__*/function () {
5677
5689
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
5678
- var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, hopResult, hopCurrency;
5690
+ var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, hopResult, hopAsset;
5679
5691
  return _regenerator().w(function (_context) {
5680
5692
  while (1) switch (_context.n) {
5681
5693
  case 0:
@@ -5701,17 +5713,18 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5701
5713
  hopResult = _context.v;
5702
5714
  if (hopResult.feeType === 'dryRun' && !(destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub')))) {
5703
5715
  if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5704
- hopCurrency = assets.findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo).symbol;
5716
+ hopAsset = assets.findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo);
5705
5717
  } else if (destination === currentChain) {
5706
- hopCurrency = assets.findAssetOnDestOrThrow(origin, currentChain, currency).symbol;
5718
+ hopAsset = assets.findAssetOnDestOrThrow(origin, currentChain, currency);
5707
5719
  } else {
5708
- hopCurrency = asset.symbol;
5720
+ hopAsset = asset;
5709
5721
  }
5710
5722
  } else {
5711
- hopCurrency = assets.getNativeAssetSymbol(currentChain);
5723
+ hopAsset = findNativeAssetInfo(currentChain, destination);
5712
5724
  }
5713
5725
  return _context.a(2, _objectSpread2(_objectSpread2({}, hopResult), {}, {
5714
- currency: hopCurrency
5726
+ currency: hopAsset.symbol,
5727
+ asset: hopAsset
5715
5728
  }));
5716
5729
  }
5717
5730
  }, _callee);
@@ -5756,6 +5769,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5756
5769
  destDryRunError = destResult.dryRunError;
5757
5770
  destSufficient = destResult.sufficient;
5758
5771
  destCurrency = destResult.currency;
5772
+ destAsset = destResult.asset;
5759
5773
  _context2.n = 13;
5760
5774
  break;
5761
5775
  case 9:
@@ -5794,6 +5808,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5794
5808
  destFeeType = destFallback.feeType;
5795
5809
  destSufficient = destFallback.sufficient;
5796
5810
  destCurrency = assets.getNativeAssetSymbol(destination);
5811
+ destAsset = findNativeAssetInfo(destination);
5797
5812
  _context2.n = 13;
5798
5813
  break;
5799
5814
  case 12:
@@ -5801,6 +5816,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5801
5816
  destFeeType = 'noFeeRequired';
5802
5817
  destSufficient = true;
5803
5818
  destCurrency = assets.getNativeAssetSymbol(destination);
5819
+ destAsset = findNativeAssetInfo(destination);
5804
5820
  case 13:
5805
5821
  // Process Ethereum bridge fees
5806
5822
  assetHubChain = "AssetHub".concat(getRelayChainOf(origin));
@@ -5828,7 +5844,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5828
5844
  }), result.sufficient !== undefined && {
5829
5845
  sufficient: result.sufficient
5830
5846
  }), {}, {
5831
- currency: result.currency
5847
+ currency: result.currency,
5848
+ asset: result.asset
5832
5849
  }, result.dryRunError && {
5833
5850
  dryRunError: result.dryRunError
5834
5851
  });
@@ -5843,7 +5860,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5843
5860
  }), sufficientOriginFee !== undefined && {
5844
5861
  sufficient: sufficientOriginFee
5845
5862
  }), {}, {
5846
- currency: originCurrency
5863
+ currency: originCurrency,
5864
+ asset: originAsset
5847
5865
  }, originDryRunError && {
5848
5866
  dryRunError: originDryRunError
5849
5867
  })
@@ -5858,7 +5876,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
5858
5876
  feeType: destFeeType
5859
5877
  }), {}, {
5860
5878
  sufficient: destSufficient,
5861
- currency: destCurrency
5879
+ currency: destCurrency,
5880
+ asset: destAsset
5862
5881
  }, destDryRunError && {
5863
5882
  dryRunError: destDryRunError
5864
5883
  }),
@@ -5943,12 +5962,13 @@ var BRIDGE_FEE_DOT = 682395810n; // 0.068239581 DOT
5943
5962
  var BRIDGE_FEE_KSM = 12016807000n; // 0.012016807 KSM
5944
5963
  var getXcmFeeEstimate = /*#__PURE__*/function () {
5945
5964
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
5946
- var api, origin, destination, currency, feeAsset, address, senderAddress, originAsset, amount, resolvedFeeAsset, destApi, _ref2, _ref3, fixedOriginFee, fixedDestinationFee, originSufficient, _destinationSufficient, originFeeDetails, currencyInput, destinationFee, destinationSufficient, destFeeDetails, _t;
5965
+ var api, origin, destination, currency, feeAsset, address, senderAddress, originAsset, destAsset, amount, resolvedFeeAsset, destApi, _ref2, _ref3, fixedOriginFee, fixedDestinationFee, originSufficient, _destinationSufficient, originFeeDetails, currencyInput, destinationFee, destinationSufficient, destFeeDetails, _t;
5947
5966
  return _regenerator().w(function (_context) {
5948
5967
  while (1) switch (_context.n) {
5949
5968
  case 0:
5950
5969
  api = options.api, origin = options.origin, destination = options.destination, currency = options.currency, feeAsset = options.feeAsset, address = options.address, senderAddress = options.senderAddress;
5951
5970
  originAsset = assets.findAssetInfoOrThrow(origin, currency, destination);
5971
+ destAsset = assets.findAssetOnDestOrThrow(origin, destination, currency);
5952
5972
  amount = abstractDecimals(currency.amount, originAsset.decimals, api);
5953
5973
  resolvedFeeAsset = feeAsset ? resolveFeeAsset(feeAsset, origin, destination, currency) : undefined;
5954
5974
  _context.n = 1;
@@ -5977,11 +5997,13 @@ var getXcmFeeEstimate = /*#__PURE__*/function () {
5977
5997
  origin: {
5978
5998
  fee: fixedOriginFee,
5979
5999
  currency: assets.getNativeAssetSymbol(origin),
6000
+ asset: resolvedFeeAsset !== null && resolvedFeeAsset !== void 0 ? resolvedFeeAsset : originAsset,
5980
6001
  sufficient: originSufficient
5981
6002
  },
5982
6003
  destination: {
5983
6004
  fee: fixedDestinationFee,
5984
6005
  currency: assets.getNativeAssetSymbol(destination),
6006
+ asset: destAsset,
5985
6007
  sufficient: _destinationSufficient
5986
6008
  }
5987
6009
  });
@@ -6019,6 +6041,7 @@ var getXcmFeeEstimate = /*#__PURE__*/function () {
6019
6041
  destFeeDetails = {
6020
6042
  fee: destinationFee,
6021
6043
  currency: assets.getNativeAssetSymbol(destination),
6044
+ asset: destAsset,
6022
6045
  sufficient: destinationSufficient
6023
6046
  };
6024
6047
  return _context.a(2, {
@@ -6035,11 +6058,11 @@ var getXcmFeeEstimate = /*#__PURE__*/function () {
6035
6058
 
6036
6059
  var transferRelayToPara = /*#__PURE__*/function () {
6037
6060
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
6038
- var api, origin, destination, asset, address, paraIdTo, version, pallet, method, isLocationDestination, serializedApiCall;
6061
+ var api, origin, destination, isLocationDestination, serializedApiCall;
6039
6062
  return _regenerator().w(function (_context) {
6040
6063
  while (1) switch (_context.n) {
6041
6064
  case 0:
6042
- api = options.api, origin = options.origin, destination = options.destination, asset = options.assetInfo, address = options.address, paraIdTo = options.paraIdTo, version = options.version, pallet = options.pallet, method = options.method;
6065
+ api = options.api, origin = options.origin, destination = options.destination;
6043
6066
  isLocationDestination = _typeof(destination) === 'object';
6044
6067
  if (!(api.getConfig() === undefined && isLocationDestination)) {
6045
6068
  _context.n = 1;
@@ -6050,17 +6073,10 @@ var transferRelayToPara = /*#__PURE__*/function () {
6050
6073
  _context.n = 2;
6051
6074
  return api.init(origin, TX_CLIENT_TIMEOUT_MS);
6052
6075
  case 2:
6053
- serializedApiCall = getChain(isLocationDestination ? resolveTChainFromLocation(origin, destination) : destination).transferRelayToPara({
6054
- api: api,
6055
- origin: origin,
6056
- destination: destination,
6057
- address: address,
6058
- paraIdTo: paraIdTo,
6059
- assetInfo: asset,
6060
- version: version,
6061
- pallet: pallet,
6062
- method: method
6063
- });
6076
+ _context.n = 3;
6077
+ return getChain(isLocationDestination ? resolveTChainFromLocation(origin, destination) : destination).transferRelayToPara(options);
6078
+ case 3:
6079
+ serializedApiCall = _context.v;
6064
6080
  return _context.a(2, api.callTxMethod(serializedApiCall));
6065
6081
  }
6066
6082
  }, _callee);
@@ -6141,6 +6157,7 @@ var send = /*#__PURE__*/function () {
6141
6157
  assetInfo: _objectSpread2(_objectSpread2({}, asset), {}, {
6142
6158
  amount: finalAmount
6143
6159
  }),
6160
+ currency: currency,
6144
6161
  paraIdTo: paraIdTo,
6145
6162
  version: resolvedVersion,
6146
6163
  pallet: pallet,
@@ -6199,9 +6216,9 @@ var buildTypeAndThenCall = function buildTypeAndThenCall(_ref, isDotAsset, custo
6199
6216
  var finalDest = origin.chain === reserve.chain ? dest.chain : reserve.chain;
6200
6217
  var destLocation = createDestination(version, origin.chain, finalDest, getParaId(finalDest));
6201
6218
  var reserveType = origin.chain === reserve.chain ? 'LocalReserve' : 'DestinationReserve';
6202
- var feeMultiAsset = createAsset(version, assetInfo.amount, feeAssetLocation);
6219
+ var feeMultiAsset = createAsset(version, assetInfo.amount, sdkCommon.isRelayChain(origin.chain) ? localizeLocation(origin.chain, feeAssetLocation) : feeAssetLocation);
6203
6220
  return {
6204
- module: 'PolkadotXcm',
6221
+ module: sdkCommon.isRelayChain(origin.chain) ? 'XcmPallet' : 'PolkadotXcm',
6205
6222
  method: 'transfer_assets_using_type_and_then',
6206
6223
  parameters: {
6207
6224
  dest: addXcmVersionHeader(destLocation, version),
@@ -6324,22 +6341,27 @@ var computeAllFees = /*#__PURE__*/function () {
6324
6341
 
6325
6342
  var createTypeAndThenCallContext = /*#__PURE__*/function () {
6326
6343
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(chain, options) {
6327
- var api, paraIdTo, assetInfo, destChain, reserveChain, destApi, reserveApi;
6344
+ var api, destChain, assetInfo, reserveChain, destApi, reserveApi;
6328
6345
  return _regenerator().w(function (_context) {
6329
6346
  while (1) switch (_context.n) {
6330
6347
  case 0:
6331
- api = options.api, paraIdTo = options.paraIdTo, assetInfo = options.assetInfo;
6348
+ api = options.api, destChain = options.destChain, assetInfo = options.assetInfo;
6332
6349
  assertHasLocation(assetInfo);
6333
- destChain = getTChain(paraIdTo, getRelayChainOf(chain));
6350
+ if (destChain) {
6351
+ _context.n = 1;
6352
+ break;
6353
+ }
6354
+ throw new InvalidParameterError('Cannot override destination when using type and then transfer.');
6355
+ case 1:
6334
6356
  reserveChain = sdkCommon.isRelayChain(destChain) ? destChain : getAssetReserveChain(chain, chain, assetInfo.location);
6335
6357
  destApi = api.clone();
6336
- _context.n = 1;
6358
+ _context.n = 2;
6337
6359
  return destApi.init(destChain);
6338
- case 1:
6360
+ case 2:
6339
6361
  reserveApi = reserveChain !== chain ? api.clone() : destApi;
6340
- _context.n = 2;
6362
+ _context.n = 3;
6341
6363
  return reserveApi.init(reserveChain);
6342
- case 2:
6364
+ case 3:
6343
6365
  return _context.a(2, {
6344
6366
  origin: {
6345
6367
  api: api,
@@ -6439,12 +6461,12 @@ var createRefundInstruction = function createRefundInstruction(api, senderAddres
6439
6461
  };
6440
6462
  };
6441
6463
 
6442
- var buildAssets = function buildAssets(asset, feeAmount, isDotAsset, version) {
6464
+ var buildAssets = function buildAssets(chain, asset, feeAmount, isDotAsset, version) {
6443
6465
  var assets = [];
6444
6466
  if (!isDotAsset) {
6445
6467
  assets.push(createAsset(version, feeAmount, RELAY_LOCATION));
6446
6468
  }
6447
- assets.push(createAsset(version, asset.amount, asset.location));
6469
+ assets.push(createAsset(version, asset.amount, sdkCommon.isRelayChain(chain) ? localizeLocation(chain, asset.location) : asset.location));
6448
6470
  return assets;
6449
6471
  };
6450
6472
  /**
@@ -6482,7 +6504,7 @@ var createTypeAndThenCall = /*#__PURE__*/function () {
6482
6504
  if (refundInstruction) finalCustomXcm.push(refundInstruction);
6483
6505
  finalCustomXcm.push(createCustomXcm(context, isDotAsset, fees));
6484
6506
  totalFee = fees.reserveFee + fees.destFee + fees.refundFee;
6485
- assets = buildAssets(assetInfo, totalFee, isDotAsset, version);
6507
+ assets = buildAssets(chain, assetInfo, totalFee, isDotAsset, version);
6486
6508
  return _context.a(2, buildTypeAndThenCall(context, isDotAsset, finalCustomXcm, assets));
6487
6509
  }
6488
6510
  }, _callee);
@@ -6653,7 +6675,7 @@ var buildDestInfo = /*#__PURE__*/function () {
6653
6675
  receivedAmount = destbalanceAfterResult - destBalance;
6654
6676
  }
6655
6677
  }
6656
- isDestFeeInNativeCurrency = destFeeDetail.currency === assets.getNativeAssetSymbol(destination);
6678
+ isDestFeeInNativeCurrency = destFeeDetail.asset.symbol === assets.getNativeAssetSymbol(destination);
6657
6679
  if (!isDestFeeInNativeCurrency) {
6658
6680
  _context.n = 5;
6659
6681
  break;
@@ -6680,13 +6702,15 @@ var buildDestInfo = /*#__PURE__*/function () {
6680
6702
  balance: destBalance,
6681
6703
  balanceAfter: destbalanceAfterResult,
6682
6704
  currencySymbol: destAsset.symbol,
6705
+ asset: destAsset,
6683
6706
  existentialDeposit: edDestBn
6684
6707
  },
6685
6708
  xcmFee: {
6686
6709
  fee: destFeeDetail.fee,
6687
6710
  balance: destXcmFeeBalance,
6688
6711
  balanceAfter: destXcmFeeBalanceAfter,
6689
- currencySymbol: destFeeDetail.currency
6712
+ currencySymbol: destFeeDetail.currency,
6713
+ asset: destFeeDetail.asset
6690
6714
  }
6691
6715
  });
6692
6716
  }
@@ -6699,11 +6723,11 @@ var buildDestInfo = /*#__PURE__*/function () {
6699
6723
 
6700
6724
  var buildHopInfo = /*#__PURE__*/function () {
6701
6725
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
6702
- var api, chain, feeData, originChain, currency, senderAddress, ahAddress, hopApi, resolvedAddress, nativeBalanceOnHop, nativeAssetSymbolOnHop, xcmFeeDetails, isBridgeHub, hopAsset, hopCurrencyPayload, balance, ed;
6726
+ var api, chain, feeData, originChain, asset, currency, senderAddress, ahAddress, hopApi, resolvedAddress, nativeBalanceOnHop, nativeAssetSymbolOnHop, xcmFeeDetails, isBridgeHub, hopAsset, hopCurrencyPayload, balance, ed;
6703
6727
  return _regenerator().w(function (_context) {
6704
6728
  while (1) switch (_context.p = _context.n) {
6705
6729
  case 0:
6706
- api = _ref.api, chain = _ref.chain, feeData = _ref.feeData, originChain = _ref.originChain, currency = _ref.currency, senderAddress = _ref.senderAddress, ahAddress = _ref.ahAddress;
6730
+ api = _ref.api, chain = _ref.chain, feeData = _ref.feeData, originChain = _ref.originChain, asset = _ref.asset, currency = _ref.currency, senderAddress = _ref.senderAddress, ahAddress = _ref.ahAddress;
6707
6731
  hopApi = api.clone();
6708
6732
  _context.n = 1;
6709
6733
  return hopApi.init(chain);
@@ -6723,7 +6747,8 @@ var buildHopInfo = /*#__PURE__*/function () {
6723
6747
  xcmFeeDetails = {
6724
6748
  fee: feeData.fee,
6725
6749
  balance: nativeBalanceOnHop,
6726
- currencySymbol: nativeAssetSymbolOnHop
6750
+ currencySymbol: nativeAssetSymbolOnHop,
6751
+ asset: asset
6727
6752
  };
6728
6753
  isBridgeHub = chain.includes('BridgeHub');
6729
6754
  if (!isBridgeHub) {
@@ -6760,6 +6785,7 @@ var buildHopInfo = /*#__PURE__*/function () {
6760
6785
  return _context.a(2, {
6761
6786
  balance: balance,
6762
6787
  currencySymbol: hopAsset.symbol,
6788
+ asset: hopAsset,
6763
6789
  existentialDeposit: BigInt(ed),
6764
6790
  xcmFee: xcmFeeDetails
6765
6791
  });
@@ -6782,7 +6808,7 @@ var buildHopInfo = /*#__PURE__*/function () {
6782
6808
 
6783
6809
  var getTransferInfo = /*#__PURE__*/function () {
6784
6810
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref) {
6785
- var api, tx, origin, destination, senderAddress, ahAddress, address, currency, feeAsset, resolvedFeeAsset, originAsset, amount, originBalanceFee, originBalance, edOrigin, _yield$getXcmFee, _yield$getXcmFee$orig, originFee, originFeeCurrency, assetHubFeeResult, bridgeHubFeeResult, destFeeDetail, hops, isFeeAssetAh, originBalanceAfter, originBalanceFeeAfter, originBalanceNativeSufficient, originBalanceSufficient, assetHub, bridgeHub, bridgeHubChain, builtHops, destinationInfo, _t;
6811
+ var api, tx, origin, destination, senderAddress, ahAddress, address, currency, feeAsset, resolvedFeeAsset, originAsset, amount, originBalanceFee, originBalance, edOrigin, _yield$getXcmFee, _yield$getXcmFee$orig, originFee, originFeeCurrency, originFeeAsset, assetHubFeeResult, bridgeHubFeeResult, destFeeDetail, hops, isFeeAssetAh, originBalanceAfter, originBalanceFeeAfter, originBalanceNativeSufficient, originBalanceSufficient, assetHub, bridgeHub, bridgeHubChain, builtHops, destinationInfo, _t;
6786
6812
  return _regenerator().w(function (_context2) {
6787
6813
  while (1) switch (_context2.p = _context2.n) {
6788
6814
  case 0:
@@ -6854,6 +6880,7 @@ var getTransferInfo = /*#__PURE__*/function () {
6854
6880
  _yield$getXcmFee$orig = _yield$getXcmFee.origin;
6855
6881
  originFee = _yield$getXcmFee$orig.fee;
6856
6882
  originFeeCurrency = _yield$getXcmFee$orig.currency;
6883
+ originFeeAsset = _yield$getXcmFee$orig.asset;
6857
6884
  assetHubFeeResult = _yield$getXcmFee.assetHub;
6858
6885
  bridgeHubFeeResult = _yield$getXcmFee.bridgeHub;
6859
6886
  destFeeDetail = _yield$getXcmFee.destination;
@@ -6874,6 +6901,7 @@ var getTransferInfo = /*#__PURE__*/function () {
6874
6901
  feeData: assetHubFeeResult,
6875
6902
  originChain: origin,
6876
6903
  currency: currency,
6904
+ asset: assetHubFeeResult.asset,
6877
6905
  senderAddress: senderAddress,
6878
6906
  ahAddress: ahAddress
6879
6907
  });
@@ -6892,6 +6920,7 @@ var getTransferInfo = /*#__PURE__*/function () {
6892
6920
  feeData: bridgeHubFeeResult,
6893
6921
  originChain: origin,
6894
6922
  currency: currency,
6923
+ asset: bridgeHubFeeResult.asset,
6895
6924
  senderAddress: senderAddress,
6896
6925
  ahAddress: ahAddress
6897
6926
  });
@@ -6917,6 +6946,7 @@ var getTransferInfo = /*#__PURE__*/function () {
6917
6946
  feeData: hop.result,
6918
6947
  originChain: origin,
6919
6948
  currency: currency,
6949
+ asset: hop.result.asset,
6920
6950
  senderAddress: senderAddress,
6921
6951
  ahAddress: ahAddress
6922
6952
  });
@@ -6965,6 +6995,7 @@ var getTransferInfo = /*#__PURE__*/function () {
6965
6995
  balance: originBalance,
6966
6996
  balanceAfter: originBalanceAfter,
6967
6997
  currencySymbol: originAsset.symbol,
6998
+ asset: originAsset,
6968
6999
  existentialDeposit: edOrigin
6969
7000
  },
6970
7001
  xcmFee: {
@@ -6972,7 +7003,8 @@ var getTransferInfo = /*#__PURE__*/function () {
6972
7003
  fee: originFee,
6973
7004
  balance: originBalanceFee,
6974
7005
  balanceAfter: originBalanceFeeAfter,
6975
- currencySymbol: originFeeCurrency
7006
+ currencySymbol: originFeeCurrency,
7007
+ asset: originFeeAsset
6976
7008
  }
6977
7009
  },
6978
7010
  assetHub: assetHub,
@@ -7416,8 +7448,8 @@ var getFailureInfo = function getFailureInfo(results, hops) {
7416
7448
  };
7417
7449
  var dryRunInternal = /*#__PURE__*/function () {
7418
7450
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
7419
- var _traversalResult$brid, _traversalResult$asse, _traversalResult$dest;
7420
- var api, origin, destination, currency, tx, senderAddress, feeAsset, swapConfig, _options$useRootOrigi, useRootOrigin, resolvedFeeAsset, asset, amount, originDryRun, initialForwardedXcms, initialDestParaId, processHop, traversalResult, assetHubChain, bridgeHubChain, processedBridgeHub, bridgeHubHopIndex, originWithCurrency, assetHubWithCurrency, bridgeHubWithCurrency, destinationWithCurrency, _getFailureInfo, failureReason, failureChain, _t;
7451
+ var _traversalResult$brid, _traversalResult$asse;
7452
+ var api, origin, destination, currency, tx, senderAddress, feeAsset, swapConfig, _options$useRootOrigi, useRootOrigin, resolvedFeeAsset, asset, amount, originDryRun, initialForwardedXcms, initialDestParaId, processHop, traversalResult, assetHubChain, bridgeHubChain, processedBridgeHub, bridgeHubHopIndex, assetHubWithCurrency, bridgeHubWithCurrency, _getFailureInfo, failureReason, failureChain, _t;
7421
7453
  return _regenerator().w(function (_context2) {
7422
7454
  while (1) switch (_context2.n) {
7423
7455
  case 0:
@@ -7452,17 +7484,30 @@ var dryRunInternal = /*#__PURE__*/function () {
7452
7484
  initialForwardedXcms = originDryRun.forwardedXcms, initialDestParaId = originDryRun.destParaId;
7453
7485
  processHop = /*#__PURE__*/function () {
7454
7486
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
7455
- var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, isDestination, hopDryRun, hopCurrency;
7487
+ var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, isDestination, hopAsset, hopDryRun;
7456
7488
  return _regenerator().w(function (_context) {
7457
7489
  while (1) switch (_context.n) {
7458
7490
  case 0:
7459
7491
  hopApi = params.api, currentChain = params.currentChain, currentOrigin = params.currentOrigin, currentAsset = params.currentAsset, forwardedXcms = params.forwardedXcms, hasPassedExchange = params.hasPassedExchange, isDestination = params.isDestination;
7492
+ if (destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub'))) {
7493
+ hopAsset = assets.findAssetInfoOrThrow(currentChain, {
7494
+ symbol: assets.Native(assets.getNativeAssetSymbol(currentChain))
7495
+ }, destination);
7496
+ } else if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
7497
+ hopAsset = assets.findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo);
7498
+ } else if (isDestination) {
7499
+ hopAsset = assets.findAssetOnDestOrThrow(origin, currentChain, currency);
7500
+ } else {
7501
+ hopAsset = asset;
7502
+ }
7460
7503
  if (assets.hasDryRunSupport(currentChain)) {
7461
7504
  _context.n = 1;
7462
7505
  break;
7463
7506
  }
7464
7507
  return _context.a(2, {
7465
7508
  success: false,
7509
+ currency: currentAsset.symbol,
7510
+ asset: currentAsset,
7466
7511
  failureReason: "DryRunApi is not available on chain ".concat(currentChain)
7467
7512
  });
7468
7513
  case 1:
@@ -7479,24 +7524,10 @@ var dryRunInternal = /*#__PURE__*/function () {
7479
7524
  });
7480
7525
  case 2:
7481
7526
  hopDryRun = _context.v;
7482
- if (!hopDryRun.success) {
7483
- _context.n = 3;
7484
- break;
7485
- }
7486
- if (destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub'))) {
7487
- hopCurrency = assets.getNativeAssetSymbol(currentChain);
7488
- } else if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
7489
- hopCurrency = assets.findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo).symbol;
7490
- } else if (isDestination) {
7491
- hopCurrency = assets.findAssetOnDestOrThrow(origin, currentChain, currency).symbol;
7492
- } else {
7493
- hopCurrency = asset.symbol;
7494
- }
7495
7527
  return _context.a(2, _objectSpread2(_objectSpread2({}, hopDryRun), {}, {
7496
- currency: hopCurrency
7528
+ currency: hopAsset.symbol,
7529
+ asset: hopAsset
7497
7530
  }));
7498
- case 3:
7499
- return _context.a(2, hopDryRun);
7500
7531
  }
7501
7532
  }, _callee);
7502
7533
  }));
@@ -7554,30 +7585,30 @@ var dryRunInternal = /*#__PURE__*/function () {
7554
7585
  });
7555
7586
  }
7556
7587
  }
7557
- originWithCurrency = originDryRun.success ? _objectSpread2(_objectSpread2({}, originDryRun), {}, {
7558
- currency: resolvedFeeAsset ? resolvedFeeAsset.symbol : assets.getNativeAssetSymbol(origin)
7559
- }) : originDryRun;
7560
7588
  assetHubWithCurrency = (_traversalResult$asse = traversalResult.assetHub) !== null && _traversalResult$asse !== void 0 && _traversalResult$asse.success ? _objectSpread2(_objectSpread2({}, traversalResult.assetHub), {}, {
7561
- currency: resolvedFeeAsset ? resolvedFeeAsset.symbol : assets.getNativeAssetSymbol(assetHubChain)
7589
+ currency: resolvedFeeAsset ? resolvedFeeAsset.symbol : assets.getNativeAssetSymbol(assetHubChain),
7590
+ asset: resolvedFeeAsset !== null && resolvedFeeAsset !== void 0 ? resolvedFeeAsset : assets.findAssetInfoOrThrow(assetHubChain, {
7591
+ symbol: assets.Native(assets.getNativeAssetSymbol(assetHubChain))
7592
+ }, destination)
7562
7593
  }) : traversalResult.assetHub;
7563
7594
  bridgeHubWithCurrency = processedBridgeHub !== null && processedBridgeHub !== void 0 && processedBridgeHub.success ? _objectSpread2(_objectSpread2({}, processedBridgeHub), {}, {
7564
- currency: assets.getNativeAssetSymbol(bridgeHubChain)
7595
+ currency: assets.getNativeAssetSymbol(bridgeHubChain),
7596
+ asset: assets.findAssetInfoOrThrow(bridgeHubChain, {
7597
+ symbol: assets.Native(assets.getNativeAssetSymbol(bridgeHubChain))
7598
+ }, destination)
7565
7599
  }) : processedBridgeHub;
7566
- destinationWithCurrency = (_traversalResult$dest = traversalResult.destination) !== null && _traversalResult$dest !== void 0 && _traversalResult$dest.success ? _objectSpread2(_objectSpread2({}, traversalResult.destination), {}, {
7567
- currency: asset === null || asset === void 0 ? void 0 : asset.symbol
7568
- }) : traversalResult.destination;
7569
7600
  _getFailureInfo = getFailureInfo({
7570
- destination: destinationWithCurrency,
7601
+ destination: traversalResult.destination,
7571
7602
  assetHub: assetHubWithCurrency,
7572
7603
  bridgeHub: bridgeHubWithCurrency
7573
7604
  }, traversalResult.hops), failureReason = _getFailureInfo.failureReason, failureChain = _getFailureInfo.failureChain;
7574
7605
  return _context2.a(2, {
7575
7606
  failureReason: failureReason,
7576
7607
  failureChain: failureChain,
7577
- origin: originWithCurrency,
7608
+ origin: originDryRun,
7578
7609
  assetHub: assetHubWithCurrency,
7579
7610
  bridgeHub: bridgeHubWithCurrency,
7580
- destination: destinationWithCurrency,
7611
+ destination: traversalResult.destination,
7581
7612
  hops: traversalResult.hops
7582
7613
  });
7583
7614
  }
@@ -8315,14 +8346,14 @@ var Parachain = /*#__PURE__*/function () {
8315
8346
  key: "transfer",
8316
8347
  value: function () {
8317
8348
  var _transfer = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(sendOptions) {
8318
- var api, asset, currency, feeAsset, feeCurrency, address, destination, paraIdTo, overriddenAsset, version, senderAddress, ahAddress, pallet, method, scenario, paraId, destChain, isLocalTransfer, isBifrostOrigin, isJamtonOrigin, isAssetHubDest, useMultiAssets, input, options, shouldUseTeleport, isAhToOtherPara, isOtherParaToAh, isAHPOrigin, isAHPDest, isExternalAsset, isEthDest, isExternalAssetViaAh, isExternalAssetToAh, call;
8349
+ var api, asset, currency, feeAsset, feeCurrency, address, destination, paraIdTo, overriddenAsset, version, senderAddress, ahAddress, pallet, method, scenario, paraId, destChain, isLocalTransfer, isRelayAsset, supportsTypeThen, useTypeAndThen, isBifrostOrigin, isJamtonOrigin, isAssetHubDest, useMultiAssets, input, options, shouldUseTeleport, isAhToOtherPara, isOtherParaToAh, isAHPOrigin, isAHPDest, isExternalAsset, isEthDest, isExternalAssetViaAh, isExternalAssetToAh, call;
8319
8350
  return _regenerator().w(function (_context) {
8320
8351
  while (1) switch (_context.n) {
8321
8352
  case 0:
8322
8353
  api = sendOptions.api, asset = sendOptions.assetInfo, currency = sendOptions.currency, feeAsset = sendOptions.feeAsset, feeCurrency = sendOptions.feeCurrency, address = sendOptions.address, destination = sendOptions.to, paraIdTo = sendOptions.paraIdTo, overriddenAsset = sendOptions.overriddenAsset, version = sendOptions.version, senderAddress = sendOptions.senderAddress, ahAddress = sendOptions.ahAddress, pallet = sendOptions.pallet, method = sendOptions.method;
8323
8354
  scenario = resolveScenario(this.chain, destination);
8324
8355
  paraId = resolveParaId(paraIdTo, destination);
8325
- destChain = paraId ? getTChain(paraId, getRelayChainOf(this.chain)) : undefined;
8356
+ destChain = resolveDestChain(this.chain, paraId);
8326
8357
  if (!(destination === 'Polimec' && this.chain !== 'AssetHubPolkadot' && this.chain !== 'Hydration' && this.chain !== destination)) {
8327
8358
  _context.n = 1;
8328
8359
  break;
@@ -8336,10 +8367,22 @@ var Parachain = /*#__PURE__*/function () {
8336
8367
  }
8337
8368
  return _context.a(2, this.transferLocal(sendOptions));
8338
8369
  case 2:
8339
- if (!(supportsXTokens(this) && this.canUseXTokens(sendOptions))) {
8370
+ isRelayAsset = sdkCommon.deepEqual(asset.location, RELAY_LOCATION);
8371
+ _context.n = 3;
8372
+ return api.hasMethod('PolkadotXcm', 'transfer_assets_using_type_and_then');
8373
+ case 3:
8374
+ supportsTypeThen = _context.v;
8375
+ if (!(isRelayAsset && !supportsTypeThen)) {
8340
8376
  _context.n = 4;
8341
8377
  break;
8342
8378
  }
8379
+ throw new InvalidParameterError('Relaychain assets can only be transferred using the type-and-then method which is not supported by this chain');
8380
+ case 4:
8381
+ useTypeAndThen = isRelayAsset && supportsTypeThen;
8382
+ if (!(supportsXTokens(this) && this.canUseXTokens(sendOptions) && !useTypeAndThen)) {
8383
+ _context.n = 6;
8384
+ break;
8385
+ }
8343
8386
  isBifrostOrigin = this.chain === 'BifrostPolkadot' || this.chain === 'BifrostKusama';
8344
8387
  isJamtonOrigin = this.chain === 'Jamton';
8345
8388
  isAssetHubDest = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
@@ -8358,15 +8401,15 @@ var Parachain = /*#__PURE__*/function () {
8358
8401
  method: method
8359
8402
  };
8360
8403
  if (!useMultiAssets) {
8361
- _context.n = 3;
8404
+ _context.n = 5;
8362
8405
  break;
8363
8406
  }
8364
8407
  return _context.a(2, transferXTokens(input, undefined));
8365
- case 3:
8408
+ case 5:
8366
8409
  return _context.a(2, this.transferXTokens(input));
8367
- case 4:
8410
+ case 6:
8368
8411
  if (!supportsXTransfer(this)) {
8369
- _context.n = 5;
8412
+ _context.n = 7;
8370
8413
  break;
8371
8414
  }
8372
8415
  return _context.a(2, this.transferXTransfer({
@@ -8380,9 +8423,9 @@ var Parachain = /*#__PURE__*/function () {
8380
8423
  pallet: pallet,
8381
8424
  method: method
8382
8425
  }));
8383
- case 5:
8384
- if (!supportsPolkadotXCM(this)) {
8385
- _context.n = 9;
8426
+ case 7:
8427
+ if (!(supportsPolkadotXCM(this) || useTypeAndThen)) {
8428
+ _context.n = 12;
8386
8429
  break;
8387
8430
  }
8388
8431
  options = {
@@ -8411,34 +8454,44 @@ var Parachain = /*#__PURE__*/function () {
8411
8454
  method: method
8412
8455
  };
8413
8456
  shouldUseTeleport = this.shouldUseNativeAssetTeleport(sendOptions);
8414
- isAhToOtherPara = this.chain.startsWith('AssetHub') && destChain && destChain !== 'Mythos' && !sdkCommon.isSystemChain(destChain);
8415
- isOtherParaToAh = (destChain === null || destChain === void 0 ? void 0 : destChain.startsWith('AssetHub')) && this.chain !== 'Mythos' && !sdkCommon.isSystemChain(this.chain);
8457
+ isAhToOtherPara = this.chain.startsWith('AssetHub') && destChain && !sdkCommon.isTrustedChain(destChain);
8458
+ isOtherParaToAh = (destChain === null || destChain === void 0 ? void 0 : destChain.startsWith('AssetHub')) && !sdkCommon.isTrustedChain(this.chain);
8416
8459
  if (!((isAhToOtherPara || isOtherParaToAh) && shouldUseTeleport)) {
8417
- _context.n = 6;
8460
+ _context.n = 8;
8418
8461
  break;
8419
8462
  }
8420
8463
  throw new TransferToAhNotSupported('Native asset transfers to or from AssetHub are temporarily disabled');
8421
- case 6:
8464
+ case 8:
8465
+ if (!(this.chain === 'Astar' && isRelayAsset)) {
8466
+ _context.n = 9;
8467
+ break;
8468
+ }
8469
+ throw new InvalidParameterError('Astar system asset transfers are temporarily disabled');
8470
+ case 9:
8422
8471
  isAHPOrigin = this.chain.includes('AssetHub');
8423
8472
  isAHPDest = !sdkCommon.isTLocation(destination) && destination.includes('AssetHub'); // Handle common cases
8424
8473
  isExternalAsset = asset.location && asset.location.parents === sdkCommon.Parents.TWO;
8425
8474
  isEthDest = destination === 'Ethereum'; // External asset - Any origin to any dest via AH - DestinationReserve - multiple instructions
8426
8475
  isExternalAssetViaAh = isExternalAsset && !isAHPOrigin && !isAHPDest && !isEthDest && !feeAsset; // External asset - Any origin to AHP - DestinationReserve - one DepositAsset instruction
8427
8476
  isExternalAssetToAh = isExternalAsset && isAHPDest && !isAHPOrigin && !isEthDest && !feeAsset;
8428
- if (!(isExternalAssetViaAh || isExternalAssetToAh)) {
8429
- _context.n = 8;
8477
+ if (!(isExternalAssetViaAh || isExternalAssetToAh || useTypeAndThen)) {
8478
+ _context.n = 11;
8430
8479
  break;
8431
8480
  }
8432
- _context.n = 7;
8481
+ _context.n = 10;
8433
8482
  return createTypeAndThenCall(this.chain, options);
8434
- case 7:
8483
+ case 10:
8435
8484
  call = _context.v;
8436
8485
  return _context.a(2, api.callTxMethod(call));
8437
- case 8:
8486
+ case 11:
8487
+ if (!supportsPolkadotXCM(this)) {
8488
+ _context.n = 12;
8489
+ break;
8490
+ }
8438
8491
  return _context.a(2, this.transferPolkadotXCM(options));
8439
- case 9:
8492
+ case 12:
8440
8493
  throw new NoXCMSupportImplementedError(this._chain);
8441
- case 10:
8494
+ case 13:
8442
8495
  return _context.a(2);
8443
8496
  }
8444
8497
  }, _callee, this);
@@ -8467,32 +8520,67 @@ var Parachain = /*#__PURE__*/function () {
8467
8520
  key: "getRelayToParaOverrides",
8468
8521
  value: function getRelayToParaOverrides() {
8469
8522
  return {
8470
- method: 'limited_reserve_transfer_assets',
8523
+ method: 'transfer_assets_using_type_and_then',
8471
8524
  includeFee: true
8472
8525
  };
8473
8526
  }
8474
8527
  }, {
8475
8528
  key: "transferRelayToPara",
8476
- value: function transferRelayToPara(options) {
8477
- var version = options.version,
8478
- pallet = options.pallet,
8479
- methodOverride = options.method;
8480
- var _this$getRelayToParaO = this.getRelayToParaOverrides(),
8481
- method = _this$getRelayToParaO.method,
8482
- includeFee = _this$getRelayToParaO.includeFee;
8483
- return {
8484
- module: pallet !== null && pallet !== void 0 ? pallet : 'XcmPallet',
8485
- method: methodOverride !== null && methodOverride !== void 0 ? methodOverride : method,
8486
- parameters: constructRelayToParaParameters(options, version, {
8487
- includeFee: includeFee
8488
- })
8489
- };
8490
- }
8529
+ value: function () {
8530
+ var _transferRelayToPara = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(options) {
8531
+ var api, version, pallet, assetInfo, address, destination, paraIdTo, methodOverride, _this$getRelayToParaO, method, includeFee, customMethod, paraId, destChain, scenario;
8532
+ return _regenerator().w(function (_context2) {
8533
+ while (1) switch (_context2.n) {
8534
+ case 0:
8535
+ api = options.api, version = options.version, pallet = options.pallet, assetInfo = options.assetInfo, address = options.address, destination = options.destination, paraIdTo = options.paraIdTo, methodOverride = options.method;
8536
+ _this$getRelayToParaO = this.getRelayToParaOverrides(), method = _this$getRelayToParaO.method, includeFee = _this$getRelayToParaO.includeFee;
8537
+ customMethod = methodOverride !== null && methodOverride !== void 0 ? methodOverride : method;
8538
+ if (!(customMethod === 'transfer_assets_using_type_and_then')) {
8539
+ _context2.n = 2;
8540
+ break;
8541
+ }
8542
+ paraId = resolveParaId(paraIdTo, destination);
8543
+ destChain = resolveDestChain(this.chain, paraId);
8544
+ scenario = 'RelayToPara';
8545
+ if (destChain) {
8546
+ _context2.n = 1;
8547
+ break;
8548
+ }
8549
+ throw new InvalidParameterError('Cannot override destination when using type and then transfer.');
8550
+ case 1:
8551
+ return _context2.a(2, createTypeAndThenCall(getRelayChainOf(destChain), _objectSpread2(_objectSpread2({}, options), {}, {
8552
+ beneficiaryLocation: createBeneficiaryLocation({
8553
+ api: api,
8554
+ address: address,
8555
+ version: version
8556
+ }),
8557
+ asset: this.createCurrencySpec(assetInfo.amount, scenario, version, assetInfo, false),
8558
+ destLocation: createDestination(version, this.chain, destination, paraId),
8559
+ scenario: scenario,
8560
+ destChain: destChain,
8561
+ paraIdTo: paraId
8562
+ })));
8563
+ case 2:
8564
+ return _context2.a(2, {
8565
+ module: pallet !== null && pallet !== void 0 ? pallet : 'XcmPallet',
8566
+ method: customMethod,
8567
+ parameters: constructRelayToParaParameters(options, version, {
8568
+ includeFee: includeFee
8569
+ })
8570
+ });
8571
+ }
8572
+ }, _callee2, this);
8573
+ }));
8574
+ function transferRelayToPara(_x2) {
8575
+ return _transferRelayToPara.apply(this, arguments);
8576
+ }
8577
+ return transferRelayToPara;
8578
+ }()
8491
8579
  }, {
8492
8580
  key: "createCurrencySpec",
8493
8581
  value: function createCurrencySpec(amount, scenario, version, asset, _isOverridenAsset) {
8494
8582
  var isRelayAsset = sdkCommon.deepEqual(asset === null || asset === void 0 ? void 0 : asset.location, RELAY_LOCATION);
8495
- var parents = scenario === 'ParaToRelay' || isRelayAsset && sdkCommon.isSystemChain(this.chain) ? sdkCommon.Parents.ONE : sdkCommon.Parents.ZERO;
8583
+ var parents = scenario === 'ParaToRelay' || isRelayAsset && sdkCommon.isTrustedChain(this.chain) ? sdkCommon.Parents.ONE : sdkCommon.Parents.ZERO;
8496
8584
  return createAsset(version, amount, {
8497
8585
  parents: parents,
8498
8586
  interior: 'Here'
@@ -8560,7 +8648,7 @@ var Parachain = /*#__PURE__*/function () {
8560
8648
  }, {
8561
8649
  key: "transferToEthereum",
8562
8650
  value: function () {
8563
- var _transferToEthereum = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(input) {
8651
+ var _transferToEthereum = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(input) {
8564
8652
  var _feeAsset$location;
8565
8653
  var useOnlyDepositInstruction,
8566
8654
  api,
@@ -8583,18 +8671,18 @@ var Parachain = /*#__PURE__*/function () {
8583
8671
  customXcmOnDest,
8584
8672
  messageId,
8585
8673
  call,
8586
- _args2 = arguments;
8587
- return _regenerator().w(function (_context2) {
8588
- while (1) switch (_context2.n) {
8674
+ _args3 = arguments;
8675
+ return _regenerator().w(function (_context3) {
8676
+ while (1) switch (_context3.n) {
8589
8677
  case 0:
8590
- useOnlyDepositInstruction = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : false;
8678
+ useOnlyDepositInstruction = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : false;
8591
8679
  api = input.api, asset = input.assetInfo, version = input.version, destination = input.destination, address = input.address, senderAddress = input.senderAddress, feeAsset = input.feeAssetInfo;
8592
- _context2.n = 1;
8680
+ _context3.n = 1;
8593
8681
  return getBridgeStatus(api.clone());
8594
8682
  case 1:
8595
- bridgeStatus = _context2.v;
8683
+ bridgeStatus = _context3.v;
8596
8684
  if (!(bridgeStatus !== 'Normal')) {
8597
- _context2.n = 2;
8685
+ _context3.n = 2;
8598
8686
  break;
8599
8687
  }
8600
8688
  throw new BridgeHaltedError();
@@ -8602,20 +8690,20 @@ var Parachain = /*#__PURE__*/function () {
8602
8690
  assertHasLocation(asset);
8603
8691
  assertAddressIsString(address);
8604
8692
  if (!(senderAddress === undefined)) {
8605
- _context2.n = 3;
8693
+ _context3.n = 3;
8606
8694
  break;
8607
8695
  }
8608
8696
  throw new InvalidParameterError('Sender address is required for transfers to Ethereum');
8609
8697
  case 3:
8610
8698
  ethAsset = createAsset(version, asset.amount, asset.location);
8611
- _context2.n = 4;
8699
+ _context3.n = 4;
8612
8700
  return api.createApiForChain('AssetHubPolkadot');
8613
8701
  case 4:
8614
- ahApi = _context2.v;
8615
- _context2.n = 5;
8702
+ ahApi = _context3.v;
8703
+ _context3.n = 5;
8616
8704
  return getParaEthTransferFees(ahApi);
8617
8705
  case 5:
8618
- _yield$getParaEthTran = _context2.v;
8706
+ _yield$getParaEthTran = _context3.v;
8619
8707
  _yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
8620
8708
  bridgeFee = _yield$getParaEthTran2[0];
8621
8709
  executionFee = _yield$getParaEthTran2[1];
@@ -8623,13 +8711,13 @@ var Parachain = /*#__PURE__*/function () {
8623
8711
  fee = useOnlyDepositInstruction ? PARA_TO_PARA_FEE_DOT : bridgeFee + executionFee;
8624
8712
  ethAssetInfo = assets.findAssetInfoByLoc(assets.getOtherAssets('Ethereum'), asset.location);
8625
8713
  if (ethAssetInfo) {
8626
- _context2.n = 6;
8714
+ _context3.n = 6;
8627
8715
  break;
8628
8716
  }
8629
8717
  throw new assets.InvalidCurrencyError("Could not obtain Ethereum asset address for ".concat(JSON.stringify(asset, sdkCommon.replaceBigInt)));
8630
8718
  case 6:
8631
8719
  if (!useOnlyDepositInstruction) {
8632
- _context2.n = 7;
8720
+ _context3.n = 7;
8633
8721
  break;
8634
8722
  }
8635
8723
  customXcmOnDest = addXcmVersionHeader([{
@@ -8646,14 +8734,14 @@ var Parachain = /*#__PURE__*/function () {
8646
8734
  })
8647
8735
  }
8648
8736
  }], version);
8649
- _context2.n = 9;
8737
+ _context3.n = 9;
8650
8738
  break;
8651
8739
  case 7:
8652
8740
  assertHasId(ethAssetInfo);
8653
- _context2.n = 8;
8741
+ _context3.n = 8;
8654
8742
  return generateMessageId(api, senderAddress, getParaId(this.chain), ethAssetInfo.assetId, address, asset.amount);
8655
8743
  case 8:
8656
- messageId = _context2.v;
8744
+ messageId = _context3.v;
8657
8745
  customXcmOnDest = createCustomXcmOnDest(input, this.chain, messageId);
8658
8746
  case 9:
8659
8747
  call = {
@@ -8669,11 +8757,11 @@ var Parachain = /*#__PURE__*/function () {
8669
8757
  weight_limit: 'Unlimited'
8670
8758
  }
8671
8759
  };
8672
- return _context2.a(2, api.callTxMethod(call));
8760
+ return _context3.a(2, api.callTxMethod(call));
8673
8761
  }
8674
- }, _callee2, this);
8762
+ }, _callee3, this);
8675
8763
  }));
8676
- function transferToEthereum(_x2) {
8764
+ function transferToEthereum(_x3) {
8677
8765
  return _transferToEthereum.apply(this, arguments);
8678
8766
  }
8679
8767
  return transferToEthereum;
@@ -8824,14 +8912,62 @@ var Ajuna = /*#__PURE__*/function (_Parachain) {
8824
8912
  }]);
8825
8913
  }(Parachain);
8826
8914
 
8827
- var AjunaPaseo = /*#__PURE__*/function (_Ajuna) {
8915
+ var transferPolkadotXcm = function transferPolkadotXcm(_ref, method) {
8916
+ var api = _ref.api,
8917
+ destLocation = _ref.destLocation,
8918
+ asset = _ref.assetInfo,
8919
+ beneficiaryLocation = _ref.beneficiaryLocation,
8920
+ multiAsset = _ref.asset,
8921
+ overriddenAsset = _ref.overriddenAsset,
8922
+ pallet = _ref.pallet,
8923
+ version = _ref.version,
8924
+ methodOverride = _ref.method;
8925
+ var fees = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
8926
+ var resolvedMultiAssets = maybeOverrideAssets(version, asset.amount, [multiAsset], overriddenAsset);
8927
+ var feeAssetIndex = overriddenAsset === undefined || sdkCommon.isTLocation(overriddenAsset) ? DEFAULT_FEE_ASSET : overriddenAsset.findIndex(function (asset) {
8928
+ return asset.isFeeAsset;
8929
+ });
8930
+ var call = {
8931
+ module: pallet !== null && pallet !== void 0 ? pallet : 'PolkadotXcm',
8932
+ method: methodOverride !== null && methodOverride !== void 0 ? methodOverride : method,
8933
+ parameters: _objectSpread2({
8934
+ dest: addXcmVersionHeader(destLocation, version),
8935
+ beneficiary: addXcmVersionHeader(beneficiaryLocation, version),
8936
+ assets: addXcmVersionHeader(resolvedMultiAssets, version),
8937
+ fee_asset_item: feeAssetIndex
8938
+ }, fees !== undefined ? {
8939
+ weight_limit: fees
8940
+ } : {})
8941
+ };
8942
+ return Promise.resolve(api.callTxMethod(call));
8943
+ };
8944
+
8945
+ var AjunaPaseo = /*#__PURE__*/function (_Parachain) {
8828
8946
  function AjunaPaseo() {
8829
8947
  _classCallCheck(this, AjunaPaseo);
8830
8948
  return _callSuper(this, AjunaPaseo, ['AjunaPaseo', 'Ajuna(paseo)', 'Paseo', sdkCommon.Version.V4]);
8831
8949
  }
8832
- _inherits(AjunaPaseo, _Ajuna);
8833
- return _createClass(AjunaPaseo);
8834
- }(Ajuna);
8950
+ _inherits(AjunaPaseo, _Parachain);
8951
+ return _createClass(AjunaPaseo, [{
8952
+ key: "transferPolkadotXCM",
8953
+ value: function transferPolkadotXCM(input) {
8954
+ var scenario = input.scenario,
8955
+ asset = input.assetInfo;
8956
+ if (scenario !== 'ParaToPara') {
8957
+ throw new ScenarioNotSupportedError(this.chain, scenario);
8958
+ }
8959
+ if (asset.symbol !== this.getNativeAssetSymbol()) {
8960
+ throw new assets.InvalidCurrencyError("Asset ".concat(asset.symbol, " is not supported by chain ").concat(this.chain, "."));
8961
+ }
8962
+ return transferPolkadotXcm(input, 'limited_reserve_transfer_assets', 'Unlimited');
8963
+ }
8964
+ }, {
8965
+ key: "transferRelayToPara",
8966
+ value: function transferRelayToPara() {
8967
+ throw new ChainNotSupportedError();
8968
+ }
8969
+ }]);
8970
+ }(Parachain);
8835
8971
 
8836
8972
  var Altair = /*#__PURE__*/function (_Parachain) {
8837
8973
  function Altair() {
@@ -8896,36 +9032,6 @@ var Amplitude = /*#__PURE__*/function (_Parachain) {
8896
9032
  }]);
8897
9033
  }(Parachain);
8898
9034
 
8899
- var transferPolkadotXcm = function transferPolkadotXcm(_ref, method) {
8900
- var api = _ref.api,
8901
- destLocation = _ref.destLocation,
8902
- asset = _ref.assetInfo,
8903
- beneficiaryLocation = _ref.beneficiaryLocation,
8904
- multiAsset = _ref.asset,
8905
- overriddenAsset = _ref.overriddenAsset,
8906
- pallet = _ref.pallet,
8907
- version = _ref.version,
8908
- methodOverride = _ref.method;
8909
- var fees = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
8910
- var resolvedMultiAssets = maybeOverrideAssets(version, asset.amount, [multiAsset], overriddenAsset);
8911
- var feeAssetIndex = overriddenAsset === undefined || sdkCommon.isTLocation(overriddenAsset) ? DEFAULT_FEE_ASSET : overriddenAsset.findIndex(function (asset) {
8912
- return asset.isFeeAsset;
8913
- });
8914
- var call = {
8915
- module: pallet !== null && pallet !== void 0 ? pallet : 'PolkadotXcm',
8916
- method: methodOverride !== null && methodOverride !== void 0 ? methodOverride : method,
8917
- parameters: _objectSpread2({
8918
- dest: addXcmVersionHeader(destLocation, version),
8919
- beneficiary: addXcmVersionHeader(beneficiaryLocation, version),
8920
- assets: addXcmVersionHeader(resolvedMultiAssets, version),
8921
- fee_asset_item: feeAssetIndex
8922
- }, fees !== undefined ? {
8923
- weight_limit: fees
8924
- } : {})
8925
- };
8926
- return Promise.resolve(api.callTxMethod(call));
8927
- };
8928
-
8929
9035
  var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
8930
9036
  function AssetHubKusama() {
8931
9037
  _classCallCheck(this, AssetHubKusama);
@@ -8943,7 +9049,7 @@ var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
8943
9049
  if (destination === 'AssetHubPolkadot') {
8944
9050
  return getChain('AssetHubPolkadot').handleBridgeTransfer(input, 'Polkadot');
8945
9051
  }
8946
- var isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isSystemChain(destination);
9052
+ var isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isTrustedChain(destination);
8947
9053
  if (scenario === 'ParaToPara' && asset.symbol === 'KSM' && !assets.isForeignAsset(asset) && !isTrusted) {
8948
9054
  throw new ScenarioNotSupportedError(this.chain, scenario, 'Para to Para scenarios for KSM transfer from AssetHub are not supported, you have to transfer KSM to Relay chain and transfer to destination chain from Relay chain.');
8949
9055
  }
@@ -9179,7 +9285,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
9179
9285
  }, {
9180
9286
  key: "getMethod",
9181
9287
  value: function getMethod(scenario, destination) {
9182
- var isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isSystemChain(destination);
9288
+ var isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isTrustedChain(destination);
9183
9289
  if (destination === 'Polimec' || destination === 'Moonbeam') return 'transfer_assets';
9184
9290
  return scenario === 'ParaToPara' && !isTrusted ? 'limited_reserve_transfer_assets' : 'limited_teleport_assets';
9185
9291
  }
@@ -9254,7 +9360,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
9254
9360
  return _context3.a(2, api.callTxMethod(_call));
9255
9361
  case 10:
9256
9362
  CHAINS_SUPPORT_DOT_TRANSFER = new Set(['Hydration', 'Polimec', 'Moonbeam', 'BifrostPolkadot', 'PeoplePolkadot', 'Ajuna']);
9257
- isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isSystemChain(destination);
9363
+ isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isTrustedChain(destination);
9258
9364
  isDotReserveAh = !sdkCommon.isTLocation(destination) && CHAINS_SUPPORT_DOT_TRANSFER.has(destination);
9259
9365
  if (!(scenario === 'ParaToPara' && assetInfo.symbol === this.getNativeAssetSymbol() && !assets.isForeignAsset(assetInfo) && !isDotReserveAh && !isTrusted)) {
9260
9366
  _context3.n = 11;
@@ -10277,7 +10383,7 @@ var Polimec = /*#__PURE__*/function (_Parachain) {
10277
10383
  var call = createTypeAndThenTransfer$1(_objectSpread2(_objectSpread2({}, options), {}, {
10278
10384
  scenario: 'RelayToPara'
10279
10385
  }), version, 'Teleport');
10280
- return call;
10386
+ return Promise.resolve(call);
10281
10387
  }
10282
10388
  }, {
10283
10389
  key: "transferLocalNonNativeAsset",
@@ -10920,14 +11026,6 @@ var Moonbeam = /*#__PURE__*/function (_Parachain) {
10920
11026
  }
10921
11027
  return transferPolkadotXCM;
10922
11028
  }()
10923
- }, {
10924
- key: "getRelayToParaOverrides",
10925
- value: function getRelayToParaOverrides() {
10926
- return {
10927
- method: 'limited_reserve_transfer_assets',
10928
- includeFee: true
10929
- };
10930
- }
10931
11029
  }, {
10932
11030
  key: "transferLocalNonNativeAsset",
10933
11031
  value: function transferLocalNonNativeAsset(options) {
@@ -10980,14 +11078,6 @@ var Moonriver = /*#__PURE__*/function (_Parachain) {
10980
11078
  asset: createAsset(version, assetInfo.amount, location)
10981
11079
  }), 'transfer_assets', 'Unlimited');
10982
11080
  }
10983
- }, {
10984
- key: "getRelayToParaOverrides",
10985
- value: function getRelayToParaOverrides() {
10986
- return {
10987
- method: 'limited_reserve_transfer_assets',
10988
- includeFee: true
10989
- };
10990
- }
10991
11081
  }, {
10992
11082
  key: "transferLocalNonNativeAsset",
10993
11083
  value: function transferLocalNonNativeAsset(options) {
@@ -11779,7 +11869,7 @@ var RELAY_LOCATION = {
11779
11869
  Here: null
11780
11870
  }
11781
11871
  };
11782
- var CHAINS_DOT_RESERVE_AH = new Set(['Polimec', 'Moonbeam', 'AssetHubPolkadot', 'AssetHubKusama', 'AssetHubWestend', 'AssetHubPaseo', 'BifrostPolkadot', 'BifrostKusama', 'PeoplePolkadot', 'PeopleKusama', 'Ajuna']);
11872
+ var CHAINS_DOT_RESERVE_AH = new Set(['Acala', 'Karura', 'Polimec', 'Moonbeam', 'Hydration', 'HydrationPaseo', 'AssetHubPolkadot', 'AssetHubKusama', 'AssetHubWestend', 'AssetHubPaseo', 'BifrostPolkadot', 'BifrostKusama', 'PeoplePolkadot', 'PeopleKusama', 'Ajuna']);
11783
11873
  var ASSET_HUB_EXECUTION_FEE = 2200000000n; // 0.22 DOT
11784
11874
  var TX_CLIENT_TIMEOUT_MS = 20 * 60 * 1000; // 20 minutes
11785
11875
  var DRY_RUN_CLIENT_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
@@ -12734,6 +12824,7 @@ exports.maybeOverrideAsset = maybeOverrideAsset;
12734
12824
  exports.maybeOverrideAssets = maybeOverrideAssets;
12735
12825
  exports.padFee = padFee;
12736
12826
  exports.padFeeBy = padFeeBy;
12827
+ exports.resolveDestChain = resolveDestChain;
12737
12828
  exports.resolveModuleError = resolveModuleError;
12738
12829
  exports.resolveParaId = resolveParaId;
12739
12830
  exports.reverseTransformLocation = reverseTransformLocation;