@paraspell/sdk-core 11.14.4 → 11.14.6

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.
Files changed (4) hide show
  1. package/dist/index.cjs +9722 -9544
  2. package/dist/index.d.ts +115 -78
  3. package/dist/index.mjs +9638 -9460
  4. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { TChain, TLocation, TSubstrateChain, Version, TRelaychain, TParachain, T
3
3
  export * from '@paraspell/sdk-common';
4
4
  import { TCurrencyInputWithAmount, TCurrencyInput, WithAmount, TAssetInfo, TAsset, TAssetWithFee, WithComplexAmount, TCurrencyCore, TAmount, TAssetWithLocation, TForeignAssetWithId, TForeignAssetInfo } from '@paraspell/assets';
5
5
  export * from '@paraspell/assets';
6
- import { TPallet } from '@paraspell/pallets';
6
+ import { TPallet, TAssetsPallet } from '@paraspell/pallets';
7
7
  export * from '@paraspell/pallets';
8
8
  import { WalletClient, parseUnits as parseUnits$1, formatUnits as formatUnits$1 } from 'viem';
9
9
 
@@ -189,10 +189,20 @@ type TRelayToParaOverrides = {
189
189
  * Options for transferring from a relay chain to a parachain
190
190
  */
191
191
  type TRelayToParaOptions<TApi, TRes> = WithApi<TRelayToParaBaseOptions, TApi, TRes>;
192
- type TSerializedApiCall = {
192
+ type TSerializedExtrinsics = {
193
193
  module: TPallet;
194
194
  method: string;
195
- parameters: Record<string, unknown>;
195
+ params: Record<string, unknown>;
196
+ };
197
+ type TSerializedStateQuery = {
198
+ module: TAssetsPallet;
199
+ method: string;
200
+ params: unknown[];
201
+ };
202
+ type TSerializedRuntimeApiQuery = {
203
+ module: string;
204
+ method: string;
205
+ params: unknown[];
196
206
  };
197
207
  type TDestWeight = {
198
208
  ref_time: bigint;
@@ -274,6 +284,17 @@ type TAssetClaimInternalOptions<TApi, TRes> = TAssetClaimOptions<TApi, TRes> & {
274
284
  assets: TAsset<bigint>[];
275
285
  };
276
286
 
287
+ type TSetBalanceRes = {
288
+ assetStatusTx?: TSerializedExtrinsics;
289
+ balanceTx: TSerializedExtrinsics;
290
+ };
291
+ declare abstract class BaseAssetsPallet {
292
+ protected palletName: TAssetsPallet;
293
+ constructor(palletName: TAssetsPallet);
294
+ abstract mint<TApi, TRes>(address: string, assetInfo: WithAmount<TAssetInfo>, balance: bigint, chain: TSubstrateChain, api: IPolkadotApi<TApi, TRes>): Promise<TSetBalanceRes>;
295
+ abstract getBalance<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo, customCurrencyId?: unknown): Promise<bigint>;
296
+ }
297
+
277
298
  /**
278
299
  * Builder class for constructing asset claim transactions.
279
300
  */
@@ -970,7 +991,7 @@ type TGetBalanceForeignOptionsBase = {
970
991
  /**
971
992
  * The chain on which to query the balance.
972
993
  */
973
- chain: TChain;
994
+ chain: TSubstrateChain;
974
995
  };
975
996
  type TGetBalanceForeignOptions<TApi, TRes> = WithApi<TGetBalanceForeignOptionsBase & {
976
997
  /**
@@ -984,10 +1005,7 @@ type TGetBalanceForeignByAssetOptions<TApi, TRes> = WithApi<TGetBalanceForeignOp
984
1005
  */
985
1006
  asset: TAssetInfo;
986
1007
  }, TApi, TRes>;
987
- /**
988
- * Retrieves the asset balance for a given account on a specified chain.
989
- */
990
- type TGetAssetBalanceOptionsBase = {
1008
+ type TGetBalanceCommonOptions = {
991
1009
  /**
992
1010
  * The address of the account.
993
1011
  */
@@ -996,11 +1014,26 @@ type TGetAssetBalanceOptionsBase = {
996
1014
  * The chain on which to query the balance.
997
1015
  */
998
1016
  chain: TChain;
1017
+ };
1018
+ /**
1019
+ * Retrieves the asset balance for a given account on a specified chain.
1020
+ */
1021
+ type TGetAssetBalanceOptionsBase = TGetBalanceCommonOptions & {
1022
+ /**
1023
+ * The resolved asset to query balance for.
1024
+ */
1025
+ asset: TAssetInfo;
1026
+ };
1027
+ /**
1028
+ * Retrieves the currency balance for a given account on a specified chain.
1029
+ */
1030
+ type TGetBalanceOptionsBase = TGetBalanceCommonOptions & {
999
1031
  /**
1000
1032
  * The currency to query.
1001
1033
  */
1002
1034
  currency: TCurrencyCore;
1003
1035
  };
1036
+ type TGetBalanceOptions<TApi, TRes> = WithApi<TGetBalanceOptionsBase, TApi, TRes>;
1004
1037
  type TGetAssetBalanceOptions<TApi, TRes> = WithApi<TGetAssetBalanceOptionsBase, TApi, TRes>;
1005
1038
  type TGetOriginFeeDetailsOptionsBase = {
1006
1039
  /**
@@ -1487,6 +1520,7 @@ type TTypeAndThenCallContext<TApi, TRes> = {
1487
1520
  isSubBridge: boolean;
1488
1521
  isRelayAsset: boolean;
1489
1522
  assetInfo: WithAmount<TAssetWithLocation>;
1523
+ systemAsset: TAssetInfo;
1490
1524
  options: TPolkadotXCMTransferOptions<TApi, TRes>;
1491
1525
  };
1492
1526
  type TTypeAndThenFees = {
@@ -1501,7 +1535,9 @@ interface IPolkadotApi<TApi, TRes> {
1501
1535
  createApiInstance: (wsUrl: string | string[], chain: TSubstrateChain) => Promise<TApi>;
1502
1536
  accountToHex(address: string, isPrefixed?: boolean): string;
1503
1537
  accountToUint8a(address: string): Uint8Array;
1504
- callTxMethod(serializedCall: TSerializedApiCall): TRes;
1538
+ deserializeExtrinsics(serialized: TSerializedExtrinsics): TRes;
1539
+ queryState<T>(serialized: TSerializedStateQuery): Promise<T>;
1540
+ queryRuntimeApi<T>(serialized: TSerializedRuntimeApiQuery): Promise<T>;
1505
1541
  callBatchMethod(calls: TRes[], mode: BatchMode): TRes;
1506
1542
  callDispatchAsMethod(call: TRes, address: string): TRes;
1507
1543
  objectToHex(obj: unknown, typeName: string): Promise<string>;
@@ -1515,15 +1551,6 @@ interface IPolkadotApi<TApi, TRes> {
1515
1551
  getXcmWeight(xcm: any): Promise<TWeight>;
1516
1552
  getXcmPaymentApiFee(chain: TSubstrateChain, localXcm: any, forwardedXcm: any, asset: TAssetInfo, transformXcm: boolean): Promise<bigint>;
1517
1553
  getEvmStorage(contract: string, slot: string): Promise<string>;
1518
- getBalanceNative(address: string): Promise<bigint>;
1519
- getBalanceNativeAcala(address: string, symbol: string): Promise<bigint>;
1520
- getBalanceForeignPolkadotXcm(chain: TSubstrateChain, address: string, asset: TAssetInfo): Promise<bigint>;
1521
- getMythosForeignBalance(address: string): Promise<bigint>;
1522
- getBalanceForeignAssetsPallet(address: string, location: TLocation): Promise<bigint>;
1523
- getForeignAssetsByIdBalance(address: string, assetId: string): Promise<bigint>;
1524
- getBalanceForeignXTokens(chain: TSubstrateChain, address: string, asset: TAssetInfo): Promise<bigint>;
1525
- getBalanceForeignBifrost(address: string, asset: TAssetInfo): Promise<bigint>;
1526
- getBalanceAssetsPallet(address: string, assetId: bigint | number): Promise<bigint>;
1527
1554
  getFromRpc(module: string, method: string, key: string): Promise<string>;
1528
1555
  blake2AsHex(data: Uint8Array): string;
1529
1556
  clone(): IPolkadotApi<TApi, TRes>;
@@ -1534,10 +1561,6 @@ interface IPolkadotApi<TApi, TRes> {
1534
1561
  setDisconnectAllowed(allowed: boolean): void;
1535
1562
  getDisconnectAllowed(): boolean;
1536
1563
  disconnect(force?: boolean): Promise<void>;
1537
- /**
1538
- * Convert a location to a chain account address using the runtime LocationToAccount API, if available.
1539
- */
1540
- convertLocationToAccount(location: TLocation): Promise<string | undefined>;
1541
1564
  validateSubstrateAddress(address: string): boolean;
1542
1565
  }
1543
1566
 
@@ -1547,6 +1570,16 @@ declare const deriveAccountId: (raw: Uint8Array) => Uint8Array;
1547
1570
  declare const encodeSs58: (payload: Uint8Array, network: number) => string;
1548
1571
  declare const convertSs58: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, chain: TSubstrateChain) => string;
1549
1572
 
1573
+ declare const getAssetBalanceInternal: <TApi, TRes>({ api, address, chain, asset }: TGetAssetBalanceOptions<TApi, TRes>) => Promise<bigint>;
1574
+ declare const getBalanceInternal: <TApi, TRes>(options: TGetBalanceOptions<TApi, TRes>) => Promise<bigint>;
1575
+ declare const getBalance: <TApi, TRes>(options: TGetBalanceOptions<TApi, TRes>) => Promise<bigint>;
1576
+
1577
+ declare const getBalanceNative: <TApi, TRes>(options: TGetBalanceNativeOptions<TApi, TRes>) => Promise<bigint>;
1578
+
1579
+ declare const getEthErc20Balance: (asset: TAssetInfo, address: string) => Promise<bigint>;
1580
+
1581
+ declare const getMoonbeamErc20Balance: (chain: TSubstrateChain, assetId: string, address: string) => Promise<bigint>;
1582
+
1550
1583
  declare const getChainConfig: (chain: TSubstrateChain) => TChainConfig;
1551
1584
 
1552
1585
  declare const getChainProviders: (chain: TSubstrateChain) => string[];
@@ -1586,46 +1619,52 @@ declare abstract class Parachain<TApi, TRes> {
1586
1619
  canReceiveFrom(_origin: TChain): boolean;
1587
1620
  shouldUseNativeAssetTeleport({ assetInfo: asset, to }: TSendInternalOptions<TApi, TRes>): boolean;
1588
1621
  getRelayToParaOverrides(): TRelayToParaOverrides;
1589
- transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): Promise<TSerializedApiCall>;
1622
+ transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): Promise<TSerializedExtrinsics>;
1590
1623
  createAsset(asset: WithAmount<TAssetInfo>, version: Version): TAsset;
1591
1624
  getNativeAssetSymbol(): string;
1592
1625
  transferLocal(options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
1593
1626
  transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): Promise<TRes>;
1594
1627
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1595
1628
  protected transferToEthereum<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>, useOnlyDepositInstruction?: boolean): Promise<TRes>;
1629
+ getBalanceNative(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
1630
+ getCustomCurrencyId(_asset: TAssetInfo): unknown;
1631
+ getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
1632
+ getBalance(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
1596
1633
  }
1597
1634
 
1598
1635
  declare class Acala<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1599
1636
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1600
- getCurrencySelection(asset: TAssetInfo): TForeignOrTokenAsset;
1601
1637
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1602
- transferRelayToPara(): Promise<TSerializedApiCall>;
1638
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1603
1639
  transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): Promise<TRes>;
1604
1640
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1641
+ getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
1642
+ getBalance(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
1605
1643
  }
1606
1644
 
1607
1645
  declare class Ajuna<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1608
1646
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1609
1647
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1610
- transferRelayToPara(): Promise<TSerializedApiCall>;
1648
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1611
1649
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1612
1650
  }
1613
1651
 
1614
1652
  declare class AjunaPaseo<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1615
1653
  constructor();
1616
1654
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1617
- transferRelayToPara(): Promise<TSerializedApiCall>;
1655
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1618
1656
  }
