@paraspell/sdk-core 10.4.8 → 10.4.10
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 +305 -342
- package/dist/index.d.ts +71 -115
- package/dist/index.mjs +305 -345
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _paraspell_sdk_common from '@paraspell/sdk-common';
|
|
2
|
-
import {
|
|
2
|
+
import { TMultiLocation, TNodeDotKsmWithRelayChains, TNodeWithRelayChains, Version, TNodePolkadotKusama, TNode, TJunction, TEcosystemType, TJunctions } from '@paraspell/sdk-common';
|
|
3
3
|
export * from '@paraspell/sdk-common';
|
|
4
4
|
import * as _paraspell_assets from '@paraspell/assets';
|
|
5
|
-
import {
|
|
5
|
+
import { TCurrencyInputWithAmount, TCurrencyInput, WithAmount, TAsset, TMultiAsset, TMultiAssetWithFee, TCurrencyCore, TAmount } from '@paraspell/assets';
|
|
6
6
|
export * from '@paraspell/assets';
|
|
7
7
|
import { TPallet } from '@paraspell/pallets';
|
|
8
8
|
export * from '@paraspell/pallets';
|
|
@@ -13,61 +13,14 @@ type WithApi<TBase, TApi, TRes> = TBase & {
|
|
|
13
13
|
};
|
|
14
14
|
type TApiOrUrl<TApi> = TApi | string | string[];
|
|
15
15
|
|
|
16
|
-
type OneKey<K extends string, V = unknown> = {
|
|
17
|
-
[P in K]: Record<P, V> & Partial<Record<Exclude<K, P>, never>> extends infer O ? {
|
|
18
|
-
[Q in keyof O]: O[Q];
|
|
19
|
-
} : never;
|
|
20
|
-
}[K];
|
|
21
|
-
type TXcmVersioned<T> = OneKey<Version, T>;
|
|
22
|
-
type TXcmForeignAsset = {
|
|
23
|
-
ForeignAsset: string | number | bigint | undefined;
|
|
24
|
-
};
|
|
25
|
-
type TForeignAssetId = {
|
|
26
|
-
ForeignAssetId: bigint | undefined;
|
|
27
|
-
};
|
|
28
|
-
type TForeignOrTokenAsset = TXcmForeignAsset | {
|
|
29
|
-
Token: string | undefined;
|
|
30
|
-
};
|
|
31
|
-
type TForeignOrNativeAsset = TXcmForeignAsset | 'Native';
|
|
32
|
-
type TXcmAsset = {
|
|
33
|
-
XCM: number | undefined;
|
|
34
|
-
} | {
|
|
35
|
-
Native: null;
|
|
36
|
-
};
|
|
37
|
-
type TMantaAsset = {
|
|
38
|
-
MantaCurrency: bigint | undefined;
|
|
39
|
-
};
|
|
40
|
-
type TNativeTokenAsset = 'NativeToken';
|
|
41
|
-
type TNodleAsset = 'NodleNative';
|
|
42
|
-
type TZeitgeistAsset = 'Ztg';
|
|
43
|
-
type TOtherReserveAsset = {
|
|
44
|
-
OtherReserve: string | bigint | undefined;
|
|
45
|
-
};
|
|
46
|
-
type TSelfReserveAsset = 'SelfReserve';
|
|
47
|
-
type TReserveAsset = TOtherReserveAsset | TSelfReserveAsset;
|
|
48
|
-
type TBifrostToken = {
|
|
49
|
-
Native: string;
|
|
50
|
-
} | {
|
|
51
|
-
VToken: string;
|
|
52
|
-
} | {
|
|
53
|
-
Token: string;
|
|
54
|
-
} | {
|
|
55
|
-
VSToken2: number;
|
|
56
|
-
} | {
|
|
57
|
-
VToken2: number;
|
|
58
|
-
} | {
|
|
59
|
-
Token2: number;
|
|
60
|
-
};
|
|
61
|
-
type TXTokensCurrencySelection = TXcmVersioned<TMultiLocation | TMultiAsset | TMultiAsset[]> | TXcmForeignAsset | TForeignAssetId | TForeignOrTokenAsset | TXcmAsset | TMantaAsset | TOtherReserveAsset | TBifrostToken | string | bigint | number | undefined;
|
|
62
|
-
|
|
63
16
|
type TRelaychain = 'Polkadot' | 'Kusama';
|
|
64
17
|
|
|
65
18
|
type TPolkadotXCMTransferOptions<TApi, TRes> = {
|
|
66
19
|
api: IPolkadotApi<TApi, TRes>;
|
|
67
|
-
|
|
68
|
-
|
|
20
|
+
destLocation: TMultiLocation;
|
|
21
|
+
beneficiaryLocation: TMultiLocation;
|
|
69
22
|
address: TAddress;
|
|
70
|
-
|
|
23
|
+
multiAsset: TMultiAsset;
|
|
71
24
|
overriddenAsset?: TMultiLocation | TMultiAssetWithFee[];
|
|
72
25
|
scenario: TScenario;
|
|
73
26
|
asset: WithAmount<TAsset>;
|
|
@@ -84,7 +37,7 @@ type TPolkadotXCMTransferOptions<TApi, TRes> = {
|
|
|
84
37
|
type TXTokensTransferOptions<TApi, TRes> = {
|
|
85
38
|
api: IPolkadotApi<TApi, TRes>;
|
|
86
39
|
asset: WithAmount<TAsset>;
|
|
87
|
-
|
|
40
|
+
destLocation: TMultiLocation;
|
|
88
41
|
fees: number;
|
|
89
42
|
scenario: TScenario;
|
|
90
43
|
origin: TNodePolkadotKusama;
|
|
@@ -99,9 +52,10 @@ type TXTokensTransferOptions<TApi, TRes> = {
|
|
|
99
52
|
type TXTransferTransferOptions<TApi, TRes> = {
|
|
100
53
|
api: IPolkadotApi<TApi, TRes>;
|
|
101
54
|
asset: WithAmount<TAsset>;
|
|
55
|
+
scenario: TScenario;
|
|
102
56
|
recipientAddress: TAddress;
|
|
103
57
|
origin: TNodePolkadotKusama;
|
|
104
|
-
|
|
58
|
+
paraIdTo?: number;
|
|
105
59
|
destination: TDestination;
|
|
106
60
|
overriddenAsset?: TMultiLocation | TMultiAsset[];
|
|
107
61
|
pallet?: string;
|
|
@@ -515,6 +469,53 @@ type TNodeConfig = {
|
|
|
515
469
|
};
|
|
516
470
|
type TNodeConfigMap = Record<TNodeDotKsmWithRelayChains, TNodeConfig>;
|
|
517
471
|
|
|
472
|
+
type OneKey<K extends string, V = unknown> = {
|
|
473
|
+
[P in K]: Record<P, V> & Partial<Record<Exclude<K, P>, never>> extends infer O ? {
|
|
474
|
+
[Q in keyof O]: O[Q];
|
|
475
|
+
} : never;
|
|
476
|
+
}[K];
|
|
477
|
+
type TXcmVersioned<T> = OneKey<Version, T>;
|
|
478
|
+
type TXcmForeignAsset = {
|
|
479
|
+
ForeignAsset: string | number | bigint | undefined;
|
|
480
|
+
};
|
|
481
|
+
type TForeignAssetId = {
|
|
482
|
+
ForeignAssetId: bigint | undefined;
|
|
483
|
+
};
|
|
484
|
+
type TForeignOrTokenAsset = TXcmForeignAsset | {
|
|
485
|
+
Token: string | undefined;
|
|
486
|
+
};
|
|
487
|
+
type TForeignOrNativeAsset = TXcmForeignAsset | 'Native';
|
|
488
|
+
type TXcmAsset = {
|
|
489
|
+
XCM: number | undefined;
|
|
490
|
+
} | {
|
|
491
|
+
Native: null;
|
|
492
|
+
};
|
|
493
|
+
type TMantaAsset = {
|
|
494
|
+
MantaCurrency: bigint | undefined;
|
|
495
|
+
};
|
|
496
|
+
type TNativeTokenAsset = 'NativeToken';
|
|
497
|
+
type TNodleAsset = 'NodleNative';
|
|
498
|
+
type TZeitgeistAsset = 'Ztg';
|
|
499
|
+
type TOtherReserveAsset = {
|
|
500
|
+
OtherReserve: string | bigint | undefined;
|
|
501
|
+
};
|
|
502
|
+
type TSelfReserveAsset = 'SelfReserve';
|
|
503
|
+
type TReserveAsset = TOtherReserveAsset | TSelfReserveAsset;
|
|
504
|
+
type TBifrostToken = {
|
|
505
|
+
Native: string;
|
|
506
|
+
} | {
|
|
507
|
+
VToken: string;
|
|
508
|
+
} | {
|
|
509
|
+
Token: string;
|
|
510
|
+
} | {
|
|
511
|
+
VSToken2: number;
|
|
512
|
+
} | {
|
|
513
|
+
VToken2: number;
|
|
514
|
+
} | {
|
|
515
|
+
Token2: number;
|
|
516
|
+
};
|
|
517
|
+
type TXTokensCurrencySelection = TXcmVersioned<TMultiLocation | TMultiAsset | TMultiAsset[]> | TXcmForeignAsset | TForeignAssetId | TForeignOrTokenAsset | TXcmAsset | TMantaAsset | TOtherReserveAsset | TBifrostToken | string | bigint | number | undefined;
|
|
518
|
+
|
|
518
519
|
type TDryRunBaseOptions<TRes> = {
|
|
519
520
|
tx: TRes;
|
|
520
521
|
origin: TNodeDotKsmWithRelayChains;
|
|
@@ -1223,8 +1224,7 @@ declare abstract class ParachainNode<TApi, TRes> {
|
|
|
1223
1224
|
transfer(options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1224
1225
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1225
1226
|
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
1226
|
-
createCurrencySpec(amount: TAmount, scenario: TScenario, version: Version, _asset?: TAsset, _isOverridenAsset?: boolean):
|
|
1227
|
-
createVersionedDestination(scenario: TScenario, version: Version, destination: TDestination, paraId?: number): TXcmVersioned<TMultiLocation>;
|
|
1227
|
+
createCurrencySpec(amount: TAmount, scenario: TScenario, version: Version, _asset?: TAsset, _isOverridenAsset?: boolean): TMultiAsset;
|
|
1228
1228
|
getNativeAssetSymbol(): string;
|
|
1229
1229
|
transferLocal(options: TSendInternalOptions<TApi, TRes>): TRes;
|
|
1230
1230
|
transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
@@ -1266,47 +1266,23 @@ declare class AssetHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> imple
|
|
|
1266
1266
|
constructor();
|
|
1267
1267
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1268
1268
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1269
|
-
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, isOverridenAsset?: boolean):
|
|
1270
|
-
V3: _paraspell_assets.TMultiAsset[];
|
|
1271
|
-
V4?: undefined;
|
|
1272
|
-
V5?: undefined;
|
|
1273
|
-
} | {
|
|
1274
|
-
V4: _paraspell_assets.TMultiAsset[];
|
|
1275
|
-
V3?: undefined;
|
|
1276
|
-
V5?: undefined;
|
|
1277
|
-
} | {
|
|
1278
|
-
V5: _paraspell_assets.TMultiAsset[];
|
|
1279
|
-
V3?: undefined;
|
|
1280
|
-
V4?: undefined;
|
|
1281
|
-
};
|
|
1269
|
+
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, isOverridenAsset?: boolean): _paraspell_assets.TMultiAsset;
|
|
1282
1270
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1283
1271
|
}
|
|
1284
1272
|
|
|
1285
1273
|
declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1286
1274
|
constructor();
|
|
1287
|
-
handleBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>, targetChain: 'Polkadot' | 'Kusama'): TRes
|
|
1275
|
+
handleBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>, targetChain: 'Polkadot' | 'Kusama'): Promise<TRes>;
|
|
1288
1276
|
handleEthBridgeNativeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1289
1277
|
handleEthBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1290
|
-
handleMythosTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes
|
|
1278
|
+
handleMythosTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1291
1279
|
handleLocalReserveTransfer: <TApi_1, TRes_1>(input: TPolkadotXCMTransferOptions<TApi_1, TRes_1>, useDOTAsFeeAsset?: boolean) => TRes_1;
|
|
1292
1280
|
patchInput<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TPolkadotXCMTransferOptions<TApi, TRes>;
|
|
1293
1281
|
private getMethod;
|
|
1294
1282
|
private handleExecuteTransfer;
|
|
1295
1283
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1296
1284
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1297
|
-
createCurrencySpec(amount: TAmount, scenario: TScenario, version: Version, asset?: TAsset, isOverriddenAsset?: boolean):
|
|
1298
|
-
V3: _paraspell_assets.TMultiAsset[];
|
|
1299
|
-
V4?: undefined;
|
|
1300
|
-
V5?: undefined;
|
|
1301
|
-
} | {
|
|
1302
|
-
V4: _paraspell_assets.TMultiAsset[];
|
|
1303
|
-
V3?: undefined;
|
|
1304
|
-
V5?: undefined;
|
|
1305
|
-
} | {
|
|
1306
|
-
V5: _paraspell_assets.TMultiAsset[];
|
|
1307
|
-
V3?: undefined;
|
|
1308
|
-
V4?: undefined;
|
|
1309
|
-
};
|
|
1285
|
+
createCurrencySpec(amount: TAmount, scenario: TScenario, version: Version, asset?: TAsset, isOverriddenAsset?: boolean): _paraspell_assets.TMultiAsset;
|
|
1310
1286
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1311
1287
|
}
|
|
1312
1288
|
|
|
@@ -1406,7 +1382,6 @@ declare class Collectives<TApi, TRes> extends ParachainNode<TApi, TRes> implemen
|
|
|
1406
1382
|
constructor();
|
|
1407
1383
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1408
1384
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1409
|
-
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TXcmVersioned<_paraspell_assets.TMultiAsset[]>;
|
|
1410
1385
|
}
|
|
1411
1386
|
|
|
1412
1387
|
declare class ComposableFinance<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
@@ -1430,19 +1405,7 @@ declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPol
|
|
|
1430
1405
|
constructor();
|
|
1431
1406
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1432
1407
|
transferRelayToPara(): TSerializedApiCall;
|
|
1433
|
-
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset):
|
|
1434
|
-
V3: _paraspell_assets.TMultiAsset[];
|
|
1435
|
-
V4?: undefined;
|
|
1436
|
-
V5?: undefined;
|
|
1437
|
-
} | {
|
|
1438
|
-
V4: _paraspell_assets.TMultiAsset[];
|
|
1439
|
-
V3?: undefined;
|
|
1440
|
-
V5?: undefined;
|
|
1441
|
-
} | {
|
|
1442
|
-
V5: _paraspell_assets.TMultiAsset[];
|
|
1443
|
-
V3?: undefined;
|
|
1444
|
-
V4?: undefined;
|
|
1445
|
-
};
|
|
1408
|
+
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset): _paraspell_assets.TMultiAsset;
|
|
1446
1409
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1447
1410
|
}
|
|
1448
1411
|
|
|
@@ -1468,19 +1431,7 @@ declare class Curio<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXT
|
|
|
1468
1431
|
declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1469
1432
|
constructor();
|
|
1470
1433
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1471
|
-
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset):
|
|
1472
|
-
V3: _paraspell_assets.TMultiAsset[];
|
|
1473
|
-
V4?: undefined;
|
|
1474
|
-
V5?: undefined;
|
|
1475
|
-
} | {
|
|
1476
|
-
V4: _paraspell_assets.TMultiAsset[];
|
|
1477
|
-
V3?: undefined;
|
|
1478
|
-
V5?: undefined;
|
|
1479
|
-
} | {
|
|
1480
|
-
V5: _paraspell_assets.TMultiAsset[];
|
|
1481
|
-
V3?: undefined;
|
|
1482
|
-
V4?: undefined;
|
|
1483
|
-
};
|
|
1434
|
+
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset): _paraspell_assets.TMultiAsset;
|
|
1484
1435
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1485
1436
|
}
|
|
1486
1437
|
|
|
@@ -1499,7 +1450,7 @@ declare class Hydration<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1499
1450
|
private static NATIVE_ASSET_ID;
|
|
1500
1451
|
constructor();
|
|
1501
1452
|
transferToAssetHub<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
1502
|
-
transferToPolimec<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): TRes
|
|
1453
|
+
transferToPolimec<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1503
1454
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1504
1455
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1505
1456
|
protected canUseXTokens({ to: destination, asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
@@ -1780,13 +1731,16 @@ declare const send: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<T
|
|
|
1780
1731
|
|
|
1781
1732
|
declare const transferRelayToPara: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>) => Promise<TRes>;
|
|
1782
1733
|
|
|
1734
|
+
declare const addXcmVersionHeader: <T, V extends Version>(obj: T, version: V) => OneKey<V, T>;
|
|
1735
|
+
|
|
1736
|
+
declare const assertToIsString: (to: TDestination, overrideMsg?: string) => asserts to is Exclude<TDestination, TMultiLocation>;
|
|
1737
|
+
declare const assertAddressIsString: (address: TAddress) => asserts address is Exclude<TAddress, TMultiLocation>;
|
|
1738
|
+
|
|
1783
1739
|
declare const createApiInstanceForNode: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>, node: TNodeDotKsmWithRelayChains) => Promise<TApi>;
|
|
1784
1740
|
|
|
1785
1741
|
declare const createBeneficiary: <TApi, TRes>(options: TCreateBeneficiaryOptions<TApi, TRes>) => _paraspell_sdk_common.TMultiLocation;
|
|
1786
1742
|
declare const createVersionedBeneficiary: <TApi, TRes>(options: TCreateBeneficiaryOptions<TApi, TRes>) => OneKey<_paraspell_sdk_common.Version, _paraspell_sdk_common.TMultiLocation>;
|
|
1787
1743
|
|
|
1788
|
-
declare const createX1Payload: (version: Version, junction: TJunction) => TJunctions;
|
|
1789
|
-
|
|
1790
1744
|
declare const computeFeeFromDryRun: (dryRun: any, node: TNodeDotKsmWithRelayChains, executionFee: bigint, isFeeAsset?: boolean) => bigint;
|
|
1791
1745
|
|
|
1792
1746
|
declare const computeFeeFromDryRunPjs: (dryRun: any, node: TNodeDotKsmWithRelayChains, executionFee: bigint) => bigint;
|
|
@@ -1805,6 +1759,8 @@ declare const getNode: <TApi, TRes, T extends keyof ReturnType<typeof nodes>>(no
|
|
|
1805
1759
|
|
|
1806
1760
|
declare const createBeneficiaryMultiLocation: <TApi, TRes>({ api, scenario, pallet, recipientAddress, version, paraId }: TCreateBeneficiaryOptions<TApi, TRes>) => TMultiLocation;
|
|
1807
1761
|
|
|
1762
|
+
declare const createX1Payload: (version: Version, junction: TJunction) => TJunctions;
|
|
1763
|
+
|
|
1808
1764
|
declare const reverseTransformMultiLocation: (multiLocation: TMultiLocation) => TMultiLocation;
|
|
1809
1765
|
|
|
1810
1766
|
/**
|
|
@@ -1828,5 +1784,5 @@ declare const validateAddress: (address: TAddress, node: TNodeWithRelayChains, i
|
|
|
1828
1784
|
*/
|
|
1829
1785
|
declare const determineRelayChain: (node: TNodeWithRelayChains) => TRelaychain;
|
|
1830
1786
|
|
|
1831
|
-
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidParameterError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createBeneficiary, createBeneficiaryMultiLocation, createVersionedBeneficiary, createX1Payload, deriveAccountId, determineRelayChain, dryRun, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getFees, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getParaEthTransferFees, getParaId, getTNode, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, resolveModuleError, resolveParaId, reverseTransformMultiLocation, send, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, transformMultiLocation, validateAddress, verifyEdOnDestination };
|
|
1787
|
+
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidParameterError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, addXcmVersionHeader, assertAddressIsString, assertToIsString, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createBeneficiary, createBeneficiaryMultiLocation, createVersionedBeneficiary, createX1Payload, deriveAccountId, determineRelayChain, dryRun, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getFees, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getParaEthTransferFees, getParaId, getTNode, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, resolveModuleError, resolveParaId, reverseTransformMultiLocation, send, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, transformMultiLocation, validateAddress, verifyEdOnDestination };
|
|
1832
1788
|
export type { IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimOptions, TAssetClaimOptionsBase, TBalanceResponse, TBatchOptions, TBifrostToken, TBridgeStatus, TCreateBeneficiaryOptions, TDestWeight, TDestination, TDryRunBaseOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunNodeFailure, TDryRunNodeResult, TDryRunNodeResultInternal, TDryRunNodeSuccess, TDryRunOptions, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEdJsonMap, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmNodeFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestNodeBaseOptions, TGetFeeForDestNodeOptions, TGetMaxForeignTransferableAmountOptions, TGetMaxForeignTransferableAmountOptionsBase, TGetMaxNativeTransferableAmountOptions, TGetMaxNativeTransferableAmountOptionsBase, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeOptions, TGetXcmFeeResult, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodeConfig, TNodeConfigMap, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TRelaychain, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TTransferInfo, TTransferLocalOptions, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
|