@paraspell/sdk-core 11.2.3 → 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 +969 -901
- package/dist/index.d.ts +69 -49
- package/dist/index.mjs +970 -903
- package/package.json +4 -4
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
|
|
1288
|
-
name: "
|
|
1289
|
-
info: "
|
|
1290
|
-
paraId:
|
|
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://
|
|
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/
|
|
1225
|
+
endpoint: "wss://sys.ibp.network/coretime-polkadot"
|
|
1303
1226
|
},
|
|
1304
1227
|
{
|
|
1305
1228
|
name: "IBP2",
|
|
1306
|
-
endpoint: "wss://
|
|
1229
|
+
endpoint: "wss://coretime-polkadot.dotters.network"
|
|
1307
1230
|
},
|
|
1308
1231
|
{
|
|
1309
1232
|
name: "LuckyFriday",
|
|
1310
|
-
endpoint: "wss://rpc-
|
|
1233
|
+
endpoint: "wss://rpc-coretime-polkadot.luckyfriday.io"
|
|
1311
1234
|
},
|
|
1312
1235
|
{
|
|
1313
1236
|
name: "OnFinality",
|
|
1314
|
-
endpoint: "wss://
|
|
1237
|
+
endpoint: "wss://coretime-polkadot.api.onfinality.io/public-ws"
|
|
1315
1238
|
},
|
|
1316
1239
|
{
|
|
1317
1240
|
name: "Parity",
|
|
1318
|
-
endpoint: "wss://
|
|
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://
|
|
1245
|
+
endpoint: "wss://dot-rpc.stakeworld.io/coretime"
|
|
1327
1246
|
}
|
|
1328
1247
|
]
|
|
1329
1248
|
};
|
|
1330
|
-
var
|
|
1331
|
-
name: "
|
|
1332
|
-
info: "
|
|
1333
|
-
paraId:
|
|
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://
|
|
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/
|
|
1264
|
+
endpoint: "wss://sys.ibp.network/collectives-polkadot"
|
|
1342
1265
|
},
|
|
1343
1266
|
{
|
|
1344
1267
|
name: "IBP2",
|
|
1345
|
-
endpoint: "wss://
|
|
1268
|
+
endpoint: "wss://collectives-polkadot.dotters.network"
|
|
1346
1269
|
},
|
|
1347
1270
|
{
|
|
1348
1271
|
name: "LuckyFriday",
|
|
1349
|
-
endpoint: "wss://rpc-
|
|
1272
|
+
endpoint: "wss://rpc-collectives-polkadot.luckyfriday.io"
|
|
1350
1273
|
},
|
|
1351
1274
|
{
|
|
1352
1275
|
name: "OnFinality",
|
|
1353
|
-
endpoint: "wss://
|
|
1276
|
+
endpoint: "wss://collectives.api.onfinality.io/public-ws"
|
|
1354
1277
|
},
|
|
1355
1278
|
{
|
|
1356
1279
|
name: "Parity",
|
|
1357
|
-
endpoint: "wss://
|
|
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://
|
|
1288
|
+
endpoint: "wss://dot-rpc.stakeworld.io/collectives"
|
|
1362
1289
|
}
|
|
1363
1290
|
]
|
|
1364
1291
|
};
|
|
1365
|
-
var
|
|
1366
|
-
name: "
|
|
1367
|
-
info: "
|
|
1368
|
-
paraId:
|
|
1292
|
+
var Crust$1 = {
|
|
1293
|
+
name: "Crust",
|
|
1294
|
+
info: "crustParachain",
|
|
1295
|
+
paraId: 2008,
|
|
1369
1296
|
providers: [
|
|
1370
1297
|
{
|
|
1371
|
-
name: "
|
|
1372
|
-
endpoint: "wss://
|
|
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: "
|
|
1384
|
-
endpoint: "wss://
|
|
1302
|
+
name: "Crust APP",
|
|
1303
|
+
endpoint: "wss://crust-parachain.crustnetwork.app"
|
|
1385
1304
|
},
|
|
1386
1305
|
{
|
|
1387
|
-
name: "
|
|
1388
|
-
endpoint: "wss://
|
|
1306
|
+
name: "Crust CC",
|
|
1307
|
+
endpoint: "wss://crust-parachain.crustnetwork.cc"
|
|
1389
1308
|
},
|
|
1390
1309
|
{
|
|
1391
|
-
name: "
|
|
1392
|
-
endpoint: "wss://
|
|
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: "
|
|
1396
|
-
endpoint: "wss://
|
|
1321
|
+
name: "Manta Network",
|
|
1322
|
+
endpoint: "wss://ws.manta.systems"
|
|
1397
1323
|
}
|
|
1398
1324
|
]
|
|
1399
1325
|
};
|
|
1400
|
-
var
|
|
1401
|
-
name: "
|
|
1402
|
-
info: "
|
|
1403
|
-
paraId:
|
|
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://
|
|
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: "
|
|
1423
|
-
endpoint: "wss://
|
|
1336
|
+
name: "OnFinality",
|
|
1337
|
+
endpoint: "wss://nodle-parachain.api.onfinality.io/public-ws"
|
|
1424
1338
|
}
|
|
1425
1339
|
]
|
|
1426
1340
|
};
|
|
1427
|
-
var
|
|
1428
|
-
name: "
|
|
1429
|
-
info: "
|
|
1430
|
-
paraId:
|
|
1341
|
+
var NeuroWeb$1 = {
|
|
1342
|
+
name: "NeuroWeb",
|
|
1343
|
+
info: "neuroweb",
|
|
1344
|
+
paraId: 2043,
|
|
1431
1345
|
providers: [
|
|
1432
1346
|
{
|
|
1433
|
-
name: "
|
|
1434
|
-
endpoint: "wss://
|
|
1347
|
+
name: "TraceLabs",
|
|
1348
|
+
endpoint: "wss://parachain-rpc.origin-trail.network"
|
|
1435
1349
|
}
|
|
1436
1350
|
]
|
|
1437
1351
|
};
|
|
1438
|
-
var
|
|
1439
|
-
name: "
|
|
1440
|
-
info: "
|
|
1441
|
-
paraId:
|
|
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-
|
|
1359
|
+
endpoint: "wss://rpc-pendulum.prd.pendulumchain.tech"
|
|
1446
1360
|
}
|
|
1447
1361
|
]
|
|
1448
1362
|
};
|
|
1449
|
-
var
|
|
1450
|
-
name: "
|
|
1451
|
-
info: "
|
|
1452
|
-
paraId:
|
|
1363
|
+
var Phala$1 = {
|
|
1364
|
+
name: "Phala Network",
|
|
1365
|
+
info: "phala",
|
|
1366
|
+
paraId: 2035,
|
|
1453
1367
|
providers: [
|
|
1454
1368
|
{
|
|
1455
|
-
name: "
|
|
1456
|
-
endpoint: "wss://rpc.
|
|
1369
|
+
name: "Dwellir",
|
|
1370
|
+
endpoint: "wss://phala-rpc.n.dwellir.com"
|
|
1457
1371
|
},
|
|
1458
1372
|
{
|
|
1459
|
-
name: "
|
|
1460
|
-
endpoint: "wss://
|
|
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: "
|
|
1471
|
-
endpoint: "wss://
|
|
1377
|
+
name: "OnFinality",
|
|
1378
|
+
endpoint: "wss://phala.api.onfinality.io/public-ws"
|
|
1472
1379
|
},
|
|
1473
1380
|
{
|
|
1474
|
-
name: "
|
|
1475
|
-
endpoint: "wss://
|
|
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
|
|
1503
|
-
name: "
|
|
1504
|
-
info: "
|
|
1505
|
-
paraId:
|
|
1386
|
+
var Subsocial$1 = {
|
|
1387
|
+
name: "Subsocial",
|
|
1388
|
+
info: "subsocial",
|
|
1389
|
+
paraId: 2101,
|
|
1506
1390
|
providers: [
|
|
1507
1391
|
{
|
|
1508
|
-
name: "
|
|
1509
|
-
endpoint: "wss://
|
|
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
|
|
1518
|
-
name: "
|
|
1519
|
-
info: "
|
|
1520
|
-
paraId:
|
|
1397
|
+
var KiltSpiritnet$1 = {
|
|
1398
|
+
name: "KILT Spiritnet",
|
|
1399
|
+
info: "kilt",
|
|
1400
|
+
paraId: 2086,
|
|
1521
1401
|
providers: [
|
|
1522
1402
|
{
|
|
1523
|
-
name: "
|
|
1524
|
-
endpoint: "wss://
|
|
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: "
|
|
1536
|
-
endpoint: "wss://
|
|
1407
|
+
name: "IBP2",
|
|
1408
|
+
endpoint: "wss://kilt.dotters.network"
|
|
1537
1409
|
},
|
|
1538
1410
|
{
|
|
1539
|
-
name: "
|
|
1540
|
-
endpoint: "wss://
|
|
1411
|
+
name: "KILT Foundation",
|
|
1412
|
+
endpoint: "wss://spiritnet.kilt.io/"
|
|
1541
1413
|
}
|
|
1542
1414
|
]
|
|
1543
1415
|
};
|
|
1544
|
-
var
|
|
1545
|
-
name: "
|
|
1546
|
-
info: "
|
|
1547
|
-
paraId:
|
|
1416
|
+
var Curio$1 = {
|
|
1417
|
+
name: "Curio",
|
|
1418
|
+
info: "curio",
|
|
1419
|
+
paraId: 3339,
|
|
1548
1420
|
providers: [
|
|
1549
1421
|
{
|
|
1550
|
-
name: "
|
|
1551
|
-
endpoint: "wss://
|
|
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
|
|
1560
|
-
name: "
|
|
1561
|
-
info: "
|
|
1562
|
-
paraId:
|
|
1427
|
+
var Mythos$1 = {
|
|
1428
|
+
name: "Mythos",
|
|
1429
|
+
info: "mythos",
|
|
1430
|
+
paraId: 3369,
|
|
1563
1431
|
providers: [
|
|
1564
1432
|
{
|
|
1565
|
-
name: "
|
|
1566
|
-
endpoint: "wss://
|
|
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: "
|
|
1578
|
-
endpoint: "wss://
|
|
1437
|
+
name: "IBP1",
|
|
1438
|
+
endpoint: "wss://mythos.ibp.network"
|
|
1579
1439
|
},
|
|
1580
1440
|
{
|
|
1581
|
-
name: "
|
|
1582
|
-
endpoint: "wss://
|
|
1441
|
+
name: "IBP2",
|
|
1442
|
+
endpoint: "wss://mythos.dotters.network"
|
|
1583
1443
|
},
|
|
1584
1444
|
{
|
|
1585
|
-
name: "
|
|
1586
|
-
endpoint: "wss://
|
|
1445
|
+
name: "parity",
|
|
1446
|
+
endpoint: "wss://polkadot-mythos-rpc.polkadot.io"
|
|
1587
1447
|
}
|
|
1588
1448
|
]
|
|
1589
1449
|
};
|
|
1590
|
-
var
|
|
1591
|
-
name: "
|
|
1592
|
-
info: "
|
|
1593
|
-
paraId:
|
|
1450
|
+
var Peaq$1 = {
|
|
1451
|
+
name: "peaq",
|
|
1452
|
+
info: "peaq",
|
|
1453
|
+
paraId: 3338,
|
|
1594
1454
|
providers: [
|
|
1595
1455
|
{
|
|
1596
|
-
name: "
|
|
1597
|
-
endpoint: "wss://
|
|
1456
|
+
name: "OnFinality",
|
|
1457
|
+
endpoint: "wss://peaq.api.onfinality.io/public-ws"
|
|
1598
1458
|
}
|
|
1599
1459
|
]
|
|
1600
1460
|
};
|
|
1601
|
-
var
|
|
1602
|
-
name: "
|
|
1603
|
-
info: "
|
|
1604
|
-
paraId:
|
|
1461
|
+
var Polimec$1 = {
|
|
1462
|
+
name: "Polimec",
|
|
1463
|
+
info: "polimec",
|
|
1464
|
+
paraId: 3344,
|
|
1605
1465
|
providers: [
|
|
1606
1466
|
{
|
|
1607
|
-
name: "
|
|
1608
|
-
endpoint: "wss://
|
|
1467
|
+
name: "Amforc",
|
|
1468
|
+
endpoint: "wss://polimec.rpc.amforc.com"
|
|
1609
1469
|
},
|
|
1610
1470
|
{
|
|
1611
|
-
name: "
|
|
1612
|
-
endpoint: "wss://
|
|
1471
|
+
name: "Helikon",
|
|
1472
|
+
endpoint: "wss://rpc.helikon.io/polimec"
|
|
1613
1473
|
},
|
|
1614
1474
|
{
|
|
1615
|
-
name: "
|
|
1616
|
-
endpoint: "wss://
|
|
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: "
|
|
1627
|
-
endpoint: "wss://
|
|
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,356 +1525,480 @@ 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
|
|
1682
|
-
name: "
|
|
1683
|
-
info: "
|
|
1684
|
-
paraId:
|
|
1534
|
+
var Unique$1 = {
|
|
1535
|
+
name: "Unique Network",
|
|
1536
|
+
info: "unique",
|
|
1537
|
+
paraId: 2037,
|
|
1538
|
+
providers: [
|
|
1539
|
+
{
|
|
1540
|
+
name: "Geo Load Balancer",
|
|
1541
|
+
endpoint: "wss://ws.unique.network"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
name: "IBP1",
|
|
1545
|
+
endpoint: "wss://unique.ibp.network"
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
name: "IBP2",
|
|
1549
|
+
endpoint: "wss://unique.dotters.network"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
name: "Unique America",
|
|
1553
|
+
endpoint: "wss://us-ws.unique.network"
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
name: "Unique Asia",
|
|
1557
|
+
endpoint: "wss://asia-ws.unique.network"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
name: "Unique Europe",
|
|
1561
|
+
endpoint: "wss://eu-ws.unique.network"
|
|
1562
|
+
}
|
|
1563
|
+
]
|
|
1564
|
+
};
|
|
1565
|
+
var AssetHubKusama$1 = {
|
|
1566
|
+
name: "AssetHub",
|
|
1567
|
+
info: "KusamaAssetHub",
|
|
1568
|
+
paraId: 1000,
|
|
1685
1569
|
providers: [
|
|
1686
1570
|
{
|
|
1687
1571
|
name: "Dwellir",
|
|
1688
|
-
endpoint: "wss://
|
|
1572
|
+
endpoint: "wss://asset-hub-kusama-rpc.n.dwellir.com"
|
|
1689
1573
|
},
|
|
1690
1574
|
{
|
|
1691
|
-
name: "
|
|
1692
|
-
endpoint: "wss://rpc-
|
|
1575
|
+
name: "Dwellir Tunisia",
|
|
1576
|
+
endpoint: "wss://statemine-rpc-tn.dwellir.com"
|
|
1693
1577
|
},
|
|
1694
1578
|
{
|
|
1695
1579
|
name: "IBP1",
|
|
1696
|
-
endpoint: "wss://sys.ibp.network/
|
|
1580
|
+
endpoint: "wss://sys.ibp.network/asset-hub-kusama"
|
|
1697
1581
|
},
|
|
1698
1582
|
{
|
|
1699
1583
|
name: "IBP2",
|
|
1700
|
-
endpoint: "wss://
|
|
1584
|
+
endpoint: "wss://asset-hub-kusama.dotters.network"
|
|
1701
1585
|
},
|
|
1702
1586
|
{
|
|
1703
1587
|
name: "LuckyFriday",
|
|
1704
|
-
endpoint: "wss://rpc-
|
|
1588
|
+
endpoint: "wss://rpc-asset-hub-kusama.luckyfriday.io"
|
|
1705
1589
|
},
|
|
1706
1590
|
{
|
|
1707
1591
|
name: "OnFinality",
|
|
1708
|
-
endpoint: "wss://
|
|
1592
|
+
endpoint: "wss://assethub-kusama.api.onfinality.io/public-ws"
|
|
1709
1593
|
},
|
|
1710
1594
|
{
|
|
1711
1595
|
name: "Parity",
|
|
1712
|
-
endpoint: "wss://kusama-
|
|
1596
|
+
endpoint: "wss://kusama-asset-hub-rpc.polkadot.io"
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
name: "RadiumBlock",
|
|
1600
|
+
endpoint: "wss://statemine.public.curie.radiumblock.co/ws"
|
|
1713
1601
|
},
|
|
1714
1602
|
{
|
|
1715
1603
|
name: "Stakeworld",
|
|
1716
|
-
endpoint: "wss://ksm-rpc.stakeworld.io/
|
|
1604
|
+
endpoint: "wss://ksm-rpc.stakeworld.io/assethub"
|
|
1717
1605
|
}
|
|
1718
1606
|
]
|
|
1719
1607
|
};
|
|
1720
|
-
var
|
|
1721
|
-
name: "
|
|
1722
|
-
info: "
|
|
1723
|
-
paraId:
|
|
1608
|
+
var BridgeHubKusama$1 = {
|
|
1609
|
+
name: "BridgeHub",
|
|
1610
|
+
info: "kusamaBridgeHub",
|
|
1611
|
+
paraId: 1002,
|
|
1724
1612
|
providers: [
|
|
1725
1613
|
{
|
|
1726
|
-
name: "
|
|
1727
|
-
endpoint: "wss://rpc.
|
|
1614
|
+
name: "Dwellir",
|
|
1615
|
+
endpoint: "wss://bridge-hub-kusama-rpc.n.dwellir.com"
|
|
1728
1616
|
},
|
|
1729
1617
|
{
|
|
1730
|
-
name: "Dwellir",
|
|
1731
|
-
endpoint: "wss://
|
|
1618
|
+
name: "Dwellir Tunisia",
|
|
1619
|
+
endpoint: "wss://kusama-bridge-hub-rpc-tn.dwellir.com"
|
|
1732
1620
|
},
|
|
1733
1621
|
{
|
|
1734
|
-
name: "
|
|
1735
|
-
endpoint: "wss://
|
|
1622
|
+
name: "IBP1",
|
|
1623
|
+
endpoint: "wss://sys.ibp.network/bridgehub-kusama"
|
|
1736
1624
|
},
|
|
1737
1625
|
{
|
|
1738
|
-
name: "
|
|
1739
|
-
endpoint: "wss://
|
|
1740
|
-
}
|
|
1741
|
-
]
|
|
1742
|
-
};
|
|
1743
|
-
var Unique$1 = {
|
|
1744
|
-
name: "Unique Network",
|
|
1745
|
-
info: "unique",
|
|
1746
|
-
paraId: 2037,
|
|
1747
|
-
providers: [
|
|
1626
|
+
name: "IBP2",
|
|
1627
|
+
endpoint: "wss://bridge-hub-kusama.dotters.network"
|
|
1628
|
+
},
|
|
1748
1629
|
{
|
|
1749
|
-
name: "
|
|
1750
|
-
endpoint: "wss://
|
|
1630
|
+
name: "LuckyFriday",
|
|
1631
|
+
endpoint: "wss://rpc-bridge-hub-kusama.luckyfriday.io"
|
|
1751
1632
|
},
|
|
1752
1633
|
{
|
|
1753
|
-
name: "
|
|
1754
|
-
endpoint: "wss://
|
|
1634
|
+
name: "OnFinality",
|
|
1635
|
+
endpoint: "wss://bridgehub-kusama.api.onfinality.io/public-ws"
|
|
1755
1636
|
},
|
|
1756
1637
|
{
|
|
1757
|
-
name: "
|
|
1758
|
-
endpoint: "wss://
|
|
1638
|
+
name: "Parity",
|
|
1639
|
+
endpoint: "wss://kusama-bridge-hub-rpc.polkadot.io"
|
|
1759
1640
|
},
|
|
1760
1641
|
{
|
|
1761
|
-
name: "
|
|
1762
|
-
endpoint: "wss://
|
|
1642
|
+
name: "RadiumBlock",
|
|
1643
|
+
endpoint: "wss://bridgehub-kusama.public.curie.radiumblock.co/ws"
|
|
1763
1644
|
},
|
|
1764
1645
|
{
|
|
1765
|
-
name: "
|
|
1766
|
-
endpoint: "wss://
|
|
1646
|
+
name: "Stakeworld",
|
|
1647
|
+
endpoint: "wss://ksm-rpc.stakeworld.io/bridgehub"
|
|
1648
|
+
}
|
|
1649
|
+
]
|
|
1650
|
+
};
|
|
1651
|
+
var IntegriteeKusama$1 = {
|
|
1652
|
+
name: "Integritee Network",
|
|
1653
|
+
info: "integritee",
|
|
1654
|
+
paraId: 2015,
|
|
1655
|
+
providers: [
|
|
1656
|
+
{
|
|
1657
|
+
name: "Integritee",
|
|
1658
|
+
endpoint: "wss://kusama.api.integritee.network"
|
|
1767
1659
|
},
|
|
1768
1660
|
{
|
|
1769
|
-
name: "
|
|
1770
|
-
endpoint: "wss://
|
|
1661
|
+
name: "OnFinality",
|
|
1662
|
+
endpoint: "wss://integritee-kusama.api.onfinality.io/public-ws"
|
|
1771
1663
|
}
|
|
1772
1664
|
]
|
|
1773
1665
|
};
|
|
1774
|
-
var
|
|
1775
|
-
name: "
|
|
1776
|
-
info: "
|
|
1777
|
-
paraId:
|
|
1666
|
+
var Karura$1 = {
|
|
1667
|
+
name: "Karura",
|
|
1668
|
+
info: "karura",
|
|
1669
|
+
paraId: 2000,
|
|
1778
1670
|
providers: [
|
|
1779
1671
|
{
|
|
1780
|
-
name: "
|
|
1781
|
-
endpoint: "wss://
|
|
1672
|
+
name: "Acala Foundation 0",
|
|
1673
|
+
endpoint: "wss://karura-rpc-0.aca-api.network"
|
|
1782
1674
|
},
|
|
1783
1675
|
{
|
|
1784
|
-
name: "
|
|
1785
|
-
endpoint: "wss://
|
|
1676
|
+
name: "Acala Foundation 1",
|
|
1677
|
+
endpoint: "wss://karura-rpc-1.aca-api.network"
|
|
1786
1678
|
},
|
|
1787
1679
|
{
|
|
1788
|
-
name: "
|
|
1789
|
-
endpoint: "wss://
|
|
1680
|
+
name: "Acala Foundation 2",
|
|
1681
|
+
endpoint: "wss://karura-rpc-2.aca-api.network/ws"
|
|
1790
1682
|
},
|
|
1791
1683
|
{
|
|
1792
|
-
name: "
|
|
1793
|
-
endpoint: "wss://
|
|
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"
|
|
1794
1690
|
}
|
|
1795
1691
|
]
|
|
1796
1692
|
};
|
|
1797
|
-
var
|
|
1798
|
-
name: "
|
|
1799
|
-
info: "
|
|
1800
|
-
paraId:
|
|
1693
|
+
var Kintsugi$1 = {
|
|
1694
|
+
name: "Kintsugi BTC",
|
|
1695
|
+
info: "kintsugi",
|
|
1696
|
+
paraId: 2092,
|
|
1801
1697
|
providers: [
|
|
1802
1698
|
{
|
|
1803
|
-
name: "
|
|
1804
|
-
endpoint: "wss://
|
|
1699
|
+
name: "Kintsugi Labs",
|
|
1700
|
+
endpoint: "wss://api-kusama.interlay.io/parachain"
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
name: "OnFinality",
|
|
1704
|
+
endpoint: "wss://kintsugi.api.onfinality.io/public-ws"
|
|
1805
1705
|
}
|
|
1806
1706
|
]
|
|
1807
1707
|
};
|
|
1808
|
-
var
|
|
1809
|
-
name: "
|
|
1810
|
-
info: "
|
|
1811
|
-
paraId:
|
|
1708
|
+
var Moonriver$1 = {
|
|
1709
|
+
name: "Moonriver",
|
|
1710
|
+
info: "moonriver",
|
|
1711
|
+
paraId: 2023,
|
|
1812
1712
|
providers: [
|
|
1713
|
+
{
|
|
1714
|
+
name: "Allnodes",
|
|
1715
|
+
endpoint: "wss://moonriver-rpc.publicnode.com"
|
|
1716
|
+
},
|
|
1813
1717
|
{
|
|
1814
1718
|
name: "Dwellir",
|
|
1815
|
-
endpoint: "wss://
|
|
1719
|
+
endpoint: "wss://moonriver-rpc.n.dwellir.com"
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
name: "Moonbeam Foundation",
|
|
1723
|
+
endpoint: "wss://wss.api.moonriver.moonbeam.network"
|
|
1816
1724
|
},
|
|
1817
1725
|
{
|
|
1818
1726
|
name: "OnFinality",
|
|
1819
|
-
endpoint: "wss://
|
|
1820
|
-
}
|
|
1821
|
-
]
|
|
1822
|
-
};
|
|
1823
|
-
var NeuroWeb$1 = {
|
|
1824
|
-
name: "NeuroWeb",
|
|
1825
|
-
info: "neuroweb",
|
|
1826
|
-
paraId: 2043,
|
|
1827
|
-
providers: [
|
|
1727
|
+
endpoint: "wss://moonriver.api.onfinality.io/public-ws"
|
|
1728
|
+
},
|
|
1828
1729
|
{
|
|
1829
|
-
name: "
|
|
1830
|
-
endpoint: "wss://
|
|
1831
|
-
}
|
|
1832
|
-
]
|
|
1833
|
-
};
|
|
1834
|
-
var Pendulum$1 = {
|
|
1835
|
-
name: "Pendulum",
|
|
1836
|
-
info: "pendulum",
|
|
1837
|
-
paraId: 2094,
|
|
1838
|
-
providers: [
|
|
1730
|
+
name: "RadiumBlock",
|
|
1731
|
+
endpoint: "wss://moonriver.public.curie.radiumblock.co/ws"
|
|
1732
|
+
},
|
|
1839
1733
|
{
|
|
1840
|
-
name: "
|
|
1841
|
-
endpoint: "wss://
|
|
1734
|
+
name: "UnitedBloc",
|
|
1735
|
+
endpoint: "wss://moonriver.unitedbloc.com"
|
|
1842
1736
|
}
|
|
1843
1737
|
]
|
|
1844
1738
|
};
|
|
1845
|
-
var
|
|
1846
|
-
name: "
|
|
1847
|
-
info: "
|
|
1848
|
-
paraId:
|
|
1739
|
+
var CoretimeKusama$1 = {
|
|
1740
|
+
name: "Coretime",
|
|
1741
|
+
info: "kusamaCoretime",
|
|
1742
|
+
paraId: 1005,
|
|
1849
1743
|
providers: [
|
|
1744
|
+
{
|
|
1745
|
+
name: "Dwellir",
|
|
1746
|
+
endpoint: "wss://coretime-kusama-rpc.n.dwellir.com"
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
name: "IBP1",
|
|
1750
|
+
endpoint: "wss://sys.ibp.network/coretime-kusama"
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
name: "IBP2",
|
|
1754
|
+
endpoint: "wss://coretime-kusama.dotters.network"
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
name: "LuckyFriday",
|
|
1758
|
+
endpoint: "wss://rpc-coretime-kusama.luckyfriday.io"
|
|
1759
|
+
},
|
|
1850
1760
|
{
|
|
1851
1761
|
name: "OnFinality",
|
|
1852
|
-
endpoint: "wss://
|
|
1762
|
+
endpoint: "wss://coretime-kusama.api.onfinality.io/public-ws"
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
name: "Parity",
|
|
1766
|
+
endpoint: "wss://kusama-coretime-rpc.polkadot.io"
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
name: "Stakeworld",
|
|
1770
|
+
endpoint: "wss://ksm-rpc.stakeworld.io/coretime"
|
|
1853
1771
|
}
|
|
1854
1772
|
]
|
|
1855
1773
|
};
|
|
1856
|
-
var
|
|
1857
|
-
name: "
|
|
1858
|
-
info: "
|
|
1774
|
+
var Encointer$1 = {
|
|
1775
|
+
name: "Encointer Network",
|
|
1776
|
+
info: "encointer",
|
|
1859
1777
|
paraId: 1001,
|
|
1860
1778
|
providers: [
|
|
1861
1779
|
{
|
|
1862
1780
|
name: "Dwellir",
|
|
1863
|
-
endpoint: "wss://
|
|
1781
|
+
endpoint: "wss://encointer-kusama-rpc.n.dwellir.com"
|
|
1864
1782
|
},
|
|
1865
1783
|
{
|
|
1866
|
-
name: "
|
|
1867
|
-
endpoint: "wss://
|
|
1784
|
+
name: "Encointer Association",
|
|
1785
|
+
endpoint: "wss://kusama.api.encointer.org"
|
|
1868
1786
|
},
|
|
1869
1787
|
{
|
|
1870
1788
|
name: "IBP1",
|
|
1871
|
-
endpoint: "wss://sys.ibp.network/
|
|
1789
|
+
endpoint: "wss://sys.ibp.network/encointer-kusama"
|
|
1872
1790
|
},
|
|
1873
1791
|
{
|
|
1874
1792
|
name: "IBP2",
|
|
1875
|
-
endpoint: "wss://
|
|
1793
|
+
endpoint: "wss://encointer-kusama.dotters.network"
|
|
1876
1794
|
},
|
|
1877
1795
|
{
|
|
1878
1796
|
name: "LuckyFriday",
|
|
1879
|
-
endpoint: "wss://rpc-
|
|
1880
|
-
}
|
|
1797
|
+
endpoint: "wss://rpc-encointer-kusama.luckyfriday.io"
|
|
1798
|
+
}
|
|
1799
|
+
]
|
|
1800
|
+
};
|
|
1801
|
+
var Altair$1 = {
|
|
1802
|
+
name: "Altair",
|
|
1803
|
+
info: "altair",
|
|
1804
|
+
paraId: 2088,
|
|
1805
|
+
providers: [
|
|
1881
1806
|
{
|
|
1882
1807
|
name: "OnFinality",
|
|
1883
|
-
endpoint: "wss://
|
|
1884
|
-
}
|
|
1808
|
+
endpoint: "wss://altair.api.onfinality.io/public-ws"
|
|
1809
|
+
}
|
|
1810
|
+
]
|
|
1811
|
+
};
|
|
1812
|
+
var Amplitude$1 = {
|
|
1813
|
+
name: "Amplitude",
|
|
1814
|
+
info: "amplitude",
|
|
1815
|
+
paraId: 2124,
|
|
1816
|
+
providers: [
|
|
1885
1817
|
{
|
|
1886
|
-
name: "
|
|
1887
|
-
endpoint: "wss://
|
|
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"
|
|
1888
1831
|
},
|
|
1889
1832
|
{
|
|
1890
|
-
name: "
|
|
1891
|
-
endpoint: "wss://
|
|
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"
|
|
1892
1846
|
},
|
|
1893
1847
|
{
|
|
1894
|
-
name: "
|
|
1895
|
-
endpoint: "wss://
|
|
1848
|
+
name: "LiebiUS",
|
|
1849
|
+
endpoint: "wss://us.bifrost-rpc.liebi.com/ws"
|
|
1896
1850
|
}
|
|
1897
1851
|
]
|
|
1898
1852
|
};
|
|
1899
|
-
var
|
|
1900
|
-
name: "
|
|
1901
|
-
info: "
|
|
1902
|
-
paraId:
|
|
1853
|
+
var CrustShadow$1 = {
|
|
1854
|
+
name: "Crust Shadow",
|
|
1855
|
+
info: "shadow",
|
|
1856
|
+
paraId: 2012,
|
|
1903
1857
|
providers: [
|
|
1904
1858
|
{
|
|
1905
|
-
name: "
|
|
1906
|
-
endpoint: "wss://
|
|
1859
|
+
name: "Crust",
|
|
1860
|
+
endpoint: "wss://rpc-shadow.crust.network/"
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
name: "Crust APP",
|
|
1864
|
+
endpoint: "wss://rpc-shadow.crustnetwork.app"
|
|
1907
1865
|
},
|
|
1908
1866
|
{
|
|
1909
|
-
name: "
|
|
1910
|
-
endpoint: "wss://rpc.
|
|
1867
|
+
name: "Crust CC",
|
|
1868
|
+
endpoint: "wss://rpc-shadow.crustnetwork.cc"
|
|
1911
1869
|
},
|
|
1912
1870
|
{
|
|
1913
|
-
name: "
|
|
1914
|
-
endpoint: "wss://
|
|
1871
|
+
name: "Crust XYZ",
|
|
1872
|
+
endpoint: "wss://rpc-shadow.crustnetwork.xyz"
|
|
1873
|
+
}
|
|
1874
|
+
]
|
|
1875
|
+
};
|
|
1876
|
+
var Crab$1 = {
|
|
1877
|
+
name: "Crab",
|
|
1878
|
+
info: "crab",
|
|
1879
|
+
paraId: 2105,
|
|
1880
|
+
providers: [
|
|
1881
|
+
{
|
|
1882
|
+
name: "Darwinia",
|
|
1883
|
+
endpoint: "wss://crab-rpc.darwinia.network/"
|
|
1915
1884
|
},
|
|
1916
1885
|
{
|
|
1917
|
-
name: "
|
|
1918
|
-
endpoint: "wss://
|
|
1886
|
+
name: "Dwellir",
|
|
1887
|
+
endpoint: "wss://darwiniacrab-rpc.n.dwellir.com"
|
|
1919
1888
|
}
|
|
1920
1889
|
]
|
|
1921
1890
|
};
|
|
1922
|
-
var
|
|
1923
|
-
name: "
|
|
1924
|
-
info: "
|
|
1925
|
-
paraId:
|
|
1891
|
+
var Laos$1 = {
|
|
1892
|
+
name: "Laos",
|
|
1893
|
+
info: "laos",
|
|
1894
|
+
paraId: 3370,
|
|
1926
1895
|
providers: [
|
|
1927
1896
|
{
|
|
1928
|
-
name: "
|
|
1929
|
-
endpoint: "wss://
|
|
1897
|
+
name: "laosfoundation.io",
|
|
1898
|
+
endpoint: "wss://rpc.laos.laosfoundation.io"
|
|
1930
1899
|
}
|
|
1931
1900
|
]
|
|
1932
1901
|
};
|
|
1933
|
-
var
|
|
1934
|
-
name: "
|
|
1935
|
-
info: "
|
|
1936
|
-
paraId:
|
|
1902
|
+
var Quartz$1 = {
|
|
1903
|
+
name: "QUARTZ by UNIQUE",
|
|
1904
|
+
info: "quartz",
|
|
1905
|
+
paraId: 2095,
|
|
1937
1906
|
providers: [
|
|
1938
1907
|
{
|
|
1939
|
-
name: "
|
|
1940
|
-
endpoint: "wss://
|
|
1908
|
+
name: "Geo Load Balancer",
|
|
1909
|
+
endpoint: "wss://ws-quartz.unique.network"
|
|
1941
1910
|
},
|
|
1942
1911
|
{
|
|
1943
|
-
name: "
|
|
1944
|
-
endpoint: "wss://
|
|
1912
|
+
name: "Unique Asia",
|
|
1913
|
+
endpoint: "wss://asia-ws-quartz.unique.network"
|
|
1945
1914
|
},
|
|
1946
1915
|
{
|
|
1947
|
-
name: "
|
|
1948
|
-
endpoint: "wss://
|
|
1916
|
+
name: "Unique Europe",
|
|
1917
|
+
endpoint: "wss://eu-ws-quartz.unique.network"
|
|
1949
1918
|
}
|
|
1950
1919
|
]
|
|
1951
1920
|
};
|
|
1952
|
-
var
|
|
1953
|
-
name: "
|
|
1954
|
-
info: "
|
|
1955
|
-
paraId:
|
|
1921
|
+
var RobonomicsKusama$1 = {
|
|
1922
|
+
name: "Robonomics",
|
|
1923
|
+
info: "robonomics",
|
|
1924
|
+
paraId: 2048,
|
|
1956
1925
|
providers: [
|
|
1957
1926
|
{
|
|
1958
|
-
name: "
|
|
1959
|
-
endpoint: "wss://
|
|
1927
|
+
name: "Airalab",
|
|
1928
|
+
endpoint: "wss://kusama.rpc.robonomics.network/"
|
|
1960
1929
|
}
|
|
1961
1930
|
]
|
|
1962
1931
|
};
|
|
1963
|
-
var
|
|
1964
|
-
name: "
|
|
1965
|
-
info: "
|
|
1966
|
-
paraId:
|
|
1932
|
+
var PeopleKusama$1 = {
|
|
1933
|
+
name: "People",
|
|
1934
|
+
info: "kusamaPeople",
|
|
1935
|
+
paraId: 1004,
|
|
1967
1936
|
providers: [
|
|
1968
1937
|
{
|
|
1969
|
-
name: "
|
|
1970
|
-
endpoint: "wss://rpc.
|
|
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"
|
|
1971
1944
|
},
|
|
1972
1945
|
{
|
|
1973
1946
|
name: "IBP1",
|
|
1974
|
-
endpoint: "wss://
|
|
1947
|
+
endpoint: "wss://sys.ibp.network/people-kusama"
|
|
1975
1948
|
},
|
|
1976
1949
|
{
|
|
1977
1950
|
name: "IBP2",
|
|
1978
|
-
endpoint: "wss://
|
|
1951
|
+
endpoint: "wss://people-kusama.dotters.network"
|
|
1979
1952
|
},
|
|
1980
1953
|
{
|
|
1981
|
-
name: "
|
|
1982
|
-
endpoint: "wss://
|
|
1983
|
-
}
|
|
1984
|
-
]
|
|
1985
|
-
};
|
|
1986
|
-
var Peaq$1 = {
|
|
1987
|
-
name: "peaq",
|
|
1988
|
-
info: "peaq",
|
|
1989
|
-
paraId: 3338,
|
|
1990
|
-
providers: [
|
|
1954
|
+
name: "LuckyFriday",
|
|
1955
|
+
endpoint: "wss://rpc-people-kusama.luckyfriday.io"
|
|
1956
|
+
},
|
|
1991
1957
|
{
|
|
1992
1958
|
name: "OnFinality",
|
|
1993
|
-
endpoint: "wss://
|
|
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
|
|
1998
|
-
name: "
|
|
1999
|
-
info: "
|
|
2000
|
-
paraId:
|
|
1971
|
+
var Shiden$1 = {
|
|
1972
|
+
name: "Shiden",
|
|
1973
|
+
info: "shiden",
|
|
1974
|
+
paraId: 2007,
|
|
2001
1975
|
providers: [
|
|
2002
1976
|
{
|
|
2003
|
-
name: "
|
|
2004
|
-
endpoint: "wss://
|
|
1977
|
+
name: "Astar",
|
|
1978
|
+
endpoint: "wss://rpc.shiden.astar.network"
|
|
2005
1979
|
},
|
|
2006
1980
|
{
|
|
2007
|
-
name: "
|
|
2008
|
-
endpoint: "wss://rpc.
|
|
1981
|
+
name: "Dwellir",
|
|
1982
|
+
endpoint: "wss://shiden-rpc.n.dwellir.com"
|
|
2009
1983
|
},
|
|
2010
1984
|
{
|
|
2011
|
-
name: "
|
|
2012
|
-
endpoint: "wss://
|
|
1985
|
+
name: "OnFinality",
|
|
1986
|
+
endpoint: "wss://shiden.api.onfinality.io/public-ws"
|
|
2013
1987
|
},
|
|
2014
1988
|
{
|
|
2015
|
-
name: "
|
|
2016
|
-
endpoint: "wss://
|
|
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: "
|
|
2020
|
-
endpoint: "wss://
|
|
2000
|
+
name: "OnFinality",
|
|
2001
|
+
endpoint: "wss://zeitgeist.api.onfinality.io/public-ws"
|
|
2021
2002
|
}
|
|
2022
2003
|
]
|
|
2023
2004
|
};
|
|
@@ -2097,21 +2078,6 @@ var CoretimeWestend$1 = {
|
|
|
2097
2078
|
}
|
|
2098
2079
|
]
|
|
2099
2080
|
};
|
|
2100
|
-
var PeopleWestend$1 = {
|
|
2101
|
-
name: "People",
|
|
2102
|
-
info: "westendPeople",
|
|
2103
|
-
paraId: 1004,
|
|
2104
|
-
providers: [
|
|
2105
|
-
{
|
|
2106
|
-
name: "Dwellir",
|
|
2107
|
-
endpoint: "wss://people-westend-rpc.n.dwellir.com"
|
|
2108
|
-
},
|
|
2109
|
-
{
|
|
2110
|
-
name: "Parity",
|
|
2111
|
-
endpoint: "wss://westend-people-rpc.polkadot.io"
|
|
2112
|
-
}
|
|
2113
|
-
]
|
|
2114
|
-
};
|
|
2115
2081
|
var Penpal$1 = {
|
|
2116
2082
|
name: "Penpal",
|
|
2117
2083
|
info: "westendPenpal",
|
|
@@ -2123,98 +2089,18 @@ var Penpal$1 = {
|
|
|
2123
2089
|
}
|
|
2124
2090
|
]
|
|
2125
2091
|
};
|
|
2126
|
-
var
|
|
2127
|
-
name: "AssetHub",
|
|
2128
|
-
info: "PaseoAssetHub",
|
|
2129
|
-
paraId: 1000,
|
|
2130
|
-
providers: [
|
|
2131
|
-
{
|
|
2132
|
-
name: "Dwellir",
|
|
2133
|
-
endpoint: "wss://asset-hub-paseo-rpc.n.dwellir.com"
|
|
2134
|
-
},
|
|
2135
|
-
{
|
|
2136
|
-
name: "IBP1",
|
|
2137
|
-
endpoint: "wss://sys.ibp.network/asset-hub-paseo"
|
|
2138
|
-
},
|
|
2139
|
-
{
|
|
2140
|
-
name: "IBP2",
|
|
2141
|
-
endpoint: "wss://asset-hub-paseo.dotters.network"
|
|
2142
|
-
},
|
|
2143
|
-
{
|
|
2144
|
-
name: "StakeWorld",
|
|
2145
|
-
endpoint: "wss://pas-rpc.stakeworld.io/assethub"
|
|
2146
|
-
},
|
|
2147
|
-
{
|
|
2148
|
-
name: "TurboFlakes",
|
|
2149
|
-
endpoint: "wss://sys.turboflakes.io/asset-hub-paseo"
|
|
2150
|
-
}
|
|
2151
|
-
]
|
|
2152
|
-
};
|
|
2153
|
-
var BridgeHubPaseo$1 = {
|
|
2154
|
-
name: "BridgeHub",
|
|
2155
|
-
info: "PaseoBridgeHub",
|
|
2156
|
-
paraId: 1002,
|
|
2157
|
-
providers: [
|
|
2158
|
-
{
|
|
2159
|
-
name: "IBP1",
|
|
2160
|
-
endpoint: "wss://sys.ibp.network/bridgehub-paseo"
|
|
2161
|
-
},
|
|
2162
|
-
{
|
|
2163
|
-
name: "IBP2",
|
|
2164
|
-
endpoint: "wss://bridge-hub-paseo.dotters.network"
|
|
2165
|
-
}
|
|
2166
|
-
]
|
|
2167
|
-
};
|
|
2168
|
-
var CoretimePaseo$1 = {
|
|
2169
|
-
name: "Coretime",
|
|
2170
|
-
info: "PaseoCoretime",
|
|
2171
|
-
paraId: 1005,
|
|
2172
|
-
providers: [
|
|
2173
|
-
{
|
|
2174
|
-
name: "IBP1",
|
|
2175
|
-
endpoint: "wss://sys.ibp.network/coretime-paseo"
|
|
2176
|
-
},
|
|
2177
|
-
{
|
|
2178
|
-
name: "IBP2",
|
|
2179
|
-
endpoint: "wss://coretime-paseo.dotters.network"
|
|
2180
|
-
}
|
|
2181
|
-
]
|
|
2182
|
-
};
|
|
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 = {
|
|
2092
|
+
var PeopleWestend$1 = {
|
|
2203
2093
|
name: "People",
|
|
2204
|
-
info: "
|
|
2094
|
+
info: "westendPeople",
|
|
2205
2095
|
paraId: 1004,
|
|
2206
2096
|
providers: [
|
|
2207
2097
|
{
|
|
2208
|
-
name: "
|
|
2209
|
-
endpoint: "wss://people-
|
|
2210
|
-
},
|
|
2211
|
-
{
|
|
2212
|
-
name: "IBP1",
|
|
2213
|
-
endpoint: "wss://sys.ibp.network/people-paseo"
|
|
2098
|
+
name: "Dwellir",
|
|
2099
|
+
endpoint: "wss://people-westend-rpc.n.dwellir.com"
|
|
2214
2100
|
},
|
|
2215
2101
|
{
|
|
2216
|
-
name: "
|
|
2217
|
-
endpoint: "wss://people-
|
|
2102
|
+
name: "Parity",
|
|
2103
|
+
endpoint: "wss://westend-people-rpc.polkadot.io"
|
|
2218
2104
|
}
|
|
2219
2105
|
]
|
|
2220
2106
|
};
|
|
@@ -2229,6 +2115,33 @@ var AjunaPaseo$1 = {
|
|
|
2229
2115
|
}
|
|
2230
2116
|
]
|
|
2231
2117
|
};
|
|
2118
|
+
var AssetHubPaseo$1 = {
|
|
2119
|
+
name: "AssetHub",
|
|
2120
|
+
info: "PaseoAssetHub",
|
|
2121
|
+
paraId: 1000,
|
|
2122
|
+
providers: [
|
|
2123
|
+
{
|
|
2124
|
+
name: "Dwellir",
|
|
2125
|
+
endpoint: "wss://asset-hub-paseo-rpc.n.dwellir.com"
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
name: "IBP1",
|
|
2129
|
+
endpoint: "wss://sys.ibp.network/asset-hub-paseo"
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
name: "IBP2",
|
|
2133
|
+
endpoint: "wss://asset-hub-paseo.dotters.network"
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
name: "StakeWorld",
|
|
2137
|
+
endpoint: "wss://pas-rpc.stakeworld.io/assethub"
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
name: "TurboFlakes",
|
|
2141
|
+
endpoint: "wss://sys.turboflakes.io/asset-hub-paseo"
|
|
2142
|
+
}
|
|
2143
|
+
]
|
|
2144
|
+
};
|
|
2232
2145
|
var BifrostPaseo$1 = {
|
|
2233
2146
|
name: "Bifrost",
|
|
2234
2147
|
info: "Bifrost(Paseo)",
|
|
@@ -2240,6 +2153,36 @@ var BifrostPaseo$1 = {
|
|
|
2240
2153
|
}
|
|
2241
2154
|
]
|
|
2242
2155
|
};
|
|
2156
|
+
var BridgeHubPaseo$1 = {
|
|
2157
|
+
name: "BridgeHub",
|
|
2158
|
+
info: "PaseoBridgeHub",
|
|
2159
|
+
paraId: 1002,
|
|
2160
|
+
providers: [
|
|
2161
|
+
{
|
|
2162
|
+
name: "IBP1",
|
|
2163
|
+
endpoint: "wss://sys.ibp.network/bridgehub-paseo"
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
name: "IBP2",
|
|
2167
|
+
endpoint: "wss://bridge-hub-paseo.dotters.network"
|
|
2168
|
+
}
|
|
2169
|
+
]
|
|
2170
|
+
};
|
|
2171
|
+
var CoretimePaseo$1 = {
|
|
2172
|
+
name: "Coretime",
|
|
2173
|
+
info: "PaseoCoretime",
|
|
2174
|
+
paraId: 1005,
|
|
2175
|
+
providers: [
|
|
2176
|
+
{
|
|
2177
|
+
name: "IBP1",
|
|
2178
|
+
endpoint: "wss://sys.ibp.network/coretime-paseo"
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
name: "IBP2",
|
|
2182
|
+
endpoint: "wss://coretime-paseo.dotters.network"
|
|
2183
|
+
}
|
|
2184
|
+
]
|
|
2185
|
+
};
|
|
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-
|
|
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 !==
|
|
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
|
|
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) ?
|
|
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.
|
|
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.
|
|
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
|
|
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:
|
|
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:
|
|
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,27 +5607,24 @@ 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;
|
|
5604
5614
|
initialDestParaId = _yield$getOriginXcmFe.destParaId;
|
|
5605
5615
|
originWeight = _yield$getOriginXcmFe.weight;
|
|
5606
5616
|
sufficientOriginFee = _yield$getOriginXcmFe.sufficient;
|
|
5607
|
-
api.setDisconnectAllowed(true);
|
|
5608
|
-
_context2.n = 2;
|
|
5609
|
-
return api.disconnect();
|
|
5610
|
-
case 2:
|
|
5611
5617
|
if (!(originDryRunError || originFeeType === 'paymentInfo')) {
|
|
5612
|
-
_context2.n =
|
|
5618
|
+
_context2.n = 7;
|
|
5613
5619
|
break;
|
|
5614
5620
|
}
|
|
5615
5621
|
destApi = api.clone();
|
|
5616
|
-
_context2.p =
|
|
5617
|
-
_context2.n =
|
|
5622
|
+
_context2.p = 2;
|
|
5623
|
+
_context2.n = 3;
|
|
5618
5624
|
return destApi.init(destination, DRY_RUN_CLIENT_TIMEOUT_MS);
|
|
5619
|
-
case
|
|
5625
|
+
case 3:
|
|
5620
5626
|
destApi.setDisconnectAllowed(false);
|
|
5621
|
-
_context2.n =
|
|
5627
|
+
_context2.n = 4;
|
|
5622
5628
|
return getDestXcmFee({
|
|
5623
5629
|
api: destApi,
|
|
5624
5630
|
forwardedXcms: undefined,
|
|
@@ -5635,7 +5641,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5635
5641
|
senderAddress: senderAddress,
|
|
5636
5642
|
disableFallback: disableFallback
|
|
5637
5643
|
});
|
|
5638
|
-
case
|
|
5644
|
+
case 4:
|
|
5639
5645
|
destFeeRes = _context2.v;
|
|
5640
5646
|
_result = {
|
|
5641
5647
|
origin: _objectSpread2(_objectSpread2(_objectSpread2({}, originFee && {
|
|
@@ -5644,7 +5650,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5644
5650
|
feeType: originFeeType
|
|
5645
5651
|
}), {}, {
|
|
5646
5652
|
sufficient: sufficientOriginFee,
|
|
5647
|
-
currency: originCurrency
|
|
5653
|
+
currency: originCurrency,
|
|
5654
|
+
asset: originAsset
|
|
5648
5655
|
}, originDryRunError && {
|
|
5649
5656
|
dryRunError: originDryRunError
|
|
5650
5657
|
}),
|
|
@@ -5657,7 +5664,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5657
5664
|
}), destFeeRes.sufficient !== undefined && {
|
|
5658
5665
|
sufficient: destFeeRes.sufficient
|
|
5659
5666
|
}), {}, {
|
|
5660
|
-
currency: assets.getNativeAssetSymbol(destination)
|
|
5667
|
+
currency: assets.getNativeAssetSymbol(destination),
|
|
5668
|
+
asset: findNativeAssetInfo(destination)
|
|
5661
5669
|
}),
|
|
5662
5670
|
hops: []
|
|
5663
5671
|
};
|
|
@@ -5669,17 +5677,17 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5669
5677
|
failureChain: _failureChain,
|
|
5670
5678
|
failureReason: _failureReason
|
|
5671
5679
|
}));
|
|
5672
|
-
case
|
|
5673
|
-
_context2.p =
|
|
5680
|
+
case 5:
|
|
5681
|
+
_context2.p = 5;
|
|
5674
5682
|
destApi.setDisconnectAllowed(true);
|
|
5675
|
-
_context2.n =
|
|
5683
|
+
_context2.n = 6;
|
|
5676
5684
|
return destApi.disconnect();
|
|
5685
|
+
case 6:
|
|
5686
|
+
return _context2.f(5);
|
|
5677
5687
|
case 7:
|
|
5678
|
-
return _context2.f(6);
|
|
5679
|
-
case 8:
|
|
5680
5688
|
processHop = /*#__PURE__*/function () {
|
|
5681
5689
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
5682
|
-
var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, hopResult,
|
|
5690
|
+
var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, hopResult, hopAsset;
|
|
5683
5691
|
return _regenerator().w(function (_context) {
|
|
5684
5692
|
while (1) switch (_context.n) {
|
|
5685
5693
|
case 0:
|
|
@@ -5705,17 +5713,18 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5705
5713
|
hopResult = _context.v;
|
|
5706
5714
|
if (hopResult.feeType === 'dryRun' && !(destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub')))) {
|
|
5707
5715
|
if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
|
|
5708
|
-
|
|
5716
|
+
hopAsset = assets.findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo);
|
|
5709
5717
|
} else if (destination === currentChain) {
|
|
5710
|
-
|
|
5718
|
+
hopAsset = assets.findAssetOnDestOrThrow(origin, currentChain, currency);
|
|
5711
5719
|
} else {
|
|
5712
|
-
|
|
5720
|
+
hopAsset = asset;
|
|
5713
5721
|
}
|
|
5714
5722
|
} else {
|
|
5715
|
-
|
|
5723
|
+
hopAsset = findNativeAssetInfo(currentChain, destination);
|
|
5716
5724
|
}
|
|
5717
5725
|
return _context.a(2, _objectSpread2(_objectSpread2({}, hopResult), {}, {
|
|
5718
|
-
currency:
|
|
5726
|
+
currency: hopAsset.symbol,
|
|
5727
|
+
asset: hopAsset
|
|
5719
5728
|
}));
|
|
5720
5729
|
}
|
|
5721
5730
|
}, _callee);
|
|
@@ -5724,7 +5733,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5724
5733
|
return _ref3.apply(this, arguments);
|
|
5725
5734
|
};
|
|
5726
5735
|
}();
|
|
5727
|
-
_context2.n =
|
|
5736
|
+
_context2.n = 8;
|
|
5728
5737
|
return traverseXcmHops({
|
|
5729
5738
|
api: api,
|
|
5730
5739
|
origin: origin,
|
|
@@ -5744,14 +5753,14 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5744
5753
|
};
|
|
5745
5754
|
}
|
|
5746
5755
|
});
|
|
5747
|
-
case
|
|
5756
|
+
case 8:
|
|
5748
5757
|
traversalResult = _context2.v;
|
|
5749
5758
|
// Handle case where we failed before reaching destination
|
|
5750
5759
|
destFee = 0n;
|
|
5751
5760
|
destFeeType = destination === 'Ethereum' ? 'noFeeRequired' : 'paymentInfo';
|
|
5752
5761
|
destSufficient = undefined;
|
|
5753
5762
|
if (!traversalResult.destination) {
|
|
5754
|
-
_context2.n =
|
|
5763
|
+
_context2.n = 9;
|
|
5755
5764
|
break;
|
|
5756
5765
|
}
|
|
5757
5766
|
destResult = traversalResult.destination;
|
|
@@ -5760,23 +5769,24 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5760
5769
|
destDryRunError = destResult.dryRunError;
|
|
5761
5770
|
destSufficient = destResult.sufficient;
|
|
5762
5771
|
destCurrency = destResult.currency;
|
|
5763
|
-
|
|
5772
|
+
destAsset = destResult.asset;
|
|
5773
|
+
_context2.n = 13;
|
|
5764
5774
|
break;
|
|
5765
|
-
case
|
|
5775
|
+
case 9:
|
|
5766
5776
|
if (!(traversalResult.hops.length > 0 && traversalResult.hops[traversalResult.hops.length - 1].result.dryRunError)) {
|
|
5767
|
-
_context2.n =
|
|
5777
|
+
_context2.n = 12;
|
|
5768
5778
|
break;
|
|
5769
5779
|
}
|
|
5770
5780
|
// We failed before reaching destination, use fallback
|
|
5771
5781
|
_destApi = api.clone();
|
|
5772
5782
|
if (!(destination !== 'Ethereum')) {
|
|
5773
|
-
_context2.n =
|
|
5783
|
+
_context2.n = 10;
|
|
5774
5784
|
break;
|
|
5775
5785
|
}
|
|
5776
|
-
_context2.n =
|
|
5786
|
+
_context2.n = 10;
|
|
5777
5787
|
return _destApi.init(destination, DRY_RUN_CLIENT_TIMEOUT_MS);
|
|
5778
|
-
case
|
|
5779
|
-
_context2.n =
|
|
5788
|
+
case 10:
|
|
5789
|
+
_context2.n = 11;
|
|
5780
5790
|
return getDestXcmFee({
|
|
5781
5791
|
api: _destApi,
|
|
5782
5792
|
forwardedXcms: undefined,
|
|
@@ -5792,25 +5802,27 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5792
5802
|
senderAddress: senderAddress,
|
|
5793
5803
|
disableFallback: disableFallback
|
|
5794
5804
|
});
|
|
5795
|
-
case
|
|
5805
|
+
case 11:
|
|
5796
5806
|
destFallback = _context2.v;
|
|
5797
5807
|
destFee = destFallback.fee;
|
|
5798
5808
|
destFeeType = destFallback.feeType;
|
|
5799
5809
|
destSufficient = destFallback.sufficient;
|
|
5800
5810
|
destCurrency = assets.getNativeAssetSymbol(destination);
|
|
5801
|
-
|
|
5811
|
+
destAsset = findNativeAssetInfo(destination);
|
|
5812
|
+
_context2.n = 13;
|
|
5802
5813
|
break;
|
|
5803
|
-
case
|
|
5814
|
+
case 12:
|
|
5804
5815
|
destFee = 0n;
|
|
5805
5816
|
destFeeType = 'noFeeRequired';
|
|
5806
5817
|
destSufficient = true;
|
|
5807
5818
|
destCurrency = assets.getNativeAssetSymbol(destination);
|
|
5808
|
-
|
|
5819
|
+
destAsset = findNativeAssetInfo(destination);
|
|
5820
|
+
case 13:
|
|
5809
5821
|
// Process Ethereum bridge fees
|
|
5810
5822
|
assetHubChain = "AssetHub".concat(getRelayChainOf(origin));
|
|
5811
|
-
_context2.n =
|
|
5823
|
+
_context2.n = 14;
|
|
5812
5824
|
return addEthereumBridgeFees(api, traversalResult.bridgeHub, destination, assetHubChain);
|
|
5813
|
-
case
|
|
5825
|
+
case 14:
|
|
5814
5826
|
processedBridgeHub = _context2.v;
|
|
5815
5827
|
// Update bridge hub fee in hops if needed
|
|
5816
5828
|
if (processedBridgeHub && traversalResult.bridgeHub && processedBridgeHub.fee !== traversalResult.bridgeHub.fee) {
|
|
@@ -5832,7 +5844,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5832
5844
|
}), result.sufficient !== undefined && {
|
|
5833
5845
|
sufficient: result.sufficient
|
|
5834
5846
|
}), {}, {
|
|
5835
|
-
currency: result.currency
|
|
5847
|
+
currency: result.currency,
|
|
5848
|
+
asset: result.asset
|
|
5836
5849
|
}, result.dryRunError && {
|
|
5837
5850
|
dryRunError: result.dryRunError
|
|
5838
5851
|
});
|
|
@@ -5847,7 +5860,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5847
5860
|
}), sufficientOriginFee !== undefined && {
|
|
5848
5861
|
sufficient: sufficientOriginFee
|
|
5849
5862
|
}), {}, {
|
|
5850
|
-
currency: originCurrency
|
|
5863
|
+
currency: originCurrency,
|
|
5864
|
+
asset: originAsset
|
|
5851
5865
|
}, originDryRunError && {
|
|
5852
5866
|
dryRunError: originDryRunError
|
|
5853
5867
|
})
|
|
@@ -5862,7 +5876,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5862
5876
|
feeType: destFeeType
|
|
5863
5877
|
}), {}, {
|
|
5864
5878
|
sufficient: destSufficient,
|
|
5865
|
-
currency: destCurrency
|
|
5879
|
+
currency: destCurrency,
|
|
5880
|
+
asset: destAsset
|
|
5866
5881
|
}, destDryRunError && {
|
|
5867
5882
|
dryRunError: destDryRunError
|
|
5868
5883
|
}),
|
|
@@ -5884,7 +5899,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5884
5899
|
failureReason: failureReason
|
|
5885
5900
|
}));
|
|
5886
5901
|
}
|
|
5887
|
-
}, _callee2, null, [[
|
|
5902
|
+
}, _callee2, null, [[2,, 5, 7]]);
|
|
5888
5903
|
}));
|
|
5889
5904
|
return function getXcmFeeInternal(_x, _x2) {
|
|
5890
5905
|
return _ref2.apply(this, arguments);
|
|
@@ -5894,7 +5909,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
|
|
|
5894
5909
|
var getXcmFee = /*#__PURE__*/function () {
|
|
5895
5910
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
5896
5911
|
var _real$assetHub, _real$bridgeHub;
|
|
5897
|
-
var forced, real;
|
|
5912
|
+
var forced, real, api;
|
|
5898
5913
|
return _regenerator().w(function (_context) {
|
|
5899
5914
|
while (1) switch (_context.n) {
|
|
5900
5915
|
case 0:
|
|
@@ -5906,6 +5921,10 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
5906
5921
|
return getXcmFeeInternal(options, false);
|
|
5907
5922
|
case 2:
|
|
5908
5923
|
real = _context.v;
|
|
5924
|
+
api = options.api;
|
|
5925
|
+
_context.n = 3;
|
|
5926
|
+
return api.disconnect();
|
|
5927
|
+
case 3:
|
|
5909
5928
|
return _context.a(2, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, forced), {}, {
|
|
5910
5929
|
origin: _objectSpread2(_objectSpread2({}, forced.origin), {}, {
|
|
5911
5930
|
sufficient: real.origin.sufficient
|
|
@@ -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,
|
|
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
|
|
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
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
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,
|
|
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,
|
|
6348
|
+
api = options.api, destChain = options.destChain, assetInfo = options.assetInfo;
|
|
6332
6349
|
assertHasLocation(assetInfo);
|
|
6333
|
-
|
|
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 =
|
|
6358
|
+
_context.n = 2;
|
|
6337
6359
|
return destApi.init(destChain);
|
|
6338
|
-
case
|
|
6360
|
+
case 2:
|
|
6339
6361
|
reserveApi = reserveChain !== chain ? api.clone() : destApi;
|
|
6340
|
-
_context.n =
|
|
6362
|
+
_context.n = 3;
|
|
6341
6363
|
return reserveApi.init(reserveChain);
|
|
6342
|
-
case
|
|
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.
|
|
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
|
|
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,
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
7608
|
+
origin: originDryRun,
|
|
7578
7609
|
assetHub: assetHubWithCurrency,
|
|
7579
7610
|
bridgeHub: bridgeHubWithCurrency,
|
|
7580
|
-
destination:
|
|
7611
|
+
destination: traversalResult.destination,
|
|
7581
7612
|
hops: traversalResult.hops
|
|
7582
7613
|
});
|
|
7583
7614
|
}
|
|
@@ -8308,20 +8339,21 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8308
8339
|
key: "canUseXTokens",
|
|
8309
8340
|
value: function canUseXTokens(options) {
|
|
8310
8341
|
var asset = options.assetInfo;
|
|
8311
|
-
var
|
|
8312
|
-
return !
|
|
8342
|
+
var isExternalAsset = asset.location && asset.location.parents === sdkCommon.Parents.TWO;
|
|
8343
|
+
return !isExternalAsset && !this.shouldUseNativeAssetTeleport(options);
|
|
8313
8344
|
}
|
|
8314
8345
|
}, {
|
|
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, isLocalTransfer, isBifrostOrigin, isJamtonOrigin, isAssetHubDest, useMultiAssets, input, options, shouldUseTeleport, isAHPOrigin, isAHPDest,
|
|
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);
|
|
8356
|
+
destChain = resolveDestChain(this.chain, paraId);
|
|
8325
8357
|
if (!(destination === 'Polimec' && this.chain !== 'AssetHubPolkadot' && this.chain !== 'Hydration' && this.chain !== destination)) {
|
|
8326
8358
|
_context.n = 1;
|
|
8327
8359
|
break;
|
|
@@ -8335,10 +8367,22 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8335
8367
|
}
|
|
8336
8368
|
return _context.a(2, this.transferLocal(sendOptions));
|
|
8337
8369
|
case 2:
|
|
8338
|
-
|
|
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)) {
|
|
8339
8376
|
_context.n = 4;
|
|
8340
8377
|
break;
|
|
8341
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
|
+
}
|
|
8342
8386
|
isBifrostOrigin = this.chain === 'BifrostPolkadot' || this.chain === 'BifrostKusama';
|
|
8343
8387
|
isJamtonOrigin = this.chain === 'Jamton';
|
|
8344
8388
|
isAssetHubDest = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
|
|
@@ -8357,15 +8401,15 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8357
8401
|
method: method
|
|
8358
8402
|
};
|
|
8359
8403
|
if (!useMultiAssets) {
|
|
8360
|
-
_context.n =
|
|
8404
|
+
_context.n = 5;
|
|
8361
8405
|
break;
|
|
8362
8406
|
}
|
|
8363
8407
|
return _context.a(2, transferXTokens(input, undefined));
|
|
8364
|
-
case
|
|
8408
|
+
case 5:
|
|
8365
8409
|
return _context.a(2, this.transferXTokens(input));
|
|
8366
|
-
case
|
|
8410
|
+
case 6:
|
|
8367
8411
|
if (!supportsXTransfer(this)) {
|
|
8368
|
-
_context.n =
|
|
8412
|
+
_context.n = 7;
|
|
8369
8413
|
break;
|
|
8370
8414
|
}
|
|
8371
8415
|
return _context.a(2, this.transferXTransfer({
|
|
@@ -8379,9 +8423,9 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8379
8423
|
pallet: pallet,
|
|
8380
8424
|
method: method
|
|
8381
8425
|
}));
|
|
8382
|
-
case
|
|
8383
|
-
if (!supportsPolkadotXCM(this)) {
|
|
8384
|
-
_context.n =
|
|
8426
|
+
case 7:
|
|
8427
|
+
if (!(supportsPolkadotXCM(this) || useTypeAndThen)) {
|
|
8428
|
+
_context.n = 12;
|
|
8385
8429
|
break;
|
|
8386
8430
|
}
|
|
8387
8431
|
options = {
|
|
@@ -8401,6 +8445,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8401
8445
|
feeCurrency: feeCurrency,
|
|
8402
8446
|
scenario: scenario,
|
|
8403
8447
|
destination: destination,
|
|
8448
|
+
destChain: destChain,
|
|
8404
8449
|
paraIdTo: paraId,
|
|
8405
8450
|
version: version,
|
|
8406
8451
|
senderAddress: senderAddress,
|
|
@@ -8409,32 +8454,44 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8409
8454
|
method: method
|
|
8410
8455
|
};
|
|
8411
8456
|
shouldUseTeleport = this.shouldUseNativeAssetTeleport(sendOptions);
|
|
8412
|
-
|
|
8413
|
-
|
|
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);
|
|
8459
|
+
if (!((isAhToOtherPara || isOtherParaToAh) && shouldUseTeleport)) {
|
|
8460
|
+
_context.n = 8;
|
|
8414
8461
|
break;
|
|
8415
8462
|
}
|
|
8416
8463
|
throw new TransferToAhNotSupported('Native asset transfers to or from AssetHub are temporarily disabled');
|
|
8417
|
-
case
|
|
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:
|
|
8418
8471
|
isAHPOrigin = this.chain.includes('AssetHub');
|
|
8419
8472
|
isAHPDest = !sdkCommon.isTLocation(destination) && destination.includes('AssetHub'); // Handle common cases
|
|
8420
|
-
|
|
8421
|
-
isEthDest = destination === 'Ethereum'; //
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
if (!(
|
|
8425
|
-
_context.n =
|
|
8473
|
+
isExternalAsset = asset.location && asset.location.parents === sdkCommon.Parents.TWO;
|
|
8474
|
+
isEthDest = destination === 'Ethereum'; // External asset - Any origin to any dest via AH - DestinationReserve - multiple instructions
|
|
8475
|
+
isExternalAssetViaAh = isExternalAsset && !isAHPOrigin && !isAHPDest && !isEthDest && !feeAsset; // External asset - Any origin to AHP - DestinationReserve - one DepositAsset instruction
|
|
8476
|
+
isExternalAssetToAh = isExternalAsset && isAHPDest && !isAHPOrigin && !isEthDest && !feeAsset;
|
|
8477
|
+
if (!(isExternalAssetViaAh || isExternalAssetToAh || useTypeAndThen)) {
|
|
8478
|
+
_context.n = 11;
|
|
8426
8479
|
break;
|
|
8427
8480
|
}
|
|
8428
|
-
_context.n =
|
|
8481
|
+
_context.n = 10;
|
|
8429
8482
|
return createTypeAndThenCall(this.chain, options);
|
|
8430
|
-
case
|
|
8483
|
+
case 10:
|
|
8431
8484
|
call = _context.v;
|
|
8432
8485
|
return _context.a(2, api.callTxMethod(call));
|
|
8433
|
-
case
|
|
8486
|
+
case 11:
|
|
8487
|
+
if (!supportsPolkadotXCM(this)) {
|
|
8488
|
+
_context.n = 12;
|
|
8489
|
+
break;
|
|
8490
|
+
}
|
|
8434
8491
|
return _context.a(2, this.transferPolkadotXCM(options));
|
|
8435
|
-
case
|
|
8492
|
+
case 12:
|
|
8436
8493
|
throw new NoXCMSupportImplementedError(this._chain);
|
|
8437
|
-
case
|
|
8494
|
+
case 13:
|
|
8438
8495
|
return _context.a(2);
|
|
8439
8496
|
}
|
|
8440
8497
|
}, _callee, this);
|
|
@@ -8463,32 +8520,69 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8463
8520
|
key: "getRelayToParaOverrides",
|
|
8464
8521
|
value: function getRelayToParaOverrides() {
|
|
8465
8522
|
return {
|
|
8466
|
-
method: '
|
|
8523
|
+
method: 'transfer_assets_using_type_and_then',
|
|
8467
8524
|
includeFee: true
|
|
8468
8525
|
};
|
|
8469
8526
|
}
|
|
8470
8527
|
}, {
|
|
8471
8528
|
key: "transferRelayToPara",
|
|
8472
|
-
value: function
|
|
8473
|
-
var
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
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
|
+
}()
|
|
8487
8579
|
}, {
|
|
8488
8580
|
key: "createCurrencySpec",
|
|
8489
|
-
value: function createCurrencySpec(amount, scenario, version,
|
|
8581
|
+
value: function createCurrencySpec(amount, scenario, version, asset, _isOverridenAsset) {
|
|
8582
|
+
var isRelayAsset = sdkCommon.deepEqual(asset === null || asset === void 0 ? void 0 : asset.location, RELAY_LOCATION);
|
|
8583
|
+
var parents = scenario === 'ParaToRelay' || isRelayAsset && sdkCommon.isTrustedChain(this.chain) ? sdkCommon.Parents.ONE : sdkCommon.Parents.ZERO;
|
|
8490
8584
|
return createAsset(version, amount, {
|
|
8491
|
-
parents:
|
|
8585
|
+
parents: parents,
|
|
8492
8586
|
interior: 'Here'
|
|
8493
8587
|
});
|
|
8494
8588
|
}
|
|
@@ -8554,7 +8648,7 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8554
8648
|
}, {
|
|
8555
8649
|
key: "transferToEthereum",
|
|
8556
8650
|
value: function () {
|
|
8557
|
-
var _transferToEthereum = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function
|
|
8651
|
+
var _transferToEthereum = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(input) {
|
|
8558
8652
|
var _feeAsset$location;
|
|
8559
8653
|
var useOnlyDepositInstruction,
|
|
8560
8654
|
api,
|
|
@@ -8577,18 +8671,18 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8577
8671
|
customXcmOnDest,
|
|
8578
8672
|
messageId,
|
|
8579
8673
|
call,
|
|
8580
|
-
|
|
8581
|
-
return _regenerator().w(function (
|
|
8582
|
-
while (1) switch (
|
|
8674
|
+
_args3 = arguments;
|
|
8675
|
+
return _regenerator().w(function (_context3) {
|
|
8676
|
+
while (1) switch (_context3.n) {
|
|
8583
8677
|
case 0:
|
|
8584
|
-
useOnlyDepositInstruction =
|
|
8678
|
+
useOnlyDepositInstruction = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : false;
|
|
8585
8679
|
api = input.api, asset = input.assetInfo, version = input.version, destination = input.destination, address = input.address, senderAddress = input.senderAddress, feeAsset = input.feeAssetInfo;
|
|
8586
|
-
|
|
8680
|
+
_context3.n = 1;
|
|
8587
8681
|
return getBridgeStatus(api.clone());
|
|
8588
8682
|
case 1:
|
|
8589
|
-
bridgeStatus =
|
|
8683
|
+
bridgeStatus = _context3.v;
|
|
8590
8684
|
if (!(bridgeStatus !== 'Normal')) {
|
|
8591
|
-
|
|
8685
|
+
_context3.n = 2;
|
|
8592
8686
|
break;
|
|
8593
8687
|
}
|
|
8594
8688
|
throw new BridgeHaltedError();
|
|
@@ -8596,20 +8690,20 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8596
8690
|
assertHasLocation(asset);
|
|
8597
8691
|
assertAddressIsString(address);
|
|
8598
8692
|
if (!(senderAddress === undefined)) {
|
|
8599
|
-
|
|
8693
|
+
_context3.n = 3;
|
|
8600
8694
|
break;
|
|
8601
8695
|
}
|
|
8602
8696
|
throw new InvalidParameterError('Sender address is required for transfers to Ethereum');
|
|
8603
8697
|
case 3:
|
|
8604
8698
|
ethAsset = createAsset(version, asset.amount, asset.location);
|
|
8605
|
-
|
|
8699
|
+
_context3.n = 4;
|
|
8606
8700
|
return api.createApiForChain('AssetHubPolkadot');
|
|
8607
8701
|
case 4:
|
|
8608
|
-
ahApi =
|
|
8609
|
-
|
|
8702
|
+
ahApi = _context3.v;
|
|
8703
|
+
_context3.n = 5;
|
|
8610
8704
|
return getParaEthTransferFees(ahApi);
|
|
8611
8705
|
case 5:
|
|
8612
|
-
_yield$getParaEthTran =
|
|
8706
|
+
_yield$getParaEthTran = _context3.v;
|
|
8613
8707
|
_yield$getParaEthTran2 = _slicedToArray(_yield$getParaEthTran, 2);
|
|
8614
8708
|
bridgeFee = _yield$getParaEthTran2[0];
|
|
8615
8709
|
executionFee = _yield$getParaEthTran2[1];
|
|
@@ -8617,13 +8711,13 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8617
8711
|
fee = useOnlyDepositInstruction ? PARA_TO_PARA_FEE_DOT : bridgeFee + executionFee;
|
|
8618
8712
|
ethAssetInfo = assets.findAssetInfoByLoc(assets.getOtherAssets('Ethereum'), asset.location);
|
|
8619
8713
|
if (ethAssetInfo) {
|
|
8620
|
-
|
|
8714
|
+
_context3.n = 6;
|
|
8621
8715
|
break;
|
|
8622
8716
|
}
|
|
8623
8717
|
throw new assets.InvalidCurrencyError("Could not obtain Ethereum asset address for ".concat(JSON.stringify(asset, sdkCommon.replaceBigInt)));
|
|
8624
8718
|
case 6:
|
|
8625
8719
|
if (!useOnlyDepositInstruction) {
|
|
8626
|
-
|
|
8720
|
+
_context3.n = 7;
|
|
8627
8721
|
break;
|
|
8628
8722
|
}
|
|
8629
8723
|
customXcmOnDest = addXcmVersionHeader([{
|
|
@@ -8640,14 +8734,14 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8640
8734
|
})
|
|
8641
8735
|
}
|
|
8642
8736
|
}], version);
|
|
8643
|
-
|
|
8737
|
+
_context3.n = 9;
|
|
8644
8738
|
break;
|
|
8645
8739
|
case 7:
|
|
8646
8740
|
assertHasId(ethAssetInfo);
|
|
8647
|
-
|
|
8741
|
+
_context3.n = 8;
|
|
8648
8742
|
return generateMessageId(api, senderAddress, getParaId(this.chain), ethAssetInfo.assetId, address, asset.amount);
|
|
8649
8743
|
case 8:
|
|
8650
|
-
messageId =
|
|
8744
|
+
messageId = _context3.v;
|
|
8651
8745
|
customXcmOnDest = createCustomXcmOnDest(input, this.chain, messageId);
|
|
8652
8746
|
case 9:
|
|
8653
8747
|
call = {
|
|
@@ -8663,11 +8757,11 @@ var Parachain = /*#__PURE__*/function () {
|
|
|
8663
8757
|
weight_limit: 'Unlimited'
|
|
8664
8758
|
}
|
|
8665
8759
|
};
|
|
8666
|
-
return
|
|
8760
|
+
return _context3.a(2, api.callTxMethod(call));
|
|
8667
8761
|
}
|
|
8668
|
-
},
|
|
8762
|
+
}, _callee3, this);
|
|
8669
8763
|
}));
|
|
8670
|
-
function transferToEthereum(
|
|
8764
|
+
function transferToEthereum(_x3) {
|
|
8671
8765
|
return _transferToEthereum.apply(this, arguments);
|
|
8672
8766
|
}
|
|
8673
8767
|
return transferToEthereum;
|
|
@@ -8818,14 +8912,62 @@ var Ajuna = /*#__PURE__*/function (_Parachain) {
|
|
|
8818
8912
|
}]);
|
|
8819
8913
|
}(Parachain);
|
|
8820
8914
|
|
|
8821
|
-
var
|
|
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) {
|
|
8822
8946
|
function AjunaPaseo() {
|
|
8823
8947
|
_classCallCheck(this, AjunaPaseo);
|
|
8824
8948
|
return _callSuper(this, AjunaPaseo, ['AjunaPaseo', 'Ajuna(paseo)', 'Paseo', sdkCommon.Version.V4]);
|
|
8825
8949
|
}
|
|
8826
|
-
_inherits(AjunaPaseo,
|
|
8827
|
-
return _createClass(AjunaPaseo
|
|
8828
|
-
|
|
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);
|
|
8829
8971
|
|
|
8830
8972
|
var Altair = /*#__PURE__*/function (_Parachain) {
|
|
8831
8973
|
function Altair() {
|
|
@@ -8890,36 +9032,6 @@ var Amplitude = /*#__PURE__*/function (_Parachain) {
|
|
|
8890
9032
|
}]);
|
|
8891
9033
|
}(Parachain);
|
|
8892
9034
|
|
|
8893
|
-
var transferPolkadotXcm = function transferPolkadotXcm(_ref, method) {
|
|
8894
|
-
var api = _ref.api,
|
|
8895
|
-
destLocation = _ref.destLocation,
|
|
8896
|
-
asset = _ref.assetInfo,
|
|
8897
|
-
beneficiaryLocation = _ref.beneficiaryLocation,
|
|
8898
|
-
multiAsset = _ref.asset,
|
|
8899
|
-
overriddenAsset = _ref.overriddenAsset,
|
|
8900
|
-
pallet = _ref.pallet,
|
|
8901
|
-
version = _ref.version,
|
|
8902
|
-
methodOverride = _ref.method;
|
|
8903
|
-
var fees = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
8904
|
-
var resolvedMultiAssets = maybeOverrideAssets(version, asset.amount, [multiAsset], overriddenAsset);
|
|
8905
|
-
var feeAssetIndex = overriddenAsset === undefined || sdkCommon.isTLocation(overriddenAsset) ? DEFAULT_FEE_ASSET : overriddenAsset.findIndex(function (asset) {
|
|
8906
|
-
return asset.isFeeAsset;
|
|
8907
|
-
});
|
|
8908
|
-
var call = {
|
|
8909
|
-
module: pallet !== null && pallet !== void 0 ? pallet : 'PolkadotXcm',
|
|
8910
|
-
method: methodOverride !== null && methodOverride !== void 0 ? methodOverride : method,
|
|
8911
|
-
parameters: _objectSpread2({
|
|
8912
|
-
dest: addXcmVersionHeader(destLocation, version),
|
|
8913
|
-
beneficiary: addXcmVersionHeader(beneficiaryLocation, version),
|
|
8914
|
-
assets: addXcmVersionHeader(resolvedMultiAssets, version),
|
|
8915
|
-
fee_asset_item: feeAssetIndex
|
|
8916
|
-
}, fees !== undefined ? {
|
|
8917
|
-
weight_limit: fees
|
|
8918
|
-
} : {})
|
|
8919
|
-
};
|
|
8920
|
-
return Promise.resolve(api.callTxMethod(call));
|
|
8921
|
-
};
|
|
8922
|
-
|
|
8923
9035
|
var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
8924
9036
|
function AssetHubKusama() {
|
|
8925
9037
|
_classCallCheck(this, AssetHubKusama);
|
|
@@ -8937,7 +9049,7 @@ var AssetHubKusama = /*#__PURE__*/function (_Parachain) {
|
|
|
8937
9049
|
if (destination === 'AssetHubPolkadot') {
|
|
8938
9050
|
return getChain('AssetHubPolkadot').handleBridgeTransfer(input, 'Polkadot');
|
|
8939
9051
|
}
|
|
8940
|
-
var isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.
|
|
9052
|
+
var isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isTrustedChain(destination);
|
|
8941
9053
|
if (scenario === 'ParaToPara' && asset.symbol === 'KSM' && !assets.isForeignAsset(asset) && !isTrusted) {
|
|
8942
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.');
|
|
8943
9055
|
}
|
|
@@ -9173,7 +9285,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9173
9285
|
}, {
|
|
9174
9286
|
key: "getMethod",
|
|
9175
9287
|
value: function getMethod(scenario, destination) {
|
|
9176
|
-
var isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.
|
|
9288
|
+
var isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isTrustedChain(destination);
|
|
9177
9289
|
if (destination === 'Polimec' || destination === 'Moonbeam') return 'transfer_assets';
|
|
9178
9290
|
return scenario === 'ParaToPara' && !isTrusted ? 'limited_reserve_transfer_assets' : 'limited_teleport_assets';
|
|
9179
9291
|
}
|
|
@@ -9181,7 +9293,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9181
9293
|
key: "transferPolkadotXCM",
|
|
9182
9294
|
value: function () {
|
|
9183
9295
|
var _transferPolkadotXCM = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(options) {
|
|
9184
|
-
var api, scenario, assetInfo, destination, feeAssetInfo, overriddenAsset, call, isNativeAsset, isNativeFeeAsset,
|
|
9296
|
+
var api, scenario, assetInfo, destination, feeAssetInfo, overriddenAsset, call, isNativeAsset, isNativeFeeAsset, isExternalAsset, _call, CHAINS_SUPPORT_DOT_TRANSFER, isTrusted, isDotReserveAh, method, modifiedInput, _t, _t2;
|
|
9185
9297
|
return _regenerator().w(function (_context3) {
|
|
9186
9298
|
while (1) switch (_context3.n) {
|
|
9187
9299
|
case 0:
|
|
@@ -9236,8 +9348,8 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9236
9348
|
}
|
|
9237
9349
|
return _context3.a(2, this.handleMythosTransfer(options));
|
|
9238
9350
|
case 8:
|
|
9239
|
-
|
|
9240
|
-
if (!
|
|
9351
|
+
isExternalAsset = assetInfo.location && assetInfo.location.parents === sdkCommon.Parents.TWO;
|
|
9352
|
+
if (!isExternalAsset) {
|
|
9241
9353
|
_context3.n = 10;
|
|
9242
9354
|
break;
|
|
9243
9355
|
}
|
|
@@ -9248,7 +9360,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9248
9360
|
return _context3.a(2, api.callTxMethod(_call));
|
|
9249
9361
|
case 10:
|
|
9250
9362
|
CHAINS_SUPPORT_DOT_TRANSFER = new Set(['Hydration', 'Polimec', 'Moonbeam', 'BifrostPolkadot', 'PeoplePolkadot', 'Ajuna']);
|
|
9251
|
-
isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.
|
|
9363
|
+
isTrusted = !sdkCommon.isTLocation(destination) && sdkCommon.isTrustedChain(destination);
|
|
9252
9364
|
isDotReserveAh = !sdkCommon.isTLocation(destination) && CHAINS_SUPPORT_DOT_TRANSFER.has(destination);
|
|
9253
9365
|
if (!(scenario === 'ParaToPara' && assetInfo.symbol === this.getNativeAssetSymbol() && !assets.isForeignAsset(assetInfo) && !isDotReserveAh && !isTrusted)) {
|
|
9254
9366
|
_context3.n = 11;
|
|
@@ -9625,19 +9737,11 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9625
9737
|
key: "transferPolkadotXCM",
|
|
9626
9738
|
value: function transferPolkadotXCM(input) {
|
|
9627
9739
|
var scenario = input.scenario,
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
interior: {
|
|
9632
|
-
Here: null
|
|
9633
|
-
}
|
|
9634
|
-
};
|
|
9635
|
-
input.overriddenAsset = newOverridenAsset;
|
|
9636
|
-
if (scenario === 'ParaToPara' && destination !== 'AssetHubPolkadot' && destination !== 'AssetHubKusama' && destination !== 'AssetHubPaseo' && destination !== 'AssetHubWestend') {
|
|
9637
|
-
throw new ScenarioNotSupportedError(this.chain, scenario, 'Unable to use bridge hub for transfers to other Parachains.');
|
|
9740
|
+
destChain = input.destChain;
|
|
9741
|
+
if (scenario === 'ParaToPara' && !(destChain !== null && destChain !== void 0 && destChain.startsWith('AssetHub'))) {
|
|
9742
|
+
throw new ScenarioNotSupportedError(this.chain, scenario, "Unable to use ".concat(this.chain, " for transfers to other Parachains."));
|
|
9638
9743
|
}
|
|
9639
|
-
|
|
9640
|
-
return transferPolkadotXcm(input, method, 'Unlimited');
|
|
9744
|
+
return transferPolkadotXcm(input, 'limited_teleport_assets', 'Unlimited');
|
|
9641
9745
|
}
|
|
9642
9746
|
}, {
|
|
9643
9747
|
key: "getRelayToParaOverrides",
|
|
@@ -9726,16 +9830,9 @@ var Collectives = /*#__PURE__*/function (_Parachain) {
|
|
|
9726
9830
|
key: "transferPolkadotXCM",
|
|
9727
9831
|
value: function transferPolkadotXCM(input) {
|
|
9728
9832
|
var scenario = input.scenario,
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
interior: {
|
|
9733
|
-
Here: null
|
|
9734
|
-
}
|
|
9735
|
-
};
|
|
9736
|
-
input.overriddenAsset = newOverridenAsset;
|
|
9737
|
-
if (scenario === 'ParaToPara' && destination !== 'AssetHubPolkadot' && destination !== 'AssetHubKusama' && destination !== 'AssetHubPaseo' && destination !== 'AssetHubWestend') {
|
|
9738
|
-
throw new ScenarioNotSupportedError(this.chain, scenario);
|
|
9833
|
+
destChain = input.destChain;
|
|
9834
|
+
if (scenario === 'ParaToPara' && !(destChain !== null && destChain !== void 0 && destChain.startsWith('AssetHub'))) {
|
|
9835
|
+
throw new ScenarioNotSupportedError(this.chain, scenario, "Unable to use ".concat(this.chain, " for transfers to other Parachains."));
|
|
9739
9836
|
}
|
|
9740
9837
|
return transferPolkadotXcm(input, 'limited_teleport_assets', 'Unlimited');
|
|
9741
9838
|
}
|
|
@@ -9814,13 +9911,6 @@ var CoretimePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
9814
9911
|
key: "transferPolkadotXCM",
|
|
9815
9912
|
value: function transferPolkadotXCM(input) {
|
|
9816
9913
|
var scenario = input.scenario;
|
|
9817
|
-
var newOverridenAsset = {
|
|
9818
|
-
parents: 1,
|
|
9819
|
-
interior: {
|
|
9820
|
-
Here: null
|
|
9821
|
-
}
|
|
9822
|
-
};
|
|
9823
|
-
input.overriddenAsset = newOverridenAsset;
|
|
9824
9914
|
if (scenario === 'ParaToPara') {
|
|
9825
9915
|
throw new ScenarioNotSupportedError(this.chain, scenario);
|
|
9826
9916
|
}
|
|
@@ -10293,7 +10383,7 @@ var Polimec = /*#__PURE__*/function (_Parachain) {
|
|
|
10293
10383
|
var call = createTypeAndThenTransfer$1(_objectSpread2(_objectSpread2({}, options), {}, {
|
|
10294
10384
|
scenario: 'RelayToPara'
|
|
10295
10385
|
}), version, 'Teleport');
|
|
10296
|
-
return call;
|
|
10386
|
+
return Promise.resolve(call);
|
|
10297
10387
|
}
|
|
10298
10388
|
}, {
|
|
10299
10389
|
key: "transferLocalNonNativeAsset",
|
|
@@ -10936,14 +11026,6 @@ var Moonbeam = /*#__PURE__*/function (_Parachain) {
|
|
|
10936
11026
|
}
|
|
10937
11027
|
return transferPolkadotXCM;
|
|
10938
11028
|
}()
|
|
10939
|
-
}, {
|
|
10940
|
-
key: "getRelayToParaOverrides",
|
|
10941
|
-
value: function getRelayToParaOverrides() {
|
|
10942
|
-
return {
|
|
10943
|
-
method: 'limited_reserve_transfer_assets',
|
|
10944
|
-
includeFee: true
|
|
10945
|
-
};
|
|
10946
|
-
}
|
|
10947
11029
|
}, {
|
|
10948
11030
|
key: "transferLocalNonNativeAsset",
|
|
10949
11031
|
value: function transferLocalNonNativeAsset(options) {
|
|
@@ -10996,14 +11078,6 @@ var Moonriver = /*#__PURE__*/function (_Parachain) {
|
|
|
10996
11078
|
asset: createAsset(version, assetInfo.amount, location)
|
|
10997
11079
|
}), 'transfer_assets', 'Unlimited');
|
|
10998
11080
|
}
|
|
10999
|
-
}, {
|
|
11000
|
-
key: "getRelayToParaOverrides",
|
|
11001
|
-
value: function getRelayToParaOverrides() {
|
|
11002
|
-
return {
|
|
11003
|
-
method: 'limited_reserve_transfer_assets',
|
|
11004
|
-
includeFee: true
|
|
11005
|
-
};
|
|
11006
|
-
}
|
|
11007
11081
|
}, {
|
|
11008
11082
|
key: "transferLocalNonNativeAsset",
|
|
11009
11083
|
value: function transferLocalNonNativeAsset(options) {
|
|
@@ -11233,17 +11307,10 @@ var PeoplePolkadot = /*#__PURE__*/function (_Parachain) {
|
|
|
11233
11307
|
key: "transferPolkadotXCM",
|
|
11234
11308
|
value: function transferPolkadotXCM(input) {
|
|
11235
11309
|
var scenario = input.scenario,
|
|
11236
|
-
|
|
11237
|
-
if (scenario === 'ParaToPara' &&
|
|
11238
|
-
throw new ScenarioNotSupportedError(this.chain, scenario);
|
|
11310
|
+
destChain = input.destChain;
|
|
11311
|
+
if (scenario === 'ParaToPara' && !(destChain !== null && destChain !== void 0 && destChain.startsWith('AssetHub'))) {
|
|
11312
|
+
throw new ScenarioNotSupportedError(this.chain, scenario, "Unable to use ".concat(this.chain, " for transfers to other Parachains."));
|
|
11239
11313
|
}
|
|
11240
|
-
var newOverridenAsset = {
|
|
11241
|
-
parents: 1,
|
|
11242
|
-
interior: {
|
|
11243
|
-
Here: null
|
|
11244
|
-
}
|
|
11245
|
-
};
|
|
11246
|
-
input.overriddenAsset = newOverridenAsset;
|
|
11247
11314
|
return transferPolkadotXcm(input, 'limited_teleport_assets', 'Unlimited');
|
|
11248
11315
|
}
|
|
11249
11316
|
}, {
|
|
@@ -11802,7 +11869,7 @@ var RELAY_LOCATION = {
|
|
|
11802
11869
|
Here: null
|
|
11803
11870
|
}
|
|
11804
11871
|
};
|
|
11805
|
-
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']);
|
|
11806
11873
|
var ASSET_HUB_EXECUTION_FEE = 2200000000n; // 0.22 DOT
|
|
11807
11874
|
var TX_CLIENT_TIMEOUT_MS = 20 * 60 * 1000; // 20 minutes
|
|
11808
11875
|
var DRY_RUN_CLIENT_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
|
|
@@ -12757,6 +12824,7 @@ exports.maybeOverrideAsset = maybeOverrideAsset;
|
|
|
12757
12824
|
exports.maybeOverrideAssets = maybeOverrideAssets;
|
|
12758
12825
|
exports.padFee = padFee;
|
|
12759
12826
|
exports.padFeeBy = padFeeBy;
|
|
12827
|
+
exports.resolveDestChain = resolveDestChain;
|
|
12760
12828
|
exports.resolveModuleError = resolveModuleError;
|
|
12761
12829
|
exports.resolveParaId = resolveParaId;
|
|
12762
12830
|
exports.reverseTransformLocation = reverseTransformLocation;
|