1619
1657
 
1620
1658
  declare class Altair<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1621
1659
  constructor();
1622
- private getCurrencySelection;
1660
+ getCustomCurrencyId(asset: TAssetInfo): TForeignOrNativeAsset;
1623
1661
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1624
1662
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1625
1663
  }
1626
1664
 
1627
1665
  declare class Amplitude<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1628
1666
  constructor();
1667
+ getCustomCurrencyId(asset: TAssetInfo): TXcmAsset;
1629
1668
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1630
1669
  }
1631
1670
 
@@ -1635,6 +1674,7 @@ declare class AssetHubKusama<TApi, TRes> extends Parachain<TApi, TRes> implement
1635
1674
  getMethod(scenario: TScenario, destination: TDestination): TPolkadotXcmMethod;
1636
1675
  getRelayToParaOverrides(): TRelayToParaOverrides;
1637
1676
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1677
+ getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
1638
1678
  }
1639
1679
 
1640
1680
  declare class AssetHubPolkadot<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
@@ -1647,6 +1687,7 @@ declare class AssetHubPolkadot<TApi, TRes> extends Parachain<TApi, TRes> impleme
1647
1687
  transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1648
1688
  getRelayToParaOverrides(): TRelayToParaOverrides;
1649
1689
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1690
+ getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
1650
1691
  }
