@paraspell/sdk-core 12.4.0 → 12.5.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.d.ts +90 -122
- package/dist/index.mjs +344 -521
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _paraspell_sdk_common from '@paraspell/sdk-common';
|
|
2
|
-
import { TChain, TSubstrateChain, TLocation, Version,
|
|
2
|
+
import { TChain, TSubstrateChain, TLocation, Version, TParachain, TExternalChain, TRelaychain, TJunction, Parents, TJunctions } from '@paraspell/sdk-common';
|
|
3
3
|
export * from '@paraspell/sdk-common';
|
|
4
|
-
import { TAssetInfo, TCurrencyInputWithAmount, TCurrencyInput,
|
|
4
|
+
import { TAssetInfo, TCurrencyInputWithAmount, TCurrencyInput, TAsset, TAssetWithFee, WithAmount, WithComplexAmount, TCurrencyCore, TAmount, TAssetWithLocation, TAssetInfoWithId } from '@paraspell/assets';
|
|
5
5
|
export * from '@paraspell/assets';
|
|
6
6
|
import { TPallet, TAssetsPallet } from '@paraspell/pallets';
|
|
7
7
|
export * from '@paraspell/pallets';
|
|
8
|
-
import { WalletClient,
|
|
8
|
+
import { WalletClient, formatUnits as formatUnits$1, parseUnits as parseUnits$1 } from 'viem';
|
|
9
9
|
|
|
10
10
|
type WithApi<TBase, TApi, TRes> = TBase & {
|
|
11
11
|
api: IPolkadotApi<TApi, TRes>;
|
|
@@ -100,7 +100,7 @@ type TXTokensTransferOptions<TApi, TRes> = {
|
|
|
100
100
|
asset: WithAmount<TAssetInfo>;
|
|
101
101
|
address: TAddress;
|
|
102
102
|
scenario: TScenario;
|
|
103
|
-
origin:
|
|
103
|
+
origin: TSubstrateChain;
|
|
104
104
|
destination: TDestination;
|
|
105
105
|
paraIdTo?: number;
|
|
106
106
|
version: Version;
|
|
@@ -113,7 +113,7 @@ type TXTransferTransferOptions<TApi, TRes> = {
|
|
|
113
113
|
api: IPolkadotApi<TApi, TRes>;
|
|
114
114
|
asset: WithAmount<TAssetInfo>;
|
|
115
115
|
recipientAddress: TAddress;
|
|
116
|
-
origin:
|
|
116
|
+
origin: TSubstrateChain;
|
|
117
117
|
paraIdTo?: number;
|
|
118
118
|
destination: TDestination;
|
|
119
119
|
overriddenAsset?: TLocation | TAsset[];
|
|
@@ -132,7 +132,6 @@ interface IXTransferTransfer {
|
|
|
132
132
|
type TScenario = 'ParaToRelay' | 'ParaToPara' | 'RelayToPara';
|
|
133
133
|
type TAddress = string | TLocation;
|
|
134
134
|
type TDestination = TChain | TLocation;
|
|
135
|
-
type TRelayToParaDestination = TParachain | TLocation;
|
|
136
135
|
type TSendBaseOptions = {
|
|
137
136
|
/**
|
|
138
137
|
* The origin chain
|
|
@@ -201,52 +200,6 @@ type TSendInternalOptions<TApi, TRes> = Omit<TSendBaseOptions, 'from' | 'feeAsse
|
|
|
201
200
|
version: Version;
|
|
202
201
|
isAmountAll: boolean;
|
|
203
202
|
};
|
|
204
|
-
type TRelayToParaBaseOptions = {
|
|
205
|
-
/**
|
|
206
|
-
* The origin chain
|
|
207
|
-
*/
|
|
208
|
-
origin: TRelaychain;
|
|
209
|
-
/**
|
|
210
|
-
* The destination chain or XCM location
|
|
211
|
-
*/
|
|
212
|
-
destination: TRelayToParaDestination;
|
|
213
|
-
/**
|
|
214
|
-
* The destination address. A SS58 or H160 format.
|
|
215
|
-
*/
|
|
216
|
-
address: TAddress;
|
|
217
|
-
/**
|
|
218
|
-
* The sender address. A SS58 or H160 format.
|
|
219
|
-
*/
|
|
220
|
-
senderAddress?: string;
|
|
221
|
-
/**
|
|
222
|
-
* The optional destination parachain ID
|
|
223
|
-
*/
|
|
224
|
-
paraIdTo?: number;
|
|
225
|
-
/**
|
|
226
|
-
* The optional overrided XCM version
|
|
227
|
-
*/
|
|
228
|
-
version: Version;
|
|
229
|
-
/**
|
|
230
|
-
* The DOT or KSM asset to transfer
|
|
231
|
-
*/
|
|
232
|
-
assetInfo: WithAmount<TAssetInfo>;
|
|
233
|
-
/**
|
|
234
|
-
* The currency to transfer. Either ID, symbol, location, or multi-asset
|
|
235
|
-
*/
|
|
236
|
-
currency: TCurrencyInputWithAmount;
|
|
237
|
-
/**
|
|
238
|
-
* The optional pallet override
|
|
239
|
-
*/
|
|
240
|
-
pallet?: string;
|
|
241
|
-
/**
|
|
242
|
-
* The optional pallet method override
|
|
243
|
-
*/
|
|
244
|
-
method?: string;
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* Options for transferring from a relay chain to a parachain
|
|
248
|
-
*/
|
|
249
|
-
type TRelayToParaOptions<TApi, TRes> = WithApi<TRelayToParaBaseOptions, TApi, TRes>;
|
|
250
203
|
type TSerializedExtrinsics = {
|
|
251
204
|
module: TPallet;
|
|
252
205
|
method: string;
|
|
@@ -1569,17 +1522,18 @@ declare const getParaId: (chain: TChain) => number;
|
|
|
1569
1522
|
*/
|
|
1570
1523
|
declare const getTChain: (paraId: number, ecosystem: TRelaychain | TExternalChain) => TChain | null;
|
|
1571
1524
|
|
|
1572
|
-
declare abstract class
|
|
1525
|
+
declare abstract class Chain<TApi, TRes> {
|
|
1573
1526
|
private readonly _chain;
|
|
1574
1527
|
private readonly _info;
|
|
1575
1528
|
private readonly _ecosystem;
|
|
1576
1529
|
private readonly _version;
|
|
1577
|
-
constructor(chain:
|
|
1530
|
+
constructor(chain: TSubstrateChain, info: string, ecosystem: TRelaychain, version: Version);
|
|
1578
1531
|
get info(): string;
|
|
1579
1532
|
get ecosystem(): TRelaychain;
|
|
1580
|
-
get chain():
|
|
1533
|
+
get chain(): TSubstrateChain;
|
|
1581
1534
|
get version(): Version;
|
|
1582
1535
|
canUseXTokens(options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1536
|
+
isRelayToParaEnabled(): boolean;
|
|
1583
1537
|
transfer(sendOptions: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1584
1538
|
throwIfCantReceive(destChain: TChain | undefined): void;
|
|
1585
1539
|
throwIfTempDisabled(options: TSendInternalOptions<TApi, TRes>, destChain?: TChain): void;
|
|
@@ -1587,7 +1541,6 @@ declare abstract class Parachain<TApi, TRes> {
|
|
|
1587
1541
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1588
1542
|
canReceiveFrom(_origin: TChain): boolean;
|
|
1589
1543
|
shouldUseNativeAssetTeleport({ assetInfo: asset, to }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1590
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): Promise<TSerializedExtrinsics>;
|
|
1591
1544
|
createAsset(asset: WithAmount<TAssetInfo>, version: Version): TAsset;
|
|
1592
1545
|
getNativeAssetSymbol(): string;
|
|
1593
1546
|
transferLocal(options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1600,20 +1553,20 @@ declare abstract class Parachain<TApi, TRes> {
|
|
|
1600
1553
|
getBalance(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1601
1554
|
}
|
|
1602
1555
|
|
|
1603
|
-
declare class Acala<TApi, TRes> extends
|
|
1556
|
+
declare class Acala<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1604
1557
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1605
1558
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1606
|
-
|
|
1559
|
+
isRelayToParaEnabled(): boolean;
|
|
1607
1560
|
transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): Promise<TRes>;
|
|
1608
1561
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1609
1562
|
getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
|
|
1610
1563
|
getBalance(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1611
1564
|
}
|
|
1612
1565
|
|
|
1613
|
-
declare class Ajuna<TApi, TRes> extends
|
|
1566
|
+
declare class Ajuna<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1614
1567
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1615
1568
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1616
|
-
|
|
1569
|
+
isRelayToParaEnabled(): boolean;
|
|
1617
1570
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1618
1571
|
}
|
|
1619
1572
|
|
|
@@ -1621,27 +1574,21 @@ declare class AjunaPaseo<TApi, TRes> extends Ajuna<TApi, TRes> {
|
|
|
1621
1574
|
constructor();
|
|
1622
1575
|
}
|
|
1623
1576
|
|
|
1624
|
-
declare class Altair<TApi, TRes> extends
|
|
1577
|
+
declare class Altair<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1625
1578
|
constructor();
|
|
1626
1579
|
getCustomCurrencyId(asset: TAssetInfo): TForeignOrNativeAsset;
|
|
1627
1580
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1628
1581
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1629
1582
|
}
|
|
1630
1583
|
|
|
1631
|
-
declare class
|
|
1632
|
-
constructor();
|
|
1633
|
-
getCustomCurrencyId(asset: TAssetInfo): TXcmAsset;
|
|
1634
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
declare class AssetHubKusama<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1584
|
+
declare class AssetHubKusama<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1638
1585
|
constructor();
|
|
1639
1586
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1640
1587
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1641
1588
|
getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1642
1589
|
}
|
|
1643
1590
|
|
|
1644
|
-
declare class AssetHubPolkadot<TApi, TRes> extends
|
|
1591
|
+
declare class AssetHubPolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1645
1592
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1646
1593
|
handleEthBridgeNativeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1647
1594
|
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1657,14 +1604,14 @@ declare class AssetHubWestend<TApi, TRes> extends AssetHubPolkadot<TApi, TRes> {
|
|
|
1657
1604
|
constructor();
|
|
1658
1605
|
}
|
|
1659
1606
|
|
|
1660
|
-
declare class Astar<TApi, TRes> extends
|
|
1607
|
+
declare class Astar<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1661
1608
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1662
1609
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1663
|
-
|
|
1610
|
+
isRelayToParaEnabled(): boolean;
|
|
1664
1611
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1665
1612
|
}
|
|
1666
1613
|
|
|
1667
|
-
declare class Hydration<TApi, TRes> extends
|
|
1614
|
+
declare class Hydration<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1668
1615
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1669
1616
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1670
1617
|
transferMoonbeamWhAsset<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1677,7 +1624,7 @@ declare class Basilisk<TApi, TRes> extends Hydration<TApi, TRes> implements IPol
|
|
|
1677
1624
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1678
1625
|
}
|
|
1679
1626
|
|
|
1680
|
-
declare class BifrostPolkadot<TApi, TRes> extends
|
|
1627
|
+
declare class BifrostPolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1681
1628
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1682
1629
|
getCustomCurrencyId(asset: TAssetInfo): {
|
|
1683
1630
|
Native: string;
|
|
@@ -1734,12 +1681,12 @@ declare class BifrostPaseo<TApi, TRes> extends BifrostPolkadot<TApi, TRes> {
|
|
|
1734
1681
|
constructor();
|
|
1735
1682
|
}
|
|
1736
1683
|
|
|
1737
|
-
declare class BridgeHubKusama<TApi, TRes> extends
|
|
1684
|
+
declare class BridgeHubKusama<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1738
1685
|
constructor();
|
|
1739
1686
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1740
1687
|
}
|
|
1741
1688
|
|
|
1742
|
-
declare class BridgeHubPolkadot<TApi, TRes> extends
|
|
1689
|
+
declare class BridgeHubPolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1743
1690
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1744
1691
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1745
1692
|
}
|
|
@@ -1752,7 +1699,7 @@ declare class BridgeHubWestend<TApi, TRes> extends BridgeHubPolkadot<TApi, TRes>
|
|
|
1752
1699
|
constructor();
|
|
1753
1700
|
}
|
|
1754
1701
|
|
|
1755
|
-
declare class Centrifuge<TApi, TRes> extends
|
|
1702
|
+
declare class Centrifuge<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1756
1703
|
constructor();
|
|
1757
1704
|
getCustomCurrencyId(asset: TAssetInfo): "Native" | {
|
|
1758
1705
|
ForeignAsset: number;
|
|
@@ -1761,7 +1708,7 @@ declare class Centrifuge<TApi, TRes> extends Parachain<TApi, TRes> implements IX
|
|
|
1761
1708
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1762
1709
|
}
|
|
1763
1710
|
|
|
1764
|
-
declare class Collectives<TApi, TRes> extends
|
|
1711
|
+
declare class Collectives<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1765
1712
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1766
1713
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1767
1714
|
}
|
|
@@ -1770,12 +1717,12 @@ declare class CollectivesWestend<TApi, TRes> extends Collectives<TApi, TRes> {
|
|
|
1770
1717
|
constructor();
|
|
1771
1718
|
}
|
|
1772
1719
|
|
|
1773
|
-
declare class CoretimeKusama<TApi, TRes> extends
|
|
1720
|
+
declare class CoretimeKusama<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1774
1721
|
constructor();
|
|
1775
1722
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1776
1723
|
}
|
|
1777
1724
|
|
|
1778
|
-
declare class CoretimePolkadot<TApi, TRes> extends
|
|
1725
|
+
declare class CoretimePolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1779
1726
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1780
1727
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1781
1728
|
canReceiveFrom(origin: TChain): boolean;
|
|
@@ -1789,28 +1736,28 @@ declare class CoretimeWestend<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
|
|
|
1789
1736
|
constructor();
|
|
1790
1737
|
}
|
|
1791
1738
|
|
|
1792
|
-
declare class Crab<TApi, TRes> extends
|
|
1739
|
+
declare class Crab<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1793
1740
|
constructor();
|
|
1794
1741
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1795
|
-
|
|
1742
|
+
isRelayToParaEnabled(): boolean;
|
|
1796
1743
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1797
1744
|
}
|
|
1798
1745
|
|
|
1799
|
-
declare class Crust<TApi, TRes> extends
|
|
1746
|
+
declare class Crust<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1800
1747
|
constructor();
|
|
1801
1748
|
private getCurrencySelection;
|
|
1802
1749
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1803
1750
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1804
1751
|
}
|
|
1805
1752
|
|
|
1806
|
-
declare class CrustShadow<TApi, TRes> extends
|
|
1753
|
+
declare class CrustShadow<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1807
1754
|
constructor();
|
|
1808
1755
|
private getCurrencySelection;
|
|
1809
1756
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1810
1757
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1811
1758
|
}
|
|
1812
1759
|
|
|
1813
|
-
declare class Curio<TApi, TRes> extends
|
|
1760
|
+
declare class Curio<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1814
1761
|
constructor();
|
|
1815
1762
|
getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
|
|
1816
1763
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1818,21 +1765,21 @@ declare class Curio<TApi, TRes> extends Parachain<TApi, TRes> implements IXToken
|
|
|
1818
1765
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1819
1766
|
}
|
|
1820
1767
|
|
|
1821
|
-
declare class Darwinia<TApi, TRes> extends
|
|
1768
|
+
declare class Darwinia<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1822
1769
|
constructor();
|
|
1823
1770
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1824
1771
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1825
1772
|
}
|
|
1826
1773
|
|
|
1827
|
-
declare class Encointer<TApi, TRes> extends
|
|
1774
|
+
declare class Encointer<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1828
1775
|
constructor();
|
|
1829
1776
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1830
1777
|
}
|
|
1831
1778
|
|
|
1832
|
-
declare class EnergyWebX<TApi, TRes> extends
|
|
1779
|
+
declare class EnergyWebX<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1833
1780
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1834
1781
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1835
|
-
|
|
1782
|
+
isRelayToParaEnabled(): boolean;
|
|
1836
1783
|
getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1837
1784
|
}
|
|
1838
1785
|
|
|
@@ -1840,7 +1787,7 @@ declare class EnergyWebXPaseo<TApi, TRes> extends EnergyWebX<TApi, TRes> {
|
|
|
1840
1787
|
constructor();
|
|
1841
1788
|
}
|
|
1842
1789
|
|
|
1843
|
-
declare class Heima<TApi, TRes> extends
|
|
1790
|
+
declare class Heima<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1844
1791
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1845
1792
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1846
1793
|
}
|
|
@@ -1853,7 +1800,7 @@ declare class HydrationPaseo<TApi, TRes> extends Hydration<TApi, TRes> {
|
|
|
1853
1800
|
constructor();
|
|
1854
1801
|
}
|
|
1855
1802
|
|
|
1856
|
-
declare class Interlay<TApi, TRes> extends
|
|
1803
|
+
declare class Interlay<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1857
1804
|
constructor();
|
|
1858
1805
|
getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
|
|
1859
1806
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1862,7 +1809,7 @@ declare class Interlay<TApi, TRes> extends Parachain<TApi, TRes> implements IXTo
|
|
|
1862
1809
|
getBalanceNative(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1863
1810
|
}
|
|
1864
1811
|
|
|
1865
|
-
declare class Jamton<TApi, TRes> extends
|
|
1812
|
+
declare class Jamton<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1866
1813
|
constructor();
|
|
1867
1814
|
getCustomCurrencyId(asset: TAssetInfo): {
|
|
1868
1815
|
Native: number;
|
|
@@ -1878,10 +1825,10 @@ declare class Karura<TApi, TRes> extends Acala<TApi, TRes> {
|
|
|
1878
1825
|
constructor();
|
|
1879
1826
|
}
|
|
1880
1827
|
|
|
1881
|
-
declare class KiltSpiritnet<TApi, TRes> extends
|
|
1828
|
+
declare class KiltSpiritnet<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1882
1829
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1883
1830
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1884
|
-
|
|
1831
|
+
isRelayToParaEnabled(): boolean;
|
|
1885
1832
|
}
|
|
1886
1833
|
|
|
1887
1834
|
declare class KiltPaseo<TApi, TRes> extends KiltSpiritnet<TApi, TRes> {
|
|
@@ -1890,7 +1837,7 @@ declare class KiltPaseo<TApi, TRes> extends KiltSpiritnet<TApi, TRes> {
|
|
|
1890
1837
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1891
1838
|
}
|
|
1892
1839
|
|
|
1893
|
-
declare class Kintsugi<TApi, TRes> extends
|
|
1840
|
+
declare class Kintsugi<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1894
1841
|
constructor();
|
|
1895
1842
|
getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
|
|
1896
1843
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1899,17 +1846,26 @@ declare class Kintsugi<TApi, TRes> extends Parachain<TApi, TRes> implements IXTo
|
|
|
1899
1846
|
getBalanceNative(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1900
1847
|
}
|
|
1901
1848
|
|
|
1902
|
-
declare class
|
|
1849
|
+
declare class Polkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1850
|
+
constructor(chain?: TSubstrateChain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1851
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
declare class Kusama<TApi, TRes> extends Polkadot<TApi, TRes> {
|
|
1855
|
+
constructor();
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
declare class Laos<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1903
1859
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1904
1860
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1905
|
-
|
|
1861
|
+
isRelayToParaEnabled(): boolean;
|
|
1906
1862
|
}
|
|
1907
1863
|
|
|
1908
1864
|
declare class LaosPaseo<TApi, TRes> extends Laos<TApi, TRes> {
|
|
1909
1865
|
constructor();
|
|
1910
1866
|
}
|
|
1911
1867
|
|
|
1912
|
-
declare class Manta<TApi, TRes> extends
|
|
1868
|
+
declare class Manta<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1913
1869
|
static readonly NATIVE_ASSET_ID = 1n;
|
|
1914
1870
|
constructor();
|
|
1915
1871
|
private getAssetId;
|
|
@@ -1917,26 +1873,26 @@ declare class Manta<TApi, TRes> extends Parachain<TApi, TRes> implements IXToken
|
|
|
1917
1873
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1918
1874
|
}
|
|
1919
1875
|
|
|
1920
|
-
declare class Moonbeam<TApi, TRes> extends
|
|
1876
|
+
declare class Moonbeam<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1921
1877
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1922
1878
|
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1923
1879
|
transferLocalNonNativeAsset(_options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1924
1880
|
getBalanceForeign<TApi, TRes>(_api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1925
1881
|
}
|
|
1926
1882
|
|
|
1927
|
-
declare class Moonriver<TApi, TRes> extends
|
|
1883
|
+
declare class Moonriver<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1928
1884
|
constructor();
|
|
1929
1885
|
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1930
1886
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1931
1887
|
}
|
|
1932
1888
|
|
|
1933
|
-
declare class Mythos<TApi, TRes> extends
|
|
1889
|
+
declare class Mythos<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1934
1890
|
constructor();
|
|
1935
1891
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1936
|
-
|
|
1892
|
+
isRelayToParaEnabled(): boolean;
|
|
1937
1893
|
}
|
|
1938
1894
|
|
|
1939
|
-
declare class NeuroWeb<TApi, TRes> extends
|
|
1895
|
+
declare class NeuroWeb<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1940
1896
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1941
1897
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1942
1898
|
transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1947,13 +1903,17 @@ declare class NeuroWebPaseo<TApi, TRes> extends NeuroWeb<TApi, TRes> {
|
|
|
1947
1903
|
constructor();
|
|
1948
1904
|
}
|
|
1949
1905
|
|
|
1950
|
-
declare class Nodle<TApi, TRes> extends
|
|
1906
|
+
declare class Nodle<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1951
1907
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1952
1908
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1953
|
-
|
|
1909
|
+
isRelayToParaEnabled(): boolean;
|
|
1954
1910
|
}
|
|
1955
1911
|
|
|
1956
|
-
declare class
|
|
1912
|
+
declare class Paseo<TApi, TRes> extends Polkadot<TApi, TRes> {
|
|
1913
|
+
constructor();
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
declare class PeoplePolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1957
1917
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1958
1918
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1959
1919
|
}
|
|
@@ -1964,14 +1924,14 @@ declare class PAssetHub<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
|
1964
1924
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1965
1925
|
}
|
|
1966
1926
|
|
|
1967
|
-
declare class Peaq<TApi, TRes> extends
|
|
1927
|
+
declare class Peaq<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1968
1928
|
constructor();
|
|
1969
1929
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1970
|
-
|
|
1930
|
+
isRelayToParaEnabled(): boolean;
|
|
1971
1931
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1972
1932
|
}
|
|
1973
1933
|
|
|
1974
|
-
declare class Pendulum<TApi, TRes> extends
|
|
1934
|
+
declare class Pendulum<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1975
1935
|
constructor();
|
|
1976
1936
|
getCustomCurrencyId(asset: TAssetInfo): TXcmAsset;
|
|
1977
1937
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1982,7 +1942,7 @@ declare class Penpal<TApi, TRes> extends Moonbeam<TApi, TRes> {
|
|
|
1982
1942
|
getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1983
1943
|
}
|
|
1984
1944
|
|
|
1985
|
-
declare class PeopleKusama<TApi, TRes> extends
|
|
1945
|
+
declare class PeopleKusama<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1986
1946
|
constructor();
|
|
1987
1947
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1988
1948
|
}
|
|
@@ -1995,19 +1955,19 @@ declare class PeopleWestend<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
|
1995
1955
|
constructor();
|
|
1996
1956
|
}
|
|
1997
1957
|
|
|
1998
|
-
declare class Phala<TApi, TRes> extends
|
|
1958
|
+
declare class Phala<TApi, TRes> extends Chain<TApi, TRes> implements IXTransferTransfer {
|
|
1999
1959
|
constructor();
|
|
2000
1960
|
transferXTransfer<TApi, TRes>(input: TXTransferTransferOptions<TApi, TRes>): TRes;
|
|
2001
1961
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
2002
1962
|
}
|
|
2003
1963
|
|
|
2004
|
-
declare class Quartz<TApi, TRes> extends
|
|
1964
|
+
declare class Quartz<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2005
1965
|
constructor();
|
|
2006
1966
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
2007
1967
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
2008
1968
|
}
|
|
2009
1969
|
|
|
2010
|
-
declare class RobonomicsPolkadot<TApi, TRes> extends
|
|
1970
|
+
declare class RobonomicsPolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2011
1971
|
constructor();
|
|
2012
1972
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
2013
1973
|
isReceivingTempDisabled(scenario: TScenario): boolean;
|
|
@@ -2018,20 +1978,24 @@ declare class Shiden<TApi, TRes> extends Astar<TApi, TRes> {
|
|
|
2018
1978
|
constructor();
|
|
2019
1979
|
}
|
|
2020
1980
|
|
|
2021
|
-
declare class Unique<TApi, TRes> extends
|
|
1981
|
+
declare class Unique<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2022
1982
|
constructor();
|
|
2023
1983
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
2024
1984
|
transferLocalNonNativeAsset(_options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
2025
1985
|
getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
2026
1986
|
}
|
|
2027
1987
|
|
|
2028
|
-
declare class
|
|
1988
|
+
declare class Westend<TApi, TRes> extends Polkadot<TApi, TRes> {
|
|
1989
|
+
constructor();
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
declare class Xode<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2029
1993
|
constructor();
|
|
2030
1994
|
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
2031
1995
|
canReceiveFrom(origin: TChain): boolean;
|
|
2032
1996
|
}
|
|
2033
1997
|
|
|
2034
|
-
declare class Zeitgeist<TApi, TRes> extends
|
|
1998
|
+
declare class Zeitgeist<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2035
1999
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
2036
2000
|
getCustomCurrencyId(asset: TAssetInfo): TZeitgeistAsset | TXcmForeignAsset;
|
|
2037
2001
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -2044,6 +2008,7 @@ declare class ZeitgeistPaseo<TApi, TRes> extends Zeitgeist<TApi, TRes> {
|
|
|
2044
2008
|
}
|
|
2045
2009
|
|
|
2046
2010
|
declare const chains: <TApi, TRes>() => {
|
|
2011
|
+
Polkadot: Polkadot<TApi, TRes>;
|
|
2047
2012
|
AssetHubPolkadot: AssetHubPolkadot<TApi, TRes>;
|
|
2048
2013
|
Acala: Acala<TApi, TRes>;
|
|
2049
2014
|
Ajuna: Ajuna<TApi, TRes>;
|
|
@@ -2074,12 +2039,12 @@ declare const chains: <TApi, TRes>() => {
|
|
|
2074
2039
|
Mythos: Mythos<TApi, TRes>;
|
|
2075
2040
|
Peaq: Peaq<TApi, TRes>;
|
|
2076
2041
|
Xode: Xode<TApi, TRes>;
|
|
2042
|
+
Kusama: Kusama<TApi, TRes>;
|
|
2077
2043
|
AssetHubKusama: AssetHubKusama<TApi, TRes>;
|
|
2078
2044
|
BridgeHubKusama: BridgeHubKusama<TApi, TRes>;
|
|
2079
2045
|
CoretimeKusama: CoretimeKusama<TApi, TRes>;
|
|
2080
2046
|
Encointer: Encointer<TApi, TRes>;
|
|
2081
2047
|
Altair: Altair<TApi, TRes>;
|
|
2082
|
-
Amplitude: Amplitude<TApi, TRes>;
|
|
2083
2048
|
Basilisk: Basilisk<TApi, TRes>;
|
|
2084
2049
|
BifrostKusama: BifrostKusama<TApi, TRes>;
|
|
2085
2050
|
CrustShadow: CrustShadow<TApi, TRes>;
|
|
@@ -2092,12 +2057,14 @@ declare const chains: <TApi, TRes>() => {
|
|
|
2092
2057
|
PeopleKusama: PeopleKusama<TApi, TRes>;
|
|
2093
2058
|
Shiden: Shiden<TApi, TRes>;
|
|
2094
2059
|
Zeitgeist: Zeitgeist<TApi, TRes>;
|
|
2060
|
+
Westend: Westend<TApi, TRes>;
|
|
2095
2061
|
AssetHubWestend: AssetHubWestend<TApi, TRes>;
|
|
2096
2062
|
BridgeHubWestend: BridgeHubWestend<TApi, TRes>;
|
|
2097
2063
|
CollectivesWestend: CollectivesWestend<TApi, TRes>;
|
|
2098
2064
|
CoretimeWestend: CoretimeWestend<TApi, TRes>;
|
|
2099
2065
|
PeopleWestend: PeopleWestend<TApi, TRes>;
|
|
2100
2066
|
Penpal: Penpal<TApi, TRes>;
|
|
2067
|
+
Paseo: Paseo<TApi, TRes>;
|
|
2101
2068
|
AssetHubPaseo: AssetHubPaseo<TApi, TRes>;
|
|
2102
2069
|
BridgeHubPaseo: BridgeHubPaseo<TApi, TRes>;
|
|
2103
2070
|
CoretimePaseo: CoretimePaseo<TApi, TRes>;
|
|
@@ -2189,8 +2156,6 @@ declare const getMinTransferableAmount: <TApi, TRes>(options: TGetMinTransferabl
|
|
|
2189
2156
|
declare const getTransferableAmountInternal: <TApi, TRes>({ api, senderAddress, origin: chain, destination, currency, buildTx, feeAsset }: TGetTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2190
2157
|
declare const getTransferableAmount: <TApi, TRes>(options: TGetTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2191
2158
|
|
|
2192
|
-
declare const transferRelayToPara: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>) => Promise<TRes>;
|
|
2193
|
-
|
|
2194
2159
|
declare const constructTypeAndThenCall: <TApi, TRes>(context: TTypeAndThenCallContext<TApi, TRes>, fees?: TTypeAndThenFees | null) => Promise<TSerializedExtrinsics>;
|
|
2195
2160
|
/**
|
|
2196
2161
|
* Creates a type and then call for transferring assets using XCM. Works only for DOT and snowbridge assets so far.
|
|
@@ -2274,6 +2239,9 @@ declare const getEvmPrivateKeyHex: (path: string) => "0x5fb92d6e98884f76de468fa3
|
|
|
2274
2239
|
declare const createBeneficiaryLocXTokens: <TApi, TRes>({ api, address: recipientAddress, origin, destination, version, paraId }: TCreateBeneficiaryXTokensOptions<TApi, TRes>) => TLocation;
|
|
2275
2240
|
declare const createBeneficiaryLocation: <TApi, TRes>({ api, address, version }: TCreateBeneficiaryOptions<TApi, TRes>) => TLocation;
|
|
2276
2241
|
|
|
2242
|
+
declare const createDestination: (version: Version, origin: TSubstrateChain, destination: TDestination, chainId?: number, junction?: TJunction, parents?: Parents) => TLocation;
|
|
2243
|
+
declare const createVersionedDestination: (version: Version, origin: TSubstrateChain, destination: TDestination, chainId?: number, junction?: TJunction, parents?: Parents) => TXcmVersioned<TLocation>;
|
|
2244
|
+
|
|
2277
2245
|
declare const createX1Payload: (version: Version, junction: TJunction) => TJunctions;
|
|
2278
2246
|
|
|
2279
2247
|
declare const getChainLocation: (chain: TChain, destChain: TChain) => TLocation;
|
|
@@ -2293,7 +2261,7 @@ declare const reverseTransformLocation: (location: TLocation) => TLocation;
|
|
|
2293
2261
|
|
|
2294
2262
|
declare const normalizeAmount: (amount: bigint) => bigint;
|
|
2295
2263
|
|
|
2296
|
-
declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "Darwinia" | "EnergyWebX" | "Hydration" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "Manta" | "Nodle" | "NeuroWeb" | "Pendulum" | "Phala" | "KiltSpiritnet" | "Curio" | "Mythos" | "Peaq" | "RobonomicsPolkadot" | "PeoplePolkadot" | "Unique" | "Xode" | "AssetHubKusama" | "BridgeHubKusama" | "Karura" | "Kintsugi" | "Moonriver" | "CoretimeKusama" | "Encointer" | "Altair" | "
|
|
2264
|
+
declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "Darwinia" | "EnergyWebX" | "Hydration" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "Manta" | "Nodle" | "NeuroWeb" | "Pendulum" | "Phala" | "KiltSpiritnet" | "Curio" | "Mythos" | "Peaq" | "RobonomicsPolkadot" | "PeoplePolkadot" | "Unique" | "Xode" | "AssetHubKusama" | "BridgeHubKusama" | "Karura" | "Kintsugi" | "Moonriver" | "CoretimeKusama" | "Encointer" | "Altair" | "Basilisk" | "BifrostKusama" | "CrustShadow" | "Crab" | "Laos" | "Quartz" | "PeopleKusama" | "Shiden" | "Zeitgeist" | "AssetHubWestend" | "BridgeHubWestend" | "CollectivesWestend" | "CoretimeWestend" | "Penpal" | "PeopleWestend" | "AjunaPaseo" | "AssetHubPaseo" | "BifrostPaseo" | "BridgeHubPaseo" | "CoretimePaseo" | "EnergyWebXPaseo" | "HeimaPaseo" | "HydrationPaseo" | "KiltPaseo" | "LaosPaseo" | "NeuroWebPaseo" | "PAssetHub" | "PeoplePaseo" | "ZeitgeistPaseo" | undefined;
|
|
2297
2265
|
|
|
2298
2266
|
declare const resolveParaId: (paraId: number | undefined, destination: TDestination) => number | undefined;
|
|
2299
2267
|
|
|
@@ -2321,7 +2289,7 @@ declare const createExecuteExchangeXcm: <TApi, TRes>(input: TPolkadotXCMTransfer
|
|
|
2321
2289
|
|
|
2322
2290
|
declare const createDirectExecuteXcm: <TApi, TRes>(options: TCreateTransferXcmOptions<TApi, TRes>) => OneKey<_paraspell_sdk_common.Version, unknown[]>;
|
|
2323
2291
|
|
|
2324
|
-
declare const handleExecuteTransfer: <TApi, TRes>(chain:
|
|
2292
|
+
declare const handleExecuteTransfer: <TApi, TRes>(chain: TSubstrateChain, options: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TSerializedExtrinsics>;
|
|
2325
2293
|
|
|
2326
2294
|
declare const handleSwapExecuteTransfer: <TApi, TRes>(options: TCreateSwapXcmOptions<TApi, TRes>) => Promise<TRes>;
|
|
2327
2295
|
|
|
@@ -2336,5 +2304,5 @@ declare const formatUnits: typeof formatUnits$1;
|
|
|
2336
2304
|
|
|
2337
2305
|
declare const validateAddress: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: TAddress, chain: TChain, isDestination?: boolean) => void;
|
|
2338
2306
|
|
|
2339
|
-
export { AmountTooLowError, AssetClaimBuilder, BaseAssetsPallet, BatchMode, BatchValidationError, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETH_MAINNET_CHAIN_ID, ETH_TESTNET_CHAIN_ID, FeatureTemporarilyDisabledError, GeneralBuilder, InvalidAddressError, MissingChainApiError, MissingParameterError, NoXCMSupportImplementedError, NumberFormatError, OverrideConflictError, PolkadotXcmError, PolkadotXcmExecutionError, ProviderUnavailableError, RELAY_LOCATION, RoutingResolutionError, RuntimeApiUnavailableError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, TypeAndThenUnavailableError, UnableToComputeError, UnsupportedOperationError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertDerivationPath, assertHasId, assertHasLocation, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, constructTypeAndThenCall, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createClientCache, createClientPoolHelpers, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createId, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatAssetIdToERC20, formatUnits, getAssetBalanceInternal, getAssetReserveChain, getBalance, getBalanceInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getEthErc20Balance, getEvmPrivateKeyHex, getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getMoonbeamErc20Balance, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, keyFromWs, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, throwUnsupportedCurrency, transferMoonbeamEvm, transferMoonbeamToEth,
|
|
2340
|
-
export type { BuildHopInfoOptions, ClientCache, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedSendOptions, TBifrostToken, TBridgeStatus, TBuildDestInfoOptions, TBuildInternalRes, TBuilderConfig, TBuilderInternalOptions, TBuilderOptions, TBypassOptions, TCacheItem, TChainConfig, TChainConfigMap, TChainEndpoint, TChainWithApi, TClientEntry, TClientKey, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceCommonOptions, TGetBalanceOptions, TGetBalanceOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry,
|
|
2307
|
+
export { AmountTooLowError, AssetClaimBuilder, BaseAssetsPallet, BatchMode, BatchValidationError, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETH_MAINNET_CHAIN_ID, ETH_TESTNET_CHAIN_ID, FeatureTemporarilyDisabledError, GeneralBuilder, InvalidAddressError, MissingChainApiError, MissingParameterError, NoXCMSupportImplementedError, NumberFormatError, OverrideConflictError, PolkadotXcmError, PolkadotXcmExecutionError, ProviderUnavailableError, RELAY_LOCATION, RoutingResolutionError, RuntimeApiUnavailableError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, TypeAndThenUnavailableError, UnableToComputeError, UnsupportedOperationError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertDerivationPath, assertHasId, assertHasLocation, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, constructTypeAndThenCall, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createClientCache, createClientPoolHelpers, createDestination, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createId, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createVersionedDestination, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatAssetIdToERC20, formatUnits, getAssetBalanceInternal, getAssetReserveChain, getBalance, getBalanceInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getEthErc20Balance, getEvmPrivateKeyHex, getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getMoonbeamErc20Balance, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, keyFromWs, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, throwUnsupportedCurrency, transferMoonbeamEvm, transferMoonbeamToEth, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, verifyEdOnDestination, wrapTxBypass };
|
|
2308
|
+
export type { BuildHopInfoOptions, ClientCache, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedSendOptions, TBifrostToken, TBridgeStatus, TBuildDestInfoOptions, TBuildInternalRes, TBuilderConfig, TBuilderInternalOptions, TBuilderOptions, TBypassOptions, TCacheItem, TChainConfig, TChainConfigMap, TChainEndpoint, TChainWithApi, TClientEntry, TClientKey, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceCommonOptions, TGetBalanceOptions, TGetBalanceOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TReserveAsset, TResolveHopParams, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedEthTransfer, TSerializedExtrinsics, TSerializedRuntimeApiQuery, TSerializedStateQuery, TSetBalanceRes, TSwapConfig, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTxFactory, TTypeAndThenCallContext, TTypeAndThenFees, TTypeAndThenOverrides, TUrl, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmFeeSwapConfig, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
|