@paraspell/sdk-core 11.2.4 → 11.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -162,6 +162,10 @@ type TRelayToParaBaseOptions = {
162
162
  * The DOT or KSM asset to transfer
163
163
  */
164
164
  assetInfo: WithAmount<TAssetInfo>;
165
+ /**
166
+ * The currency to transfer. Either ID, symbol, location, or multi-asset
167
+ */
168
+ currency: TCurrencyInputWithAmount;
165
169
  /**
166
170
  * The optional pallet override
167
171
  */
@@ -191,7 +195,7 @@ type TDestWeight = {
191
195
  type TXTransferMethod = 'transfer';
192
196
  type TXTokensMethod = 'transfer' | 'transfer_multiasset' | 'transfer_multiassets';
193
197
  type TPolkadotXcmMethod = 'limited_teleport_assets' | 'limited_reserve_transfer_assets' | 'reserve_withdraw_assets' | 'transfer_assets';
194
- type TXcmPalletMethod = 'limited_teleport_assets' | 'limited_reserve_transfer_assets';
198
+ type TXcmPalletMethod = 'limited_teleport_assets' | 'limited_reserve_transfer_assets' | 'transfer_assets_using_type_and_then';
195
199
  type TWeight = {
196
200
  refTime: bigint;
197
201
  proofSize: bigint;
@@ -617,32 +621,32 @@ type TDryRunXcmBaseOptions = {
617
621
  * The origin chain
618
622
  */
619
623
  origin: TSubstrateChain;
620
- asset: TAssetInfo | null;
624
+ asset: TAssetInfo;
621
625
  feeAsset?: TAssetInfo;
622
626
  amount: bigint;
623
627
  originFee: bigint;
624
628
  };
625
629
  type TDryRunXcmOptions<TApi, TRes> = WithApi<TDryRunXcmBaseOptions, TApi, TRes>;
626
- type TDryRunChainSuccess = {
630
+ type TDryRunResBase = {
631
+ /** @deprecated Use `asset` property instead. */
632
+ currency: string;
633
+ asset: TAssetInfo;
634
+ };
635
+ type TDryRunChainSuccess = TDryRunResBase & {
627
636
  success: true;
628
637
  fee: bigint;
629
638
  weight?: TWeight;
630
639
  forwardedXcms: any;
631
640
  destParaId?: number;
632
641
  };
633
- type TDryRunChainFailure = {
642
+ type TDryRunChainFailure = TDryRunResBase & {
634
643
  success: false;
635
644
  failureReason: string;
636
645
  };
637
- type TDryRunChainResultInternal = TDryRunChainSuccess | TDryRunChainFailure;
638
- type TDryRunChainResult = (TDryRunChainSuccess & {
639
- currency: string;
640
- }) | TDryRunChainFailure;
646
+ type TDryRunChainResult = TDryRunChainSuccess | TDryRunChainFailure;
641
647
  type THopInfo = {
642
648
  chain: TChain;
643
- result: TDryRunChainResultInternal & {
644
- currency?: string;
645
- };
649
+ result: TDryRunChainResult;
646
650
  };
647
651
  type TDryRunChain = 'origin' | 'destination' | 'assetHub' | 'bridgeHub' | TChain;
648
652
  type TDryRunResult = {
@@ -879,16 +883,20 @@ declare class UnableToComputeError extends Error {
879
883
  type THopTransferInfo = {
880
884
  chain: TChain;
881
885
  result: {
882
- xcmFee: TXcmFeeBase;
886
+ xcmFee: TXcmFeeBase$1;
883
887
  balance?: bigint;
884
888
  existentialDeposit?: bigint;
889
+ /** @deprecated use `asset` property instead */
885
890
  currencySymbol: string;
891
+ asset: TAssetInfo;
886
892
  };
887
893
  };
888
- type TXcmFeeBase = {
894
+ type TXcmFeeBase$1 = {
889
895
  fee: bigint;
890
896
  balance: bigint;
897
+ /** @deprecated use `asset` property instead */
891
898
  currencySymbol: string;
899
+ asset: TAssetInfo;
892
900
  };
893
901
  type TTransferInfo = {
894
902
  chain: {
@@ -901,23 +909,29 @@ type TTransferInfo = {
901
909
  sufficient: boolean;
902
910
  balance: bigint;
903
911
  balanceAfter: bigint;
912
+ /** @deprecated use `asset` property instead */
904
913
  currencySymbol: string;
914
+ asset: TAssetInfo;
905
915
  existentialDeposit: bigint;
906
916
  };
907
- xcmFee: TXcmFeeBase & {
917
+ xcmFee: TXcmFeeBase$1 & {
908
918
  sufficient: boolean;
909
919
  balanceAfter: bigint;
910
920
  };
911
921
  };
912
922
  assetHub?: {
913
923
  balance: bigint;
924
+ /** @deprecated use `asset` property instead */
914
925
  currencySymbol: string;
926
+ asset: TAssetInfo;
915
927
  existentialDeposit: bigint;
916
- xcmFee: TXcmFeeBase;
928
+ xcmFee: TXcmFeeBase$1;
917
929
  };
918
930
  bridgeHub?: {
931
+ /** @deprecated use `asset` property instead */
919
932
  currencySymbol: string;
920
- xcmFee: TXcmFeeBase;
933
+ asset: TAssetInfo;
934
+ xcmFee: TXcmFeeBase$1;
921
935
  };
922
936
  hops?: THopTransferInfo[];
923
937
  destination: {
@@ -926,10 +940,12 @@ type TTransferInfo = {
926
940
  receivedAmount: bigint | UnableToComputeError;
927
941
  balance: bigint;
928
942
  balanceAfter: bigint | UnableToComputeError;
943
+ /** @deprecated use `asset` property instead */
929
944
  currencySymbol: string;
945
+ asset: TAssetInfo;
930
946
  existentialDeposit: bigint;
931
947
  };
932
- xcmFee: TXcmFeeBase & {
948
+ xcmFee: TXcmFeeBase$1 & {
933
949
  balanceAfter: bigint | UnableToComputeError;
934
950
  };
935
951
  };
@@ -1283,29 +1299,25 @@ type TGetReverseTxFeeOptions<TApi, TRes> = Omit<TGetFeeForDestChainOptions<TApi,
1283
1299
  };
1284
1300
  type THubKey = 'assetHub' | 'bridgeHub';
1285
1301
  type TFeeType = 'dryRun' | 'paymentInfo' | 'noFeeRequired';
1286
- type TXcmFeeDetailWithFallback = {
1287
- fee: bigint;
1302
+ type TXcmFeeBase = {
1303
+ /** @deprecated Use `asset` property instead. */
1288
1304
  currency: string;
1289
- feeType: TFeeType;
1305
+ asset: TAssetInfo;
1290
1306
  weight?: TWeight;
1291
1307
  sufficient?: boolean;
1292
- dryRunError?: string;
1293
1308
  };
1294
- type TXcmFeeDetail = {
1309
+ type TXcmFeeDetailSuccess = TXcmFeeBase & {
1295
1310
  fee: bigint;
1296
- currency: string;
1297
1311
  feeType: TFeeType;
1298
- weight?: TWeight;
1299
- sufficient?: boolean;
1300
1312
  dryRunError?: string;
1301
- } | {
1313
+ };
1314
+ type TXcmFeeDetailWithFallback = TXcmFeeDetailSuccess;
1315
+ type TXcmFeeDetailError = TXcmFeeBase & {
1302
1316
  fee?: bigint;
1303
- currency?: string;
1304
1317
  feeType?: TFeeType;
1305
- weight?: TWeight;
1306
- sufficient?: boolean;
1307
1318
  dryRunError: string;
1308
1319
  };
1320
+ type TXcmFeeDetail = TXcmFeeDetailSuccess | TXcmFeeDetailError;
1309
1321
  type TXcmFeeHopResult = {
1310
1322
  fee?: bigint;
1311
1323
  feeType?: TFeeType;
@@ -1313,7 +1325,9 @@ type TXcmFeeHopResult = {
1313
1325
  dryRunError?: string;
1314
1326
  forwardedXcms?: any;
1315
1327
  destParaId?: number;
1316
- currency?: string;
1328
+ /** @deprecated Use `asset` property instead. */
1329
+ currency: string;
1330
+ asset: TAssetInfo;
1317
1331
  };
1318
1332
  type TConditionalXcmFeeDetail<TDisableFallback extends boolean> = TDisableFallback extends false ? TXcmFeeDetailWithFallback : TXcmFeeDetail;
1319
1333
  type TDestXcmFeeDetail<TDisableFallback extends boolean> = Omit<TConditionalXcmFeeDetail<TDisableFallback>, 'currency'> & {
@@ -1340,7 +1354,9 @@ type TGetXcmFeeResult<TDisableFallback extends boolean = boolean> = {
1340
1354
  };
1341
1355
  type TGetXcmFeeEstimateDetail = {
1342
1356
  fee: bigint;
1357
+ /** @deprecated Use `asset` property instead. */
1343
1358
  currency: string;
1359
+ asset: TAssetInfo;
1344
1360
  sufficient?: boolean;
1345
1361
  };
1346
1362
  type TGetXcmFeeEstimateResult = {
@@ -1362,6 +1378,7 @@ interface IPolkadotApi<TApi, TRes> {
1362
1378
  hexToUint8a(hex: string): Uint8Array;
1363
1379
  stringToUint8a(str: string): Uint8Array;
1364
1380
  getMethod(tx: TRes): string;
1381
+ hasMethod(pallet: TPallet, method: string): Promise<boolean>;
1365
1382
  calculateTransactionFee(tx: TRes, address: string): Promise<bigint>;
1366
1383
  quoteAhPrice(fromMl: TLocation, toMl: TLocation, amountIn: bigint, includeFee?: boolean): Promise<bigint | undefined>;
1367
1384
  getXcmWeight(xcm: any): Promise<TWeight>;
@@ -1380,8 +1397,8 @@ interface IPolkadotApi<TApi, TRes> {
1380
1397
  blake2AsHex(data: Uint8Array): string;
1381
1398
  clone(): IPolkadotApi<TApi, TRes>;
1382
1399
  createApiForChain(chain: TSubstrateChain): Promise<IPolkadotApi<TApi, TRes>>;
1383
- getDryRunCall(options: TDryRunCallBaseOptions<TRes>): Promise<TDryRunChainResultInternal>;
1384
- getDryRunXcm(options: TDryRunXcmBaseOptions): Promise<TDryRunChainResultInternal>;
1400
+ getDryRunCall(options: TDryRunCallBaseOptions<TRes>): Promise<TDryRunChainResult>;
1401
+ getDryRunXcm(options: TDryRunXcmBaseOptions): Promise<TDryRunChainResult>;
1385
1402
  getBridgeStatus(): Promise<TBridgeStatus>;
1386
1403
  setDisconnectAllowed(allowed: boolean): void;
1387
1404
  getDisconnectAllowed(): boolean;
@@ -1428,7 +1445,7 @@ declare abstract class Parachain<TApi, TRes> {
1428
1445
  transfer(sendOptions: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
1429
1446
  shouldUseNativeAssetTeleport({ assetInfo: asset, to }: TSendInternalOptions<TApi, TRes>): boolean;
1430
1447
  getRelayToParaOverrides(): TRelayToParaOverrides;
1431
- transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
1448
+ transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): Promise<TSerializedApiCall>;
1432
1449
  createCurrencySpec(amount: bigint, scenario: TScenario, version: Version, asset?: TAssetInfo, _isOverridenAsset?: boolean): TAsset;
1433
1450
  getNativeAssetSymbol(): string;
1434
1451
  transferLocal(options: TSendInternalOptions<TApi, TRes>): TRes;
@@ -1450,12 +1467,14 @@ declare class Ajuna<TApi, TRes> extends Parachain<TApi, TRes> implements IXToken
1450
1467
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1451
1468
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1452
1469
  canUseXTokens({ assetInfo, to: destination }: TSendInternalOptions<TApi, TRes>): boolean;
1453
- transferRelayToPara(): TSerializedApiCall;
1470
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1454
1471
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1455
1472
  }
1456
1473
 
1457
- declare class AjunaPaseo<TApi, TRes> extends Ajuna<TApi, TRes> {
1474
+ declare class AjunaPaseo<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1458
1475
  constructor();
1476
+ transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1477
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1459
1478
  }
1460
1479
 
1461
1480
  declare class Altair<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
@@ -1642,7 +1661,7 @@ declare class CoretimeWestend<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
1642
1661
  declare class Crab<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1643
1662
  constructor();
1644
1663
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1645
- transferRelayToPara(): TSerializedApiCall;
1664
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1646
1665
  createCurrencySpec(amount: bigint, scenario: TScenario, version: Version, _asset?: TAssetInfo): _paraspell_assets.TAsset;
1647
1666
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1648
1667
  }
@@ -1682,7 +1701,7 @@ declare class Encointer<TApi, TRes> extends Parachain<TApi, TRes> implements IPo
1682
1701
  declare class EnergyWebX<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1683
1702
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1684
1703
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1685
- transferRelayToPara(): TSerializedApiCall;
1704
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1686
1705
  }
1687
1706
 
1688
1707
  declare class EnergyWebXPaseo<TApi, TRes> extends EnergyWebX<TApi, TRes> {
@@ -1718,7 +1737,7 @@ declare class HydrationPaseo<TApi, TRes> extends Hydration<TApi, TRes> {
1718
1737
  declare class IntegriteeKusama<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1719
1738
  constructor(chain?: TParachain, info?: string, type?: TRelaychain, version?: Version);
1720
1739
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1721
- transferRelayToPara(): TSerializedApiCall;
1740
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1722
1741
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1723
1742
  }
1724
1743
 
@@ -1750,7 +1769,7 @@ declare class Karura<TApi, TRes> extends Parachain<TApi, TRes> implements IXToke
1750
1769
  declare class KiltSpiritnet<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1751
1770
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1752
1771
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1753
- transferRelayToPara(): TSerializedApiCall;
1772
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1754
1773
  }
1755
1774
 
1756
1775
  declare class KiltPaseo<TApi, TRes> extends KiltSpiritnet<TApi, TRes> {
@@ -1768,7 +1787,7 @@ declare class Kintsugi<TApi, TRes> extends Parachain<TApi, TRes> implements IXTo
1768
1787
  declare class Laos<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1769
1788
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1770
1789
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1771
- transferRelayToPara(): TSerializedApiCall;
1790
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1772
1791
  }
1773
1792
 
1774
1793
  declare class LaosPaseo<TApi, TRes> extends Laos<TApi, TRes> {
@@ -1787,7 +1806,6 @@ declare class Moonbeam<TApi, TRes> extends Parachain<TApi, TRes> implements IPol
1787
1806
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1788
1807
  private getLocation;
1789
1808
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1790
- getRelayToParaOverrides(): TRelayToParaOverrides;
1791
1809
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1792
1810
  }
1793
1811
 
@@ -1795,7 +1813,6 @@ declare class Moonriver<TApi, TRes> extends Parachain<TApi, TRes> implements IPo
1795
1813
  constructor();
1796
1814
  private getLocation;
1797
1815
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1798
- getRelayToParaOverrides(): TRelayToParaOverrides;
1799
1816
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1800
1817
  }
1801
1818
 
@@ -1803,7 +1820,7 @@ declare class Mythos<TApi, TRes> extends Parachain<TApi, TRes> implements IPolka
1803
1820
  constructor();
1804
1821
  private createTx;
1805
1822
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1806
- transferRelayToPara(): TSerializedApiCall;
1823
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1807
1824
  }
1808
1825
 
1809
1826
  declare class NeuroWeb<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
@@ -1818,7 +1835,7 @@ declare class NeuroWebPaseo<TApi, TRes> extends NeuroWeb<TApi, TRes> {
1818
1835
  declare class Nodle<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1819
1836
  constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
1820
1837
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1821
- transferRelayToPara(): TSerializedApiCall;
1838
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1822
1839
  }
1823
1840
 
1824
1841
  declare class NodlePaseo<TApi, TRes> extends Nodle<TApi, TRes> {
@@ -1838,7 +1855,7 @@ declare class PAssetHub<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
1838
1855
  declare class Peaq<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
1839
1856
  constructor();
1840
1857
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1841
- transferRelayToPara(): TSerializedApiCall;
1858
+ transferRelayToPara(): Promise<TSerializedApiCall>;
1842
1859
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1843
1860
  }
1844
1861
 
@@ -1875,7 +1892,7 @@ declare class Phala<TApi, TRes> extends Parachain<TApi, TRes> implements IXTrans
1875
1892
  declare class Polimec<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
1876
1893
  constructor();
1877
1894
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1878
- transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
1895
+ transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): Promise<TSerializedApiCall>;
1879
1896
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1880
1897
  }
1881
1898
 
@@ -2154,6 +2171,8 @@ declare const localizeLocation: (chain: TChain, location: TLocation) => TLocatio
2154
2171
 
2155
2172
  declare const reverseTransformLocation: (location: TLocation) => TLocation;
2156
2173
 
2174
+ declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "ComposableFinance" | "Darwinia" | "EnergyWebX" | "Hydration" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "Manta" | "Nodle" | "NeuroWeb" | "Pendulum" | "Phala" | "Subsocial" | "KiltSpiritnet" | "Curio" | "Mythos" | "Peaq" | "Polimec" | "RobonomicsPolkadot" | "PeoplePolkadot" | "Unique" | "AssetHubKusama" | "BridgeHubKusama" | "IntegriteeKusama" | "Karura" | "Kintsugi" | "Moonriver" | "CoretimeKusama" | "Encointer" | "Altair" | "Amplitude" | "Basilisk" | "BifrostKusama" | "CrustShadow" | "Crab" | "Laos" | "Quartz" | "RobonomicsKusama" | "PeopleKusama" | "Shiden" | "Zeitgeist" | "AssetHubWestend" | "BridgeHubWestend" | "CollectivesWestend" | "CoretimeWestend" | "Penpal" | "PeopleWestend" | "AjunaPaseo" | "AssetHubPaseo" | "BifrostPaseo" | "BridgeHubPaseo" | "CoretimePaseo" | "EnergyWebXPaseo" | "HeimaPaseo" | "HydrationPaseo" | "IntegriteePaseo" | "KiltPaseo" | "LaosPaseo" | "NeuroWebPaseo" | "NodlePaseo" | "PAssetHub" | "PeoplePaseo" | "ZeitgeistPaseo" | undefined;
2175
+
2157
2176
  declare const resolveParaId: (paraId: number | undefined, destination: TDestination) => number | undefined;
2158
2177
 
2159
2178
  declare const abstractDecimals: <TApi, TRes>(amount: TAmount, decimals: number | undefined, api: IPolkadotApi<TApi, TRes>) => bigint;
@@ -2188,5 +2207,5 @@ declare const handleToAhTeleport: <TApi, TRes>(origin: TParachain, input: TPolka
2188
2207
 
2189
2208
  declare const validateAddress: (address: TAddress, chain: TChain, isDestination?: boolean) => void;
2190
2209
 
2191
- export { AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertToIsString, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTypeAndThenCall, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, padFee, padFeeBy, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };
2192
- export type { HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TAttemptDryRunFeeOptions, TBalanceResponse, TBatchOptions, TBifrostToken, TBridgeStatus, TBuilderConfig, TBuilderOptions, TChainConfig, TChainConfigMap, TChainWithApi, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunChainFailure, TDryRunChainResult, TDryRunChainResultInternal, TDryRunChainSuccess, TDryRunOptions, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMaxForeignTransferableAmountOptions, TGetMaxForeignTransferableAmountOptionsBase, TGetMaxNativeTransferableAmountOptions, TGetMaxNativeTransferableAmountOptionsBase, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTypeAndThenCallContext, TTypeAndThenFees, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
2210
+ export { AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertToIsString, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTypeAndThenCall, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, padFee, padFeeBy, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };
2211
+ export type { HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TAttemptDryRunFeeOptions, TBalanceResponse, TBatchOptions, TBifrostToken, TBridgeStatus, TBuilderConfig, TBuilderOptions, TChainConfig, TChainConfigMap, TChainWithApi, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMaxForeignTransferableAmountOptions, TGetMaxForeignTransferableAmountOptionsBase, TGetMaxNativeTransferableAmountOptions, TGetMaxNativeTransferableAmountOptionsBase, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTypeAndThenCallContext, TTypeAndThenFees, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase$1 as TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };