@paraspell/sdk-core 11.2.3 → 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.cjs +969 -901
- package/dist/index.d.ts +69 -49
- package/dist/index.mjs +970 -903
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ type TPolkadotXCMTransferOptions<TApi, TRes> = {
|
|
|
26
26
|
feeAssetInfo?: TAssetInfo;
|
|
27
27
|
feeCurrency?: TCurrencyInput;
|
|
28
28
|
destination: TDestination;
|
|
29
|
+
destChain?: TChain;
|
|
29
30
|
paraIdTo?: number;
|
|
30
31
|
version: Version;
|
|
31
32
|
senderAddress?: string;
|
|
@@ -161,6 +162,10 @@ type TRelayToParaBaseOptions = {
|
|
|
161
162
|
* The DOT or KSM asset to transfer
|
|
162
163
|
*/
|
|
163
164
|
assetInfo: WithAmount<TAssetInfo>;
|
|
165
|
+
/**
|
|
166
|
+
* The currency to transfer. Either ID, symbol, location, or multi-asset
|
|
167
|
+
*/
|
|
168
|
+
currency: TCurrencyInputWithAmount;
|
|
164
169
|
/**
|
|
165
170
|
* The optional pallet override
|
|
166
171
|
*/
|
|
@@ -190,7 +195,7 @@ type TDestWeight = {
|
|
|
190
195
|
type TXTransferMethod = 'transfer';
|
|
191
196
|
type TXTokensMethod = 'transfer' | 'transfer_multiasset' | 'transfer_multiassets';
|
|
192
197
|
type TPolkadotXcmMethod = 'limited_teleport_assets' | 'limited_reserve_transfer_assets' | 'reserve_withdraw_assets' | 'transfer_assets';
|
|
193
|
-
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';
|
|
194
199
|
type TWeight = {
|
|
195
200
|
refTime: bigint;
|
|
196
201
|
proofSize: bigint;
|
|
@@ -616,32 +621,32 @@ type TDryRunXcmBaseOptions = {
|
|
|
616
621
|
* The origin chain
|
|
617
622
|
*/
|
|
618
623
|
origin: TSubstrateChain;
|
|
619
|
-
asset: TAssetInfo
|
|
624
|
+
asset: TAssetInfo;
|
|
620
625
|
feeAsset?: TAssetInfo;
|
|
621
626
|
amount: bigint;
|
|
622
627
|
originFee: bigint;
|
|
623
628
|
};
|
|
624
629
|
type TDryRunXcmOptions<TApi, TRes> = WithApi<TDryRunXcmBaseOptions, TApi, TRes>;
|
|
625
|
-
type
|
|
630
|
+
type TDryRunResBase = {
|
|
631
|
+
/** @deprecated Use `asset` property instead. */
|
|
632
|
+
currency: string;
|
|
633
|
+
asset: TAssetInfo;
|
|
634
|
+
};
|
|
635
|
+
type TDryRunChainSuccess = TDryRunResBase & {
|
|
626
636
|
success: true;
|
|
627
637
|
fee: bigint;
|
|
628
638
|
weight?: TWeight;
|
|
629
639
|
forwardedXcms: any;
|
|
630
640
|
destParaId?: number;
|
|
631
641
|
};
|
|
632
|
-
type TDryRunChainFailure = {
|
|
642
|
+
type TDryRunChainFailure = TDryRunResBase & {
|
|
633
643
|
success: false;
|
|
634
644
|
failureReason: string;
|
|
635
645
|
};
|
|
636
|
-
type
|
|
637
|
-
type TDryRunChainResult = (TDryRunChainSuccess & {
|
|
638
|
-
currency: string;
|
|
639
|
-
}) | TDryRunChainFailure;
|
|
646
|
+
type TDryRunChainResult = TDryRunChainSuccess | TDryRunChainFailure;
|
|
640
647
|
type THopInfo = {
|
|
641
648
|
chain: TChain;
|
|
642
|
-
result:
|
|
643
|
-
currency?: string;
|
|
644
|
-
};
|
|
649
|
+
result: TDryRunChainResult;
|
|
645
650
|
};
|
|
646
651
|
type TDryRunChain = 'origin' | 'destination' | 'assetHub' | 'bridgeHub' | TChain;
|
|
647
652
|
type TDryRunResult = {
|
|
@@ -878,16 +883,20 @@ declare class UnableToComputeError extends Error {
|
|
|
878
883
|
type THopTransferInfo = {
|
|
879
884
|
chain: TChain;
|
|
880
885
|
result: {
|
|
881
|
-
xcmFee: TXcmFeeBase;
|
|
886
|
+
xcmFee: TXcmFeeBase$1;
|
|
882
887
|
balance?: bigint;
|
|
883
888
|
existentialDeposit?: bigint;
|
|
889
|
+
/** @deprecated use `asset` property instead */
|
|
884
890
|
currencySymbol: string;
|
|
891
|
+
asset: TAssetInfo;
|
|
885
892
|
};
|
|
886
893
|
};
|
|
887
|
-
type TXcmFeeBase = {
|
|
894
|
+
type TXcmFeeBase$1 = {
|
|
888
895
|
fee: bigint;
|
|
889
896
|
balance: bigint;
|
|
897
|
+
/** @deprecated use `asset` property instead */
|
|
890
898
|
currencySymbol: string;
|
|
899
|
+
asset: TAssetInfo;
|
|
891
900
|
};
|
|
892
901
|
type TTransferInfo = {
|
|
893
902
|
chain: {
|
|
@@ -900,23 +909,29 @@ type TTransferInfo = {
|
|
|
900
909
|
sufficient: boolean;
|
|
901
910
|
balance: bigint;
|
|
902
911
|
balanceAfter: bigint;
|
|
912
|
+
/** @deprecated use `asset` property instead */
|
|
903
913
|
currencySymbol: string;
|
|
914
|
+
asset: TAssetInfo;
|
|
904
915
|
existentialDeposit: bigint;
|
|
905
916
|
};
|
|
906
|
-
xcmFee: TXcmFeeBase & {
|
|
917
|
+
xcmFee: TXcmFeeBase$1 & {
|
|
907
918
|
sufficient: boolean;
|
|
908
919
|
balanceAfter: bigint;
|
|
909
920
|
};
|
|
910
921
|
};
|
|
911
922
|
assetHub?: {
|
|
912
923
|
balance: bigint;
|
|
924
|
+
/** @deprecated use `asset` property instead */
|
|
913
925
|
currencySymbol: string;
|
|
926
|
+
asset: TAssetInfo;
|
|
914
927
|
existentialDeposit: bigint;
|
|
915
|
-
xcmFee: TXcmFeeBase;
|
|
928
|
+
xcmFee: TXcmFeeBase$1;
|
|
916
929
|
};
|
|
917
930
|
bridgeHub?: {
|
|
931
|
+
/** @deprecated use `asset` property instead */
|
|
918
932
|
currencySymbol: string;
|
|
919
|
-
|
|
933
|
+
asset: TAssetInfo;
|
|
934
|
+
xcmFee: TXcmFeeBase$1;
|
|
920
935
|
};
|
|
921
936
|
hops?: THopTransferInfo[];
|
|
922
937
|
destination: {
|
|
@@ -925,10 +940,12 @@ type TTransferInfo = {
|
|
|
925
940
|
receivedAmount: bigint | UnableToComputeError;
|
|
926
941
|
balance: bigint;
|
|
927
942
|
balanceAfter: bigint | UnableToComputeError;
|
|
943
|
+
/** @deprecated use `asset` property instead */
|
|
928
944
|
currencySymbol: string;
|
|
945
|
+
asset: TAssetInfo;
|
|
929
946
|
existentialDeposit: bigint;
|
|
930
947
|
};
|
|
931
|
-
xcmFee: TXcmFeeBase & {
|
|
948
|
+
xcmFee: TXcmFeeBase$1 & {
|
|
932
949
|
balanceAfter: bigint | UnableToComputeError;
|
|
933
950
|
};
|
|
934
951
|
};
|
|
@@ -1282,29 +1299,25 @@ type TGetReverseTxFeeOptions<TApi, TRes> = Omit<TGetFeeForDestChainOptions<TApi,
|
|
|
1282
1299
|
};
|
|
1283
1300
|
type THubKey = 'assetHub' | 'bridgeHub';
|
|
1284
1301
|
type TFeeType = 'dryRun' | 'paymentInfo' | 'noFeeRequired';
|
|
1285
|
-
type
|
|
1286
|
-
|
|
1302
|
+
type TXcmFeeBase = {
|
|
1303
|
+
/** @deprecated Use `asset` property instead. */
|
|
1287
1304
|
currency: string;
|
|
1288
|
-
|
|
1305
|
+
asset: TAssetInfo;
|
|
1289
1306
|
weight?: TWeight;
|
|
1290
1307
|
sufficient?: boolean;
|
|
1291
|
-
dryRunError?: string;
|
|
1292
1308
|
};
|
|
1293
|
-
type
|
|
1309
|
+
type TXcmFeeDetailSuccess = TXcmFeeBase & {
|
|
1294
1310
|
fee: bigint;
|
|
1295
|
-
currency: string;
|
|
1296
1311
|
feeType: TFeeType;
|
|
1297
|
-
weight?: TWeight;
|
|
1298
|
-
sufficient?: boolean;
|
|
1299
1312
|
dryRunError?: string;
|
|
1300
|
-
}
|
|
1313
|
+
};
|
|
1314
|
+
type TXcmFeeDetailWithFallback = TXcmFeeDetailSuccess;
|
|
1315
|
+
type TXcmFeeDetailError = TXcmFeeBase & {
|
|
1301
1316
|
fee?: bigint;
|
|
1302
|
-
currency?: string;
|
|
1303
1317
|
feeType?: TFeeType;
|
|
1304
|
-
weight?: TWeight;
|
|
1305
|
-
sufficient?: boolean;
|
|
1306
1318
|
dryRunError: string;
|
|
1307
1319
|
};
|
|
1320
|
+
type TXcmFeeDetail = TXcmFeeDetailSuccess | TXcmFeeDetailError;
|
|
1308
1321
|
type TXcmFeeHopResult = {
|
|
1309
1322
|
fee?: bigint;
|
|
1310
1323
|
feeType?: TFeeType;
|
|
@@ -1312,7 +1325,9 @@ type TXcmFeeHopResult = {
|
|
|
1312
1325
|
dryRunError?: string;
|
|
1313
1326
|
forwardedXcms?: any;
|
|
1314
1327
|
destParaId?: number;
|
|
1315
|
-
|
|
1328
|
+
/** @deprecated Use `asset` property instead. */
|
|
1329
|
+
currency: string;
|
|
1330
|
+
asset: TAssetInfo;
|
|
1316
1331
|
};
|
|
1317
1332
|
type TConditionalXcmFeeDetail<TDisableFallback extends boolean> = TDisableFallback extends false ? TXcmFeeDetailWithFallback : TXcmFeeDetail;
|
|
1318
1333
|
type TDestXcmFeeDetail<TDisableFallback extends boolean> = Omit<TConditionalXcmFeeDetail<TDisableFallback>, 'currency'> & {
|
|
@@ -1339,7 +1354,9 @@ type TGetXcmFeeResult<TDisableFallback extends boolean = boolean> = {
|
|
|
1339
1354
|
};
|
|
1340
1355
|
type TGetXcmFeeEstimateDetail = {
|
|
1341
1356
|
fee: bigint;
|
|
1357
|
+
/** @deprecated Use `asset` property instead. */
|
|
1342
1358
|
currency: string;
|
|
1359
|
+
asset: TAssetInfo;
|
|
1343
1360
|
sufficient?: boolean;
|
|
1344
1361
|
};
|
|
1345
1362
|
type TGetXcmFeeEstimateResult = {
|
|
@@ -1361,6 +1378,7 @@ interface IPolkadotApi<TApi, TRes> {
|
|
|
1361
1378
|
hexToUint8a(hex: string): Uint8Array;
|
|
1362
1379
|
stringToUint8a(str: string): Uint8Array;
|
|
1363
1380
|
getMethod(tx: TRes): string;
|
|
1381
|
+
hasMethod(pallet: TPallet, method: string): Promise<boolean>;
|
|
1364
1382
|
calculateTransactionFee(tx: TRes, address: string): Promise<bigint>;
|
|
1365
1383
|
quoteAhPrice(fromMl: TLocation, toMl: TLocation, amountIn: bigint, includeFee?: boolean): Promise<bigint | undefined>;
|
|
1366
1384
|
getXcmWeight(xcm: any): Promise<TWeight>;
|
|
@@ -1379,8 +1397,8 @@ interface IPolkadotApi<TApi, TRes> {
|
|
|
1379
1397
|
blake2AsHex(data: Uint8Array): string;
|
|
1380
1398
|
clone(): IPolkadotApi<TApi, TRes>;
|
|
1381
1399
|
createApiForChain(chain: TSubstrateChain): Promise<IPolkadotApi<TApi, TRes>>;
|
|
1382
|
-
getDryRunCall(options: TDryRunCallBaseOptions<TRes>): Promise<
|
|
1383
|
-
getDryRunXcm(options: TDryRunXcmBaseOptions): Promise<
|
|
1400
|
+
getDryRunCall(options: TDryRunCallBaseOptions<TRes>): Promise<TDryRunChainResult>;
|
|
1401
|
+
getDryRunXcm(options: TDryRunXcmBaseOptions): Promise<TDryRunChainResult>;
|
|
1384
1402
|
getBridgeStatus(): Promise<TBridgeStatus>;
|
|
1385
1403
|
setDisconnectAllowed(allowed: boolean): void;
|
|
1386
1404
|
getDisconnectAllowed(): boolean;
|
|
@@ -1427,8 +1445,8 @@ declare abstract class Parachain<TApi, TRes> {
|
|
|
1427
1445
|
transfer(sendOptions: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1428
1446
|
shouldUseNativeAssetTeleport({ assetInfo: asset, to }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1429
1447
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1430
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall
|
|
1431
|
-
createCurrencySpec(amount: bigint, scenario: TScenario, version: Version,
|
|
1448
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): Promise<TSerializedApiCall>;
|
|
1449
|
+
createCurrencySpec(amount: bigint, scenario: TScenario, version: Version, asset?: TAssetInfo, _isOverridenAsset?: boolean): TAsset;
|
|
1432
1450
|
getNativeAssetSymbol(): string;
|
|
1433
1451
|
transferLocal(options: TSendInternalOptions<TApi, TRes>): TRes;
|
|
1434
1452
|
transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
@@ -1449,12 +1467,14 @@ declare class Ajuna<TApi, TRes> extends Parachain<TApi, TRes> implements IXToken
|
|
|
1449
1467
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1450
1468
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1451
1469
|
canUseXTokens({ assetInfo, to: destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1452
|
-
transferRelayToPara(): TSerializedApiCall
|
|
1470
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1453
1471
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1454
1472
|
}
|
|
1455
1473
|
|
|
1456
|
-
declare class AjunaPaseo<TApi, TRes> extends
|
|
1474
|
+
declare class AjunaPaseo<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1457
1475
|
constructor();
|
|
1476
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1477
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1458
1478
|
}
|
|
1459
1479
|
|
|
1460
1480
|
declare class Altair<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
@@ -1641,7 +1661,7 @@ declare class CoretimeWestend<TApi, TRes> extends CoretimePolkadot<TApi, TRes> {
|
|
|
1641
1661
|
declare class Crab<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1642
1662
|
constructor();
|
|
1643
1663
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1644
|
-
transferRelayToPara(): TSerializedApiCall
|
|
1664
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1645
1665
|
createCurrencySpec(amount: bigint, scenario: TScenario, version: Version, _asset?: TAssetInfo): _paraspell_assets.TAsset;
|
|
1646
1666
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1647
1667
|
}
|
|
@@ -1681,7 +1701,7 @@ declare class Encointer<TApi, TRes> extends Parachain<TApi, TRes> implements IPo
|
|
|
1681
1701
|
declare class EnergyWebX<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1682
1702
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1683
1703
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1684
|
-
transferRelayToPara(): TSerializedApiCall
|
|
1704
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1685
1705
|
}
|
|
1686
1706
|
|
|
1687
1707
|
declare class EnergyWebXPaseo<TApi, TRes> extends EnergyWebX<TApi, TRes> {
|
|
@@ -1717,7 +1737,7 @@ declare class HydrationPaseo<TApi, TRes> extends Hydration<TApi, TRes> {
|
|
|
1717
1737
|
declare class IntegriteeKusama<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
1718
1738
|
constructor(chain?: TParachain, info?: string, type?: TRelaychain, version?: Version);
|
|
1719
1739
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1720
|
-
transferRelayToPara(): TSerializedApiCall
|
|
1740
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1721
1741
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1722
1742
|
}
|
|
1723
1743
|
|
|
@@ -1749,7 +1769,7 @@ declare class Karura<TApi, TRes> extends Parachain<TApi, TRes> implements IXToke
|
|
|
1749
1769
|
declare class KiltSpiritnet<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1750
1770
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1751
1771
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1752
|
-
transferRelayToPara(): TSerializedApiCall
|
|
1772
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1753
1773
|
}
|
|
1754
1774
|
|
|
1755
1775
|
declare class KiltPaseo<TApi, TRes> extends KiltSpiritnet<TApi, TRes> {
|
|
@@ -1767,7 +1787,7 @@ declare class Kintsugi<TApi, TRes> extends Parachain<TApi, TRes> implements IXTo
|
|
|
1767
1787
|
declare class Laos<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1768
1788
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1769
1789
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1770
|
-
transferRelayToPara(): TSerializedApiCall
|
|
1790
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1771
1791
|
}
|
|
1772
1792
|
|
|
1773
1793
|
declare class LaosPaseo<TApi, TRes> extends Laos<TApi, TRes> {
|
|
@@ -1786,7 +1806,6 @@ declare class Moonbeam<TApi, TRes> extends Parachain<TApi, TRes> implements IPol
|
|
|
1786
1806
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1787
1807
|
private getLocation;
|
|
1788
1808
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1789
|
-
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1790
1809
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1791
1810
|
}
|
|
1792
1811
|
|
|
@@ -1794,7 +1813,6 @@ declare class Moonriver<TApi, TRes> extends Parachain<TApi, TRes> implements IPo
|
|
|
1794
1813
|
constructor();
|
|
1795
1814
|
private getLocation;
|
|
1796
1815
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1797
|
-
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1798
1816
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1799
1817
|
}
|
|
1800
1818
|
|
|
@@ -1802,7 +1820,7 @@ declare class Mythos<TApi, TRes> extends Parachain<TApi, TRes> implements IPolka
|
|
|
1802
1820
|
constructor();
|
|
1803
1821
|
private createTx;
|
|
1804
1822
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1805
|
-
transferRelayToPara(): TSerializedApiCall
|
|
1823
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1806
1824
|
}
|
|
1807
1825
|
|
|
1808
1826
|
declare class NeuroWeb<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
@@ -1817,7 +1835,7 @@ declare class NeuroWebPaseo<TApi, TRes> extends NeuroWeb<TApi, TRes> {
|
|
|
1817
1835
|
declare class Nodle<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1818
1836
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1819
1837
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1820
|
-
transferRelayToPara(): TSerializedApiCall
|
|
1838
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1821
1839
|
}
|
|
1822
1840
|
|
|
1823
1841
|
declare class NodlePaseo<TApi, TRes> extends Nodle<TApi, TRes> {
|
|
@@ -1837,7 +1855,7 @@ declare class PAssetHub<TApi, TRes> extends PeoplePolkadot<TApi, TRes> {
|
|
|
1837
1855
|
declare class Peaq<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
1838
1856
|
constructor();
|
|
1839
1857
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1840
|
-
transferRelayToPara(): TSerializedApiCall
|
|
1858
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1841
1859
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1842
1860
|
}
|
|
1843
1861
|
|
|
@@ -1874,7 +1892,7 @@ declare class Phala<TApi, TRes> extends Parachain<TApi, TRes> implements IXTrans
|
|
|
1874
1892
|
declare class Polimec<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1875
1893
|
constructor();
|
|
1876
1894
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1877
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall
|
|
1895
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): Promise<TSerializedApiCall>;
|
|
1878
1896
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1879
1897
|
}
|
|
1880
1898
|
|
|
@@ -2153,6 +2171,8 @@ declare const localizeLocation: (chain: TChain, location: TLocation) => TLocatio
|
|
|
2153
2171
|
|
|
2154
2172
|
declare const reverseTransformLocation: (location: TLocation) => TLocation;
|
|
2155
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
|
+
|
|
2156
2176
|
declare const resolveParaId: (paraId: number | undefined, destination: TDestination) => number | undefined;
|
|
2157
2177
|
|
|
2158
2178
|
declare const abstractDecimals: <TApi, TRes>(amount: TAmount, decimals: number | undefined, api: IPolkadotApi<TApi, TRes>) => bigint;
|
|
@@ -2187,5 +2207,5 @@ declare const handleToAhTeleport: <TApi, TRes>(origin: TParachain, input: TPolka
|
|
|
2187
2207
|
|
|
2188
2208
|
declare const validateAddress: (address: TAddress, chain: TChain, isDestination?: boolean) => void;
|
|
2189
2209
|
|
|
2190
|
-
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 };
|
|
2191
|
-
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,
|
|
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 };
|