@paraspell/sdk-core 10.9.0 → 10.10.1
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 +795 -92
- package/dist/index.d.ts +131 -31
- package/dist/index.mjs +795 -93
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _paraspell_sdk_common from '@paraspell/sdk-common';
|
|
2
|
-
import { TMultiLocation, TNodeDotKsmWithRelayChains, TNodeWithRelayChains, Version, TNodePolkadotKusama, TNode, TJunction, TEcosystemType, TJunctions } from '@paraspell/sdk-common';
|
|
2
|
+
import { TMultiLocation, TNodeDotKsmWithRelayChains, TNodeWithRelayChains, Version, TRelayChain, TNodePolkadotKusama, TNode, TJunction, TEcosystemType, TJunctions } from '@paraspell/sdk-common';
|
|
3
3
|
export * from '@paraspell/sdk-common';
|
|
4
4
|
import * as _paraspell_assets from '@paraspell/assets';
|
|
5
5
|
import { TCurrencyInputWithAmount, TCurrencyInput, WithAmount, TAsset, TMultiAsset, TMultiAssetWithFee, TCurrencyCore, TAmount, TAssetWithLocation } from '@paraspell/assets';
|
|
@@ -13,8 +13,6 @@ type WithApi<TBase, TApi, TRes> = TBase & {
|
|
|
13
13
|
};
|
|
14
14
|
type TApiOrUrl<TApi> = TApi | string | string[];
|
|
15
15
|
|
|
16
|
-
type TRelaychain = 'Polkadot' | 'Kusama';
|
|
17
|
-
|
|
18
16
|
type TPolkadotXCMTransferOptions<TApi, TRes> = {
|
|
19
17
|
api: IPolkadotApi<TApi, TRes>;
|
|
20
18
|
destLocation: TMultiLocation;
|
|
@@ -142,7 +140,7 @@ type TRelayToParaBaseOptions = {
|
|
|
142
140
|
/**
|
|
143
141
|
* The origin node
|
|
144
142
|
*/
|
|
145
|
-
origin:
|
|
143
|
+
origin: TRelayChain;
|
|
146
144
|
/**
|
|
147
145
|
* The destination node or multi-location
|
|
148
146
|
*/
|
|
@@ -1307,7 +1305,7 @@ declare class Acala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXT
|
|
|
1307
1305
|
}
|
|
1308
1306
|
|
|
1309
1307
|
declare class Ajuna<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
1310
|
-
constructor();
|
|
1308
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1311
1309
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1312
1310
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1313
1311
|
protected canUseXTokens({ asset, to: destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
@@ -1315,6 +1313,10 @@ declare class Ajuna<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXT
|
|
|
1315
1313
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1316
1314
|
}
|
|
1317
1315
|
|
|
1316
|
+
declare class AjunaPaseo<TApi, TRes> extends Ajuna<TApi, TRes> {
|
|
1317
|
+
constructor();
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1318
1320
|
declare class Altair<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1319
1321
|
constructor();
|
|
1320
1322
|
private getCurrencySelection;
|
|
@@ -1336,7 +1338,7 @@ declare class AssetHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> imple
|
|
|
1336
1338
|
}
|
|
1337
1339
|
|
|
1338
1340
|
declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1339
|
-
constructor();
|
|
1341
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1340
1342
|
handleBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>, targetChain: 'Polkadot' | 'Kusama'): Promise<TRes>;
|
|
1341
1343
|
handleEthBridgeNativeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1342
1344
|
handleEthBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1350,6 +1352,14 @@ declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> imp
|
|
|
1350
1352
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1351
1353
|
}
|
|
1352
1354
|
|
|
1355
|
+
declare class AssetHubPaseo<TApi, TRes> extends AssetHubPolkadot<TApi, TRes> {
|
|
1356
|
+
constructor();
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
declare class AssetHubWestend<TApi, TRes> extends AssetHubPolkadot<TApi, TRes> {
|
|
1360
|
+
constructor();
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1353
1363
|
declare class Astar<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer, IXTokensTransfer {
|
|
1354
1364
|
constructor();
|
|
1355
1365
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1372,7 +1382,7 @@ declare class BifrostKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implem
|
|
|
1372
1382
|
}
|
|
1373
1383
|
|
|
1374
1384
|
declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
1375
|
-
constructor();
|
|
1385
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1376
1386
|
getCurrencySelection(asset: TAsset): {
|
|
1377
1387
|
Native: string;
|
|
1378
1388
|
VToken?: undefined;
|
|
@@ -1423,6 +1433,10 @@ declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> impl
|
|
|
1423
1433
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1424
1434
|
}
|
|
1425
1435
|
|
|
1436
|
+
declare class BifrostPaseo<TApi, TRes> extends BifrostPolkadot<TApi, TRes> {
|
|
1437
|
+
constructor();
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1426
1440
|
declare class BridgeHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1427
1441
|
constructor();
|
|
1428
1442
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1430,11 +1444,19 @@ declare class BridgeHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> impl
|
|
|
1430
1444
|
}
|
|
1431
1445
|
|
|
1432
1446
|
declare class BridgeHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1433
|
-
constructor();
|
|
1447
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1434
1448
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1435
1449
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1436
1450
|
}
|
|
1437
1451
|
|
|
1452
|
+
declare class BridgeHubPaseo<TApi, TRes> extends BridgeHubPolkadot<TApi, TRes> {
|
|
1453
|
+
constructor();
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
declare class BridgeHubWestend<TApi, TRes> extends BridgeHubPolkadot<TApi, TRes> {
|
|
1457
|
+
constructor();
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1438
1460
|
declare class Centrifuge<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1439
1461
|
constructor();
|
|
1440
1462
|
private getCurrencySelection;
|
|
@@ -1443,11 +1465,15 @@ declare class Centrifuge<TApi, TRes> extends ParachainNode<TApi, TRes> implement
|
|
|
1443
1465
|
}
|
|
1444
1466
|
|
|
1445
1467
|
declare class Collectives<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1446
|
-
constructor();
|
|
1468
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1447
1469
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1448
1470
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1449
1471
|
}
|
|
1450
1472
|
|
|
1473
|
+
declare class CollectivesWestend<TApi, TRes> extends Collectives<TApi, TRes> {
|
|
1474
|
+
constructor();
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1451
1477
|
declare class ComposableFinance<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1452
1478
|
constructor();
|
|
1453
1479
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1460,11 +1486,19 @@ declare class CoretimeKusama<TApi, TRes> extends ParachainNode<TApi, TRes> imple
|
|
|
1460
1486
|
}
|
|
1461
1487
|
|
|
1462
1488
|
declare class CoretimePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1463
|
-
constructor();
|
|
1489
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1464
1490
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1465
1491
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1466
1492
|
}
|
|
1467
1493
|
|
|
1494
|
+
declare class CoretimePaseo<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
|
|
1495
|
+
constructor();
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
declare class CoretimeWestend<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
|
|
1499
|
+
constructor();
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1468
1502
|
declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1469
1503
|
constructor();
|
|
1470
1504
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1506,13 +1540,17 @@ declare class Encointer<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1506
1540
|
}
|
|
1507
1541
|
|
|
1508
1542
|
declare class Heima<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1509
|
-
constructor();
|
|
1543
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1510
1544
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1511
1545
|
}
|
|
1512
1546
|
|
|
1547
|
+
declare class HeimaPaseo<TApi, TRes> extends Heima<TApi, TRes> {
|
|
1548
|
+
constructor();
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1513
1551
|
declare class Hydration<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
1514
1552
|
private static NATIVE_ASSET_ID;
|
|
1515
|
-
constructor();
|
|
1553
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1516
1554
|
transferToAssetHub<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
1517
1555
|
transferToPolimec<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1518
1556
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1522,6 +1560,10 @@ declare class Hydration<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1522
1560
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1523
1561
|
}
|
|
1524
1562
|
|
|
1563
|
+
declare class HydrationPaseo<TApi, TRes> extends Hydration<TApi, TRes> {
|
|
1564
|
+
constructor();
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1525
1567
|
declare class Interlay<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1526
1568
|
constructor();
|
|
1527
1569
|
getCurrencySelection(asset: TAsset): TForeignOrTokenAsset;
|
|
@@ -1544,11 +1586,15 @@ declare class Karura<TApi, TRes> extends ParachainNode<TApi, TRes> implements IX
|
|
|
1544
1586
|
}
|
|
1545
1587
|
|
|
1546
1588
|
declare class KiltSpiritnet<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1547
|
-
constructor();
|
|
1589
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1548
1590
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1549
1591
|
transferRelayToPara(): TSerializedApiCall;
|
|
1550
1592
|
}
|
|
1551
1593
|
|
|
1594
|
+
declare class KiltPaseo<TApi, TRes> extends KiltSpiritnet<TApi, TRes> {
|
|
1595
|
+
constructor();
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1552
1598
|
declare class Kintsugi<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1553
1599
|
constructor();
|
|
1554
1600
|
getCurrencySelection(asset: TAsset): TForeignOrTokenAsset;
|
|
@@ -1558,11 +1604,15 @@ declare class Kintsugi<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1558
1604
|
}
|
|
1559
1605
|
|
|
1560
1606
|
declare class Laos<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1561
|
-
constructor();
|
|
1607
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1562
1608
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1563
1609
|
transferRelayToPara(): TSerializedApiCall;
|
|
1564
1610
|
}
|
|
1565
1611
|
|
|
1612
|
+
declare class LaosPaseo<TApi, TRes> extends Laos<TApi, TRes> {
|
|
1613
|
+
constructor();
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1566
1616
|
declare class Manta<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1567
1617
|
static readonly NATIVE_ASSET_ID = 1n;
|
|
1568
1618
|
constructor();
|
|
@@ -1572,7 +1622,7 @@ declare class Manta<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXT
|
|
|
1572
1622
|
}
|
|
1573
1623
|
|
|
1574
1624
|
declare class Moonbeam<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1575
|
-
constructor();
|
|
1625
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1576
1626
|
private getMultiLocation;
|
|
1577
1627
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1578
1628
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
@@ -1595,16 +1645,34 @@ declare class Mythos<TApi, TRes> extends ParachainNode<TApi, TRes> implements IP
|
|
|
1595
1645
|
}
|
|
1596
1646
|
|
|
1597
1647
|
declare class NeuroWeb<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1598
|
-
constructor();
|
|
1648
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1599
1649
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1600
1650
|
}
|
|
1601
1651
|
|
|
1602
|
-
declare class
|
|
1652
|
+
declare class NeuroWebPaseo<TApi, TRes> extends NeuroWeb<TApi, TRes> {
|
|
1603
1653
|
constructor();
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
declare class Nodle<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1657
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1604
1658
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1605
1659
|
transferRelayToPara(): TSerializedApiCall;
|
|
1606
1660
|
}
|
|
1607
1661
|
|
|
1662
|
+
declare class NodlePaseo<TApi, TRes> extends Nodle<TApi, TRes> {
|
|
1663
|
+
constructor();
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
declare class PeoplePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1667
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1668
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1669
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
declare class PAssetHub<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
1673
|
+
constructor();
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1608
1676
|
declare class Peaq<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1609
1677
|
constructor();
|
|
1610
1678
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1618,16 +1686,22 @@ declare class Pendulum<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1618
1686
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1619
1687
|
}
|
|
1620
1688
|
|
|
1689
|
+
declare class Penpal<TApi, TRes> extends Moonbeam<TApi, TRes> {
|
|
1690
|
+
constructor();
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1621
1693
|
declare class PeopleKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1622
1694
|
constructor();
|
|
1623
1695
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1624
1696
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1625
1697
|
}
|
|
1626
1698
|
|
|
1627
|
-
declare class
|
|
1699
|
+
declare class PeoplePaseo<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
1700
|
+
constructor();
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
declare class PeopleWestend<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
1628
1704
|
constructor();
|
|
1629
|
-
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1630
|
-
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1631
1705
|
}
|
|
1632
1706
|
|
|
1633
1707
|
declare class Phala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTransferTransfer {
|
|
@@ -1682,12 +1756,16 @@ declare class Unique<TApi, TRes> extends ParachainNode<TApi, TRes> implements IX
|
|
|
1682
1756
|
}
|
|
1683
1757
|
|
|
1684
1758
|
declare class Zeitgeist<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1685
|
-
constructor();
|
|
1759
|
+
constructor(chain?: TNodePolkadotKusama, info?: string, type?: TEcosystemType, version?: Version);
|
|
1686
1760
|
private getCurrencySelection;
|
|
1687
1761
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1688
1762
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1689
1763
|
}
|
|
1690
1764
|
|
|
1765
|
+
declare class ZeitgeistPaseo<TApi, TRes> extends Zeitgeist<TApi, TRes> {
|
|
1766
|
+
constructor();
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1691
1769
|
declare const nodes: <TApi, TRes>() => {
|
|
1692
1770
|
AssetHubPolkadot: AssetHubPolkadot<TApi, TRes>;
|
|
1693
1771
|
Acala: Acala<TApi, TRes>;
|
|
@@ -1739,6 +1817,26 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
1739
1817
|
Mythos: Mythos<TApi, TRes>;
|
|
1740
1818
|
Peaq: Peaq<TApi, TRes>;
|
|
1741
1819
|
Polimec: Polimec<TApi, TRes>;
|
|
1820
|
+
AssetHubWestend: AssetHubWestend<TApi, TRes>;
|
|
1821
|
+
BridgeHubWestend: BridgeHubWestend<TApi, TRes>;
|
|
1822
|
+
CollectivesWestend: CollectivesWestend<TApi, TRes>;
|
|
1823
|
+
CoretimeWestend: CoretimeWestend<TApi, TRes>;
|
|
1824
|
+
PeopleWestend: PeopleWestend<TApi, TRes>;
|
|
1825
|
+
Penpal: Penpal<TApi, TRes>;
|
|
1826
|
+
AssetHubPaseo: AssetHubPaseo<TApi, TRes>;
|
|
1827
|
+
BridgeHubPaseo: BridgeHubPaseo<TApi, TRes>;
|
|
1828
|
+
CoretimePaseo: CoretimePaseo<TApi, TRes>;
|
|
1829
|
+
PAssetHub: PAssetHub<TApi, TRes>;
|
|
1830
|
+
PeoplePaseo: PeoplePaseo<TApi, TRes>;
|
|
1831
|
+
AjunaPaseo: AjunaPaseo<TApi, TRes>;
|
|
1832
|
+
BifrostPaseo: BifrostPaseo<TApi, TRes>;
|
|
1833
|
+
HeimaPaseo: HeimaPaseo<TApi, TRes>;
|
|
1834
|
+
HydrationPaseo: HydrationPaseo<TApi, TRes>;
|
|
1835
|
+
KiltPaseo: KiltPaseo<TApi, TRes>;
|
|
1836
|
+
LaosPaseo: LaosPaseo<TApi, TRes>;
|
|
1837
|
+
NeuroWebPaseo: NeuroWebPaseo<TApi, TRes>;
|
|
1838
|
+
NodlePaseo: NodlePaseo<TApi, TRes>;
|
|
1839
|
+
ZeitgeistPaseo: ZeitgeistPaseo<TApi, TRes>;
|
|
1742
1840
|
};
|
|
1743
1841
|
|
|
1744
1842
|
declare const getNodeConfig: (node: TNodeDotKsmWithRelayChains) => TNodeConfig;
|
|
@@ -1815,6 +1913,16 @@ declare const assertToIsString: (to: TDestination, overrideMsg?: string) => asse
|
|
|
1815
1913
|
declare const assertAddressIsString: (address: TAddress) => asserts address is Exclude<TAddress, TMultiLocation>;
|
|
1816
1914
|
declare const assertHasLocation: (asset: TAsset) => asserts asset is TAssetWithLocation;
|
|
1817
1915
|
|
|
1916
|
+
declare const getChainVersion: <TApi, TRes>(chain: TNodeWithRelayChains) => Version;
|
|
1917
|
+
|
|
1918
|
+
/**
|
|
1919
|
+
* Gets the relay chain (Polkadot, Kusama, Westend, or Paseo) of a given chain.
|
|
1920
|
+
*
|
|
1921
|
+
* @param chain - The chain to evaluate.
|
|
1922
|
+
* @returns The corresponding relay chain.
|
|
1923
|
+
*/
|
|
1924
|
+
declare const getRelayChainOf: (chain: TNodeDotKsmWithRelayChains) => TRelayChain;
|
|
1925
|
+
|
|
1818
1926
|
declare const createApiInstanceForNode: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>, node: TNodeDotKsmWithRelayChains) => Promise<TApi>;
|
|
1819
1927
|
|
|
1820
1928
|
declare const computeFeeFromDryRun: (dryRun: any, node: TNodeDotKsmWithRelayChains, executionFee: bigint, isFeeAsset?: boolean) => bigint;
|
|
@@ -1888,13 +1996,5 @@ declare const handleToAhTeleport: <TApi, TRes>(origin: TNodePolkadotKusama, inpu
|
|
|
1888
1996
|
|
|
1889
1997
|
declare const validateAddress: (address: TAddress, node: TNodeWithRelayChains, isDestination?: boolean) => void;
|
|
1890
1998
|
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
*
|
|
1894
|
-
* @param node - The node for which to determine the relay chain.
|
|
1895
|
-
* @returns 'Kusama' if the node's relay chain symbol is 'KSM'; otherwise, 'Polkadot'.
|
|
1896
|
-
*/
|
|
1897
|
-
declare const determineRelayChain: (node: TNodeWithRelayChains) => TRelaychain;
|
|
1898
|
-
|
|
1899
|
-
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidParameterError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, addXcmVersionHeader, assertAddressIsString, assertHasLocation, assertToIsString, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createMultiAsset, createVersionedMultiAssets, createX1Payload, deriveAccountId, determineRelayChain, dryRun, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChainLocation, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getParaEthTransferFees, getParaId, getTNode, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, localizeLocation, maybeOverrideMultiAsset, maybeOverrideMultiAssets, resolveModuleError, resolveParaId, reverseTransformMultiLocation, send, sortMultiAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, validateAddress, verifyEdOnDestination };
|
|
1900
|
-
export type { IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimOptions, TAssetClaimOptionsBase, TBalanceResponse, TBatchOptions, TBifrostToken, TBridgeStatus, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TDestWeight, TDestination, TDryRunBaseOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunNodeFailure, TDryRunNodeResult, TDryRunNodeResultInternal, TDryRunNodeSuccess, TDryRunOptions, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEdJsonMap, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmNodeFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestNodeBaseOptions, TGetFeeForDestNodeOptions, TGetMaxForeignTransferableAmountOptions, TGetMaxForeignTransferableAmountOptionsBase, TGetMaxNativeTransferableAmountOptions, TGetMaxNativeTransferableAmountOptionsBase, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodeConfig, TNodeConfigMap, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TRelaychain, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeHopInfo, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
|
|
1999
|
+
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidParameterError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, addXcmVersionHeader, assertAddressIsString, assertHasLocation, assertToIsString, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createMultiAsset, createVersionedMultiAssets, createX1Payload, deriveAccountId, dryRun, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChainLocation, getChainVersion, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getParaEthTransferFees, getParaId, getRelayChainOf, getTNode, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, localizeLocation, maybeOverrideMultiAsset, maybeOverrideMultiAssets, resolveModuleError, resolveParaId, reverseTransformMultiLocation, send, sortMultiAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, validateAddress, verifyEdOnDestination };
|
|
2000
|
+
export type { IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimOptions, TAssetClaimOptionsBase, TBalanceResponse, TBatchOptions, TBifrostToken, TBridgeStatus, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TDestWeight, TDestination, TDryRunBaseOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunNodeFailure, TDryRunNodeResult, TDryRunNodeResultInternal, TDryRunNodeSuccess, TDryRunOptions, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEdJsonMap, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmNodeFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestNodeBaseOptions, TGetFeeForDestNodeOptions, TGetMaxForeignTransferableAmountOptions, TGetMaxForeignTransferableAmountOptionsBase, TGetMaxNativeTransferableAmountOptions, TGetMaxNativeTransferableAmountOptionsBase, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodeConfig, TNodeConfigMap, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeHopInfo, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
|