1651
1692
 
1652
1693
  declare class AssetHubPaseo<TApi, TRes> extends AssetHubPolkadot<TApi, TRes> {
@@ -1662,7 +1703,7 @@ declare class Astar<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkad
1662
1703
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1663
1704
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1664
1705
  canUseXTokens({ assetInfo }: TSendInternalOptions<TApi, TRes>): boolean;
1665
- transferRelayToPara(): Promise<TSerializedApiCall>;
1706
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1666
1707
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1667
1708
  }
1668
1709
 
@@ -1675,7 +1716,7 @@ declare class Basilisk<TApi, TRes> extends Parachain<TApi, TRes> implements IXTo
1675
1716
 
1676
1717
  declare class BifrostPolkadot<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
1677
1718
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1678
- getCurrencySelection(asset: TAssetInfo): {
1719
+ getCustomCurrencyId(asset: TAssetInfo): {
1679
1720
  Native: string;
1680
1721
  VToken?: undefined;
1681
1722
  Token?: undefined;
@@ -1754,7 +1795,9 @@ declare class BridgeHubWestend<TApi, TRes> extends BridgeHubPolkadot<TApi, TRes>
1754
1795
 
1755
1796
  declare class Centrifuge<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1756
1797
  constructor();
1757
- private getCurrencySelection;
1798
+ getCustomCurrencyId(asset: TAssetInfo): "Native" | {
1799
+ ForeignAsset: number;
1800
+ };
1758
1801
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1759
1802
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1760
1803
  }
@@ -1793,7 +1836,7 @@ declare class CoretimeWestend<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
1793
1836
  declare class Crab<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1794
1837
  constructor();
1795
1838
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1796
- transferRelayToPara(): Promise<TSerializedApiCall>;
1839
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1797
1840
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1798
1841
  }
