@paraspell/sdk-core 11.1.1 → 11.2.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 +1046 -764
- package/dist/index.d.ts +480 -452
- package/dist/index.mjs +1047 -768
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -179,7 +179,7 @@ type TRelayToParaOverrides = {
|
|
|
179
179
|
*/
|
|
180
180
|
type TRelayToParaOptions<TApi, TRes> = WithApi<TRelayToParaBaseOptions, TApi, TRes>;
|
|
181
181
|
type TSerializedApiCall = {
|
|
182
|
-
module: TPallet
|
|
182
|
+
module: TPallet;
|
|
183
183
|
method: string;
|
|
184
184
|
parameters: Record<string, unknown>;
|
|
185
185
|
};
|
|
@@ -262,257 +262,6 @@ type TAssetClaimInternalOptions<TApi, TRes> = TAssetClaimOptions<TApi, TRes> & {
|
|
|
262
262
|
assets: TAsset<bigint>[];
|
|
263
263
|
};
|
|
264
264
|
|
|
265
|
-
/**
|
|
266
|
-
* Builder class for constructing asset claim transactions.
|
|
267
|
-
*/
|
|
268
|
-
declare class AssetClaimBuilder<TApi, TRes, T extends Partial<TAssetClaimOptionsBase> = object> {
|
|
269
|
-
readonly api: IPolkadotApi<TApi, TRes>;
|
|
270
|
-
readonly _options: T;
|
|
271
|
-
constructor(api: IPolkadotApi<TApi, TRes>, options?: T);
|
|
272
|
-
/**
|
|
273
|
-
* Specifies the assets to be claimed.
|
|
274
|
-
*
|
|
275
|
-
* @param assets - An array of assets to claim in a multi-asset format.
|
|
276
|
-
* @returns An instance of Builder
|
|
277
|
-
*/
|
|
278
|
-
currency(currency: TAssetClaimOptionsBase['currency']): AssetClaimBuilder<TApi, TRes, T & {
|
|
279
|
-
currency: TAssetClaimOptionsBase['currency'];
|
|
280
|
-
}>;
|
|
281
|
-
/**
|
|
282
|
-
* Specifies the account address on which the assets will be claimed.
|
|
283
|
-
*
|
|
284
|
-
* @param address - The destination account address.
|
|
285
|
-
* @returns An instance of Builder
|
|
286
|
-
*/
|
|
287
|
-
address(address: TAddress): AssetClaimBuilder<TApi, TRes, T & {
|
|
288
|
-
address: TAddress;
|
|
289
|
-
}>;
|
|
290
|
-
/**
|
|
291
|
-
* Sets the XCM version to be used for the asset claim.
|
|
292
|
-
*
|
|
293
|
-
* @param version - The XCM version.
|
|
294
|
-
* @returns An instance of Builder
|
|
295
|
-
*/
|
|
296
|
-
xcmVersion(version: Version): AssetClaimBuilder<TApi, TRes, T & {
|
|
297
|
-
version: Version;
|
|
298
|
-
}>;
|
|
299
|
-
/**
|
|
300
|
-
* Builds and returns the asset claim extrinsic.
|
|
301
|
-
*
|
|
302
|
-
* @returns A Promise that resolves to the asset claim extrinsic.
|
|
303
|
-
*/
|
|
304
|
-
build(this: AssetClaimBuilder<TApi, TRes, TAssetClaimOptionsBase>): Promise<TRes>;
|
|
305
|
-
/**
|
|
306
|
-
* Returns the API instance used by the builder.
|
|
307
|
-
*
|
|
308
|
-
* @returns The API instance.
|
|
309
|
-
*/
|
|
310
|
-
getApi(): TApi;
|
|
311
|
-
/**
|
|
312
|
-
* Disconnects the API.
|
|
313
|
-
*
|
|
314
|
-
* @returns A Promise that resolves when the API is disconnected.
|
|
315
|
-
*/
|
|
316
|
-
disconnect(): Promise<void>;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
declare class BatchTransactionManager<TApi, TRes> {
|
|
320
|
-
transactionOptions: TSendOptions<TApi, TRes>[];
|
|
321
|
-
addTransaction(options: TSendOptions<TApi, TRes>): void;
|
|
322
|
-
isEmpty(): boolean;
|
|
323
|
-
buildBatch(api: IPolkadotApi<TApi, TRes>, from: TSubstrateChain, options?: TBatchOptions): Promise<TRes>;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* A builder class for constructing Para-to-Para, Para-to-Relay, Relay-to-Para transactions and asset claims.
|
|
328
|
-
*/
|
|
329
|
-
declare class GeneralBuilder<TApi, TRes, T extends Partial<TSendBaseOptions> = object> {
|
|
330
|
-
readonly batchManager: BatchTransactionManager<TApi, TRes>;
|
|
331
|
-
readonly api: IPolkadotApi<TApi, TRes>;
|
|
332
|
-
readonly _options: T;
|
|
333
|
-
constructor(api: IPolkadotApi<TApi, TRes>, batchManager: BatchTransactionManager<TApi, TRes>, options?: T);
|
|
334
|
-
/**
|
|
335
|
-
* Specifies the origin chain for the transaction.
|
|
336
|
-
*
|
|
337
|
-
* @param chain - The chain from which the transaction originates.
|
|
338
|
-
* @returns An instance of Builder
|
|
339
|
-
*/
|
|
340
|
-
from(chain: TSubstrateChain): GeneralBuilder<TApi, TRes, T & {
|
|
341
|
-
from: TSubstrateChain;
|
|
342
|
-
}>;
|
|
343
|
-
/**
|
|
344
|
-
* Specifies the destination chain for the transaction.
|
|
345
|
-
*
|
|
346
|
-
* @param chain - The chain to which the transaction is sent.
|
|
347
|
-
* @param paraIdTo - (Optional) The parachain ID of the destination chain.
|
|
348
|
-
* @returns An instance of Builder
|
|
349
|
-
*/
|
|
350
|
-
to(chain: TDestination, paraIdTo?: number): GeneralBuilder<TApi, TRes, T & {
|
|
351
|
-
to: TDestination;
|
|
352
|
-
}>;
|
|
353
|
-
/**
|
|
354
|
-
* Initiates the process to claim assets from a specified chain.
|
|
355
|
-
*
|
|
356
|
-
* @param chain - The chain from which to claim assets.
|
|
357
|
-
* @returns An instance of Builder
|
|
358
|
-
*/
|
|
359
|
-
claimFrom(chain: TSubstrateChain): AssetClaimBuilder<TApi, TRes, {
|
|
360
|
-
chain: TSubstrateChain;
|
|
361
|
-
}>;
|
|
362
|
-
/**
|
|
363
|
-
* Specifies the currency to be used in the transaction. Symbol, ID, location or multi-asset.
|
|
364
|
-
*
|
|
365
|
-
* @param currency - The currency to be transferred.
|
|
366
|
-
* @returns An instance of Builder
|
|
367
|
-
*/
|
|
368
|
-
currency(currency: TCurrencyInputWithAmount): GeneralBuilder<TApi, TRes, T & {
|
|
369
|
-
currency: TCurrencyInputWithAmount;
|
|
370
|
-
}>;
|
|
371
|
-
/**
|
|
372
|
-
* Sets the recipient address.
|
|
373
|
-
*
|
|
374
|
-
* @param address - The destination address.
|
|
375
|
-
* @returns An instance of Builder
|
|
376
|
-
*/
|
|
377
|
-
address(address: TAddress): GeneralBuilder<TApi, TRes, T & {
|
|
378
|
-
address: TAddress;
|
|
379
|
-
}>;
|
|
380
|
-
/**
|
|
381
|
-
* Sets the sender address.
|
|
382
|
-
*
|
|
383
|
-
* @param address - The sender address.
|
|
384
|
-
* @returns
|
|
385
|
-
*/
|
|
386
|
-
senderAddress(address: string): GeneralBuilder<TApi, TRes, T & {
|
|
387
|
-
senderAddress: string;
|
|
388
|
-
}>;
|
|
389
|
-
/**
|
|
390
|
-
* Sets the asset hub address. This is used for transfers that go through the Asset Hub and originate from an EVM chain.
|
|
391
|
-
*
|
|
392
|
-
* @param address - The address to be used.
|
|
393
|
-
* @returns An instance of Builder
|
|
394
|
-
*/
|
|
395
|
-
ahAddress(address: string | undefined): GeneralBuilder<TApi, TRes, T & {
|
|
396
|
-
ahAddress: string | undefined;
|
|
397
|
-
}>;
|
|
398
|
-
/**
|
|
399
|
-
* Sets the XCM version to be used for the transfer.
|
|
400
|
-
*
|
|
401
|
-
* @param version - The XCM version.
|
|
402
|
-
* @returns An instance of Builder
|
|
403
|
-
*/
|
|
404
|
-
xcmVersion(version: Version): GeneralBuilder<TApi, TRes, T & {
|
|
405
|
-
version: Version;
|
|
406
|
-
}>;
|
|
407
|
-
/**
|
|
408
|
-
* Sets a custom pallet for the transaction.
|
|
409
|
-
*
|
|
410
|
-
* @param palletName - The name of the custom pallet to be used.
|
|
411
|
-
* @returns An instance of the Builder.
|
|
412
|
-
*/
|
|
413
|
-
customPallet(pallet: string, method: string): GeneralBuilder<TApi, TRes, T & {
|
|
414
|
-
pallet: string;
|
|
415
|
-
method: string;
|
|
416
|
-
}>;
|
|
417
|
-
/**
|
|
418
|
-
* Optional fee asset for the transaction.
|
|
419
|
-
*
|
|
420
|
-
* @param currency - The currency to be used for the fee.
|
|
421
|
-
* @returns An instance of the Builder
|
|
422
|
-
*/
|
|
423
|
-
feeAsset(currency: TCurrencyInput | undefined): GeneralBuilder<TApi, TRes, T & {
|
|
424
|
-
feeAsset: TCurrencyInput | undefined;
|
|
425
|
-
}>;
|
|
426
|
-
/**
|
|
427
|
-
* Adds the transfer transaction to the batch.
|
|
428
|
-
*
|
|
429
|
-
* @returns An instance of Builder
|
|
430
|
-
*/
|
|
431
|
-
addToBatch(this: GeneralBuilder<TApi, TRes, TSendBaseOptions>): GeneralBuilder<TApi, TRes, T & {
|
|
432
|
-
from: TSubstrateChain;
|
|
433
|
-
}>;
|
|
434
|
-
/**
|
|
435
|
-
* Builds and returns the batched transaction based on the configured parameters.
|
|
436
|
-
*
|
|
437
|
-
* @param options - (Optional) Options to customize the batch transaction.
|
|
438
|
-
* @returns A Extrinsic representing the batched transactions.
|
|
439
|
-
*/
|
|
440
|
-
buildBatch(this: GeneralBuilder<TApi, TRes, TSendBaseOptions>, options?: TBatchOptions): Promise<TRes>;
|
|
441
|
-
/**
|
|
442
|
-
* Builds and returns the transfer extrinsic.
|
|
443
|
-
*
|
|
444
|
-
* @returns A Promise that resolves to the transfer extrinsic.
|
|
445
|
-
*/
|
|
446
|
-
build(this: GeneralBuilder<TApi, TRes, TSendBaseOptions>): Promise<TRes>;
|
|
447
|
-
dryRun(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TDryRunResult>;
|
|
448
|
-
/**
|
|
449
|
-
* Returns the XCM fee for the transfer using dryRun or paymentInfo function.
|
|
450
|
-
*
|
|
451
|
-
* @returns An origin and destination fee.
|
|
452
|
-
*/
|
|
453
|
-
getXcmFee<TDisableFallback extends boolean = false>(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>, options?: TGetXcmFeeBuilderOptions & {
|
|
454
|
-
disableFallback: TDisableFallback;
|
|
455
|
-
}): Promise<TGetXcmFeeResult<TDisableFallback>>;
|
|
456
|
-
/**
|
|
457
|
-
* Returns the origin XCM fee for the transfer using dryRun or paymentInfo function.
|
|
458
|
-
*
|
|
459
|
-
* @returns An origin fee.
|
|
460
|
-
*/
|
|
461
|
-
getOriginXcmFee(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>, { disableFallback }?: TGetXcmFeeBuilderOptions): Promise<TXcmFeeDetail & {
|
|
462
|
-
forwardedXcms?: any;
|
|
463
|
-
destParaId?: number;
|
|
464
|
-
}>;
|
|
465
|
-
/**
|
|
466
|
-
* Estimates the origin and destination XCM fee using paymentInfo function.
|
|
467
|
-
*
|
|
468
|
-
* @returns An origin and destination fee estimate.
|
|
469
|
-
*/
|
|
470
|
-
getXcmFeeEstimate(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TGetXcmFeeEstimateResult>;
|
|
471
|
-
/**
|
|
472
|
-
* Estimates the origin XCM fee using paymentInfo function.
|
|
473
|
-
*
|
|
474
|
-
* @returns An origin fee estimate.
|
|
475
|
-
*/
|
|
476
|
-
getOriginXcmFeeEstimate(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TGetXcmFeeEstimateDetail>;
|
|
477
|
-
/**
|
|
478
|
-
* Returns the max transferable amount for the transfer
|
|
479
|
-
*
|
|
480
|
-
* @returns The max transferable amount.
|
|
481
|
-
*/
|
|
482
|
-
getTransferableAmount(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<bigint>;
|
|
483
|
-
/**
|
|
484
|
-
* Returns the max transferable amount for the transfer
|
|
485
|
-
*
|
|
486
|
-
* @returns The max transferable amount.
|
|
487
|
-
*/
|
|
488
|
-
verifyEdOnDestination(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<boolean>;
|
|
489
|
-
/**
|
|
490
|
-
* Returns the transfer info for the transfer
|
|
491
|
-
*
|
|
492
|
-
* @returns The transfer info.
|
|
493
|
-
*/
|
|
494
|
-
getTransferInfo(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TTransferInfo>;
|
|
495
|
-
/**
|
|
496
|
-
* Returns the API instance used by the builder.
|
|
497
|
-
*
|
|
498
|
-
* @returns The API instance.
|
|
499
|
-
*/
|
|
500
|
-
getApi(): TApi;
|
|
501
|
-
/**
|
|
502
|
-
* Disconnects the API.
|
|
503
|
-
*
|
|
504
|
-
* @returns A Promise that resolves when the API is disconnected.
|
|
505
|
-
*/
|
|
506
|
-
disconnect(): Promise<void>;
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* Creates a new Builder instance.
|
|
510
|
-
*
|
|
511
|
-
* @param api - The API instance to use for building transactions. If not provided, a new instance will be created.
|
|
512
|
-
* @returns A new Builder instance.
|
|
513
|
-
*/
|
|
514
|
-
declare const Builder: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>) => GeneralBuilder<TApi, TRes, object>;
|
|
515
|
-
|
|
516
265
|
type TBalanceResponse = {
|
|
517
266
|
free?: string;
|
|
518
267
|
balance?: string;
|
|
@@ -633,7 +382,7 @@ type TGetMaxForeignTransferableAmountOptionsBase = {
|
|
|
633
382
|
currency: TCurrencyCore;
|
|
634
383
|
};
|
|
635
384
|
type TGetMaxForeignTransferableAmountOptions<TApi, TRes> = WithApi<TGetMaxForeignTransferableAmountOptionsBase, TApi, TRes>;
|
|
636
|
-
type TGetTransferableAmountOptionsBase<
|
|
385
|
+
type TGetTransferableAmountOptionsBase<TRes> = {
|
|
637
386
|
/**
|
|
638
387
|
* The sender address of the account.
|
|
639
388
|
*/
|
|
@@ -651,12 +400,12 @@ type TGetTransferableAmountOptionsBase<TApi, TRes> = {
|
|
|
651
400
|
*/
|
|
652
401
|
currency: WithAmount<TCurrencyCore>;
|
|
653
402
|
/**
|
|
654
|
-
* The transaction
|
|
403
|
+
* The transaction instance
|
|
655
404
|
*/
|
|
656
|
-
|
|
405
|
+
tx: TRes;
|
|
657
406
|
feeAsset?: TCurrencyInput;
|
|
658
407
|
};
|
|
659
|
-
type TGetTransferableAmountOptions<TApi, TRes> = WithApi<TGetTransferableAmountOptionsBase<
|
|
408
|
+
type TGetTransferableAmountOptions<TApi, TRes> = WithApi<TGetTransferableAmountOptionsBase<TRes>, TApi, TRes>;
|
|
660
409
|
type TVerifyEdOnDestinationOptionsBase<TRes> = {
|
|
661
410
|
/**
|
|
662
411
|
* The origin chain.
|
|
@@ -829,6 +578,7 @@ type TDryRunBaseOptions<TRes> = {
|
|
|
829
578
|
currencyTo: TCurrencyCore;
|
|
830
579
|
exchangeChain: TParachain;
|
|
831
580
|
};
|
|
581
|
+
useRootOrigin?: boolean;
|
|
832
582
|
};
|
|
833
583
|
type TDryRunOptions<TApi, TRes> = WithApi<TDryRunBaseOptions<TRes>, TApi, TRes>;
|
|
834
584
|
type TDryRunCallBaseOptions<TRes> = {
|
|
@@ -844,6 +594,11 @@ type TDryRunCallBaseOptions<TRes> = {
|
|
|
844
594
|
* The address to dry-run with
|
|
845
595
|
*/
|
|
846
596
|
address: string;
|
|
597
|
+
/**
|
|
598
|
+
* Whether to use the root origin
|
|
599
|
+
*/
|
|
600
|
+
useRootOrigin?: boolean;
|
|
601
|
+
asset: WithAmount<TAssetInfo>;
|
|
847
602
|
feeAsset?: TAssetInfo;
|
|
848
603
|
};
|
|
849
604
|
type TDryRunCallOptions<TApi, TRes> = WithApi<TDryRunCallBaseOptions<TRes>, TApi, TRes>;
|
|
@@ -996,220 +751,471 @@ type TModuleError = {
|
|
|
996
751
|
*/
|
|
997
752
|
declare class BridgeHaltedError extends Error {
|
|
998
753
|
/**
|
|
999
|
-
* Constructs a new BridgeHaltedError.
|
|
754
|
+
* Constructs a new BridgeHaltedError.
|
|
755
|
+
*
|
|
756
|
+
* @param message - Optional custom error message.
|
|
757
|
+
*/
|
|
758
|
+
constructor();
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Used to inform user, that Parachain they wish to use is not supported yet
|
|
763
|
+
*/
|
|
764
|
+
declare class ChainNotSupportedError extends Error {
|
|
765
|
+
/**
|
|
766
|
+
* Constructs a new ChainNotSupportedError.
|
|
767
|
+
*
|
|
768
|
+
* @param message - Optional custom error message.
|
|
769
|
+
*/
|
|
770
|
+
constructor(message?: string);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Error thrown when the Dry Run fails.
|
|
775
|
+
*/
|
|
776
|
+
declare class DryRunFailedError extends Error {
|
|
777
|
+
readonly reason: string;
|
|
778
|
+
readonly dryRunType?: 'origin' | 'destination' | 'assetHub' | 'bridgeHub';
|
|
779
|
+
/**
|
|
780
|
+
* Constructs a new DryRunFailedError.
|
|
781
|
+
*
|
|
782
|
+
* @param reason - The reason why the dry run failed.
|
|
783
|
+
* @param dryRunType - Optional. Specifies if the error is related to the 'origin' or 'destination' dry run.
|
|
784
|
+
*/
|
|
785
|
+
constructor(reason: string, dryRunType?: 'origin' | 'destination' | 'assetHub' | 'bridgeHub');
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Error thrown when chains from different relay chains are incompatible.
|
|
790
|
+
*/
|
|
791
|
+
declare class IncompatibleChainsError extends Error {
|
|
792
|
+
/**
|
|
793
|
+
* Constructs a new IncompatibleChainsError.
|
|
794
|
+
*
|
|
795
|
+
* @param message - Optional custom error message.
|
|
796
|
+
*/
|
|
797
|
+
constructor(message?: string);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Error thrown when an invalid address is provided.
|
|
802
|
+
*/
|
|
803
|
+
declare class InvalidAddressError extends Error {
|
|
804
|
+
/**
|
|
805
|
+
* Constructs a new InvalidAddressError.
|
|
806
|
+
*
|
|
807
|
+
* @param message - The error message.
|
|
808
|
+
*/
|
|
809
|
+
constructor(message: string);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Error thrown when the Dry Run fails.
|
|
814
|
+
*/
|
|
815
|
+
declare class InvalidParameterError extends Error {
|
|
816
|
+
/**
|
|
817
|
+
* Constructs a new InvalidParameterError.
|
|
818
|
+
*
|
|
819
|
+
* @param message - Required error message.
|
|
820
|
+
*/
|
|
821
|
+
constructor(message: string);
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Error development mode is on and no API override is provided for a specific chain.
|
|
826
|
+
*/
|
|
827
|
+
declare class MissingChainApiError extends Error {
|
|
828
|
+
/**
|
|
829
|
+
* Constructs a new MissingChainApiError.
|
|
830
|
+
*
|
|
831
|
+
* @param chain - The chain for which the API is missing.
|
|
832
|
+
*/
|
|
833
|
+
constructor(chain: TChain);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Used to inform user, that Parachain they wish to use has not yet implemented full XCM Support
|
|
838
|
+
*/
|
|
839
|
+
declare class NoXCMSupportImplementedError extends Error {
|
|
840
|
+
/**
|
|
841
|
+
* Constructs a new NoXCMSupportImplementedError.
|
|
842
|
+
*
|
|
843
|
+
* @param chain - The chain for which XCM support is not implemented.
|
|
844
|
+
*/
|
|
845
|
+
constructor(chain: TChain);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Used to inform user, that Parachain they wish to use does not support scenario they wish to use yet
|
|
850
|
+
*/
|
|
851
|
+
declare class ScenarioNotSupportedError extends Error {
|
|
852
|
+
/**
|
|
853
|
+
* Constructs a new ScenarioNotSupportedError.
|
|
854
|
+
*
|
|
855
|
+
* @param chain - The chain where the scenario is not supported.
|
|
856
|
+
* @param scenario - The scenario that is not supported.
|
|
857
|
+
* @param message - Optional custom error message.
|
|
858
|
+
*/
|
|
859
|
+
constructor(chain: TChain, scenario: TScenario, message?: string);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
declare class TransferToAhNotSupported extends Error {
|
|
863
|
+
constructor(message?: string);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* UnableToComputeError is thrown when a computation cannot be performed.
|
|
868
|
+
*/
|
|
869
|
+
declare class UnableToComputeError extends Error {
|
|
870
|
+
/**
|
|
871
|
+
* Constructs a new UnableToComputeError.
|
|
872
|
+
*
|
|
873
|
+
* @param message - Required error message.
|
|
874
|
+
*/
|
|
875
|
+
constructor(message: string);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
type THopTransferInfo = {
|
|
879
|
+
chain: TChain;
|
|
880
|
+
result: {
|
|
881
|
+
xcmFee: TXcmFeeBase;
|
|
882
|
+
balance?: bigint;
|
|
883
|
+
existentialDeposit?: bigint;
|
|
884
|
+
currencySymbol: string;
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
type TXcmFeeBase = {
|
|
888
|
+
fee: bigint;
|
|
889
|
+
balance: bigint;
|
|
890
|
+
currencySymbol: string;
|
|
891
|
+
};
|
|
892
|
+
type TTransferInfo = {
|
|
893
|
+
chain: {
|
|
894
|
+
origin: TChain;
|
|
895
|
+
destination: TChain;
|
|
896
|
+
ecosystem: string;
|
|
897
|
+
};
|
|
898
|
+
origin: {
|
|
899
|
+
selectedCurrency: {
|
|
900
|
+
sufficient: boolean;
|
|
901
|
+
balance: bigint;
|
|
902
|
+
balanceAfter: bigint;
|
|
903
|
+
currencySymbol: string;
|
|
904
|
+
existentialDeposit: bigint;
|
|
905
|
+
};
|
|
906
|
+
xcmFee: TXcmFeeBase & {
|
|
907
|
+
sufficient: boolean;
|
|
908
|
+
balanceAfter: bigint;
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
assetHub?: {
|
|
912
|
+
balance: bigint;
|
|
913
|
+
currencySymbol: string;
|
|
914
|
+
existentialDeposit: bigint;
|
|
915
|
+
xcmFee: TXcmFeeBase;
|
|
916
|
+
};
|
|
917
|
+
bridgeHub?: {
|
|
918
|
+
currencySymbol: string;
|
|
919
|
+
xcmFee: TXcmFeeBase;
|
|
920
|
+
};
|
|
921
|
+
hops?: THopTransferInfo[];
|
|
922
|
+
destination: {
|
|
923
|
+
receivedCurrency: {
|
|
924
|
+
sufficient: boolean | UnableToComputeError;
|
|
925
|
+
receivedAmount: bigint | UnableToComputeError;
|
|
926
|
+
balance: bigint;
|
|
927
|
+
balanceAfter: bigint | UnableToComputeError;
|
|
928
|
+
currencySymbol: string;
|
|
929
|
+
existentialDeposit: bigint;
|
|
930
|
+
};
|
|
931
|
+
xcmFee: TXcmFeeBase & {
|
|
932
|
+
balanceAfter: bigint | UnableToComputeError;
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
type TOriginFeeDetails = {
|
|
937
|
+
sufficientForXCM: boolean;
|
|
938
|
+
xcmFee: bigint;
|
|
939
|
+
};
|
|
940
|
+
type TGetTransferInfoOptionsBase<TRes> = {
|
|
941
|
+
tx: TRes;
|
|
942
|
+
origin: TSubstrateChain;
|
|
943
|
+
destination: TChain;
|
|
944
|
+
senderAddress: string;
|
|
945
|
+
ahAddress?: string;
|
|
946
|
+
address: string;
|
|
947
|
+
currency: WithAmount<TCurrencyCore>;
|
|
948
|
+
feeAsset?: TCurrencyCore;
|
|
949
|
+
};
|
|
950
|
+
type TGetTransferInfoOptions<TApi, TRes> = WithApi<TGetTransferInfoOptionsBase<TRes>, TApi, TRes>;
|
|
951
|
+
|
|
952
|
+
type TChainWithApi<TApi, TRes, T = TSubstrateChain> = {
|
|
953
|
+
api: IPolkadotApi<TApi, TRes>;
|
|
954
|
+
chain: T;
|
|
955
|
+
};
|
|
956
|
+
type TTypeAndThenCallContext<TApi, TRes> = {
|
|
957
|
+
origin: TChainWithApi<TApi, TRes>;
|
|
958
|
+
dest: TChainWithApi<TApi, TRes>;
|
|
959
|
+
reserve: TChainWithApi<TApi, TRes, TSubstrateChain>;
|
|
960
|
+
assetInfo: WithAmount<TAssetWithLocation>;
|
|
961
|
+
options: TPolkadotXCMTransferOptions<TApi, TRes>;
|
|
962
|
+
};
|
|
963
|
+
type TTypeAndThenFees = {
|
|
964
|
+
reserveFee: bigint;
|
|
965
|
+
refundFee: bigint;
|
|
966
|
+
destFee: bigint;
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Builder class for constructing asset claim transactions.
|
|
971
|
+
*/
|
|
972
|
+
declare class AssetClaimBuilder<TApi, TRes, T extends Partial<TAssetClaimOptionsBase> = object> {
|
|
973
|
+
readonly api: IPolkadotApi<TApi, TRes>;
|
|
974
|
+
readonly _options: T;
|
|
975
|
+
constructor(api: IPolkadotApi<TApi, TRes>, options?: T);
|
|
976
|
+
/**
|
|
977
|
+
* Specifies the assets to be claimed.
|
|
978
|
+
*
|
|
979
|
+
* @param assets - An array of assets to claim in a multi-asset format.
|
|
980
|
+
* @returns An instance of Builder
|
|
981
|
+
*/
|
|
982
|
+
currency(currency: TAssetClaimOptionsBase['currency']): AssetClaimBuilder<TApi, TRes, T & {
|
|
983
|
+
currency: TAssetClaimOptionsBase['currency'];
|
|
984
|
+
}>;
|
|
985
|
+
/**
|
|
986
|
+
* Specifies the account address on which the assets will be claimed.
|
|
987
|
+
*
|
|
988
|
+
* @param address - The destination account address.
|
|
989
|
+
* @returns An instance of Builder
|
|
990
|
+
*/
|
|
991
|
+
address(address: TAddress): AssetClaimBuilder<TApi, TRes, T & {
|
|
992
|
+
address: TAddress;
|
|
993
|
+
}>;
|
|
994
|
+
/**
|
|
995
|
+
* Sets the XCM version to be used for the asset claim.
|
|
996
|
+
*
|
|
997
|
+
* @param version - The XCM version.
|
|
998
|
+
* @returns An instance of Builder
|
|
999
|
+
*/
|
|
1000
|
+
xcmVersion(version: Version): AssetClaimBuilder<TApi, TRes, T & {
|
|
1001
|
+
version: Version;
|
|
1002
|
+
}>;
|
|
1003
|
+
/**
|
|
1004
|
+
* Builds and returns the asset claim extrinsic.
|
|
1005
|
+
*
|
|
1006
|
+
* @returns A Promise that resolves to the asset claim extrinsic.
|
|
1007
|
+
*/
|
|
1008
|
+
build(this: AssetClaimBuilder<TApi, TRes, TAssetClaimOptionsBase>): Promise<TRes>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Returns the API instance used by the builder.
|
|
1011
|
+
*
|
|
1012
|
+
* @returns The API instance.
|
|
1013
|
+
*/
|
|
1014
|
+
getApi(): TApi;
|
|
1015
|
+
/**
|
|
1016
|
+
* Disconnects the API.
|
|
1017
|
+
*
|
|
1018
|
+
* @returns A Promise that resolves when the API is disconnected.
|
|
1019
|
+
*/
|
|
1020
|
+
disconnect(): Promise<void>;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
declare class BatchTransactionManager<TApi, TRes> {
|
|
1024
|
+
transactionOptions: TSendOptions<TApi, TRes>[];
|
|
1025
|
+
addTransaction(options: TSendOptions<TApi, TRes>): void;
|
|
1026
|
+
isEmpty(): boolean;
|
|
1027
|
+
buildBatch(api: IPolkadotApi<TApi, TRes>, from: TSubstrateChain, options?: TBatchOptions): Promise<TRes>;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* A builder class for constructing Para-to-Para, Para-to-Relay, Relay-to-Para transactions and asset claims.
|
|
1032
|
+
*/
|
|
1033
|
+
declare class GeneralBuilder<TApi, TRes, T extends Partial<TSendBaseOptions> = object> {
|
|
1034
|
+
readonly batchManager: BatchTransactionManager<TApi, TRes>;
|
|
1035
|
+
readonly api: IPolkadotApi<TApi, TRes>;
|
|
1036
|
+
readonly _options: T;
|
|
1037
|
+
constructor(api: IPolkadotApi<TApi, TRes>, batchManager: BatchTransactionManager<TApi, TRes>, options?: T);
|
|
1038
|
+
/**
|
|
1039
|
+
* Specifies the origin chain for the transaction.
|
|
1040
|
+
*
|
|
1041
|
+
* @param chain - The chain from which the transaction originates.
|
|
1042
|
+
* @returns An instance of Builder
|
|
1043
|
+
*/
|
|
1044
|
+
from(chain: TSubstrateChain): GeneralBuilder<TApi, TRes, T & {
|
|
1045
|
+
from: TSubstrateChain;
|
|
1046
|
+
}>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Specifies the destination chain for the transaction.
|
|
1049
|
+
*
|
|
1050
|
+
* @param chain - The chain to which the transaction is sent.
|
|
1051
|
+
* @param paraIdTo - (Optional) The parachain ID of the destination chain.
|
|
1052
|
+
* @returns An instance of Builder
|
|
1053
|
+
*/
|
|
1054
|
+
to(chain: TDestination, paraIdTo?: number): GeneralBuilder<TApi, TRes, T & {
|
|
1055
|
+
to: TDestination;
|
|
1056
|
+
}>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Initiates the process to claim assets from a specified chain.
|
|
1059
|
+
*
|
|
1060
|
+
* @param chain - The chain from which to claim assets.
|
|
1061
|
+
* @returns An instance of Builder
|
|
1062
|
+
*/
|
|
1063
|
+
claimFrom(chain: TSubstrateChain): AssetClaimBuilder<TApi, TRes, {
|
|
1064
|
+
chain: TSubstrateChain;
|
|
1065
|
+
}>;
|
|
1066
|
+
/**
|
|
1067
|
+
* Specifies the currency to be used in the transaction. Symbol, ID, location or multi-asset.
|
|
1068
|
+
*
|
|
1069
|
+
* @param currency - The currency to be transferred.
|
|
1070
|
+
* @returns An instance of Builder
|
|
1071
|
+
*/
|
|
1072
|
+
currency(currency: TCurrencyInputWithAmount): GeneralBuilder<TApi, TRes, T & {
|
|
1073
|
+
currency: TCurrencyInputWithAmount;
|
|
1074
|
+
}>;
|
|
1075
|
+
/**
|
|
1076
|
+
* Sets the recipient address.
|
|
1077
|
+
*
|
|
1078
|
+
* @param address - The destination address.
|
|
1079
|
+
* @returns An instance of Builder
|
|
1080
|
+
*/
|
|
1081
|
+
address(address: TAddress): GeneralBuilder<TApi, TRes, T & {
|
|
1082
|
+
address: TAddress;
|
|
1083
|
+
}>;
|
|
1084
|
+
/**
|
|
1085
|
+
* Sets the sender address.
|
|
1086
|
+
*
|
|
1087
|
+
* @param address - The sender address.
|
|
1088
|
+
* @returns
|
|
1089
|
+
*/
|
|
1090
|
+
senderAddress(address: string): GeneralBuilder<TApi, TRes, T & {
|
|
1091
|
+
senderAddress: string;
|
|
1092
|
+
}>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Sets the asset hub address. This is used for transfers that go through the Asset Hub and originate from an EVM chain.
|
|
1095
|
+
*
|
|
1096
|
+
* @param address - The address to be used.
|
|
1097
|
+
* @returns An instance of Builder
|
|
1098
|
+
*/
|
|
1099
|
+
ahAddress(address: string | undefined): GeneralBuilder<TApi, TRes, T & {
|
|
1100
|
+
ahAddress: string | undefined;
|
|
1101
|
+
}>;
|
|
1102
|
+
/**
|
|
1103
|
+
* Sets the XCM version to be used for the transfer.
|
|
1104
|
+
*
|
|
1105
|
+
* @param version - The XCM version.
|
|
1106
|
+
* @returns An instance of Builder
|
|
1107
|
+
*/
|
|
1108
|
+
xcmVersion(version: Version): GeneralBuilder<TApi, TRes, T & {
|
|
1109
|
+
version: Version;
|
|
1110
|
+
}>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Sets a custom pallet for the transaction.
|
|
1113
|
+
*
|
|
1114
|
+
* @param palletName - The name of the custom pallet to be used.
|
|
1115
|
+
* @returns An instance of the Builder.
|
|
1116
|
+
*/
|
|
1117
|
+
customPallet(pallet: string, method: string): GeneralBuilder<TApi, TRes, T & {
|
|
1118
|
+
pallet: string;
|
|
1119
|
+
method: string;
|
|
1120
|
+
}>;
|
|
1121
|
+
/**
|
|
1122
|
+
* Optional fee asset for the transaction.
|
|
1123
|
+
*
|
|
1124
|
+
* @param currency - The currency to be used for the fee.
|
|
1125
|
+
* @returns An instance of the Builder
|
|
1126
|
+
*/
|
|
1127
|
+
feeAsset(currency: TCurrencyInput | undefined): GeneralBuilder<TApi, TRes, T & {
|
|
1128
|
+
feeAsset: TCurrencyInput | undefined;
|
|
1129
|
+
}>;
|
|
1130
|
+
/**
|
|
1131
|
+
* Adds the transfer transaction to the batch.
|
|
1132
|
+
*
|
|
1133
|
+
* @returns An instance of Builder
|
|
1134
|
+
*/
|
|
1135
|
+
addToBatch(this: GeneralBuilder<TApi, TRes, TSendBaseOptions>): GeneralBuilder<TApi, TRes, T & {
|
|
1136
|
+
from: TSubstrateChain;
|
|
1137
|
+
}>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Builds and returns the batched transaction based on the configured parameters.
|
|
1000
1140
|
*
|
|
1001
|
-
* @param
|
|
1141
|
+
* @param options - (Optional) Options to customize the batch transaction.
|
|
1142
|
+
* @returns A Extrinsic representing the batched transactions.
|
|
1002
1143
|
*/
|
|
1003
|
-
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* Used to inform user, that Parachain they wish to use is not supported yet
|
|
1008
|
-
*/
|
|
1009
|
-
declare class ChainNotSupportedError extends Error {
|
|
1144
|
+
buildBatch(this: GeneralBuilder<TApi, TRes, TSendBaseOptions>, options?: TBatchOptions): Promise<TRes>;
|
|
1010
1145
|
/**
|
|
1011
|
-
*
|
|
1146
|
+
* Builds and returns the transfer extrinsic.
|
|
1012
1147
|
*
|
|
1013
|
-
* @
|
|
1148
|
+
* @returns A Promise that resolves to the transfer extrinsic.
|
|
1014
1149
|
*/
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
/**
|
|
1019
|
-
* Error thrown when the Dry Run fails.
|
|
1020
|
-
*/
|
|
1021
|
-
declare class DryRunFailedError extends Error {
|
|
1022
|
-
readonly reason: string;
|
|
1023
|
-
readonly dryRunType?: 'origin' | 'destination' | 'assetHub' | 'bridgeHub';
|
|
1150
|
+
build(this: GeneralBuilder<TApi, TRes, TSendBaseOptions>): Promise<TRes>;
|
|
1151
|
+
dryRun(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TDryRunResult>;
|
|
1024
1152
|
/**
|
|
1025
|
-
*
|
|
1153
|
+
* Returns the XCM fee for the transfer using dryRun or paymentInfo function.
|
|
1026
1154
|
*
|
|
1027
|
-
* @
|
|
1028
|
-
* @param dryRunType - Optional. Specifies if the error is related to the 'origin' or 'destination' dry run.
|
|
1155
|
+
* @returns An origin and destination fee.
|
|
1029
1156
|
*/
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* Error thrown when chains from different relay chains are incompatible.
|
|
1035
|
-
*/
|
|
1036
|
-
declare class IncompatibleChainsError extends Error {
|
|
1157
|
+
getXcmFee<TDisableFallback extends boolean = false>(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>, options?: TGetXcmFeeBuilderOptions & {
|
|
1158
|
+
disableFallback: TDisableFallback;
|
|
1159
|
+
}): Promise<TGetXcmFeeResult<TDisableFallback>>;
|
|
1037
1160
|
/**
|
|
1038
|
-
*
|
|
1161
|
+
* Returns the origin XCM fee for the transfer using dryRun or paymentInfo function.
|
|
1039
1162
|
*
|
|
1040
|
-
* @
|
|
1163
|
+
* @returns An origin fee.
|
|
1041
1164
|
*/
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
* Error thrown when an invalid address is provided.
|
|
1047
|
-
*/
|
|
1048
|
-
declare class InvalidAddressError extends Error {
|
|
1165
|
+
getOriginXcmFee(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>, { disableFallback }?: TGetXcmFeeBuilderOptions): Promise<TXcmFeeDetail & {
|
|
1166
|
+
forwardedXcms?: any;
|
|
1167
|
+
destParaId?: number;
|
|
1168
|
+
}>;
|
|
1049
1169
|
/**
|
|
1050
|
-
*
|
|
1170
|
+
* Estimates the origin and destination XCM fee using paymentInfo function.
|
|
1051
1171
|
*
|
|
1052
|
-
* @
|
|
1172
|
+
* @returns An origin and destination fee estimate.
|
|
1053
1173
|
*/
|
|
1054
|
-
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
/**
|
|
1058
|
-
* Error thrown when the Dry Run fails.
|
|
1059
|
-
*/
|
|
1060
|
-
declare class InvalidParameterError extends Error {
|
|
1174
|
+
getXcmFeeEstimate(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TGetXcmFeeEstimateResult>;
|
|
1061
1175
|
/**
|
|
1062
|
-
*
|
|
1176
|
+
* Estimates the origin XCM fee using paymentInfo function.
|
|
1063
1177
|
*
|
|
1064
|
-
* @
|
|
1178
|
+
* @returns An origin fee estimate.
|
|
1065
1179
|
*/
|
|
1066
|
-
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
/**
|
|
1070
|
-
* Error development mode is on and no API override is provided for a specific chain.
|
|
1071
|
-
*/
|
|
1072
|
-
declare class MissingChainApiError extends Error {
|
|
1180
|
+
getOriginXcmFeeEstimate(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TGetXcmFeeEstimateDetail>;
|
|
1073
1181
|
/**
|
|
1074
|
-
*
|
|
1182
|
+
* Returns the max transferable amount for the transfer
|
|
1075
1183
|
*
|
|
1076
|
-
* @
|
|
1184
|
+
* @returns The max transferable amount.
|
|
1077
1185
|
*/
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
/**
|
|
1082
|
-
* Used to inform user, that Parachain they wish to use has not yet implemented full XCM Support
|
|
1083
|
-
*/
|
|
1084
|
-
declare class NoXCMSupportImplementedError extends Error {
|
|
1186
|
+
getTransferableAmount(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<bigint>;
|
|
1085
1187
|
/**
|
|
1086
|
-
*
|
|
1188
|
+
* Returns the max transferable amount for the transfer
|
|
1087
1189
|
*
|
|
1088
|
-
* @
|
|
1190
|
+
* @returns The max transferable amount.
|
|
1089
1191
|
*/
|
|
1090
|
-
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
/**
|
|
1094
|
-
* Used to inform user, that Parachain they wish to use does not support scenario they wish to use yet
|
|
1095
|
-
*/
|
|
1096
|
-
declare class ScenarioNotSupportedError extends Error {
|
|
1192
|
+
verifyEdOnDestination(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<boolean>;
|
|
1097
1193
|
/**
|
|
1098
|
-
*
|
|
1194
|
+
* Returns the transfer info for the transfer
|
|
1099
1195
|
*
|
|
1100
|
-
* @
|
|
1101
|
-
* @param scenario - The scenario that is not supported.
|
|
1102
|
-
* @param message - Optional custom error message.
|
|
1196
|
+
* @returns The transfer info.
|
|
1103
1197
|
*/
|
|
1104
|
-
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
declare class TransferToAhNotSupported extends Error {
|
|
1108
|
-
constructor(message?: string);
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* UnableToComputeError is thrown when a computation cannot be performed.
|
|
1113
|
-
*/
|
|
1114
|
-
declare class UnableToComputeError extends Error {
|
|
1198
|
+
getTransferInfo(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TTransferInfo>;
|
|
1115
1199
|
/**
|
|
1116
|
-
*
|
|
1200
|
+
* Returns the API instance used by the builder.
|
|
1117
1201
|
*
|
|
1118
|
-
* @
|
|
1202
|
+
* @returns The API instance.
|
|
1119
1203
|
*/
|
|
1120
|
-
|
|
1204
|
+
getApi(): TApi;
|
|
1205
|
+
/**
|
|
1206
|
+
* Disconnects the API.
|
|
1207
|
+
*
|
|
1208
|
+
* @returns A Promise that resolves when the API is disconnected.
|
|
1209
|
+
*/
|
|
1210
|
+
disconnect(): Promise<void>;
|
|
1121
1211
|
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
currencySymbol: string;
|
|
1130
|
-
};
|
|
1131
|
-
};
|
|
1132
|
-
type TXcmFeeBase = {
|
|
1133
|
-
fee: bigint;
|
|
1134
|
-
balance: bigint;
|
|
1135
|
-
currencySymbol: string;
|
|
1136
|
-
};
|
|
1137
|
-
type TTransferInfo = {
|
|
1138
|
-
chain: {
|
|
1139
|
-
origin: TChain;
|
|
1140
|
-
destination: TChain;
|
|
1141
|
-
ecosystem: string;
|
|
1142
|
-
};
|
|
1143
|
-
origin: {
|
|
1144
|
-
selectedCurrency: {
|
|
1145
|
-
sufficient: boolean;
|
|
1146
|
-
balance: bigint;
|
|
1147
|
-
balanceAfter: bigint;
|
|
1148
|
-
currencySymbol: string;
|
|
1149
|
-
existentialDeposit: bigint;
|
|
1150
|
-
};
|
|
1151
|
-
xcmFee: TXcmFeeBase & {
|
|
1152
|
-
sufficient: boolean;
|
|
1153
|
-
balanceAfter: bigint;
|
|
1154
|
-
};
|
|
1155
|
-
};
|
|
1156
|
-
assetHub?: {
|
|
1157
|
-
balance: bigint;
|
|
1158
|
-
currencySymbol: string;
|
|
1159
|
-
existentialDeposit: bigint;
|
|
1160
|
-
xcmFee: TXcmFeeBase;
|
|
1161
|
-
};
|
|
1162
|
-
bridgeHub?: {
|
|
1163
|
-
currencySymbol: string;
|
|
1164
|
-
xcmFee: TXcmFeeBase;
|
|
1165
|
-
};
|
|
1166
|
-
hops?: THopTransferInfo[];
|
|
1167
|
-
destination: {
|
|
1168
|
-
receivedCurrency: {
|
|
1169
|
-
sufficient: boolean | UnableToComputeError;
|
|
1170
|
-
receivedAmount: bigint | UnableToComputeError;
|
|
1171
|
-
balance: bigint;
|
|
1172
|
-
balanceAfter: bigint | UnableToComputeError;
|
|
1173
|
-
currencySymbol: string;
|
|
1174
|
-
existentialDeposit: bigint;
|
|
1175
|
-
};
|
|
1176
|
-
xcmFee: TXcmFeeBase & {
|
|
1177
|
-
balanceAfter: bigint | UnableToComputeError;
|
|
1178
|
-
};
|
|
1179
|
-
};
|
|
1180
|
-
};
|
|
1181
|
-
type TOriginFeeDetails = {
|
|
1182
|
-
sufficientForXCM: boolean;
|
|
1183
|
-
xcmFee: bigint;
|
|
1184
|
-
};
|
|
1185
|
-
type TGetTransferInfoOptionsBase<TRes> = {
|
|
1186
|
-
tx: TRes;
|
|
1187
|
-
origin: TSubstrateChain;
|
|
1188
|
-
destination: TChain;
|
|
1189
|
-
senderAddress: string;
|
|
1190
|
-
ahAddress?: string;
|
|
1191
|
-
address: string;
|
|
1192
|
-
currency: WithAmount<TCurrencyCore>;
|
|
1193
|
-
feeAsset?: TCurrencyCore;
|
|
1194
|
-
};
|
|
1195
|
-
type TGetTransferInfoOptions<TApi, TRes> = WithApi<TGetTransferInfoOptionsBase<TRes>, TApi, TRes>;
|
|
1196
|
-
|
|
1197
|
-
type TChainWithApi<TApi, TRes, T = TSubstrateChain> = {
|
|
1198
|
-
api: IPolkadotApi<TApi, TRes>;
|
|
1199
|
-
chain: T;
|
|
1200
|
-
};
|
|
1201
|
-
type TTypeAndThenCallContext<TApi, TRes> = {
|
|
1202
|
-
origin: TChainWithApi<TApi, TRes>;
|
|
1203
|
-
dest: TChainWithApi<TApi, TRes>;
|
|
1204
|
-
reserve: TChainWithApi<TApi, TRes, TSubstrateChain>;
|
|
1205
|
-
assetInfo: WithAmount<TAssetWithLocation>;
|
|
1206
|
-
options: TPolkadotXCMTransferOptions<TApi, TRes>;
|
|
1207
|
-
};
|
|
1208
|
-
type TTypeAndThenFees = {
|
|
1209
|
-
reserveFee: bigint;
|
|
1210
|
-
refundFee: bigint;
|
|
1211
|
-
destFee: bigint;
|
|
1212
|
-
};
|
|
1212
|
+
/**
|
|
1213
|
+
* Creates a new Builder instance.
|
|
1214
|
+
*
|
|
1215
|
+
* @param api - The API instance to use for building transactions. If not provided, a new instance will be created.
|
|
1216
|
+
* @returns A new Builder instance.
|
|
1217
|
+
*/
|
|
1218
|
+
declare const Builder: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>) => GeneralBuilder<TApi, TRes, object>;
|
|
1213
1219
|
|
|
1214
1220
|
type TGetXcmFeeBaseOptions<TRes, TDisableFallback extends boolean = boolean> = {
|
|
1215
1221
|
/**
|
|
@@ -1251,6 +1257,7 @@ type TGetOriginXcmFeeBaseOptions<TRes> = {
|
|
|
1251
1257
|
currency: WithComplexAmount<TCurrencyCore>;
|
|
1252
1258
|
feeAsset?: TCurrencyInput;
|
|
1253
1259
|
disableFallback: boolean;
|
|
1260
|
+
useRootOrigin?: boolean;
|
|
1254
1261
|
};
|
|
1255
1262
|
type TGetOriginXcmFeeOptions<TApi, TRes> = WithApi<TGetOriginXcmFeeBaseOptions<TRes>, TApi, TRes>;
|
|
1256
1263
|
type TAttemptDryRunFeeOptions<TApi, TRes> = Omit<TGetOriginXcmFeeOptions<TApi, TRes>, 'tx'> & {
|
|
@@ -1298,6 +1305,15 @@ type TXcmFeeDetail = {
|
|
|
1298
1305
|
sufficient?: boolean;
|
|
1299
1306
|
dryRunError: string;
|
|
1300
1307
|
};
|
|
1308
|
+
type TXcmFeeHopResult = {
|
|
1309
|
+
fee?: bigint;
|
|
1310
|
+
feeType?: TFeeType;
|
|
1311
|
+
sufficient?: boolean;
|
|
1312
|
+
dryRunError?: string;
|
|
1313
|
+
forwardedXcms?: any;
|
|
1314
|
+
destParaId?: number;
|
|
1315
|
+
currency?: string;
|
|
1316
|
+
};
|
|
1301
1317
|
type TConditionalXcmFeeDetail<TDisableFallback extends boolean> = TDisableFallback extends false ? TXcmFeeDetailWithFallback : TXcmFeeDetail;
|
|
1302
1318
|
type TDestXcmFeeDetail<TDisableFallback extends boolean> = Omit<TConditionalXcmFeeDetail<TDisableFallback>, 'currency'> & {
|
|
1303
1319
|
forwardedXcms?: any;
|
|
@@ -1340,6 +1356,7 @@ interface IPolkadotApi<TApi, TRes> {
|
|
|
1340
1356
|
accountToUint8a(address: string): Uint8Array;
|
|
1341
1357
|
callTxMethod(serializedCall: TSerializedApiCall): TRes;
|
|
1342
1358
|
callBatchMethod(calls: TRes[], mode: BatchMode): TRes;
|
|
1359
|
+
callDispatchAsMethod(call: TRes, address: string): TRes;
|
|
1343
1360
|
objectToHex(obj: unknown, typeName: string): Promise<string>;
|
|
1344
1361
|
hexToUint8a(hex: string): Uint8Array;
|
|
1345
1362
|
stringToUint8a(str: string): Uint8Array;
|
|
@@ -1348,6 +1365,7 @@ interface IPolkadotApi<TApi, TRes> {
|
|
|
1348
1365
|
quoteAhPrice(fromMl: TLocation, toMl: TLocation, amountIn: bigint, includeFee?: boolean): Promise<bigint | undefined>;
|
|
1349
1366
|
getXcmWeight(xcm: any): Promise<TWeight>;
|
|
1350
1367
|
getXcmPaymentApiFee(chain: TSubstrateChain, xcm: any, asset: TAssetInfo, transformXcm: boolean): Promise<bigint>;
|
|
1368
|
+
getEvmStorage(contract: string, slot: string): Promise<string>;
|
|
1351
1369
|
getBalanceNative(address: string): Promise<bigint>;
|
|
1352
1370
|
getBalanceNativeAcala(address: string, symbol: string): Promise<bigint>;
|
|
1353
1371
|
getBalanceForeignPolkadotXcm(address: string, id?: string): Promise<bigint>;
|
|
@@ -1993,6 +2011,18 @@ declare const DRY_RUN_CLIENT_TIMEOUT_MS: number;
|
|
|
1993
2011
|
|
|
1994
2012
|
declare const claimAssets: <TApi, TRes>(options: TAssetClaimOptions<TApi, TRes>) => Promise<TRes>;
|
|
1995
2013
|
|
|
2014
|
+
type TSetBalanceRes = {
|
|
2015
|
+
assetStatusTx?: TSerializedApiCall;
|
|
2016
|
+
balanceTx: TSerializedApiCall;
|
|
2017
|
+
};
|
|
2018
|
+
interface IAssetsPallet {
|
|
2019
|
+
setBalance<TApi, TRes>(address: string, assetInfo: WithAmount<TAssetInfo>, chain: TSubstrateChain, api: IPolkadotApi<TApi, TRes>): Promise<TSetBalanceRes>;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
declare class AssetsPallet implements IAssetsPallet {
|
|
2023
|
+
setBalance(address: string, asset: WithAmount<TAssetInfo>, chain: TSubstrateChain): Promise<TSetBalanceRes>;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
1996
2026
|
declare const getAssetBalanceInternal: <TApi, TRes>({ address, chain, currency, api }: TGetAssetBalanceOptions<TApi, TRes>) => Promise<bigint>;
|
|
1997
2027
|
declare const getAssetBalance: <TApi, TRes>(options: TGetAssetBalanceOptions<TApi, TRes>) => Promise<bigint>;
|
|
1998
2028
|
|
|
@@ -2005,7 +2035,7 @@ declare const getBalanceNative: <TApi, TRes>(options: TGetBalanceNativeOptions<T
|
|
|
2005
2035
|
declare const getOriginFeeDetailsInternal: <TApi, TRes>({ api, account, accountDestination, ahAddress, currency, origin, destination, feeMarginPercentage }: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
|
|
2006
2036
|
declare const getOriginFeeDetails: <TApi, TRes>(options: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
|
|
2007
2037
|
|
|
2008
|
-
declare const getTransferableAmountInternal: <TApi, TRes>({ api, senderAddress, origin: chain, destination, currency,
|
|
2038
|
+
declare const getTransferableAmountInternal: <TApi, TRes>({ api, senderAddress, origin: chain, destination, currency, tx, feeAsset }: TGetTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2009
2039
|
declare const getTransferableAmount: <TApi, TRes>(options: TGetTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
|
2010
2040
|
|
|
2011
2041
|
declare const getTransferInfo: <TApi, TRes>({ api, tx, origin, destination, senderAddress, ahAddress, address, currency, feeAsset }: TGetTransferInfoOptions<TApi, TRes>) => Promise<TTransferInfo>;
|
|
@@ -2021,29 +2051,27 @@ declare const addEthereumBridgeFees: <TApi, TRes, TResult extends {
|
|
|
2021
2051
|
fee?: bigint;
|
|
2022
2052
|
}>(api: IPolkadotApi<TApi, TRes>, bridgeHubResult: TResult | undefined, destination: TChain, assetHubChain: TSubstrateChain) => Promise<TResult | undefined>;
|
|
2023
2053
|
|
|
2054
|
+
declare const wrapTxBypass: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>, chain: TSubstrateChain, asset: WithAmount<TAssetInfo>, feeAsset: TAssetInfo | undefined, address: string, tx: TRes) => Promise<TRes>;
|
|
2055
|
+
|
|
2024
2056
|
declare const getParaEthTransferFees: <TApi, TRes>(ahApi: IPolkadotApi<TApi, TRes>) => Promise<[bigint, bigint]>;
|
|
2025
2057
|
|
|
2026
2058
|
declare const transferMoonbeamEvm: <TApi, TRes>({ api, from, to, signer, address, currency }: TEvmBuilderOptions<TApi, TRes>) => Promise<string>;
|
|
2027
2059
|
|
|
2028
2060
|
declare const transferMoonbeamToEth: <TApi, TRes>({ api, from, to, signer, address, ahAddress, currency }: TEvmBuilderOptions<TApi, TRes>) => Promise<`0x${string}`>;
|
|
2029
2061
|
|
|
2030
|
-
declare const getOriginXcmFee: <TApi, TRes>(
|
|
2062
|
+
declare const getOriginXcmFee: <TApi, TRes>(options: TGetOriginXcmFeeOptions<TApi, TRes>) => Promise<TXcmFeeDetail & {
|
|
2031
2063
|
forwardedXcms?: any;
|
|
2032
2064
|
destParaId?: number;
|
|
2033
2065
|
}>;
|
|
2034
2066
|
|
|
2035
2067
|
declare const getOriginXcmFeeEstimate: <TApi, TRes>({ api, tx, origin, destination, currency, senderAddress, feeAsset }: TGetOriginXcmFeeEstimateOptions<TApi, TRes>) => Promise<TGetXcmFeeEstimateDetail>;
|
|
2036
2068
|
|
|
2037
|
-
|
|
2038
|
-
fee?: bigint;
|
|
2039
|
-
feeType?: TFeeType;
|
|
2040
|
-
sufficient?: boolean;
|
|
2041
|
-
dryRunError?: string;
|
|
2069
|
+
declare const getOriginXcmFeeInternal: <TApi, TRes>({ api, tx, origin, destination, senderAddress, disableFallback, feeAsset, currency, useRootOrigin }: TGetOriginXcmFeeOptions<TApi, TRes>) => Promise<TXcmFeeDetail & {
|
|
2042
2070
|
forwardedXcms?: any;
|
|
2043
2071
|
destParaId?: number;
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
declare const getXcmFee: <TApi, TRes, TDisableFallback extends boolean>(
|
|
2072
|
+
}>;
|
|
2073
|
+
|
|
2074
|
+
declare const getXcmFee: <TApi, TRes, TDisableFallback extends boolean>(options: TGetXcmFeeOptions<TApi, TRes, TDisableFallback>) => Promise<TGetXcmFeeResult<TDisableFallback>>;
|
|
2047
2075
|
|
|
2048
2076
|
declare const getXcmFeeEstimate: <TApi, TRes>(options: TGetXcmFeeEstimateOptions<TApi, TRes>) => Promise<TGetXcmFeeEstimateResult>;
|
|
2049
2077
|
|
|
@@ -2159,5 +2187,5 @@ declare const handleToAhTeleport: <TApi, TRes>(origin: TParachain, input: TPolka
|
|
|
2159
2187
|
|
|
2160
2188
|
declare const validateAddress: (address: TAddress, chain: TChain, isDestination?: boolean) => void;
|
|
2161
2189
|
|
|
2162
|
-
export { AssetClaimBuilder, 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, 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 };
|
|
2163
|
-
export type { HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TAttemptDryRunFeeOptions, TBalanceResponse, TBatchOptions, TBifrostToken, TBridgeStatus, TBuilderConfig, TBuilderOptions, TChainConfig, TChainConfigMap, TChainWithApi, TConditionalXcmFeeDetail, TConditionalXcmFeeHopInfo, TCreateBaseSwapXcmOptions, TCreateBaseTransferXcmOptions, TCreateBeneficiaryOptions, TCreateBeneficiaryXTokensOptions, TCreateSwapXcmInternalOptions, TCreateSwapXcmOptions, TCreateTransferXcmOptions, TDestWeight, TDestXcmFeeDetail, TDestination, TDryRunBaseOptions, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunChain, TDryRunChainFailure, TDryRunChainResult, TDryRunChainResultInternal, TDryRunChainSuccess, TDryRunOptions, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMaxForeignTransferableAmountOptions, TGetMaxForeignTransferableAmountOptionsBase, TGetMaxNativeTransferableAmountOptions, TGetMaxNativeTransferableAmountOptionsBase, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTypeAndThenCallContext, TTypeAndThenFees, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress
|
|
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, TDryRunChainResultInternal, TDryRunChainSuccess, TDryRunOptions, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmChainFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestChainBaseOptions, TGetFeeForDestChainOptions, TGetMaxForeignTransferableAmountOptions, TGetMaxForeignTransferableAmountOptionsBase, TGetMaxNativeTransferableAmountOptions, TGetMaxNativeTransferableAmountOptionsBase, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetOriginXcmFeeBaseOptions, TGetOriginXcmFeeEstimateOptions, TGetOriginXcmFeeOptions, TGetReverseTxFeeOptions, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeOptions, TGetXcmFeeResult, THopInfo, THopTransferInfo, THubKey, TMantaAsset, TModuleError, TNativeTokenAsset, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmMethod, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTypeAndThenCallContext, TTypeAndThenFees, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
|