@paraspell/sdk-core 10.3.0 → 10.4.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 +5683 -5743
- package/dist/index.d.ts +56 -59
- package/dist/index.mjs +5685 -5746
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ type TPolkadotXCMTransferOptions<TApi, TRes> = {
|
|
|
71
71
|
overriddenAsset?: TMultiLocation | TMultiAssetWithFee[];
|
|
72
72
|
scenario: TScenario;
|
|
73
73
|
asset: WithAmount<TAsset>;
|
|
74
|
+
currency: TCurrencyInputWithAmount;
|
|
74
75
|
feeAsset?: TAsset;
|
|
75
76
|
destination: TDestination;
|
|
76
77
|
paraIdTo?: number;
|
|
@@ -89,6 +90,7 @@ type TXTokensTransferOptions<TApi, TRes> = {
|
|
|
89
90
|
origin: TNodePolkadotKusama;
|
|
90
91
|
destination: TDestination;
|
|
91
92
|
paraIdTo?: number;
|
|
93
|
+
version: Version;
|
|
92
94
|
overriddenAsset?: TMultiLocation | TMultiAssetWithFee[];
|
|
93
95
|
pallet?: string;
|
|
94
96
|
method?: string;
|
|
@@ -119,9 +121,9 @@ type TScenario = 'ParaToRelay' | 'ParaToPara' | 'RelayToPara';
|
|
|
119
121
|
* The XCM version.
|
|
120
122
|
*/
|
|
121
123
|
declare enum Version {
|
|
122
|
-
V1 = "V1",
|
|
123
124
|
V3 = "V3",
|
|
124
|
-
V4 = "V4"
|
|
125
|
+
V4 = "V4",
|
|
126
|
+
V5 = "V5"
|
|
125
127
|
}
|
|
126
128
|
/**
|
|
127
129
|
* The supported XCM versions for asset claims.
|
|
@@ -187,7 +189,7 @@ type WithRequiredSenderAddress<TBase> = Omit<TBase, 'senderAddress'> & {
|
|
|
187
189
|
senderAddress: string;
|
|
188
190
|
};
|
|
189
191
|
type TSendBaseOptionsWithSenderAddress = WithRequiredSenderAddress<TSendBaseOptions>;
|
|
190
|
-
type TSendInternalOptions<TApi, TRes> = Omit<TSendBaseOptions, 'from' | '
|
|
192
|
+
type TSendInternalOptions<TApi, TRes> = Omit<TSendBaseOptions, 'from' | 'feeAsset'> & {
|
|
191
193
|
api: IPolkadotApi<TApi, TRes>;
|
|
192
194
|
asset: WithAmount<TAsset>;
|
|
193
195
|
feeAsset?: TAsset;
|
|
@@ -228,7 +230,7 @@ type TRelayToParaBaseOptions = {
|
|
|
228
230
|
method?: string;
|
|
229
231
|
};
|
|
230
232
|
type TRelayToParaOverrides = {
|
|
231
|
-
|
|
233
|
+
method: TXcmPalletMethod;
|
|
232
234
|
includeFee: boolean;
|
|
233
235
|
};
|
|
234
236
|
/**
|
|
@@ -237,17 +239,17 @@ type TRelayToParaOverrides = {
|
|
|
237
239
|
type TRelayToParaOptions<TApi, TRes> = WithApi<TRelayToParaBaseOptions, TApi, TRes>;
|
|
238
240
|
type TSerializedApiCall = {
|
|
239
241
|
module: TPallet | 'Utility';
|
|
240
|
-
|
|
242
|
+
method: string;
|
|
241
243
|
parameters: Record<string, unknown>;
|
|
242
244
|
};
|
|
243
245
|
type TDestWeight = {
|
|
244
246
|
ref_time: bigint;
|
|
245
247
|
proof_size: bigint;
|
|
246
248
|
};
|
|
247
|
-
type
|
|
248
|
-
type
|
|
249
|
-
type
|
|
250
|
-
type
|
|
249
|
+
type TXTransferMethod = 'transfer';
|
|
250
|
+
type TXTokensMethod = 'transfer' | 'transfer_multiasset' | 'transfer_multiassets';
|
|
251
|
+
type TPolkadotXcmMethod = 'limited_teleport_assets' | 'limited_reserve_transfer_assets' | 'reserve_transfer_assets' | 'reserve_withdraw_assets' | 'transfer_assets';
|
|
252
|
+
type TXcmPalletMethod = 'limited_teleport_assets' | 'reserve_transfer_assets' | 'limited_reserve_transfer_assets';
|
|
251
253
|
type TWeight = {
|
|
252
254
|
refTime: bigint;
|
|
253
255
|
proofSize: bigint;
|
|
@@ -288,7 +290,7 @@ type TGetBalanceNativeOptionsBase = {
|
|
|
288
290
|
/**
|
|
289
291
|
* The node on which to query the balance.
|
|
290
292
|
*/
|
|
291
|
-
node:
|
|
293
|
+
node: TNodeWithRelayChains;
|
|
292
294
|
/**
|
|
293
295
|
* The native currency to query.
|
|
294
296
|
*/
|
|
@@ -305,7 +307,7 @@ type TGetBalanceForeignOptionsBase = {
|
|
|
305
307
|
/**
|
|
306
308
|
* The node on which to query the balance.
|
|
307
309
|
*/
|
|
308
|
-
node:
|
|
310
|
+
node: TNode;
|
|
309
311
|
/**
|
|
310
312
|
* The currency to query.
|
|
311
313
|
*/
|
|
@@ -323,7 +325,7 @@ type TGetAssetBalanceOptionsBase = {
|
|
|
323
325
|
/**
|
|
324
326
|
* The node on which to query the balance.
|
|
325
327
|
*/
|
|
326
|
-
node:
|
|
328
|
+
node: TNodeWithRelayChains;
|
|
327
329
|
/**
|
|
328
330
|
* The currency to query.
|
|
329
331
|
*/
|
|
@@ -585,7 +587,10 @@ type TDryRunNodeResultInternal = TDryRunNodeSuccess | TDryRunNodeFailure;
|
|
|
585
587
|
type TDryRunNodeResult = (TDryRunNodeSuccess & {
|
|
586
588
|
currency: string;
|
|
587
589
|
}) | TDryRunNodeFailure;
|
|
590
|
+
type TDryRunChain = 'origin' | 'destination' | 'assetHub' | 'bridgeHub';
|
|
588
591
|
type TDryRunResult = {
|
|
592
|
+
failureReason?: string;
|
|
593
|
+
failureChain?: TDryRunChain;
|
|
589
594
|
origin: TDryRunNodeResult;
|
|
590
595
|
destination?: TDryRunNodeResult;
|
|
591
596
|
assetHub?: TDryRunNodeResult;
|
|
@@ -844,7 +849,7 @@ type TGetXcmFeeBaseOptions<TRes> = {
|
|
|
844
849
|
*/
|
|
845
850
|
senderAddress: string;
|
|
846
851
|
address: string;
|
|
847
|
-
currency:
|
|
852
|
+
currency: WithAmount<TCurrencyCore>;
|
|
848
853
|
feeAsset?: TCurrencyInput;
|
|
849
854
|
disableFallback: boolean;
|
|
850
855
|
};
|
|
@@ -870,7 +875,7 @@ type TGetFeeForDestNodeBaseOptions = {
|
|
|
870
875
|
destination: TNodeWithRelayChains;
|
|
871
876
|
senderAddress: string;
|
|
872
877
|
address: string;
|
|
873
|
-
currency:
|
|
878
|
+
currency: WithAmount<TCurrencyCore>;
|
|
874
879
|
forwardedXcms: any;
|
|
875
880
|
asset: TAsset;
|
|
876
881
|
originFee: bigint;
|
|
@@ -887,14 +892,21 @@ type TXcmFeeDetail = {
|
|
|
887
892
|
fee: bigint;
|
|
888
893
|
currency: string;
|
|
889
894
|
feeType: TFeeType;
|
|
895
|
+
weight?: TWeight;
|
|
896
|
+
sufficient?: boolean;
|
|
890
897
|
dryRunError?: string;
|
|
891
898
|
} | {
|
|
892
899
|
fee?: bigint;
|
|
893
900
|
currency?: string;
|
|
894
901
|
feeType?: TFeeType;
|
|
902
|
+
weight?: TWeight;
|
|
903
|
+
sufficient?: boolean;
|
|
895
904
|
dryRunError: string;
|
|
896
905
|
};
|
|
906
|
+
type TXcmFeeChain = 'origin' | 'destination' | 'assetHub' | 'bridgeHub';
|
|
897
907
|
type TGetXcmFeeResult = {
|
|
908
|
+
failureReason?: string;
|
|
909
|
+
failureChain?: TXcmFeeChain;
|
|
898
910
|
origin: TXcmFeeDetail;
|
|
899
911
|
destination: TXcmFeeDetail;
|
|
900
912
|
assetHub?: TXcmFeeDetail;
|
|
@@ -903,6 +915,7 @@ type TGetXcmFeeResult = {
|
|
|
903
915
|
type TGetXcmFeeEstimateDetail = {
|
|
904
916
|
fee: bigint;
|
|
905
917
|
currency: string;
|
|
918
|
+
sufficient?: boolean;
|
|
906
919
|
};
|
|
907
920
|
type TGetXcmFeeEstimateResult = {
|
|
908
921
|
origin: TGetXcmFeeEstimateDetail;
|
|
@@ -1211,13 +1224,11 @@ declare abstract class ParachainNode<TApi, TRes> {
|
|
|
1211
1224
|
private readonly _info;
|
|
1212
1225
|
private readonly _type;
|
|
1213
1226
|
private readonly _version;
|
|
1214
|
-
protected _assetCheckEnabled: boolean;
|
|
1215
1227
|
constructor(node: TNodePolkadotKusama, info: string, type: TEcosystemType, version: Version);
|
|
1216
1228
|
get info(): string;
|
|
1217
1229
|
get type(): TEcosystemType;
|
|
1218
1230
|
get node(): TNodePolkadotKusama;
|
|
1219
1231
|
get version(): Version;
|
|
1220
|
-
get assetCheckEnabled(): boolean;
|
|
1221
1232
|
protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1222
1233
|
transfer(options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1223
1234
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
@@ -1266,17 +1277,17 @@ declare class AssetHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> imple
|
|
|
1266
1277
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1267
1278
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1268
1279
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, isOverridenAsset?: boolean): {
|
|
1269
|
-
V1: _paraspell_assets.TMultiAsset[];
|
|
1270
|
-
V3?: undefined;
|
|
1271
|
-
V4?: undefined;
|
|
1272
|
-
} | {
|
|
1273
1280
|
V3: _paraspell_assets.TMultiAsset[];
|
|
1274
|
-
V1?: undefined;
|
|
1275
1281
|
V4?: undefined;
|
|
1282
|
+
V5?: undefined;
|
|
1276
1283
|
} | {
|
|
1277
1284
|
V4: _paraspell_assets.TMultiAsset[];
|
|
1278
|
-
V1?: undefined;
|
|
1279
1285
|
V3?: undefined;
|
|
1286
|
+
V5?: undefined;
|
|
1287
|
+
} | {
|
|
1288
|
+
V5: _paraspell_assets.TMultiAsset[];
|
|
1289
|
+
V3?: undefined;
|
|
1290
|
+
V4?: undefined;
|
|
1280
1291
|
};
|
|
1281
1292
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1282
1293
|
}
|
|
@@ -1289,22 +1300,22 @@ declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> imp
|
|
|
1289
1300
|
handleMythosTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
1290
1301
|
handleBifrostEthTransfer: <TApi_1, TRes_1>(input: TPolkadotXCMTransferOptions<TApi_1, TRes_1>, useDOTAsFeeAsset?: boolean) => TRes_1;
|
|
1291
1302
|
patchInput<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TPolkadotXCMTransferOptions<TApi, TRes>;
|
|
1292
|
-
private
|
|
1303
|
+
private getMethod;
|
|
1293
1304
|
private handleExecuteTransfer;
|
|
1294
1305
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1295
1306
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1296
1307
|
createCurrencySpec(amount: TAmount, scenario: TScenario, version: Version, asset?: TAsset, isOverriddenAsset?: boolean): {
|
|
1297
|
-
V1: _paraspell_assets.TMultiAsset[];
|
|
1298
|
-
V3?: undefined;
|
|
1299
|
-
V4?: undefined;
|
|
1300
|
-
} | {
|
|
1301
1308
|
V3: _paraspell_assets.TMultiAsset[];
|
|
1302
|
-
V1?: undefined;
|
|
1303
1309
|
V4?: undefined;
|
|
1310
|
+
V5?: undefined;
|
|
1304
1311
|
} | {
|
|
1305
1312
|
V4: _paraspell_assets.TMultiAsset[];
|
|
1306
|
-
V1?: undefined;
|
|
1307
1313
|
V3?: undefined;
|
|
1314
|
+
V5?: undefined;
|
|
1315
|
+
} | {
|
|
1316
|
+
V5: _paraspell_assets.TMultiAsset[];
|
|
1317
|
+
V3?: undefined;
|
|
1318
|
+
V4?: undefined;
|
|
1308
1319
|
};
|
|
1309
1320
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1310
1321
|
}
|
|
@@ -1382,20 +1393,14 @@ declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> impl
|
|
|
1382
1393
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1383
1394
|
}
|
|
1384
1395
|
|
|
1385
|
-
declare class Bitgreen<TApi, TRes> extends ParachainNode<TApi, TRes> {
|
|
1386
|
-
constructor();
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
1396
|
declare class BridgeHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1390
1397
|
constructor();
|
|
1391
|
-
_assetCheckEnabled: boolean;
|
|
1392
1398
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1393
1399
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1394
1400
|
}
|
|
1395
1401
|
|
|
1396
1402
|
declare class BridgeHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1397
1403
|
constructor();
|
|
1398
|
-
_assetCheckEnabled: boolean;
|
|
1399
1404
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1400
1405
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1401
1406
|
}
|
|
@@ -1421,14 +1426,12 @@ declare class ComposableFinance<TApi, TRes> extends ParachainNode<TApi, TRes> im
|
|
|
1421
1426
|
|
|
1422
1427
|
declare class CoretimeKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1423
1428
|
constructor();
|
|
1424
|
-
_assetCheckEnabled: boolean;
|
|
1425
1429
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1426
1430
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1427
1431
|
}
|
|
1428
1432
|
|
|
1429
1433
|
declare class CoretimePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1430
1434
|
constructor();
|
|
1431
|
-
_assetCheckEnabled: boolean;
|
|
1432
1435
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1433
1436
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1434
1437
|
}
|
|
@@ -1438,17 +1441,17 @@ declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPol
|
|
|
1438
1441
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1439
1442
|
transferRelayToPara(): TSerializedApiCall;
|
|
1440
1443
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset): {
|
|
1441
|
-
V1: _paraspell_assets.TMultiAsset[];
|
|
1442
|
-
V3?: undefined;
|
|
1443
|
-
V4?: undefined;
|
|
1444
|
-
} | {
|
|
1445
1444
|
V3: _paraspell_assets.TMultiAsset[];
|
|
1446
|
-
V1?: undefined;
|
|
1447
1445
|
V4?: undefined;
|
|
1446
|
+
V5?: undefined;
|
|
1448
1447
|
} | {
|
|
1449
1448
|
V4: _paraspell_assets.TMultiAsset[];
|
|
1450
|
-
V1?: undefined;
|
|
1451
1449
|
V3?: undefined;
|
|
1450
|
+
V5?: undefined;
|
|
1451
|
+
} | {
|
|
1452
|
+
V5: _paraspell_assets.TMultiAsset[];
|
|
1453
|
+
V3?: undefined;
|
|
1454
|
+
V4?: undefined;
|
|
1452
1455
|
};
|
|
1453
1456
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1454
1457
|
}
|
|
@@ -1476,17 +1479,17 @@ declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1476
1479
|
constructor();
|
|
1477
1480
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1478
1481
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset): {
|
|
1479
|
-
V1: _paraspell_assets.TMultiAsset[];
|
|
1480
|
-
V3?: undefined;
|
|
1481
|
-
V4?: undefined;
|
|
1482
|
-
} | {
|
|
1483
1482
|
V3: _paraspell_assets.TMultiAsset[];
|
|
1484
|
-
V1?: undefined;
|
|
1485
1483
|
V4?: undefined;
|
|
1484
|
+
V5?: undefined;
|
|
1486
1485
|
} | {
|
|
1487
1486
|
V4: _paraspell_assets.TMultiAsset[];
|
|
1488
|
-
V1?: undefined;
|
|
1489
1487
|
V3?: undefined;
|
|
1488
|
+
V5?: undefined;
|
|
1489
|
+
} | {
|
|
1490
|
+
V5: _paraspell_assets.TMultiAsset[];
|
|
1491
|
+
V3?: undefined;
|
|
1492
|
+
V4?: undefined;
|
|
1490
1493
|
};
|
|
1491
1494
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1492
1495
|
}
|
|
@@ -1569,6 +1572,7 @@ declare class Moonriver<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1569
1572
|
|
|
1570
1573
|
declare class Mythos<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1571
1574
|
constructor();
|
|
1575
|
+
private createTx;
|
|
1572
1576
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1573
1577
|
transferRelayToPara(): TSerializedApiCall;
|
|
1574
1578
|
}
|
|
@@ -1653,12 +1657,6 @@ declare class Subsocial<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1653
1657
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1654
1658
|
}
|
|
1655
1659
|
|
|
1656
|
-
declare class Turing<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1657
|
-
constructor();
|
|
1658
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1659
|
-
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
1660
|
declare class Unique<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1663
1661
|
private static NATIVE_ASSET_ID;
|
|
1664
1662
|
constructor();
|
|
@@ -1683,7 +1681,6 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
1683
1681
|
BifrostPolkadot: BifrostPolkadot<TApi, TRes>;
|
|
1684
1682
|
BridgeHubPolkadot: BridgeHubPolkadot<TApi, TRes>;
|
|
1685
1683
|
BridgeHubKusama: BridgeHubKusama<TApi, TRes>;
|
|
1686
|
-
Bitgreen: Bitgreen<TApi, TRes>;
|
|
1687
1684
|
Centrifuge: Centrifuge<TApi, TRes>;
|
|
1688
1685
|
ComposableFinance: ComposableFinance<TApi, TRes>;
|
|
1689
1686
|
Darwinia: Darwinia<TApi, TRes>;
|
|
@@ -1710,7 +1707,6 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
1710
1707
|
PeoplePolkadot: PeoplePolkadot<TApi, TRes>;
|
|
1711
1708
|
PeopleKusama: PeopleKusama<TApi, TRes>;
|
|
1712
1709
|
Shiden: Shiden<TApi, TRes>;
|
|
1713
|
-
Turing: Turing<TApi, TRes>;
|
|
1714
1710
|
Manta: Manta<TApi, TRes>;
|
|
1715
1711
|
Nodle: Nodle<TApi, TRes>;
|
|
1716
1712
|
NeuroWeb: NeuroWeb<TApi, TRes>;
|
|
@@ -1796,6 +1792,7 @@ declare const transferRelayToPara: <TApi, TRes>(options: TRelayToParaOptions<TAp
|
|
|
1796
1792
|
|
|
1797
1793
|
declare const createApiInstanceForNode: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>, node: TNodeDotKsmWithRelayChains) => Promise<TApi>;
|
|
1798
1794
|
|
|
1795
|
+
declare const createBeneficiary: <TApi, TRes>(options: TCreateBeneficiaryOptions<TApi, TRes>) => _paraspell_sdk_common.TMultiLocation;
|
|
1799
1796
|
declare const createVersionedBeneficiary: <TApi, TRes>(options: TCreateBeneficiaryOptions<TApi, TRes>) => OneKey<Version, _paraspell_sdk_common.TMultiLocation>;
|
|
1800
1797
|
|
|
1801
1798
|
declare const createX1Payload: (version: Version, junction: TJunction) => TJunctions;
|
|
@@ -1845,5 +1842,5 @@ declare const validateAddress: (address: TAddress, node: TNodeWithRelayChains, i
|
|
|
1845
1842
|
*/
|
|
1846
1843
|
declare const determineRelayChain: (node: TNodeWithRelayChains) => TRelaychain;
|
|
1847
1844
|
|
|
1848
|
-
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, Version, XTokensError, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createBeneficiaryMultiLocation, createVersionedBeneficiary, createX1Payload, deriveAccountId, determineRelayChain, dryRun, dryRunOrigin, encodeSs58, generateAddressMultiLocationV4, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getFees, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getParaEthTransferFees, getParaId, getTNode, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, replaceBigInt, resolveModuleError, resolveParaId, reverseTransformMultiLocation, send, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, transformMultiLocation, validateAddress, verifyEdOnDestination };
|
|
1849
|
-
export type { IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimOptions, TAssetClaimOptionsBase, TBalanceResponse, TBatchOptions, TBifrostToken, TBridgeStatus, TCreateBeneficiaryOptions, TDestWeight, TDestination, TDryRunBaseOptions, TDryRunCallBaseOptions, TDryRunCallOptions, 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,
|
|
1845
|
+
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, Version, XTokensError, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createBeneficiary, createBeneficiaryMultiLocation, createVersionedBeneficiary, createX1Payload, deriveAccountId, determineRelayChain, dryRun, dryRunOrigin, encodeSs58, generateAddressMultiLocationV4, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getFees, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getParaEthTransferFees, getParaId, getTNode, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, replaceBigInt, resolveModuleError, resolveParaId, reverseTransformMultiLocation, send, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, transformMultiLocation, validateAddress, verifyEdOnDestination };
|
|
1846
|
+
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, TVersionClaimAssets, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
|