1799
1842
 
@@ -1813,6 +1856,7 @@ declare class CrustShadow<TApi, TRes> extends Parachain<TApi, TRes> implements I
1813
1856
 
1814
1857
  declare class Curio<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1815
1858
  constructor();
1859
+ getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
1816
1860
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1817
1861
  isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
1818
1862
  isReceivingTempDisabled(_scenario: TScenario): boolean;
@@ -1833,7 +1877,7 @@ declare class Encointer<TApi, TRes> extends Parachain<TApi, TRes> implements IPo
1833
1877
  declare class EnergyWebX<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1834
1878
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1835
1879
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1836
- transferRelayToPara(): Promise<TSerializedApiCall>;
1880
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1837
1881
  }
1838
1882
 
1839
1883
  declare class EnergyWebXPaseo<TApi, TRes> extends EnergyWebX<TApi, TRes> {
@@ -1867,7 +1911,7 @@ declare class HydrationPaseo<TApi, TRes> extends Hydration<TApi, TRes> {
1867
1911
  declare class IntegriteePolkadot<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1868
1912
  constructor(chain?: TParachain, info?: string, type?: TRelaychain, version?: Version);
1869
1913
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1870
- transferRelayToPara(): Promise<TSerializedApiCall>;
1914
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1871
1915
  isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
1872
1916
  isReceivingTempDisabled(_scenario: TScenario): boolean;
1873
1917
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
@@ -1879,19 +1923,29 @@ declare class IntegriteeKusama<TApi, TRes> extends IntegriteePolkadot<TApi, TRes
1879
1923
 
1880
1924
  declare class IntegriteePaseo<TApi, TRes> extends IntegriteeKusama<TApi, TRes> {
1881
1925
  constructor();
1926
+ isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
1927
+ isReceivingTempDisabled(_scenario: TScenario): boolean;
1882
1928
  }
1883
1929
 
1884
1930
  declare class Interlay<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1885
1931
  constructor();
1886
- getCurrencySelection(asset: TAssetInfo): TForeignOrTokenAsset;
1932
+ getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
1887
1933
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1888
1934
  transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): Promise<TRes>;
1889
1935
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1936
+ getBalanceNative(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
1890
1937
  }
1891
1938
 
1892
1939
  declare class Jamton<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1893
1940
  private static NATIVE_ASSET_IDS;
1894
1941
  constructor();
1942
+ getCustomCurrencyId(asset: TAssetInfo): {
1943
+ ForeignAsset: number;
1944
+ Native?: undefined;
1945
+ } | {
1946
+ Native: number;
1947
+ ForeignAsset?: undefined;
1948
+ };
1895
1949
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1896
1950
  }
