@paraspell/sdk-core 11.7.2 → 11.8.1
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 +514 -365
- package/dist/index.d.ts +182 -185
- package/dist/index.mjs +514 -365
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -192,10 +192,6 @@ type TDestWeight = {
|
|
|
192
192
|
ref_time: bigint;
|
|
193
193
|
proof_size: bigint;
|
|
194
194
|
};
|
|
195
|
-
type TTxPair<TRes> = {
|
|
196
|
-
tx: TRes;
|
|
197
|
-
txBypass: TRes;
|
|
198
|
-
};
|
|
199
195
|
type TXTransferMethod = 'transfer';
|
|
200
196
|
type TXTokensMethod = 'transfer' | 'transfer_multiasset' | 'transfer_multiassets';
|
|
201
197
|
type TPolkadotXcmMethod = 'limited_teleport_assets' | 'limited_reserve_transfer_assets' | 'reserve_withdraw_assets' | 'transfer_assets';
|
|
@@ -458,7 +454,7 @@ declare class GeneralBuilder<TApi, TRes, T extends Partial<TSendBaseOptions> = o
|
|
|
458
454
|
private maybePerformXcmFormatCheck;
|
|
459
455
|
dryRun(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TDryRunResult>;
|
|
460
456
|
dryRunPreview(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>, options?: TDryRunPreviewOptions): Promise<TDryRunResult>;
|
|
461
|
-
private
|
|
457
|
+
private createTxFactory;
|
|
462
458
|
/**
|
|
463
459
|
* Returns the XCM fee for the transfer using dryRun or paymentInfo function.
|
|
464
460
|
*
|
|
@@ -473,7 +469,7 @@ declare class GeneralBuilder<TApi, TRes, T extends Partial<TSendBaseOptions> = o
|
|
|
473
469
|
* @returns An origin fee.
|
|
474
470
|
*/
|
|
475
471
|
getOriginXcmFee(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>, { disableFallback }?: TGetXcmFeeBuilderOptions): Promise<TXcmFeeDetail & {
|
|
476
|
-
forwardedXcms?:
|
|
472
|
+
forwardedXcms?: unknown;
|
|
477
473
|
destParaId?: number;
|
|
478
474
|
}>;
|
|
479
475
|
/**
|
|
@@ -533,6 +529,145 @@ declare class GeneralBuilder<TApi, TRes, T extends Partial<TSendBaseOptions> = o
|
|
|
533
529
|
*/
|
|
534
530
|
declare const Builder: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>) => GeneralBuilder<TApi, TRes, object>;
|
|
535
531
|
|
|
532
|
+
type TTxFactory<TRes> = (amount?: string) => Promise<TRes>;
|
|
533
|
+
type TGetXcmFeeBaseOptions<TRes, TDisableFallback extends boolean = boolean> = {
|
|
534
|
+
/**
|
|
535
|
+
* The transaction factory
|
|
536
|
+
*/
|
|
537
|
+
buildTx: TTxFactory<TRes>;
|
|
538
|
+
/**
|
|
539
|
+
* The origin chain
|
|
540
|
+
*/
|
|
541
|
+
origin: TSubstrateChain;
|
|
542
|
+
/**
|
|
543
|
+
* The destination chain
|
|
544
|
+
*/
|
|
545
|
+
destination: TChain;
|
|
546
|
+
/**
|
|
547
|
+
* The sender address
|
|
548
|
+
*/
|
|
549
|
+
senderAddress: string;
|
|
550
|
+
address: string;
|
|
551
|
+
currency: WithAmount<TCurrencyCore>;
|
|
552
|
+
feeAsset?: TCurrencyInput;
|
|
553
|
+
disableFallback: TDisableFallback;
|
|
554
|
+
swapConfig?: TSwapConfig;
|
|
555
|
+
};
|
|
556
|
+
type TGetXcmFeeOptions<TApi, TRes, TDisableFallback extends boolean = boolean> = WithApi<TGetXcmFeeBaseOptions<TRes, TDisableFallback>, TApi, TRes>;
|
|
557
|
+
type TGetXcmFeeInternalOptions<TApi, TRes, TDisableFallback extends boolean = boolean> = Omit<TGetXcmFeeOptions<TApi, TRes, TDisableFallback>, 'buildTx'> & {
|
|
558
|
+
tx: TRes;
|
|
559
|
+
useRootOrigin: boolean;
|
|
560
|
+
};
|
|
561
|
+
type TGetXcmFeeEstimateOptions<TApi, TRes> = Omit<TGetXcmFeeInternalOptions<TApi, TRes>, 'disableFallback' | 'useRootOrigin' | 'buildTx'>;
|
|
562
|
+
type TGetOriginXcmFeeEstimateOptions<TApi, TRes> = Omit<TGetXcmFeeInternalOptions<TApi, TRes>, 'disableFallback' | 'address' | 'useRootOrigin' | 'buildTx'>;
|
|
563
|
+
type TGetXcmFeeBuilderOptions = {
|
|
564
|
+
disableFallback: boolean;
|
|
565
|
+
};
|
|
566
|
+
type TGetOriginXcmFeeBaseOptions<TRes> = {
|
|
567
|
+
buildTx: TTxFactory<TRes>;
|
|
568
|
+
origin: TSubstrateChain;
|
|
569
|
+
destination: TChain;
|
|
570
|
+
senderAddress: string;
|
|
571
|
+
currency: WithAmount<TCurrencyCore>;
|
|
572
|
+
feeAsset?: TCurrencyInput;
|
|
573
|
+
disableFallback: boolean;
|
|
574
|
+
useRootOrigin?: boolean;
|
|
575
|
+
};
|
|
576
|
+
type TGetOriginXcmFeeOptions<TApi, TRes> = WithApi<TGetOriginXcmFeeBaseOptions<TRes>, TApi, TRes>;
|
|
577
|
+
type TGetOriginXcmFeeInternalOptions<TApi, TRes> = Omit<TGetOriginXcmFeeOptions<TApi, TRes>, 'buildTx'> & {
|
|
578
|
+
tx: TRes;
|
|
579
|
+
};
|
|
580
|
+
type TSwapConfig = {
|
|
581
|
+
currencyTo: TCurrencyCore;
|
|
582
|
+
amountOut: bigint;
|
|
583
|
+
exchangeChain: TParachain;
|
|
584
|
+
};
|
|
585
|
+
type TGetFeeForDestChainBaseOptions<TRes> = {
|
|
586
|
+
prevChain: TSubstrateChain;
|
|
587
|
+
origin: TSubstrateChain;
|
|
588
|
+
destination: TChain;
|
|
589
|
+
senderAddress: string;
|
|
590
|
+
address: string;
|
|
591
|
+
currency: WithAmount<TCurrencyCore>;
|
|
592
|
+
forwardedXcms: any;
|
|
593
|
+
tx: TRes;
|
|
594
|
+
asset: TAssetInfo;
|
|
595
|
+
originFee: bigint;
|
|
596
|
+
feeAsset?: TCurrencyInput;
|
|
597
|
+
disableFallback: boolean;
|
|
598
|
+
swapConfig?: TSwapConfig;
|
|
599
|
+
};
|
|
600
|
+
type TGetFeeForDestChainOptions<TApi, TRes> = WithApi<TGetFeeForDestChainBaseOptions<TRes>, TApi, TRes>;
|
|
601
|
+
type TGetReverseTxFeeOptions<TApi, TRes> = Omit<TGetFeeForDestChainOptions<TApi, TRes>, 'destination' | 'disableFallback' | 'forwardedXcms' | 'asset' | 'originFee' | 'prevChain'> & {
|
|
602
|
+
destination: TSubstrateChain;
|
|
603
|
+
};
|
|
604
|
+
type THubKey = 'assetHub' | 'bridgeHub';
|
|
605
|
+
type TFeeType = 'dryRun' | 'paymentInfo' | 'noFeeRequired';
|
|
606
|
+
type TXcmFeeBase$1 = {
|
|
607
|
+
/** @deprecated Use `asset` property instead. */
|
|
608
|
+
currency: string;
|
|
609
|
+
asset: TAssetInfo;
|
|
610
|
+
weight?: TWeight;
|
|
611
|
+
sufficient?: boolean;
|
|
612
|
+
};
|
|
613
|
+
type TXcmFeeDetailSuccess = TXcmFeeBase$1 & {
|
|
614
|
+
fee: bigint;
|
|
615
|
+
feeType: TFeeType;
|
|
616
|
+
dryRunError?: string;
|
|
617
|
+
};
|
|
618
|
+
type TXcmFeeDetailWithFallback = TXcmFeeDetailSuccess;
|
|
619
|
+
type TXcmFeeDetailError = TXcmFeeBase$1 & {
|
|
620
|
+
fee?: bigint;
|
|
621
|
+
feeType?: TFeeType;
|
|
622
|
+
dryRunError: string;
|
|
623
|
+
};
|
|
624
|
+
type TXcmFeeDetail = TXcmFeeDetailSuccess | TXcmFeeDetailError;
|
|
625
|
+
type TXcmFeeHopResult = {
|
|
626
|
+
fee?: bigint;
|
|
627
|
+
feeType?: TFeeType;
|
|
628
|
+
sufficient?: boolean;
|
|
629
|
+
dryRunError?: string;
|
|
630
|
+
forwardedXcms?: any;
|
|
631
|
+
destParaId?: number;
|
|
632
|
+
/** @deprecated Use `asset` property instead. */
|
|
633
|
+
currency: string;
|
|
634
|
+
asset: TAssetInfo;
|
|
635
|
+
};
|
|
636
|
+
type TConditionalXcmFeeDetail<TDisableFallback extends boolean> = TDisableFallback extends false ? TXcmFeeDetailWithFallback : TXcmFeeDetail;
|
|
637
|
+
type TDestXcmFeeDetail<TDisableFallback extends boolean> = Omit<TConditionalXcmFeeDetail<TDisableFallback>, 'currency'> & {
|
|
638
|
+
forwardedXcms?: any;
|
|
639
|
+
destParaId?: number;
|
|
640
|
+
};
|
|
641
|
+
type TConditionalXcmFeeHopInfo<TDisableFallback extends boolean> = {
|
|
642
|
+
chain: TChain;
|
|
643
|
+
result: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
644
|
+
};
|
|
645
|
+
type TXcmFeeChain = 'origin' | 'destination' | 'assetHub' | 'bridgeHub' | TChain;
|
|
646
|
+
type TXcmFeeHopInfo = {
|
|
647
|
+
chain: TChain;
|
|
648
|
+
result: TXcmFeeDetail;
|
|
649
|
+
};
|
|
650
|
+
type TGetXcmFeeResult<TDisableFallback extends boolean = boolean> = {
|
|
651
|
+
failureReason?: string;
|
|
652
|
+
failureChain?: TXcmFeeChain;
|
|
653
|
+
origin: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
654
|
+
destination: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
655
|
+
assetHub?: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
656
|
+
bridgeHub?: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
657
|
+
hops: TConditionalXcmFeeHopInfo<TDisableFallback>[];
|
|
658
|
+
};
|
|
659
|
+
type TGetXcmFeeEstimateDetail = {
|
|
660
|
+
fee: bigint;
|
|
661
|
+
/** @deprecated Use `asset` property instead. */
|
|
662
|
+
currency: string;
|
|
663
|
+
asset: TAssetInfo;
|
|
664
|
+
sufficient?: boolean;
|
|
665
|
+
};
|
|
666
|
+
type TGetXcmFeeEstimateResult = {
|
|
667
|
+
origin: TGetXcmFeeEstimateDetail;
|
|
668
|
+
destination: TGetXcmFeeEstimateDetail;
|
|
669
|
+
};
|
|
670
|
+
|
|
536
671
|
/**
|
|
537
672
|
* Retrieves the native asset balance for a given account on a specified chain.
|
|
538
673
|
*/
|
|
@@ -644,7 +779,7 @@ type TGetTransferableAmountOptionsBase<TRes> = {
|
|
|
644
779
|
/**
|
|
645
780
|
* The transactions
|
|
646
781
|
*/
|
|
647
|
-
|
|
782
|
+
buildTx: TTxFactory<TRes>;
|
|
648
783
|
feeAsset?: TCurrencyInput;
|
|
649
784
|
};
|
|
650
785
|
type TGetTransferableAmountOptions<TApi, TRes> = WithApi<TGetTransferableAmountOptionsBase<TRes>, TApi, TRes>;
|
|
@@ -676,7 +811,7 @@ type TVerifyEdOnDestinationOptionsBase<TRes> = {
|
|
|
676
811
|
/**
|
|
677
812
|
* The transactions
|
|
678
813
|
*/
|
|
679
|
-
|
|
814
|
+
buildTx: TTxFactory<TRes>;
|
|
680
815
|
feeAsset?: TCurrencyInput;
|
|
681
816
|
};
|
|
682
817
|
type TVerifyEdOnDestinationOptions<TApi, TRes> = WithApi<TVerifyEdOnDestinationOptionsBase<TRes>, TApi, TRes>;
|
|
@@ -1144,146 +1279,6 @@ declare class UnableToComputeError extends Error {
|
|
|
1144
1279
|
constructor(message: string);
|
|
1145
1280
|
}
|
|
1146
1281
|
|
|
1147
|
-
type TGetXcmFeeBaseOptions<TRes, TDisableFallback extends boolean = boolean> = {
|
|
1148
|
-
/**
|
|
1149
|
-
* The transactions
|
|
1150
|
-
*/
|
|
1151
|
-
txs: TTxPair<TRes>;
|
|
1152
|
-
/**
|
|
1153
|
-
* The origin chain
|
|
1154
|
-
*/
|
|
1155
|
-
origin: TSubstrateChain;
|
|
1156
|
-
/**
|
|
1157
|
-
* The destination chain
|
|
1158
|
-
*/
|
|
1159
|
-
destination: TChain;
|
|
1160
|
-
/**
|
|
1161
|
-
* The sender address
|
|
1162
|
-
*/
|
|
1163
|
-
senderAddress: string;
|
|
1164
|
-
address: string;
|
|
1165
|
-
currency: WithAmount<TCurrencyCore>;
|
|
1166
|
-
feeAsset?: TCurrencyInput;
|
|
1167
|
-
disableFallback: TDisableFallback;
|
|
1168
|
-
swapConfig?: TSwapConfig;
|
|
1169
|
-
};
|
|
1170
|
-
type TGetXcmFeeOptions<TApi, TRes, TDisableFallback extends boolean = boolean> = WithApi<TGetXcmFeeBaseOptions<TRes, TDisableFallback>, TApi, TRes>;
|
|
1171
|
-
type TGetXcmFeeInternalOptions<TApi, TRes, TDisableFallback extends boolean = boolean> = Omit<TGetXcmFeeOptions<TApi, TRes, TDisableFallback>, 'txs'> & {
|
|
1172
|
-
tx: TRes;
|
|
1173
|
-
useRootOrigin: boolean;
|
|
1174
|
-
};
|
|
1175
|
-
type TGetXcmFeeEstimateOptions<TApi, TRes> = Omit<TGetXcmFeeInternalOptions<TApi, TRes>, 'disableFallback' | 'useRootOrigin'>;
|
|
1176
|
-
type TGetOriginXcmFeeEstimateOptions<TApi, TRes> = Omit<TGetXcmFeeInternalOptions<TApi, TRes>, 'disableFallback' | 'address' | 'useRootOrigin'>;
|
|
1177
|
-
type TGetXcmFeeBuilderOptions = {
|
|
1178
|
-
disableFallback: boolean;
|
|
1179
|
-
};
|
|
1180
|
-
type TGetOriginXcmFeeBaseOptions<TRes> = {
|
|
1181
|
-
txs: {
|
|
1182
|
-
tx: TRes;
|
|
1183
|
-
txBypass: TRes;
|
|
1184
|
-
};
|
|
1185
|
-
origin: TSubstrateChain;
|
|
1186
|
-
destination: TChain;
|
|
1187
|
-
senderAddress: string;
|
|
1188
|
-
currency: WithAmount<TCurrencyCore>;
|
|
1189
|
-
feeAsset?: TCurrencyInput;
|
|
1190
|
-
disableFallback: boolean;
|
|
1191
|
-
useRootOrigin?: boolean;
|
|
1192
|
-
};
|
|
1193
|
-
type TGetOriginXcmFeeOptions<TApi, TRes> = WithApi<TGetOriginXcmFeeBaseOptions<TRes>, TApi, TRes>;
|
|
1194
|
-
type TGetOriginXcmFeeInternalOptions<TApi, TRes> = Omit<TGetOriginXcmFeeOptions<TApi, TRes>, 'txs'> & {
|
|
1195
|
-
tx: TRes;
|
|
1196
|
-
};
|
|
1197
|
-
type TSwapConfig = {
|
|
1198
|
-
currencyTo: TCurrencyCore;
|
|
1199
|
-
exchangeChain: TParachain;
|
|
1200
|
-
};
|
|
1201
|
-
type TGetFeeForDestChainBaseOptions<TRes> = {
|
|
1202
|
-
prevChain: TSubstrateChain;
|
|
1203
|
-
origin: TSubstrateChain;
|
|
1204
|
-
destination: TChain;
|
|
1205
|
-
senderAddress: string;
|
|
1206
|
-
address: string;
|
|
1207
|
-
currency: WithAmount<TCurrencyCore>;
|
|
1208
|
-
forwardedXcms: any;
|
|
1209
|
-
tx: TRes;
|
|
1210
|
-
asset: TAssetInfo;
|
|
1211
|
-
originFee: bigint;
|
|
1212
|
-
feeAsset?: TCurrencyInput;
|
|
1213
|
-
disableFallback: boolean;
|
|
1214
|
-
swapConfig?: TSwapConfig;
|
|
1215
|
-
};
|
|
1216
|
-
type TGetFeeForDestChainOptions<TApi, TRes> = WithApi<TGetFeeForDestChainBaseOptions<TRes>, TApi, TRes>;
|
|
1217
|
-
type TGetReverseTxFeeOptions<TApi, TRes> = Omit<TGetFeeForDestChainOptions<TApi, TRes>, 'destination' | 'disableFallback' | 'forwardedXcms' | 'asset' | 'originFee' | 'prevChain'> & {
|
|
1218
|
-
destination: TSubstrateChain;
|
|
1219
|
-
};
|
|
1220
|
-
type THubKey = 'assetHub' | 'bridgeHub';
|
|
1221
|
-
type TFeeType = 'dryRun' | 'paymentInfo' | 'noFeeRequired';
|
|
1222
|
-
type TXcmFeeBase$1 = {
|
|
1223
|
-
/** @deprecated Use `asset` property instead. */
|
|
1224
|
-
currency: string;
|
|
1225
|
-
asset: TAssetInfo;
|
|
1226
|
-
weight?: TWeight;
|
|
1227
|
-
sufficient?: boolean;
|
|
1228
|
-
};
|
|
1229
|
-
type TXcmFeeDetailSuccess = TXcmFeeBase$1 & {
|
|
1230
|
-
fee: bigint;
|
|
1231
|
-
feeType: TFeeType;
|
|
1232
|
-
dryRunError?: string;
|
|
1233
|
-
};
|
|
1234
|
-
type TXcmFeeDetailWithFallback = TXcmFeeDetailSuccess;
|
|
1235
|
-
type TXcmFeeDetailError = TXcmFeeBase$1 & {
|
|
1236
|
-
fee?: bigint;
|
|
1237
|
-
feeType?: TFeeType;
|
|
1238
|
-
dryRunError: string;
|
|
1239
|
-
};
|
|
1240
|
-
type TXcmFeeDetail = TXcmFeeDetailSuccess | TXcmFeeDetailError;
|
|
1241
|
-
type TXcmFeeHopResult = {
|
|
1242
|
-
fee?: bigint;
|
|
1243
|
-
feeType?: TFeeType;
|
|
1244
|
-
sufficient?: boolean;
|
|
1245
|
-
dryRunError?: string;
|
|
1246
|
-
forwardedXcms?: any;
|
|
1247
|
-
destParaId?: number;
|
|
1248
|
-
/** @deprecated Use `asset` property instead. */
|
|
1249
|
-
currency: string;
|
|
1250
|
-
asset: TAssetInfo;
|
|
1251
|
-
};
|
|
1252
|
-
type TConditionalXcmFeeDetail<TDisableFallback extends boolean> = TDisableFallback extends false ? TXcmFeeDetailWithFallback : TXcmFeeDetail;
|
|
1253
|
-
type TDestXcmFeeDetail<TDisableFallback extends boolean> = Omit<TConditionalXcmFeeDetail<TDisableFallback>, 'currency'> & {
|
|
1254
|
-
forwardedXcms?: any;
|
|
1255
|
-
destParaId?: number;
|
|
1256
|
-
};
|
|
1257
|
-
type TConditionalXcmFeeHopInfo<TDisableFallback extends boolean> = {
|
|
1258
|
-
chain: TChain;
|
|
1259
|
-
result: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
1260
|
-
};
|
|
1261
|
-
type TXcmFeeChain = 'origin' | 'destination' | 'assetHub' | 'bridgeHub' | TChain;
|
|
1262
|
-
type TXcmFeeHopInfo = {
|
|
1263
|
-
chain: TChain;
|
|
1264
|
-
result: TXcmFeeDetail;
|
|
1265
|
-
};
|
|
1266
|
-
type TGetXcmFeeResult<TDisableFallback extends boolean = boolean> = {
|
|
1267
|
-
failureReason?: string;
|
|
1268
|
-
failureChain?: TXcmFeeChain;
|
|
1269
|
-
origin: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
1270
|
-
destination: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
1271
|
-
assetHub?: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
1272
|
-
bridgeHub?: TConditionalXcmFeeDetail<TDisableFallback>;
|
|
1273
|
-
hops: TConditionalXcmFeeHopInfo<TDisableFallback>[];
|
|
1274
|
-
};
|
|
1275
|
-
type TGetXcmFeeEstimateDetail = {
|
|
1276
|
-
fee: bigint;
|
|
1277
|
-
/** @deprecated Use `asset` property instead. */
|
|
1278
|
-
currency: string;
|
|
1279
|
-
asset: TAssetInfo;
|
|
1280
|
-
sufficient?: boolean;
|
|
1281
|
-
};
|
|
1282
|
-
type TGetXcmFeeEstimateResult = {
|
|
1283
|
-
origin: TGetXcmFeeEstimateDetail;
|
|
1284
|
-
destination: TGetXcmFeeEstimateDetail;
|
|
1285
|
-
};
|
|
1286
|
-
|
|
1287
1282
|
type THopTransferInfo = {
|
|
1288
1283
|
chain: TChain;
|
|
1289
1284
|
result: {
|
|
@@ -1384,7 +1379,7 @@ type TOriginFeeDetails = {
|
|
|
1384
1379
|
xcmFee: bigint;
|
|
1385
1380
|
};
|
|
1386
1381
|
type TGetTransferInfoOptionsBase<TRes> = {
|
|
1387
|
-
|
|
1382
|
+
buildTx: TTxFactory<TRes>;
|
|
1388
1383
|
origin: TSubstrateChain;
|
|
1389
1384
|
destination: TChain;
|
|
1390
1385
|
senderAddress: string;
|
|
@@ -1491,9 +1486,11 @@ declare abstract class Parachain<TApi, TRes> {
|
|
|
1491
1486
|
get version(): Version;
|
|
1492
1487
|
canUseXTokens(options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1493
1488
|
transfer(sendOptions: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1489
|
+
throwIfCantReceive(destChain: TChain | undefined): void;
|
|
1494
1490
|
throwIfTempDisabled(options: TSendInternalOptions<TApi, TRes>, destChain?: TChain): void;
|
|
1495
1491
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1496
1492
|
isReceivingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1493
|
+
canReceiveFrom(_origin: TChain): boolean;
|
|
1497
1494
|
shouldUseNativeAssetTeleport({ assetInfo: asset, to }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1498
1495
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1499
1496
|
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): Promise<TSerializedApiCall>;
|
|
@@ -1513,14 +1510,10 @@ declare class Acala<TApi, TRes> extends Parachain<TApi, TRes> implements IXToken
|
|
|
1513
1510
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1514
1511
|
}
|
|
1515
1512
|
|
|
1516
|
-
declare class Ajuna<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer
|
|
1513
|
+
declare class Ajuna<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
1517
1514
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1518
1515
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1519
|
-
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1520
|
-
canUseXTokens({ assetInfo, to: destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1521
1516
|
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1522
|
-
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1523
|
-
isReceivingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1524
1517
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1525
1518
|
}
|
|
1526
1519
|
|
|
@@ -1641,7 +1634,7 @@ declare class BifrostPolkadot<TApi, TRes> extends Parachain<TApi, TRes> implemen
|
|
|
1641
1634
|
};
|
|
1642
1635
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1643
1636
|
transferToAssetHub<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1644
|
-
transferPolkadotXCM<TApi, TRes>(
|
|
1637
|
+
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1645
1638
|
canUseXTokens({ assetInfo, to: destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1646
1639
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1647
1640
|
}
|
|
@@ -1992,6 +1985,12 @@ declare class Unique<TApi, TRes> extends Parachain<TApi, TRes> implements IXToke
|
|
|
1992
1985
|
transferLocalNonNativeAsset(_options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1993
1986
|
}
|
|
1994
1987
|
|
|
1988
|
+
declare class Xode<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1989
|
+
constructor();
|
|
1990
|
+
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1991
|
+
canReceiveFrom(origin: TChain): boolean;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1995
1994
|
declare class Zeitgeist<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
1996
1995
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1997
1996
|
private getCurrencySelection;
|
|
@@ -2012,21 +2011,36 @@ declare const chains: <TApi, TRes>() => {
|
|
|
2012
2011
|
Crust: Crust<TApi, TRes>;
|
|
2013
2012
|
BifrostPolkadot: BifrostPolkadot<TApi, TRes>;
|
|
2014
2013
|
BridgeHubPolkadot: BridgeHubPolkadot<TApi, TRes>;
|
|
2015
|
-
BridgeHubKusama: BridgeHubKusama<TApi, TRes>;
|
|
2016
2014
|
Centrifuge: Centrifuge<TApi, TRes>;
|
|
2017
2015
|
ComposableFinance: ComposableFinance<TApi, TRes>;
|
|
2018
2016
|
Darwinia: Darwinia<TApi, TRes>;
|
|
2019
2017
|
EnergyWebX: EnergyWebX<TApi, TRes>;
|
|
2020
2018
|
Hydration: Hydration<TApi, TRes>;
|
|
2021
|
-
IntegriteeKusama: IntegriteeKusama<TApi, TRes>;
|
|
2022
2019
|
IntegriteePolkadot: IntegriteePolkadot<TApi, TRes>;
|
|
2023
2020
|
Interlay: Interlay<TApi, TRes>;
|
|
2024
2021
|
Heima: Heima<TApi, TRes>;
|
|
2025
2022
|
Jamton: Jamton<TApi, TRes>;
|
|
2026
2023
|
Moonbeam: Moonbeam<TApi, TRes>;
|
|
2024
|
+
CoretimePolkadot: CoretimePolkadot<TApi, TRes>;
|
|
2025
|
+
RobonomicsPolkadot: RobonomicsPolkadot<TApi, TRes>;
|
|
2026
|
+
PeoplePolkadot: PeoplePolkadot<TApi, TRes>;
|
|
2027
|
+
Manta: Manta<TApi, TRes>;
|
|
2028
|
+
Nodle: Nodle<TApi, TRes>;
|
|
2029
|
+
NeuroWeb: NeuroWeb<TApi, TRes>;
|
|
2030
|
+
Pendulum: Pendulum<TApi, TRes>;
|
|
2031
|
+
Collectives: Collectives<TApi, TRes>;
|
|
2032
|
+
Phala: Phala<TApi, TRes>;
|
|
2033
|
+
Subsocial: Subsocial<TApi, TRes>;
|
|
2034
|
+
KiltSpiritnet: KiltSpiritnet<TApi, TRes>;
|
|
2035
|
+
Curio: Curio<TApi, TRes>;
|
|
2036
|
+
Mythos: Mythos<TApi, TRes>;
|
|
2037
|
+
Peaq: Peaq<TApi, TRes>;
|
|
2038
|
+
Polimec: Polimec<TApi, TRes>;
|
|
2039
|
+
Xode: Xode<TApi, TRes>;
|
|
2027
2040
|
AssetHubKusama: AssetHubKusama<TApi, TRes>;
|
|
2041
|
+
BridgeHubKusama: BridgeHubKusama<TApi, TRes>;
|
|
2028
2042
|
CoretimeKusama: CoretimeKusama<TApi, TRes>;
|
|
2029
|
-
|
|
2043
|
+
IntegriteeKusama: IntegriteeKusama<TApi, TRes>;
|
|
2030
2044
|
Encointer: Encointer<TApi, TRes>;
|
|
2031
2045
|
Altair: Altair<TApi, TRes>;
|
|
2032
2046
|
Amplitude: Amplitude<TApi, TRes>;
|
|
@@ -2040,23 +2054,9 @@ declare const chains: <TApi, TRes>() => {
|
|
|
2040
2054
|
Laos: Laos<TApi, TRes>;
|
|
2041
2055
|
Quartz: Quartz<TApi, TRes>;
|
|
2042
2056
|
RobonomicsKusama: RobonomicsKusama<TApi, TRes>;
|
|
2043
|
-
RobonomicsPolkadot: RobonomicsPolkadot<TApi, TRes>;
|
|
2044
|
-
PeoplePolkadot: PeoplePolkadot<TApi, TRes>;
|
|
2045
2057
|
PeopleKusama: PeopleKusama<TApi, TRes>;
|
|
2046
2058
|
Shiden: Shiden<TApi, TRes>;
|
|
2047
|
-
Manta: Manta<TApi, TRes>;
|
|
2048
|
-
Nodle: Nodle<TApi, TRes>;
|
|
2049
|
-
NeuroWeb: NeuroWeb<TApi, TRes>;
|
|
2050
|
-
Pendulum: Pendulum<TApi, TRes>;
|
|
2051
2059
|
Zeitgeist: Zeitgeist<TApi, TRes>;
|
|
2052
|
-
Collectives: Collectives<TApi, TRes>;
|
|
2053
|
-
Phala: Phala<TApi, TRes>;
|
|
2054
|
-
Subsocial: Subsocial<TApi, TRes>;
|
|
2055
|
-
KiltSpiritnet: KiltSpiritnet<TApi, TRes>;
|
|
2056
|
-
Curio: Curio<TApi, TRes>;
|
|
2057
|
-
Mythos: Mythos<TApi, TRes>;
|
|
2058
|
-
Peaq: Peaq<TApi, TRes>;
|
|
2059
|
-
Polimec: Polimec<TApi, TRes>;
|
|
2060
2060
|
AssetHubWestend: AssetHubWestend<TApi, TRes>;
|
|
2061
2061
|
BridgeHubWestend: BridgeHubWestend<TApi, TRes>;
|
|
2062
2062
|
CollectivesWestend: CollectivesWestend<TApi, TRes>;
|
|
@@ -2134,7 +2134,7 @@ declare const transferMoonbeamEvm: <TApi, TRes>({ api, from, to, signer, address
|
|
|
2134
2134
|
declare const transferMoonbeamToEth: <TApi, TRes>({ api, from, to, signer, address, ahAddress, currency }: TEvmBuilderOptions<TApi, TRes>) => Promise<`0x${string}`>;
|
|
2135
2135
|
|
|
2136
2136
|
declare const getOriginXcmFee: <TApi, TRes>(options: TGetOriginXcmFeeOptions<TApi, TRes>) => Promise<TXcmFeeDetail & {
|
|
2137
|
-
forwardedXcms?:
|
|
2137
|
+
forwardedXcms?: unknown;
|
|
2138
2138
|
destParaId?: number;
|
|
2139
2139
|
}>;
|
|
2140
2140
|
|
|
@@ -2155,12 +2155,12 @@ declare const getBridgeStatus: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>) => Pr
|
|
|
2155
2155
|
|
|
2156
2156
|
declare const send: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<TRes>;
|
|
2157
2157
|
|
|
2158
|
-
declare const getTransferInfo: <TApi, TRes>({ api,
|
|
2158
|
+
declare const getTransferInfo: <TApi, TRes>({ api, buildTx, origin, destination, senderAddress, ahAddress, address, currency, feeAsset }: TGetTransferInfoOptions<TApi, TRes>) => Promise<TTransferInfo>;
|
|
2159
2159
|
|
|
2160
|
-
declare const getMinTransferableAmountInternal: <TApi, TRes>({ api, origin, senderAddress, address, origin: chain, destination, currency, feeAsset,
|
|
2160
|
+
declare const getMinTransferableAmountInternal: <TApi, TRes>({ api, origin, senderAddress, address, origin: chain, destination, currency, feeAsset, buildTx, builder }: TGetMinTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2161
2161
|
declare const getMinTransferableAmount: <TApi, TRes>(options: TGetMinTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2162
2162
|
|
|
2163
|
-
declare const getTransferableAmountInternal: <TApi, TRes>({ api, senderAddress, origin: chain, destination, currency,
|
|
2163
|
+
declare const getTransferableAmountInternal: <TApi, TRes>({ api, senderAddress, origin: chain, destination, currency, buildTx, feeAsset }: TGetTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2164
2164
|
declare const getTransferableAmount: <TApi, TRes>(options: TGetTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2165
2165
|
|
|
2166
2166
|
declare const transferRelayToPara: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>) => Promise<TRes>;
|
|
@@ -2189,12 +2189,9 @@ declare const maybeOverrideAsset: (version: Version, amount: bigint, asset: TAss
|
|
|
2189
2189
|
|
|
2190
2190
|
declare const sortAssets: (assets: TAsset[]) => TAsset[];
|
|
2191
2191
|
|
|
2192
|
-
declare const computeOverridenAmount: <TApi, TRes>(options: TCreateTxsOptions<TApi, TRes
|
|
2193
|
-
declare const overrideTxAmount: <TApi, TRes>(options: TCreateTxsOptions<TApi, TRes>, builder: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress
|
|
2194
|
-
declare const
|
|
2195
|
-
tx: Awaited<TRes>;
|
|
2196
|
-
txBypass: Awaited<TRes>;
|
|
2197
|
-
}>;
|
|
2192
|
+
declare const computeOverridenAmount: <TApi, TRes>(options: TCreateTxsOptions<TApi, TRes>, increaseAmount: string) => bigint;
|
|
2193
|
+
declare const overrideTxAmount: <TApi, TRes>(options: TCreateTxsOptions<TApi, TRes>, builder: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>, amount: string) => Promise<TRes>;
|
|
2194
|
+
declare const createTx: <TApi, TRes>(options: TCreateTxsOptions<TApi, TRes>, builder: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>, amount: string | undefined) => Promise<TRes>;
|
|
2198
2195
|
|
|
2199
2196
|
declare const isConfig: <TApi>(value: any) => value is TBuilderConfig<TApi>;
|
|
2200
2197
|
|
|
@@ -2247,7 +2244,7 @@ declare const localizeLocation: (chain: TChain, location: TLocation) => TLocatio
|
|
|
2247
2244
|
|
|
2248
2245
|
declare const reverseTransformLocation: (location: TLocation) => TLocation;
|
|
2249
2246
|
|
|
2250
|
-
declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "ComposableFinance" | "Darwinia" | "EnergyWebX" | "Hydration" | "IntegriteePolkadot" | "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;
|
|
2247
|
+
declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "ComposableFinance" | "Darwinia" | "EnergyWebX" | "Hydration" | "IntegriteePolkadot" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "Manta" | "Nodle" | "NeuroWeb" | "Pendulum" | "Phala" | "Subsocial" | "KiltSpiritnet" | "Curio" | "Mythos" | "Peaq" | "Polimec" | "RobonomicsPolkadot" | "PeoplePolkadot" | "Unique" | "Xode" | "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;
|
|
2251
2248
|
|
|
2252
2249
|
declare const resolveParaId: (paraId: number | undefined, destination: TDestination) => number | undefined;
|
|
2253
2250
|
|
|
@@ -2283,5 +2280,5 @@ declare const handleToAhTeleport: <TApi, TRes>(origin: TParachain, input: TPolka
|
|
|
2283
2280
|
|
|
2284
2281
|
declare const validateAddress: (address: TAddress, chain: TChain, isDestination?: boolean) => void;
|
|
2285
2282
|
|
|
2286
|
-
export { AmountTooLowError, AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm,
|
|
2287
|
-
export type { BuildHopInfoOptions, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBifrostToken, TBridgeStatus, TBuildDestInfoOptions, TBuilderConfig, TBuilderOptions, TBypassOptions, TChainConfig, TChainConfigMap, TChainWithApi, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignByAssetOptions, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapConfig, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions,
|
|
2283
|
+
export { AmountTooLowError, AssetClaimBuilder, AssetsPallet, BatchMode, BridgeHaltedError, Builder, ChainNotSupportedError, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleChainsError, InvalidAddressError, InvalidParameterError, MissingChainApiError, NoXCMSupportImplementedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, abstractDecimals, addEthereumBridgeFees, addXcmVersionHeader, applyDecimalAbstraction, assertAddressIsString, assertHasId, assertHasLocation, assertIsForeign, assertSenderAddress, assertToIsString, blake2b256, blake2b512, calcPreviewMintAmount, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, computeOverridenAmount, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTx, createTypeAndThenCall, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, overrideTxAmount, padFee, padFeeBy, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, verifyEdOnDestination, wrapTxBypass };
|
|
2284
|
+
export type { BuildHopInfoOptions, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBifrostToken, TBridgeStatus, TBuildDestInfoOptions, TBuilderConfig, TBuilderOptions, TBypassOptions, TChainConfig, TChainConfigMap, TChainWithApi, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TCreateTxsOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunBypassOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunChainFailure, TDryRunChainResult, TDryRunChainSuccess, TDryRunOptions, TDryRunPreviewOptions, TDryRunResBase, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignByAssetOptions, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMinTransferableAmountOptions, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeInternalOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeInternalOptions, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapConfig, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTxFactory, TTypeAndThenCallContext, TTypeAndThenFees, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
|