@paraspell/sdk-core 8.11.1 → 8.12.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 +1306 -614
- package/dist/index.d.ts +162 -22
- package/dist/index.mjs +1305 -616
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ type TPolkadotXCMTransferOptions<TApi, TRes> = {
|
|
|
77
77
|
paraIdTo?: number;
|
|
78
78
|
version?: Version;
|
|
79
79
|
senderAddress?: string;
|
|
80
|
+
ahAddress?: string;
|
|
80
81
|
pallet?: string;
|
|
81
82
|
method?: string;
|
|
82
83
|
};
|
|
@@ -141,9 +142,13 @@ type TSendBaseOptions = {
|
|
|
141
142
|
*/
|
|
142
143
|
address: TAddress;
|
|
143
144
|
/**
|
|
144
|
-
* The optional sender address. A SS58
|
|
145
|
+
* The optional sender address. A SS58 or H160 format.
|
|
145
146
|
*/
|
|
146
147
|
senderAddress?: string;
|
|
148
|
+
/**
|
|
149
|
+
* The optional asset hub address. A SS58 format only.
|
|
150
|
+
*/
|
|
151
|
+
ahAddress?: string;
|
|
147
152
|
/**
|
|
148
153
|
* The destination node or multi-location
|
|
149
154
|
*/
|
|
@@ -173,6 +178,12 @@ type TSendBaseOptions = {
|
|
|
173
178
|
*/
|
|
174
179
|
method?: string;
|
|
175
180
|
};
|
|
181
|
+
type TSendBaseOptionsWithSenderAddress = Omit<TSendBaseOptions, 'senderAddress'> & {
|
|
182
|
+
/**
|
|
183
|
+
* The sender address. A SS58 or H160 format.
|
|
184
|
+
*/
|
|
185
|
+
senderAddress: string;
|
|
186
|
+
};
|
|
176
187
|
/**
|
|
177
188
|
* Options for transferring from a parachain to another parachain or relay chain
|
|
178
189
|
*/
|
|
@@ -481,7 +492,7 @@ type TNodeConfig = {
|
|
|
481
492
|
};
|
|
482
493
|
type TNodeConfigMap = Record<TNodeDotKsmWithRelayChains, TNodeConfig>;
|
|
483
494
|
|
|
484
|
-
type
|
|
495
|
+
type TDryRunCallBaseOptions<TRes> = {
|
|
485
496
|
/**
|
|
486
497
|
* The transaction to dry-run
|
|
487
498
|
*/
|
|
@@ -495,11 +506,29 @@ type TDryRunBaseOptions<TRes> = {
|
|
|
495
506
|
*/
|
|
496
507
|
address: string;
|
|
497
508
|
};
|
|
498
|
-
type
|
|
509
|
+
type TDryRunCallOptions<TApi, TRes> = WithApi<TDryRunCallBaseOptions<TRes>, TApi, TRes>;
|
|
510
|
+
type TDryRunXcmBaseOptions = {
|
|
511
|
+
originLocation: any;
|
|
512
|
+
/**
|
|
513
|
+
* The XCM instructions
|
|
514
|
+
*/
|
|
515
|
+
xcm: any;
|
|
516
|
+
/**
|
|
517
|
+
* The node to dry-run on
|
|
518
|
+
*/
|
|
519
|
+
node: TNodeDotKsmWithRelayChains;
|
|
520
|
+
/**
|
|
521
|
+
* The origin node
|
|
522
|
+
*/
|
|
523
|
+
origin: TNodeDotKsmWithRelayChains;
|
|
524
|
+
};
|
|
525
|
+
type TDryRunXcmOptions<TApi, TRes> = WithApi<TDryRunXcmBaseOptions, TApi, TRes>;
|
|
499
526
|
type TDryRunResult = {
|
|
500
527
|
success: true;
|
|
501
528
|
fee: bigint;
|
|
502
529
|
weight?: TWeight;
|
|
530
|
+
forwardedXcms: any;
|
|
531
|
+
destParaId?: number;
|
|
503
532
|
} | {
|
|
504
533
|
success: false;
|
|
505
534
|
failureReason: string;
|
|
@@ -601,6 +630,77 @@ type TGetTransferInfoOptionsBase = {
|
|
|
601
630
|
};
|
|
602
631
|
type TGetTransferInfoOptions<TApi, TRes> = WithApi<TGetTransferInfoOptionsBase, TApi, TRes>;
|
|
603
632
|
|
|
633
|
+
type TGetXcmFeeBaseOptions<TRes> = {
|
|
634
|
+
/**
|
|
635
|
+
* The transaction to calculate the fee for
|
|
636
|
+
*/
|
|
637
|
+
tx: TRes;
|
|
638
|
+
/**
|
|
639
|
+
* The origin node
|
|
640
|
+
*/
|
|
641
|
+
origin: TNodeDotKsmWithRelayChains;
|
|
642
|
+
/**
|
|
643
|
+
* The destination node
|
|
644
|
+
*/
|
|
645
|
+
destination: TNodeDotKsmWithRelayChains;
|
|
646
|
+
/**
|
|
647
|
+
* The sender address
|
|
648
|
+
*/
|
|
649
|
+
senderAddress: string;
|
|
650
|
+
address: string;
|
|
651
|
+
currency: TCurrencyInputWithAmount;
|
|
652
|
+
disableFallback: boolean;
|
|
653
|
+
};
|
|
654
|
+
type TGetXcmFeeOptions<TApi, TRes> = WithApi<TGetXcmFeeBaseOptions<TRes>, TApi, TRes>;
|
|
655
|
+
type TGetXcmFeeEstimateOptions<TApi, TRes> = Omit<TGetXcmFeeOptions<TApi, TRes>, 'disableFallback'>;
|
|
656
|
+
type TGetXcmFeeBuilderOptions = {
|
|
657
|
+
disableFallback: boolean;
|
|
658
|
+
};
|
|
659
|
+
type TGetFeeForOriginNodeBaseOptions<TRes> = {
|
|
660
|
+
tx: TRes;
|
|
661
|
+
origin: TNodeDotKsmWithRelayChains;
|
|
662
|
+
destination: TNodeDotKsmWithRelayChains;
|
|
663
|
+
senderAddress: string;
|
|
664
|
+
disableFallback: boolean;
|
|
665
|
+
};
|
|
666
|
+
type TGetFeeForOriginNodeOptions<TApi, TRes> = WithApi<TGetFeeForOriginNodeBaseOptions<TRes>, TApi, TRes>;
|
|
667
|
+
type TGetFeeForDestNodeBaseOptions = {
|
|
668
|
+
origin: TNodeDotKsmWithRelayChains;
|
|
669
|
+
destination: TNodeDotKsmWithRelayChains;
|
|
670
|
+
senderAddress: string;
|
|
671
|
+
address: string;
|
|
672
|
+
currency: TCurrencyInputWithAmount;
|
|
673
|
+
forwardedXcms: any;
|
|
674
|
+
disableFallback: boolean;
|
|
675
|
+
};
|
|
676
|
+
type TGetFeeForDestNodeOptions<TApi, TRes> = WithApi<TGetFeeForDestNodeBaseOptions, TApi, TRes>;
|
|
677
|
+
type TFeeType = 'dryRun' | 'paymentInfo';
|
|
678
|
+
type TXcmFeeDetail = {
|
|
679
|
+
fee: bigint;
|
|
680
|
+
currency: string;
|
|
681
|
+
feeType: TFeeType;
|
|
682
|
+
dryRunError?: string;
|
|
683
|
+
} | {
|
|
684
|
+
fee?: bigint;
|
|
685
|
+
currency?: string;
|
|
686
|
+
feeType?: TFeeType;
|
|
687
|
+
dryRunError: string;
|
|
688
|
+
};
|
|
689
|
+
type TGetXcmFeeResult = {
|
|
690
|
+
origin: TXcmFeeDetail;
|
|
691
|
+
destination: TXcmFeeDetail;
|
|
692
|
+
assetHub?: TXcmFeeDetail;
|
|
693
|
+
bridgeHub?: TXcmFeeDetail;
|
|
694
|
+
};
|
|
695
|
+
type TGetXcmFeeEstimateDetail = {
|
|
696
|
+
fee: bigint;
|
|
697
|
+
currency: string;
|
|
698
|
+
};
|
|
699
|
+
type TGetXcmFeeEstimateResult = {
|
|
700
|
+
origin: TGetXcmFeeEstimateDetail;
|
|
701
|
+
destination: TGetXcmFeeEstimateDetail;
|
|
702
|
+
};
|
|
703
|
+
|
|
604
704
|
interface IPolkadotApi<TApi, TRes> {
|
|
605
705
|
setApi(api?: TApiOrUrl<TApi>): void;
|
|
606
706
|
getApi(): TApi;
|
|
@@ -628,7 +728,8 @@ interface IPolkadotApi<TApi, TRes> {
|
|
|
628
728
|
blake2AsHex(data: Uint8Array): string;
|
|
629
729
|
clone(): IPolkadotApi<TApi, TRes>;
|
|
630
730
|
createApiForNode(node: TNodeWithRelayChains): Promise<IPolkadotApi<TApi, TRes>>;
|
|
631
|
-
|
|
731
|
+
getDryRunCall(options: TDryRunCallBaseOptions<TRes>): Promise<TDryRunResult>;
|
|
732
|
+
getDryRunXcm(options: TDryRunXcmBaseOptions): Promise<TDryRunResult>;
|
|
632
733
|
getBridgeStatus(): Promise<TBridgeStatus>;
|
|
633
734
|
setDisconnectAllowed(allowed: boolean): void;
|
|
634
735
|
getDisconnectAllowed(): boolean;
|
|
@@ -747,8 +848,21 @@ declare class GeneralBuilder<TApi, TRes, T extends Partial<TSendBaseOptions> = o
|
|
|
747
848
|
* @param address - The destination address.
|
|
748
849
|
* @returns An instance of Builder
|
|
749
850
|
*/
|
|
750
|
-
address(address: TAddress
|
|
851
|
+
address(address: TAddress): GeneralBuilder<TApi, TRes, T & {
|
|
852
|
+
address: TAddress;
|
|
853
|
+
}>;
|
|
854
|
+
address(address: TAddress, senderAddress: string): GeneralBuilder<TApi, TRes, T & {
|
|
751
855
|
address: TAddress;
|
|
856
|
+
senderAddress: string;
|
|
857
|
+
}>;
|
|
858
|
+
/**
|
|
859
|
+
* Sets the asset hub address. This is used for transfers that go through the Asset Hub and originate from an EVM chain.
|
|
860
|
+
*
|
|
861
|
+
* @param address - The address to be used.
|
|
862
|
+
* @returns An instance of Builder
|
|
863
|
+
*/
|
|
864
|
+
ahAddress(address: string | undefined): GeneralBuilder<TApi, TRes, T & {
|
|
865
|
+
ahAddress: string | undefined;
|
|
752
866
|
}>;
|
|
753
867
|
/**
|
|
754
868
|
* Sets the XCM version to be used for the transfer.
|
|
@@ -800,6 +914,18 @@ declare class GeneralBuilder<TApi, TRes, T extends Partial<TSendBaseOptions> = o
|
|
|
800
914
|
*/
|
|
801
915
|
build(this: GeneralBuilder<TApi, TRes, TSendBaseOptions>): Promise<TRes>;
|
|
802
916
|
dryRun(this: GeneralBuilder<TApi, TRes, TSendBaseOptions>, senderAddress: string): Promise<TDryRunResult>;
|
|
917
|
+
/**
|
|
918
|
+
* Estimates the XCM fee for the transfer using paymentInfo function.
|
|
919
|
+
*
|
|
920
|
+
* @returns An origin and destination fee estimate.
|
|
921
|
+
*/
|
|
922
|
+
getXcmFeeEstimate(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>): Promise<TGetXcmFeeEstimateResult>;
|
|
923
|
+
/**
|
|
924
|
+
* Returns the XCM fee for the transfer using dryRun or paymentInfo function.
|
|
925
|
+
*
|
|
926
|
+
* @returns An origin and destination fee.
|
|
927
|
+
*/
|
|
928
|
+
getXcmFee(this: GeneralBuilder<TApi, TRes, TSendBaseOptionsWithSenderAddress>, { disableFallback }?: TGetXcmFeeBuilderOptions): Promise<TGetXcmFeeResult>;
|
|
803
929
|
/**
|
|
804
930
|
* Returns the API instance used by the builder.
|
|
805
931
|
*
|
|
@@ -841,7 +967,7 @@ declare abstract class ParachainNode<TApi, TRes> {
|
|
|
841
967
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
842
968
|
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
843
969
|
createCurrencySpec(amount: TAmount, scenario: TScenario, version: Version, _asset?: TAsset, _isOverridenAsset?: boolean): TXcmVersioned<TMultiAsset[]>;
|
|
844
|
-
|
|
970
|
+
createVersionedDestination(scenario: TScenario, version: Version, destination: TDestination, paraId?: number): TXcmVersioned<TMultiLocation>;
|
|
845
971
|
getNativeAssetSymbol(): string;
|
|
846
972
|
transferLocal(options: TSendInternalOptions<TApi, TRes>): TRes;
|
|
847
973
|
transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
@@ -858,6 +984,15 @@ declare class Acala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXT
|
|
|
858
984
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
859
985
|
}
|
|
860
986
|
|
|
987
|
+
declare class Ajuna<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
988
|
+
constructor();
|
|
989
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
990
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
991
|
+
protected canUseXTokens({ asset, to: destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
992
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
993
|
+
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
994
|
+
}
|
|
995
|
+
|
|
861
996
|
declare class Altair<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
862
997
|
constructor();
|
|
863
998
|
private getCurrencySelection;
|
|
@@ -904,7 +1039,7 @@ declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> imp
|
|
|
904
1039
|
handleEthBridgeNativeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
905
1040
|
handleEthBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
906
1041
|
handleMythosTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
907
|
-
handleBifrostEthTransfer: <
|
|
1042
|
+
handleBifrostEthTransfer: <TApi_1, TRes_1>(input: TPolkadotXCMTransferOptions<TApi_1, TRes_1>, useDOTAsFeeAsset?: boolean) => TRes_1;
|
|
908
1043
|
patchInput<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TPolkadotXCMTransferOptions<TApi, TRes>;
|
|
909
1044
|
private getSection;
|
|
910
1045
|
private handleExecuteTransfer;
|
|
@@ -1025,11 +1160,6 @@ declare class BridgeHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> im
|
|
|
1025
1160
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1026
1161
|
}
|
|
1027
1162
|
|
|
1028
|
-
declare class Calamari<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1029
|
-
constructor();
|
|
1030
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
1163
|
declare class Centrifuge<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1034
1164
|
constructor();
|
|
1035
1165
|
private getCurrencySelection;
|
|
@@ -1168,11 +1298,6 @@ declare class Interlay<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1168
1298
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1169
1299
|
}
|
|
1170
1300
|
|
|
1171
|
-
declare class InvArchTinker<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1172
|
-
constructor();
|
|
1173
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
1301
|
declare class Karura<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
1177
1302
|
constructor();
|
|
1178
1303
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -1327,6 +1452,7 @@ declare class Zeitgeist<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
1327
1452
|
declare const nodes: <TApi, TRes>() => {
|
|
1328
1453
|
AssetHubPolkadot: AssetHubPolkadot<TApi, TRes>;
|
|
1329
1454
|
Acala: Acala<TApi, TRes>;
|
|
1455
|
+
Ajuna: Ajuna<TApi, TRes>;
|
|
1330
1456
|
Astar: Astar<TApi, TRes>;
|
|
1331
1457
|
Unique: Unique<TApi, TRes>;
|
|
1332
1458
|
Crust: Crust<TApi, TRes>;
|
|
@@ -1349,10 +1475,8 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
1349
1475
|
Amplitude: Amplitude<TApi, TRes>;
|
|
1350
1476
|
Basilisk: Basilisk<TApi, TRes>;
|
|
1351
1477
|
BifrostKusama: BifrostKusama<TApi, TRes>;
|
|
1352
|
-
Calamari: Calamari<TApi, TRes>;
|
|
1353
1478
|
CrustShadow: CrustShadow<TApi, TRes>;
|
|
1354
1479
|
Crab: Crab<TApi, TRes>;
|
|
1355
|
-
InvArchTinker: InvArchTinker<TApi, TRes>;
|
|
1356
1480
|
Karura: Karura<TApi, TRes>;
|
|
1357
1481
|
Kintsugi: Kintsugi<TApi, TRes>;
|
|
1358
1482
|
Moonriver: Moonriver<TApi, TRes>;
|
|
@@ -1426,6 +1550,18 @@ declare class InvalidAddressError extends Error {
|
|
|
1426
1550
|
constructor(message: string);
|
|
1427
1551
|
}
|
|
1428
1552
|
|
|
1553
|
+
/**
|
|
1554
|
+
* Error thrown when the Dry Run fails.
|
|
1555
|
+
*/
|
|
1556
|
+
declare class InvalidParameterError extends Error {
|
|
1557
|
+
/**
|
|
1558
|
+
* Constructs a new InvalidParameterError.
|
|
1559
|
+
*
|
|
1560
|
+
* @param message - Required error message.
|
|
1561
|
+
*/
|
|
1562
|
+
constructor(message: string);
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1429
1565
|
/**
|
|
1430
1566
|
* Used to inform user, that Parachain they wish to use is not supported yet
|
|
1431
1567
|
*/
|
|
@@ -1515,9 +1651,13 @@ declare const transferMoonbeamToEth: <TApi, TRes>({ api, from, to, signer, addre
|
|
|
1515
1651
|
declare const isEthersSigner: (signer: Signer | WalletClient) => signer is Signer;
|
|
1516
1652
|
declare const isEthersContract: (contract: Contract | GetContractReturnType<Abi | readonly unknown[]>) => contract is Contract;
|
|
1517
1653
|
|
|
1654
|
+
declare const getXcmFee: <TApi, TRes>({ api, tx, origin, destination, senderAddress, address, currency, disableFallback }: TGetXcmFeeOptions<TApi, TRes>) => Promise<TGetXcmFeeResult>;
|
|
1655
|
+
|
|
1656
|
+
declare const getXcmFeeEstimate: <TApi, TRes>({ api, tx, origin, destination, address, senderAddress, currency }: TGetXcmFeeEstimateOptions<TApi, TRes>) => Promise<TGetXcmFeeEstimateResult>;
|
|
1657
|
+
|
|
1518
1658
|
declare const getBridgeStatus: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>) => Promise<TBridgeStatus>;
|
|
1519
1659
|
|
|
1520
|
-
declare const getDryRun: <TApi, TRes>(options:
|
|
1660
|
+
declare const getDryRun: <TApi, TRes>(options: TDryRunCallOptions<TApi, TRes>) => Promise<TDryRunResult>;
|
|
1521
1661
|
|
|
1522
1662
|
declare const send: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<TRes>;
|
|
1523
1663
|
|
|
@@ -1570,5 +1710,5 @@ declare const validateAddress: (address: TAddress, node: TNodeWithRelayChains, i
|
|
|
1570
1710
|
*/
|
|
1571
1711
|
declare const determineRelayChain: (node: TNodeWithRelayChains) => TRelaychain;
|
|
1572
1712
|
|
|
1573
|
-
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, Version, XTokensError, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, createApiInstanceForNode, createBeneficiaryMultiLocation, createVersionedBeneficiary, createX1Payload, determineRelayChain, generateAddressMultiLocationV4, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getDryRun, getFees, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getParaEthTransferFees, getParaId, getTNode, getTransferInfo, getTransferableAmount, isEthersContract, isEthersSigner, resolveModuleError, resolveParaId, send, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, transformMultiLocation, validateAddress, verifyEdOnDestination };
|
|
1574
|
-
export type { IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimOptions, TAssetClaimOptionsBase, TBalanceResponse, TBatchOptions, TBifrostToken, TBridgeStatus, TCreateBeneficiaryOptions, TDestWeight, TDestination,
|
|
1713
|
+
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidParameterError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, Version, XTokensError, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, createApiInstanceForNode, createBeneficiaryMultiLocation, createVersionedBeneficiary, createX1Payload, determineRelayChain, generateAddressMultiLocationV4, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getDryRun, getFees, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getParaEthTransferFees, getParaId, getTNode, getTransferInfo, getTransferableAmount, getXcmFee, getXcmFeeEstimate, isEthersContract, isEthersSigner, resolveModuleError, resolveParaId, send, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, transformMultiLocation, validateAddress, verifyEdOnDestination };
|
|
1714
|
+
export type { IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimOptions, TAssetClaimOptionsBase, TBalanceResponse, TBatchOptions, TBifrostToken, TBridgeStatus, TCreateBeneficiaryOptions, TDestWeight, TDestination, TDryRunCallBaseOptions, TDryRunCallOptions, TDryRunResult, TDryRunXcmBaseOptions, TDryRunXcmOptions, TEdJsonMap, TEvmBuilderOptions, TEvmBuilderOptionsBase, TEvmNodeFrom, TFeeType, TForeignAssetId, TForeignOrNativeAsset, TForeignOrTokenAsset, TGetAssetBalanceOptions, TGetAssetBalanceOptionsBase, TGetBalanceForeignOptions, TGetBalanceForeignOptionsBase, TGetBalanceNativeOptions, TGetBalanceNativeOptionsBase, TGetFeeForDestNodeBaseOptions, TGetFeeForDestNodeOptions, TGetFeeForOriginNodeBaseOptions, TGetFeeForOriginNodeOptions, TGetMaxForeignTransferableAmountOptions, TGetMaxForeignTransferableAmountOptionsBase, TGetMaxNativeTransferableAmountOptions, TGetMaxNativeTransferableAmountOptionsBase, TGetOriginFeeDetailsOptions, TGetOriginFeeDetailsOptionsBase, TGetTransferInfoOptions, TGetTransferInfoOptionsBase, TGetTransferableAmountOptions, TGetTransferableAmountOptionsBase, TGetXcmFeeBaseOptions, TGetXcmFeeBuilderOptions, TGetXcmFeeEstimateDetail, TGetXcmFeeEstimateOptions, TGetXcmFeeEstimateResult, TGetXcmFeeOptions, TGetXcmFeeResult, TMantaAsset, TModuleError, TNativeTokenAsset, TNodeConfig, TNodeConfigMap, TNodleAsset, TOriginFeeDetails, TOtherReserveAsset, TPolkadotXCMTransferOptions, TPolkadotXcmSection, TProviderEntry, TRelayToParaDestination, TRelayToParaOptions, TRelayToParaOverrides, TRelaychain, TReserveAsset, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TTransferInfo, TTransferLocalOptions, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TVersionClaimAssets, TWeight, TXTokensCurrencySelection, TXTokensSection, TXTokensTransferOptions, TXTransferSection, TXTransferTransferOptions, TXcmAsset, TXcmFeeDetail, TXcmForeignAsset, TXcmPalletSection, TXcmVersioned, TZeitgeistAsset, WithApi };
|