1897
1951
 
@@ -1902,7 +1956,7 @@ declare class Karura<TApi, TRes> extends Acala<TApi, TRes> {
1902
1956
  declare class KiltSpiritnet<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1903
1957
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1904
1958
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1905
- transferRelayToPara(): Promise<TSerializedApiCall>;
1959
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1906
1960
  }
1907
1961
 
1908
1962
  declare class KiltPaseo<TApi, TRes> extends KiltSpiritnet<TApi, TRes> {
@@ -1911,16 +1965,17 @@ declare class KiltPaseo<TApi, TRes> extends KiltSpiritnet<TApi, TRes> {
1911
1965
 
1912
1966
  declare class Kintsugi<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1913
1967
  constructor();
1914
- getCurrencySelection(asset: TAssetInfo): TForeignOrTokenAsset;
1968
+ getCustomCurrencyId(asset: TAssetInfo): TForeignOrTokenAsset;
1915
1969
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1916
1970
  transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): Promise<TRes>;
1917
1971
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1972
+ getBalanceNative(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
1918
1973
  }
1919
1974
 
1920
1975
  declare class Laos<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1921
1976
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1922
1977
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1923
- transferRelayToPara(): Promise<TSerializedApiCall>;
1978
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1924
1979
  }
1925
1980
 
1926
1981
  declare class LaosPaseo<TApi, TRes> extends Laos<TApi, TRes> {
@@ -1941,6 +1996,7 @@ declare class Moonbeam<TApi, TRes> extends Parachain<TApi, TRes> implements IPol
1941
1996
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1942
1997
  transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1943
1998
  transferLocalNonNativeAsset(_options: TTransferLocalOptions<TApi, TRes>): TRes;
1999
+ getBalanceForeign<TApi, TRes>(_api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
1944
2000
  }
1945
2001
 
1946
2002
  declare class Moonriver<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
@@ -1953,7 +2009,7 @@ declare class Mythos<TApi, TRes> extends Parachain<TApi, TRes> implements IPolka
1953
2009
  constructor();
1954
2010
  private createTx;
1955
2011
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1956
- transferRelayToPara(): Promise<TSerializedApiCall>;
2012
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1957
2013
  }
1958
2014
 
1959
2015
  declare class NeuroWeb<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
@@ -1970,11 +2026,13 @@ declare class NeuroWebPaseo<TApi, TRes> extends NeuroWeb<TApi, TRes> {
1970
2026
  declare class Nodle<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1971
2027
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1972
2028
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1973
- transferRelayToPara(): Promise<TSerializedApiCall>;
2029
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1974
2030
  }
1975
2031
 
1976
2032
  declare class NodlePaseo<TApi, TRes> extends Nodle<TApi, TRes> {
1977
2033
  constructor();
2034
+ isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
2035
+ isReceivingTempDisabled(_scenario: TScenario): boolean;
1978
2036
  }
1979
2037
 
1980
2038
  declare class PeoplePolkadot<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
@@ -1992,7 +2050,7 @@ declare class PAssetHub<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
1992
2050
  declare class Peaq<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1993
2051
  constructor();
1994
2052
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1995
- transferRelayToPara(): Promise<TSerializedApiCall>;
2053
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
1996
2054
  isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
