@paraspell/sdk-core 12.4.0 → 12.5.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.d.ts +89 -114
- package/dist/index.mjs +347 -481
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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';
|
|
@@ -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,27 @@ 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 Amplitude<TApi, TRes> extends
|
|
1584
|
+
declare class Amplitude<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1632
1585
|
constructor();
|
|
1633
1586
|
getCustomCurrencyId(asset: TAssetInfo): TXcmAsset;
|
|
1634
1587
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1635
1588
|
}
|
|
1636
1589
|
|
|
1637
|
-
declare class AssetHubKusama<TApi, TRes> extends
|
|
1590
|
+
declare class AssetHubKusama<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1638
1591
|
constructor();
|
|
1639
1592
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1640
1593
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1641
1594
|
getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1642
1595
|
}
|
|
1643
1596
|
|
|
1644
|
-
declare class AssetHubPolkadot<TApi, TRes> extends
|
|
1597
|
+
declare class AssetHubPolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1645
1598
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1646
1599
|
handleEthBridgeNativeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1647
1600
|
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1657,14 +1610,14 @@ declare class AssetHubWestend<TApi, TRes> extends AssetHubPolkadot<TApi, TRes> {
|
|
|
1657
1610
|
constructor();
|
|
1658
1611
|
}
|
|
1659
1612
|
|
|
1660
|
-
declare class Astar<TApi, TRes> extends
|
|
1613
|
+
declare class Astar<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1661
1614
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1662
1615
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1663
|
-
|
|
1616
|
+
isRelayToParaEnabled(): boolean;
|
|
1664
1617
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1665
1618
|
}
|
|
1666
1619
|
|
|
1667
|
-
declare class Hydration<TApi, TRes> extends
|
|
1620
|
+
declare class Hydration<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1668
1621
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1669
1622
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1670
1623
|
transferMoonbeamWhAsset<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1677,7 +1630,7 @@ declare class Basilisk<TApi, TRes> extends Hydration<TApi, TRes> implements IPol
|
|
|
1677
1630
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1678
1631
|
}
|
|
1679
1632
|
|
|
1680
|
-
declare class BifrostPolkadot<TApi, TRes> extends
|
|
1633
|
+
declare class BifrostPolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1681
1634
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1682
1635
|
getCustomCurrencyId(asset: TAssetInfo): {
|
|
1683
1636
|
Native: string;
|
|
@@ -1734,12 +1687,12 @@ declare class BifrostPaseo<TApi, TRes> extends BifrostPolkadot<TApi, TRes> {
|
|
|
1734
1687
|
constructor();
|
|
1735
1688
|
}
|
|
1736
1689
|
|
|
1737
|
-
declare class BridgeHubKusama<TApi, TRes> extends
|
|
1690
|
+
declare class BridgeHubKusama<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1738
1691
|
constructor();
|
|
1739
1692
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1740
1693
|
}
|
|
1741
1694
|
|
|
1742
|
-
declare class BridgeHubPolkadot<TApi, TRes> extends
|
|
1695
|
+
declare class BridgeHubPolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1743
1696
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1744
1697
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1745
1698
|
}
|
|
@@ -1752,7 +1705,7 @@ declare class BridgeHubWestend<TApi, TRes> extends BridgeHubPolkadot<TApi, TRes>
|
|
|
1752
1705
|
constructor();
|
|
1753
1706
|
}
|
|
1754
1707
|
|
|
1755
|
-
declare class Centrifuge<TApi, TRes> extends
|
|
1708
|
+
declare class Centrifuge<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1756
1709
|
constructor();
|
|
1757
1710
|
getCustomCurrencyId(asset: TAssetInfo): "Native" | {
|
|
1758
1711
|
ForeignAsset: number;
|
|
@@ -1761,7 +1714,7 @@ declare class Centrifuge<TApi, TRes> extends Parachain<TApi, TRes> implements IX
|
|
|
1761
1714
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1762
1715
|
}
|
|
1763
1716
|
|
|
1764
|
-
declare class Collectives<TApi, TRes> extends
|
|
1717
|
+
declare class Collectives<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1765
1718
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1766
1719
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1767
1720
|
}
|
|
@@ -1770,12 +1723,12 @@ declare class CollectivesWestend<TApi, TRes> extends Collectives<TApi, TRes> {
|
|
|
1770
1723
|
constructor();
|
|
1771
1724
|
}
|
|
1772
1725
|
|
|
1773
|
-
declare class CoretimeKusama<TApi, TRes> extends
|
|
1726
|
+
declare class CoretimeKusama<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1774
1727
|
constructor();
|
|
1775
1728
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1776
1729
|
}
|
|
1777
1730
|
|
|
1778
|
-
declare class CoretimePolkadot<TApi, TRes> extends
|
|
1731
|
+
declare class CoretimePolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1779
1732
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1780
1733
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1781
1734
|
canReceiveFrom(origin: TChain): boolean;
|
|
@@ -1789,28 +1742,28 @@ declare class CoretimeWestend<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
|
|
|
1789
1742
|
constructor();
|
|
1790
1743
|
}
|
|
1791
1744
|
|
|
1792
|
-
declare class Crab<TApi, TRes> extends
|
|
1745
|
+
declare class Crab<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1793
1746
|
constructor();
|
|
1794
1747
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1795
|
-
|
|
1748
|
+
isRelayToParaEnabled(): boolean;
|
|
1796
1749
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1797
1750
|
}
|
|
1798
1751
|
|
|
1799
|
-
declare class Crust<TApi, TRes> extends
|
|
1752
|
+
declare class Crust<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1800
1753
|
constructor();
|
|
1801
1754
|
private getCurrencySelection;
|
|
1802
1755
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1803
1756
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1804
1757
|
}
|
|
1805
1758
|
|
|
1806
|
-
declare class CrustShadow<TApi, TRes> extends
|
|
1759
|
+
declare class CrustShadow<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1807
1760
|
constructor();
|
|
1808
1761
|
private getCurrencySelection;
|
|
1809
1762
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1810
1763
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1811
1764
|
}
|
|
1812
1765
|
|
|
1813
|
-
declare class Curio<TApi, TRes> extends
|
|
1766
|
+
declare class Curio<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1814
1767
|
constructor();
|
|
1815
1768
|
getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
|
|
1816
1769
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1818,21 +1771,21 @@ declare class Curio<TApi, TRes> extends Parachain<TApi, TRes> implements IXToken
|
|
|
1818
1771
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1819
1772
|
}
|
|
1820
1773
|
|
|
1821
|
-
declare class Darwinia<TApi, TRes> extends
|
|
1774
|
+
declare class Darwinia<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1822
1775
|
constructor();
|
|
1823
1776
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1824
1777
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1825
1778
|
}
|
|
1826
1779
|
|
|
1827
|
-
declare class Encointer<TApi, TRes> extends
|
|
1780
|
+
declare class Encointer<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1828
1781
|
constructor();
|
|
1829
1782
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1830
1783
|
}
|
|
1831
1784
|
|
|
1832
|
-
declare class EnergyWebX<TApi, TRes> extends
|
|
1785
|
+
declare class EnergyWebX<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1833
1786
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1834
1787
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1835
|
-
|
|
1788
|
+
isRelayToParaEnabled(): boolean;
|
|
1836
1789
|
getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1837
1790
|
}
|
|
1838
1791
|
|
|
@@ -1840,7 +1793,7 @@ declare class EnergyWebXPaseo<TApi, TRes> extends EnergyWebX<TApi, TRes> {
|
|
|
1840
1793
|
constructor();
|
|
1841
1794
|
}
|
|
1842
1795
|
|
|
1843
|
-
declare class Heima<TApi, TRes> extends
|
|
1796
|
+
declare class Heima<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1844
1797
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1845
1798
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1846
1799
|
}
|
|
@@ -1853,7 +1806,7 @@ declare class HydrationPaseo<TApi, TRes> extends Hydration<TApi, TRes> {
|
|
|
1853
1806
|
constructor();
|
|
1854
1807
|
}
|
|
1855
1808
|
|
|
1856
|
-
declare class Interlay<TApi, TRes> extends
|
|
1809
|
+
declare class Interlay<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1857
1810
|
constructor();
|
|
1858
1811
|
getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
|
|
1859
1812
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1862,7 +1815,7 @@ declare class Interlay<TApi, TRes> extends Parachain<TApi, TRes> implements IXTo
|
|
|
1862
1815
|
getBalanceNative(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1863
1816
|
}
|
|
1864
1817
|
|
|
1865
|
-
declare class Jamton<TApi, TRes> extends
|
|
1818
|
+
declare class Jamton<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1866
1819
|
constructor();
|
|
1867
1820
|
getCustomCurrencyId(asset: TAssetInfo): {
|
|
1868
1821
|
Native: number;
|
|
@@ -1878,10 +1831,10 @@ declare class Karura<TApi, TRes> extends Acala<TApi, TRes> {
|
|
|
1878
1831
|
constructor();
|
|
1879
1832
|
}
|
|
1880
1833
|
|
|
1881
|
-
declare class KiltSpiritnet<TApi, TRes> extends
|
|
1834
|
+
declare class KiltSpiritnet<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1882
1835
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1883
1836
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1884
|
-
|
|
1837
|
+
isRelayToParaEnabled(): boolean;
|
|
1885
1838
|
}
|
|
1886
1839
|
|
|
1887
1840
|
declare class KiltPaseo<TApi, TRes> extends KiltSpiritnet<TApi, TRes> {
|
|
@@ -1890,7 +1843,7 @@ declare class KiltPaseo<TApi, TRes> extends KiltSpiritnet<TApi, TRes> {
|
|
|
1890
1843
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1891
1844
|
}
|
|
1892
1845
|
|
|
1893
|
-
declare class Kintsugi<TApi, TRes> extends
|
|
1846
|
+
declare class Kintsugi<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1894
1847
|
constructor();
|
|
1895
1848
|
getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
|
|
1896
1849
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1899,17 +1852,26 @@ declare class Kintsugi<TApi, TRes> extends Parachain<TApi, TRes> implements IXTo
|
|
|
1899
1852
|
getBalanceNative(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1900
1853
|
}
|
|
1901
1854
|
|
|
1902
|
-
declare class
|
|
1855
|
+
declare class Polkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1856
|
+
constructor(chain?: TSubstrateChain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1857
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
declare class Kusama<TApi, TRes> extends Polkadot<TApi, TRes> {
|
|
1861
|
+
constructor();
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
declare class Laos<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1903
1865
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1904
1866
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1905
|
-
|
|
1867
|
+
isRelayToParaEnabled(): boolean;
|
|
1906
1868
|
}
|
|
1907
1869
|
|
|
1908
1870
|
declare class LaosPaseo<TApi, TRes> extends Laos<TApi, TRes> {
|
|
1909
1871
|
constructor();
|
|
1910
1872
|
}
|
|
1911
1873
|
|
|
1912
|
-
declare class Manta<TApi, TRes> extends
|
|
1874
|
+
declare class Manta<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1913
1875
|
static readonly NATIVE_ASSET_ID = 1n;
|
|
1914
1876
|
constructor();
|
|
1915
1877
|
private getAssetId;
|
|
@@ -1917,26 +1879,26 @@ declare class Manta<TApi, TRes> extends Parachain<TApi, TRes> implements IXToken
|
|
|
1917
1879
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1918
1880
|
}
|
|
1919
1881
|
|
|
1920
|
-
declare class Moonbeam<TApi, TRes> extends
|
|
1882
|
+
declare class Moonbeam<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1921
1883
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1922
1884
|
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1923
1885
|
transferLocalNonNativeAsset(_options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1924
1886
|
getBalanceForeign<TApi, TRes>(_api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1925
1887
|
}
|
|
1926
1888
|
|
|
1927
|
-
declare class Moonriver<TApi, TRes> extends
|
|
1889
|
+
declare class Moonriver<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1928
1890
|
constructor();
|
|
1929
1891
|
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1930
1892
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1931
1893
|
}
|
|
1932
1894
|
|
|
1933
|
-
declare class Mythos<TApi, TRes> extends
|
|
1895
|
+
declare class Mythos<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1934
1896
|
constructor();
|
|
1935
1897
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1936
|
-
|
|
1898
|
+
isRelayToParaEnabled(): boolean;
|
|
1937
1899
|
}
|
|
1938
1900
|
|
|
1939
|
-
declare class NeuroWeb<TApi, TRes> extends
|
|
1901
|
+
declare class NeuroWeb<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1940
1902
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1941
1903
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1942
1904
|
transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -1947,13 +1909,17 @@ declare class NeuroWebPaseo<TApi, TRes> extends NeuroWeb<TApi, TRes> {
|
|
|
1947
1909
|
constructor();
|
|
1948
1910
|
}
|
|
1949
1911
|
|
|
1950
|
-
declare class Nodle<TApi, TRes> extends
|
|
1912
|
+
declare class Nodle<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1951
1913
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1952
1914
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1953
|
-
|
|
1915
|
+
isRelayToParaEnabled(): boolean;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
declare class Paseo<TApi, TRes> extends Polkadot<TApi, TRes> {
|
|
1919
|
+
constructor();
|
|
1954
1920
|
}
|
|
1955
1921
|
|
|
1956
|
-
declare class PeoplePolkadot<TApi, TRes> extends
|
|
1922
|
+
declare class PeoplePolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1957
1923
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1958
1924
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1959
1925
|
}
|
|
@@ -1964,14 +1930,14 @@ declare class PAssetHub<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
|
1964
1930
|
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1965
1931
|
}
|
|
1966
1932
|
|
|
1967
|
-
declare class Peaq<TApi, TRes> extends
|
|
1933
|
+
declare class Peaq<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1968
1934
|
constructor();
|
|
1969
1935
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1970
|
-
|
|
1936
|
+
isRelayToParaEnabled(): boolean;
|
|
1971
1937
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1972
1938
|
}
|
|
1973
1939
|
|
|
1974
|
-
declare class Pendulum<TApi, TRes> extends
|
|
1940
|
+
declare class Pendulum<TApi, TRes> extends Chain<TApi, TRes> implements IXTokensTransfer {
|
|
1975
1941
|
constructor();
|
|
1976
1942
|
getCustomCurrencyId(asset: TAssetInfo): TXcmAsset;
|
|
1977
1943
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1982,7 +1948,7 @@ declare class Penpal<TApi, TRes> extends Moonbeam<TApi, TRes> {
|
|
|
1982
1948
|
getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
1983
1949
|
}
|
|
1984
1950
|
|
|
1985
|
-
declare class PeopleKusama<TApi, TRes> extends
|
|
1951
|
+
declare class PeopleKusama<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1986
1952
|
constructor();
|
|
1987
1953
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1988
1954
|
}
|
|
@@ -1995,19 +1961,19 @@ declare class PeopleWestend<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
|
1995
1961
|
constructor();
|
|
1996
1962
|
}
|
|
1997
1963
|
|
|
1998
|
-
declare class Phala<TApi, TRes> extends
|
|
1964
|
+
declare class Phala<TApi, TRes> extends Chain<TApi, TRes> implements IXTransferTransfer {
|
|
1999
1965
|
constructor();
|
|
2000
1966
|
transferXTransfer<TApi, TRes>(input: TXTransferTransferOptions<TApi, TRes>): TRes;
|
|
2001
1967
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
2002
1968
|
}
|
|
2003
1969
|
|
|
2004
|
-
declare class Quartz<TApi, TRes> extends
|
|
1970
|
+
declare class Quartz<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2005
1971
|
constructor();
|
|
2006
1972
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
2007
1973
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
2008
1974
|
}
|
|
2009
1975
|
|
|
2010
|
-
declare class RobonomicsPolkadot<TApi, TRes> extends
|
|
1976
|
+
declare class RobonomicsPolkadot<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2011
1977
|
constructor();
|
|
2012
1978
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
2013
1979
|
isReceivingTempDisabled(scenario: TScenario): boolean;
|
|
@@ -2018,20 +1984,24 @@ declare class Shiden<TApi, TRes> extends Astar<TApi, TRes> {
|
|
|
2018
1984
|
constructor();
|
|
2019
1985
|
}
|
|
2020
1986
|
|
|
2021
|
-
declare class Unique<TApi, TRes> extends
|
|
1987
|
+
declare class Unique<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2022
1988
|
constructor();
|
|
2023
1989
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
2024
1990
|
transferLocalNonNativeAsset(_options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
2025
1991
|
getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
|
|
2026
1992
|
}
|
|
2027
1993
|
|
|
2028
|
-
declare class
|
|
1994
|
+
declare class Westend<TApi, TRes> extends Polkadot<TApi, TRes> {
|
|
1995
|
+
constructor();
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
declare class Xode<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2029
1999
|
constructor();
|
|
2030
2000
|
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
2031
2001
|
canReceiveFrom(origin: TChain): boolean;
|
|
2032
2002
|
}
|
|
2033
2003
|
|
|
2034
|
-
declare class Zeitgeist<TApi, TRes> extends
|
|
2004
|
+
declare class Zeitgeist<TApi, TRes> extends Chain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
2035
2005
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
2036
2006
|
getCustomCurrencyId(asset: TAssetInfo): TZeitgeistAsset | TXcmForeignAsset;
|
|
2037
2007
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
@@ -2044,6 +2014,7 @@ declare class ZeitgeistPaseo<TApi, TRes> extends Zeitgeist<TApi, TRes> {
|
|
|
2044
2014
|
}
|
|
2045
2015
|
|
|
2046
2016
|
declare const chains: <TApi, TRes>() => {
|
|
2017
|
+
Polkadot: Polkadot<TApi, TRes>;
|
|
2047
2018
|
AssetHubPolkadot: AssetHubPolkadot<TApi, TRes>;
|
|
2048
2019
|
Acala: Acala<TApi, TRes>;
|
|
2049
2020
|
Ajuna: Ajuna<TApi, TRes>;
|
|
@@ -2074,6 +2045,7 @@ declare const chains: <TApi, TRes>() => {
|
|
|
2074
2045
|
Mythos: Mythos<TApi, TRes>;
|
|
2075
2046
|
Peaq: Peaq<TApi, TRes>;
|
|
2076
2047
|
Xode: Xode<TApi, TRes>;
|
|
2048
|
+
Kusama: Kusama<TApi, TRes>;
|
|
2077
2049
|
AssetHubKusama: AssetHubKusama<TApi, TRes>;
|
|
2078
2050
|
BridgeHubKusama: BridgeHubKusama<TApi, TRes>;
|
|
2079
2051
|
CoretimeKusama: CoretimeKusama<TApi, TRes>;
|
|
@@ -2092,12 +2064,14 @@ declare const chains: <TApi, TRes>() => {
|
|
|
2092
2064
|
PeopleKusama: PeopleKusama<TApi, TRes>;
|
|
2093
2065
|
Shiden: Shiden<TApi, TRes>;
|
|
2094
2066
|
Zeitgeist: Zeitgeist<TApi, TRes>;
|
|
2067
|
+
Westend: Westend<TApi, TRes>;
|
|
2095
2068
|
AssetHubWestend: AssetHubWestend<TApi, TRes>;
|
|
2096
2069
|
BridgeHubWestend: BridgeHubWestend<TApi, TRes>;
|
|
2097
2070
|
CollectivesWestend: CollectivesWestend<TApi, TRes>;
|
|
2098
2071
|
CoretimeWestend: CoretimeWestend<TApi, TRes>;
|
|
2099
2072
|
PeopleWestend: PeopleWestend<TApi, TRes>;
|
|
2100
2073
|
Penpal: Penpal<TApi, TRes>;
|
|
2074
|
+
Paseo: Paseo<TApi, TRes>;
|
|
2101
2075
|
AssetHubPaseo: AssetHubPaseo<TApi, TRes>;
|
|
2102
2076
|
BridgeHubPaseo: BridgeHubPaseo<TApi, TRes>;
|
|
2103
2077
|
CoretimePaseo: CoretimePaseo<TApi, TRes>;
|
|
@@ -2189,8 +2163,6 @@ declare const getMinTransferableAmount: <TApi, TRes>(options: TGetMinTransferabl
|
|
|
2189
2163
|
declare const getTransferableAmountInternal: <TApi, TRes>({ api, senderAddress, origin: chain, destination, currency, buildTx, feeAsset }: TGetTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2190
2164
|
declare const getTransferableAmount: <TApi, TRes>(options: TGetTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2191
2165
|
|
|
2192
|
-
declare const transferRelayToPara: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>) => Promise<TRes>;
|
|
2193
|
-
|
|
2194
2166
|
declare const constructTypeAndThenCall: <TApi, TRes>(context: TTypeAndThenCallContext<TApi, TRes>, fees?: TTypeAndThenFees | null) => Promise<TSerializedExtrinsics>;
|
|
2195
2167
|
/**
|
|
2196
2168
|
* Creates a type and then call for transferring assets using XCM. Works only for DOT and snowbridge assets so far.
|
|
@@ -2274,6 +2246,9 @@ declare const getEvmPrivateKeyHex: (path: string) => "0x5fb92d6e98884f76de468fa3
|
|
|
2274
2246
|
declare const createBeneficiaryLocXTokens: <TApi, TRes>({ api, address: recipientAddress, origin, destination, version, paraId }: TCreateBeneficiaryXTokensOptions<TApi, TRes>) => TLocation;
|
|
2275
2247
|
declare const createBeneficiaryLocation: <TApi, TRes>({ api, address, version }: TCreateBeneficiaryOptions<TApi, TRes>) => TLocation;
|
|
2276
2248
|
|
|
2249
|
+
declare const createDestination: (version: Version, origin: TSubstrateChain, destination: TDestination, chainId?: number, junction?: TJunction, parents?: Parents) => TLocation;
|
|
2250
|
+
declare const createVersionedDestination: (version: Version, origin: TSubstrateChain, destination: TDestination, chainId?: number, junction?: TJunction, parents?: Parents) => TXcmVersioned<TLocation>;
|
|
2251
|
+
|
|
2277
2252
|
declare const createX1Payload: (version: Version, junction: TJunction) => TJunctions;
|
|
2278
2253
|
|
|
2279
2254
|
declare const getChainLocation: (chain: TChain, destChain: TChain) => TLocation;
|
|
@@ -2321,7 +2296,7 @@ declare const createExecuteExchangeXcm: <TApi, TRes>(input: TPolkadotXCMTransfer
|
|
|
2321
2296
|
|
|
2322
2297
|
declare const createDirectExecuteXcm: <TApi, TRes>(options: TCreateTransferXcmOptions<TApi, TRes>) => OneKey<_paraspell_sdk_common.Version, unknown[]>;
|
|
2323
2298
|
|
|
2324
|
-
declare const handleExecuteTransfer: <TApi, TRes>(chain:
|
|
2299
|
+
declare const handleExecuteTransfer: <TApi, TRes>(chain: TSubstrateChain, options: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TSerializedExtrinsics>;
|
|
2325
2300
|
|
|
2326
2301
|
declare const handleSwapExecuteTransfer: <TApi, TRes>(options: TCreateSwapXcmOptions<TApi, TRes>) => Promise<TRes>;
|
|
2327
2302
|
|
|
@@ -2336,5 +2311,5 @@ declare const formatUnits: typeof formatUnits$1;
|
|
|
2336
2311
|
|
|
2337
2312
|
declare const validateAddress: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: TAddress, chain: TChain, isDestination?: boolean) => void;
|
|
2338
2313
|
|
|
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,
|
|
2314
|
+
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 };
|
|
2315
|
+
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 };
|