1997
2055
  isReceivingTempDisabled(_scenario: TScenario): boolean;
1998
2056
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
@@ -2000,12 +2058,13 @@ declare class Peaq<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokens
2000
2058
 
2001
2059
  declare class Pendulum<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
2002
2060
  constructor();
2003
- private getCurrencySelection;
2061
+ getCustomCurrencyId(asset: TAssetInfo): TXcmAsset;
2004
2062
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
2005
2063
  }
2006
2064
 
2007
2065
  declare class Penpal<TApi, TRes> extends Moonbeam<TApi, TRes> {
2008
2066
  constructor();
2067
+ getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
2009
2068
  }
2010
2069
 
2011
2070
  declare class PeopleKusama<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
@@ -2052,7 +2111,7 @@ declare class Shiden<TApi, TRes> extends Parachain<TApi, TRes> implements IPolka
2052
2111
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
2053
2112
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
2054
2113
  canUseXTokens({ assetInfo }: TSendInternalOptions<TApi, TRes>): boolean;
2055
- transferRelayToPara(): Promise<TSerializedApiCall>;
2114
+ transferRelayToPara(): Promise<TSerializedExtrinsics>;
2056
2115
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
2057
2116
  }
2058
2117
 
@@ -2061,6 +2120,7 @@ declare class Unique<TApi, TRes> extends Parachain<TApi, TRes> implements IXToke
2061
2120
  constructor();
2062
2121
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
2063
2122
  transferLocalNonNativeAsset(_options: TTransferLocalOptions<TApi, TRes>): TRes;
2123
+ getBalanceForeign<TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: string, asset: TAssetInfo): Promise<bigint>;
2064
2124
  }
2065
2125
 
2066
2126
  declare class Xode<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
@@ -2071,7 +2131,7 @@ declare class Xode<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkado
2071
2131
 
2072
2132
  declare class Zeitgeist<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
2073
2133
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
2074
- private getCurrencySelection;
2134
+ getCustomCurrencyId(asset: TAssetInfo): TZeitgeistAsset | TXcmForeignAsset;
2075
2135
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
2076
2136
  canReceiveFrom(origin: TChain): boolean;
2077
2137
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
@@ -2162,32 +2222,6 @@ declare const ETHEREUM_JUNCTION: TJunction;
2162
2222
  declare const TX_CLIENT_TIMEOUT_MS: number;
2163
2223
  declare const DRY_RUN_CLIENT_TIMEOUT_MS: number;
2164
2224
 
2165
- type TSetBalanceRes = {
2166
- assetStatusTx?: TSerializedApiCall;
2167
- balanceTx: TSerializedApiCall;
2168
- };
2169
- declare abstract class BaseAssetsPallet {
2170
- protected palletName: TPallet;
2171
- constructor(palletName: TPallet);
2172
- abstract mint<TApi, TRes>(address: string, assetInfo: WithAmount<TAssetInfo>, balance: bigint, chain: TSubstrateChain, api: IPolkadotApi<TApi, TRes>): Promise<TSetBalanceRes>;
2173
- }
2174
-
2175
- declare class AssetsPallet extends BaseAssetsPallet {
2176
- mint(address: string, asset: WithAmount<TAssetInfo>, _balance: bigint, chain: TSubstrateChain): Promise<TSetBalanceRes>;
2177
- }
2178
-
2179
- declare const getAssetBalanceInternal: <TApi, TRes>({ address, chain, currency, api }: TGetAssetBalanceOptions<TApi, TRes>) => Promise<bigint>;
2180
- declare const getAssetBalance: <TApi, TRes>(options: TGetAssetBalanceOptions<TApi, TRes>) => Promise<bigint>;
2181
-
2182
- declare const getBalanceForeignInternal: <TApi, TRes>({ address, chain, currency, api }: TGetBalanceForeignOptions<TApi, TRes>) => Promise<bigint>;
2183
- declare const getBalanceForeign: <TApi, TRes>(options: TGetBalanceForeignOptions<TApi, TRes>) => Promise<bigint>;
2184
-
2185
- declare const getBalanceNativeInternal: <TApi, TRes>({ address, chain, api, currency }: TGetBalanceNativeOptions<TApi, TRes>) => Promise<bigint>;
2186
- declare const getBalanceNative: <TApi, TRes>(options: TGetBalanceNativeOptions<TApi, TRes>) => Promise<bigint>;
2187
-
2188
- declare const getOriginFeeDetailsInternal: <TApi, TRes>({ api, account, accountDestination, ahAddress, currency, origin, destination, feeMarginPercentage }: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
2189
- declare const getOriginFeeDetails: <TApi, TRes>(options: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
2190
-
2191
2225
  declare const claimAssets: <TApi, TRes>(options: TAssetClaimOptions<TApi, TRes>) => Promise<TRes>;
2192
2226
 
2193
2227
  declare const dryRun: <TApi, TRes>(options: TDryRunOptions<TApi, TRes>) => Promise<TDryRunResult>;
@@ -2212,6 +2246,9 @@ declare const transferMoonbeamEvm: <TApi, TRes>({ api, from, to, signer, address
2212
2246
 
2213
2247
  declare const transferMoonbeamToEth: <TApi, TRes>({ api, from, to, signer, address, ahAddress, currency }: TEvmBuilderOptions<TApi, TRes>) => Promise<`0x${string}`>;
2214
2248
 
2249
+ declare const getOriginFeeDetailsInternal: <TApi, TRes>({ api, account, accountDestination, ahAddress, currency, origin, destination, feeMarginPercentage }: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
2250
+ declare const getOriginFeeDetails: <TApi, TRes>(options: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
2251
+
2215
2252
  declare const getOriginXcmFee: <TApi, TRes>(options: TGetOriginXcmFeeOptions<TApi, TRes>) => Promise<TXcmFeeDetail & {
2216
2253
  forwardedXcms?: unknown;
2217
2254
  destParaId?: number;
@@ -2245,18 +2282,18 @@ declare const getTransferableAmount: <TApi, TRes>(options: TGetTransferableAmoun
2245
2282
 
2246
2283
  declare const transferRelayToPara: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>) => Promise<TRes>;
2247
2284
 
2248
- declare const constructTypeAndThenCall: <TApi, TRes>(context: TTypeAndThenCallContext<TApi, TRes>, fees?: TTypeAndThenFees | null) => TSerializedApiCall;
2285
+ declare const constructTypeAndThenCall: <TApi, TRes>(context: TTypeAndThenCallContext<TApi, TRes>, fees?: TTypeAndThenFees | null) => TSerializedExtrinsics;
2249
2286
  /**
2250
2287
  * Creates a type and then call for transferring assets using XCM. Works only for DOT and snowbridge assets so far.
2251
2288
  */
2252
- declare const createTypeAndThenCall: <TApi, TRes>(chain: TSubstrateChain, options: TPolkadotXCMTransferOptions<TApi, TRes>, overrideReserve?: TSubstrateChain) => Promise<TSerializedApiCall>;
2289
+ declare const createTypeAndThenCall: <TApi, TRes>(chain: TSubstrateChain, options: TPolkadotXCMTransferOptions<TApi, TRes>, overrideReserve?: TSubstrateChain) => Promise<TSerializedExtrinsics>;
2253
2290
 
2254
2291
  /**
2255
2292
  * Creates a type-and-then call but auto-selects the asset reserve between AssetHub and the Relay chain
2256
2293
  * by dry-running both variants and preferring the one that succeeds. If both fail, returns the
2257
2294
  * AssetHub variant. Supports only relaychain assets.
2258
2295
  */
2259
- declare const createTypeThenAutoReserve: <TApi, TRes>(chain: TSubstrateChain, options: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TSerializedApiCall>;
2296
+ declare const createTypeThenAutoReserve: <TApi, TRes>(chain: TSubstrateChain, options: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TSerializedExtrinsics>;
2260
2297
 
2261
2298
  declare const validateCurrency: (currency: TCurrencyInput, feeAsset?: TCurrencyInput) => void;
2262
2299
  declare const validateDestination: (origin: TSubstrateChain, destination: TDestination) => void;
@@ -2276,7 +2313,7 @@ declare const assertIsForeign: (asset: TAssetInfo) => asserts asset is TForeignA
2276
2313
  declare const createAsset: (version: Version, amount: bigint, location: TLocation) => TAsset;
2277
2314
  declare const createVersionedAssets: (version: Version, amount: bigint, location: TLocation) => OneKey<Version, TAsset[]>;
2278
2315
 
2279
- declare const getCurrencySelection: (chain: TSubstrateChain, asset: TAssetInfo) => TCurrencyCore;
2316
+ declare const formatAssetIdToERC20: (id: string) => string;
2280
2317
 
2281
2318
  declare const maybeOverrideAssets: (version: Version, amount: bigint, assets: TAsset[], overriddenCurrency?: TLocation | TAsset[]) => TAsset | TAsset[];
2282
2319
  declare const maybeOverrideAsset: (version: Version, amount: bigint, asset: TAsset, overriddenCurrency?: TLocation | TAsset[]) => TAsset;
@@ -2362,13 +2399,13 @@ declare const createBaseExecuteXcm: (options: TCreateBaseTransferXcmOptions & {
2362
2399
  suffixXcm?: unknown[];
2363
2400
  }) => unknown[];
2364
2401
 
2365
- declare const createExecuteCall: (chain: TSubstrateChain, xcm: TXcmVersioned<any>, maxWeight: TWeight) => TSerializedApiCall;
2402
+ declare const createExecuteCall: (chain: TSubstrateChain, xcm: TXcmVersioned<any>, maxWeight: TWeight) => TSerializedExtrinsics;
2366
2403
 
2367
2404
  declare const createExecuteExchangeXcm: <TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>, origin: TSubstrateChain, weight: TWeight, originExecutionFee: bigint, destExecutionFee: bigint) => TRes;
2368
2405
 
2369
2406
  declare const createDirectExecuteXcm: <TApi, TRes>(options: TCreateTransferXcmOptions<TApi, TRes>) => OneKey<_paraspell_sdk_common.Version, unknown[]>;
2370
2407
 
2371
- declare const handleExecuteTransfer: <TApi, TRes>(chain: TParachain, options: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TSerializedApiCall>;
2408
+ declare const handleExecuteTransfer: <TApi, TRes>(chain: TParachain, options: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TSerializedExtrinsics>;
2372
2409
 
2373
2410
  declare const handleSwapExecuteTransfer: <TApi, TRes>(options: TCreateSwapXcmOptions<TApi, TRes>) => Promise<TRes>;
2374
2411
 
@@ -2379,5 +2416,5 @@ declare const formatUnits: typeof formatUnits$1;
2379
2416
 
2380
2417
  declare const validateAddress: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>, address: TAddress, chain: TChain, isDestination?: boolean) => void;
2381
2418
 
2382
- export { AmountTooLowError, AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, PolkadotXcmExecutionError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, constructTypeAndThenCall, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatUnits, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, verifyEdOnDestination, wrapTxBypass };
2383
- export type { BuildHopInfoOptions, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedSendOptions, TBifrostToken, TBridgeStatus, TBuildDestInfoOptions, TBuildInternalRes, TBuilderConfig, TBuilderOptions, TBypassOptions, TChainConfig, TChainConfigMap, TChainWithApi, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignByAssetOptions, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TResolveHopParams, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapConfig, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTxFactory, TTypeAndThenCallContext, TTypeAndThenFees, TUrl, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmFeeSwapConfig, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
2419
+ export { AmountTooLowError, AssetClaimBuilder, BaseAssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, PolkadotXcmExecutionError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, constructTypeAndThenCall, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatAssetIdToERC20, formatUnits, getAssetBalanceInternal, getAssetReserveChain, getBalance, getBalanceInternal, getBalanceNative, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getEthErc20Balance, getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getMoonbeamErc20Balance, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, verifyEdOnDestination, wrapTxBypass };
2420
+ export type { BuildHopInfoOptions, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedSendOptions, TBifrostToken, TBridgeStatus, TBuildDestInfoOptions, TBuildInternalRes, TBuilderConfig, TBuilderOptions, TBypassOptions, TChainConfig, TChainConfigMap, TChainWithApi, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunError, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceCommonOptions, TGetBalanceForeignByAssetOptions, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetBalanceOptions, TGetBalanceOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TResolveHopParams, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedEthTransfer, TSerializedExtrinsics, TSerializedRuntimeApiQuery, TSerializedStateQuery, TSetBalanceRes, TSwapConfig, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTxFactory, TTypeAndThenCallContext, TTypeAndThenFees, TUrl, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmFeeSwapConfig, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };