@paraspell/sdk-core 11.13.0 → 11.14.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 +492 -314
- package/dist/index.d.ts +82 -16
- package/dist/index.mjs +491 -316
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -626,6 +626,7 @@ type TDryRunChainSuccess = TDryRunResBase & {
|
|
|
626
626
|
type TDryRunChainFailure = TDryRunResBase & {
|
|
627
627
|
success: false;
|
|
628
628
|
failureReason: string;
|
|
629
|
+
failureSubReason?: string;
|
|
629
630
|
};
|
|
630
631
|
type TDryRunChainResult = TDryRunChainSuccess | TDryRunChainFailure;
|
|
631
632
|
type THopInfo = {
|
|
@@ -635,6 +636,7 @@ type THopInfo = {
|
|
|
635
636
|
type TDryRunChain = 'origin' | 'destination' | 'assetHub' | 'bridgeHub' | TChain;
|
|
636
637
|
type TDryRunResult = {
|
|
637
638
|
failureReason?: string;
|
|
639
|
+
failureSubReason?: string;
|
|
638
640
|
failureChain?: TDryRunChain;
|
|
639
641
|
origin: TDryRunChainResult;
|
|
640
642
|
destination?: TDryRunChainResult;
|
|
@@ -746,10 +748,57 @@ declare enum PolkadotXcmError {
|
|
|
746
748
|
AliasNotFound = "AliasNotFound",
|
|
747
749
|
LocalExecutionIncompleteWithError = "LocalExecutionIncompleteWithError"
|
|
748
750
|
}
|
|
751
|
+
declare enum PolkadotXcmExecutionError {
|
|
752
|
+
Overflow = "Overflow",
|
|
753
|
+
Unimplemented = "Unimplemented",
|
|
754
|
+
UntrustedReserveLocation = "UntrustedReserveLocation",
|
|
755
|
+
UntrustedTeleportLocation = "UntrustedTeleportLocation",
|
|
756
|
+
LocationFull = "LocationFull",
|
|
757
|
+
LocationNotInvertible = "LocationNotInvertible",
|
|
758
|
+
BadOrigin = "BadOrigin",
|
|
759
|
+
InvalidLocation = "InvalidLocation",
|
|
760
|
+
AssetNotFound = "AssetNotFound",
|
|
761
|
+
FailedToTransactAsset = "FailedToTransactAsset",
|
|
762
|
+
NotWithdrawable = "NotWithdrawable",
|
|
763
|
+
LocationCannotHold = "LocationCannotHold",
|
|
764
|
+
ExceedsMaxMessageSize = "ExceedsMaxMessageSize",
|
|
765
|
+
DestinationUnsupported = "DestinationUnsupported",
|
|
766
|
+
Transport = "Transport",
|
|
767
|
+
Unroutable = "Unroutable",
|
|
768
|
+
UnknownClaim = "UnknownClaim",
|
|
769
|
+
FailedToDecode = "FailedToDecode",
|
|
770
|
+
MaxWeightInvalid = "MaxWeightInvalid",
|
|
771
|
+
NotHoldingFees = "NotHoldingFees",
|
|
772
|
+
TooExpensive = "TooExpensive",
|
|
773
|
+
Trap = "Trap",
|
|
774
|
+
ExpectationFalse = "ExpectationFalse",
|
|
775
|
+
PalletNotFound = "PalletNotFound",
|
|
776
|
+
NameMismatch = "NameMismatch",
|
|
777
|
+
VersionIncompatible = "VersionIncompatible",
|
|
778
|
+
HoldingWouldOverflow = "HoldingWouldOverflow",
|
|
779
|
+
ExportError = "ExportError",
|
|
780
|
+
ReanchorFailed = "ReanchorFailed",
|
|
781
|
+
NoDeal = "NoDeal",
|
|
782
|
+
FeesNotMet = "FeesNotMet",
|
|
783
|
+
LockError = "LockError",
|
|
784
|
+
NoPermission = "NoPermission",
|
|
785
|
+
Unanchored = "Unanchored",
|
|
786
|
+
NotDepositable = "NotDepositable",
|
|
787
|
+
TooManyAssets = "TooManyAssets",
|
|
788
|
+
UnhandledXcmVersion = "UnhandledXcmVersion",
|
|
789
|
+
WeightLimitReached = "WeightLimitReached",
|
|
790
|
+
Barrier = "Barrier",
|
|
791
|
+
WeightNotComputable = "WeightNotComputable",
|
|
792
|
+
ExceedsStackLimit = "ExceedsStackLimit"
|
|
793
|
+
}
|
|
749
794
|
type TModuleError = {
|
|
750
795
|
index: string;
|
|
751
796
|
error: string;
|
|
752
797
|
};
|
|
798
|
+
type TDryRunError = {
|
|
799
|
+
failureReason: string;
|
|
800
|
+
failureSubReason?: string;
|
|
801
|
+
};
|
|
753
802
|
|
|
754
803
|
type TXcmFeeSwapConfig = TSwapConfig & {
|
|
755
804
|
amountOut: bigint;
|
|
@@ -777,6 +826,7 @@ type TGetXcmFeeBaseOptions<TRes, TDisableFallback extends boolean = boolean> = {
|
|
|
777
826
|
feeAsset?: TCurrencyInput;
|
|
778
827
|
disableFallback: TDisableFallback;
|
|
779
828
|
swapConfig?: TXcmFeeSwapConfig;
|
|
829
|
+
skipReverseFeeCalculation?: boolean;
|
|
780
830
|
};
|
|
781
831
|
type TGetXcmFeeOptions<TApi, TRes, TDisableFallback extends boolean = boolean> = WithApi<TGetXcmFeeBaseOptions<TRes, TDisableFallback>, TApi, TRes>;
|
|
782
832
|
type TGetXcmFeeInternalOptions<TApi, TRes, TDisableFallback extends boolean = boolean> = Omit<TGetXcmFeeOptions<TApi, TRes, TDisableFallback>, 'buildTx'> & {
|
|
@@ -817,6 +867,7 @@ type TGetFeeForDestChainBaseOptions<TRes> = {
|
|
|
817
867
|
disableFallback: boolean;
|
|
818
868
|
hasPassedExchange?: boolean;
|
|
819
869
|
swapConfig?: TXcmFeeSwapConfig;
|
|
870
|
+
skipReverseFeeCalculation?: boolean;
|
|
820
871
|
};
|
|
821
872
|
type TGetFeeForDestChainOptions<TApi, TRes> = WithApi<TGetFeeForDestChainBaseOptions<TRes>, TApi, TRes>;
|
|
822
873
|
type TGetReverseTxFeeOptions<TApi, TRes> = Omit<TGetFeeForDestChainOptions<TApi, TRes>, 'destination' | 'disableFallback' | 'forwardedXcms' | 'asset' | 'originFee' | 'prevChain'> & {
|
|
@@ -835,12 +886,14 @@ type TXcmFeeDetailSuccess = TXcmFeeBase$1 & {
|
|
|
835
886
|
fee: bigint;
|
|
836
887
|
feeType: TFeeType;
|
|
837
888
|
dryRunError?: string;
|
|
889
|
+
dryRunSubError?: string;
|
|
838
890
|
};
|
|
839
891
|
type TXcmFeeDetailWithFallback = TXcmFeeDetailSuccess;
|
|
840
892
|
type TXcmFeeDetailError = TXcmFeeBase$1 & {
|
|
841
893
|
fee?: bigint;
|
|
842
894
|
feeType?: TFeeType;
|
|
843
895
|
dryRunError: string;
|
|
896
|
+
dryRunSubError?: string;
|
|
844
897
|
};
|
|
845
898
|
type TXcmFeeDetail = TXcmFeeDetailSuccess | TXcmFeeDetailError;
|
|
846
899
|
type TXcmFeeHopResult = {
|
|
@@ -848,6 +901,7 @@ type TXcmFeeHopResult = {
|
|
|
848
901
|
feeType?: TFeeType;
|
|
849
902
|
sufficient?: boolean;
|
|
850
903
|
dryRunError?: string;
|
|
904
|
+
dryRunSubError?: string;
|
|
851
905
|
forwardedXcms?: any;
|
|
852
906
|
destParaId?: number;
|
|
853
907
|
/** @deprecated Use `asset` property instead. */
|
|
@@ -1432,12 +1486,12 @@ type TTypeAndThenCallContext<TApi, TRes> = {
|
|
|
1432
1486
|
dest: TChainWithApi<TApi, TRes>;
|
|
1433
1487
|
reserve: TChainWithApi<TApi, TRes, TSubstrateChain>;
|
|
1434
1488
|
isSubBridge: boolean;
|
|
1489
|
+
isRelayAsset: boolean;
|
|
1435
1490
|
assetInfo: WithAmount<TAssetWithLocation>;
|
|
1436
1491
|
options: TPolkadotXCMTransferOptions<TApi, TRes>;
|
|
1437
1492
|
};
|
|
1438
1493
|
type TTypeAndThenFees = {
|
|
1439
|
-
|
|
1440
|
-
refundFee: bigint;
|
|
1494
|
+
hopFees: bigint;
|
|
1441
1495
|
destFee: bigint;
|
|
1442
1496
|
};
|
|
1443
1497
|
|
|
@@ -1545,6 +1599,7 @@ declare class Acala<TApi, TRes> extends Parachain<TApi, TRes> implements IXToken
|
|
|
1545
1599
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1546
1600
|
getCurrencySelection(asset: TAssetInfo): TForeignOrTokenAsset;
|
|
1547
1601
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1602
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1548
1603
|
transferLocalNativeAsset(options: TTransferLocalOptions<TApi, TRes>): Promise<TRes>;
|
|
1549
1604
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1550
1605
|
}
|
|
@@ -1607,6 +1662,7 @@ declare class Astar<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkad
|
|
|
1607
1662
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1608
1663
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1609
1664
|
canUseXTokens({ assetInfo }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1665
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1610
1666
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1611
1667
|
}
|
|
1612
1668
|
|
|
@@ -1617,12 +1673,6 @@ declare class Basilisk<TApi, TRes> extends Parachain<TApi, TRes> implements IXTo
|
|
|
1617
1673
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1618
1674
|
}
|
|
1619
1675
|
|
|
1620
|
-
declare class BifrostKusama<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
1621
|
-
constructor();
|
|
1622
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1623
|
-
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
1676
|
declare class BifrostPolkadot<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
1627
1677
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1628
1678
|
getCurrencySelection(asset: TAssetInfo): {
|
|
@@ -1674,6 +1724,10 @@ declare class BifrostPolkadot<TApi, TRes> extends Parachain<TApi, TRes> implemen
|
|
|
1674
1724
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1675
1725
|
}
|
|
1676
1726
|
|
|
1727
|
+
declare class BifrostKusama<TApi, TRes> extends BifrostPolkadot<TApi, TRes> {
|
|
1728
|
+
constructor();
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1677
1731
|
declare class BifrostPaseo<TApi, TRes> extends BifrostPolkadot<TApi, TRes> {
|
|
1678
1732
|
constructor();
|
|
1679
1733
|
}
|
|
@@ -1815,6 +1869,8 @@ declare class IntegriteePolkadot<TApi, TRes> extends Parachain<TApi, TRes> imple
|
|
|
1815
1869
|
constructor(chain?: TParachain, info?: string, type?: TRelaychain, version?: Version);
|
|
1816
1870
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1817
1871
|
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1872
|
+
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1873
|
+
isReceivingTempDisabled(_scenario: TScenario): boolean;
|
|
1818
1874
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1819
1875
|
}
|
|
1820
1876
|
|
|
@@ -1997,6 +2053,7 @@ declare class Shiden<TApi, TRes> extends Parachain<TApi, TRes> implements IPolka
|
|
|
1997
2053
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1998
2054
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1999
2055
|
canUseXTokens({ assetInfo }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
2056
|
+
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
2000
2057
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
2001
2058
|
}
|
|
2002
2059
|
|
|
@@ -2140,7 +2197,7 @@ declare const dryRunInternal: <TApi, TRes>(options: TDryRunOptions<TApi, TRes>)
|
|
|
2140
2197
|
|
|
2141
2198
|
declare const dryRunOrigin: <TApi, TRes>(options: TDryRunCallOptions<TApi, TRes>) => Promise<TDryRunChainResult>;
|
|
2142
2199
|
|
|
2143
|
-
declare const getFailureInfo: (result: TDryRunResult) => Pick<TDryRunResult, "failureReason" | "failureChain">;
|
|
2200
|
+
declare const getFailureInfo: (result: TDryRunResult) => Pick<TDryRunResult, "failureReason" | "failureSubReason" | "failureChain">;
|
|
2144
2201
|
|
|
2145
2202
|
declare const traverseXcmHops: <TApi, TRes, THopResult>(config: HopTraversalConfig<TApi, TRes, THopResult>) => Promise<HopTraversalResult<THopResult>>;
|
|
2146
2203
|
declare const addEthereumBridgeFees: <TApi, TRes, TResult extends {
|
|
@@ -2168,11 +2225,12 @@ declare const getOriginXcmFeeInternal: <TApi, TRes>({ api, tx, origin, destinati
|
|
|
2168
2225
|
destParaId?: number;
|
|
2169
2226
|
}>;
|
|
2170
2227
|
|
|
2228
|
+
declare const getXcmFeeInternal: <TApi, TRes, TDisableFallback extends boolean>(options: TGetXcmFeeOptions<TApi, TRes, TDisableFallback>) => Promise<TGetXcmFeeResult<TDisableFallback>>;
|
|
2171
2229
|
declare const getXcmFee: <TApi, TRes, TDisableFallback extends boolean>(options: TGetXcmFeeOptions<TApi, TRes, TDisableFallback>) => Promise<TGetXcmFeeResult<TDisableFallback>>;
|
|
2172
2230
|
|
|
2173
2231
|
declare const getXcmFeeEstimate: <TApi, TRes>(options: TGetXcmFeeEstimateOptions<TApi, TRes>) => Promise<TGetXcmFeeEstimateResult>;
|
|
2174
2232
|
|
|
2175
|
-
declare const
|
|
2233
|
+
declare const getXcmFeeOnce: <TApi, TRes, TDisableFallback extends boolean>({ api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, useRootOrigin, skipReverseFeeCalculation }: TGetXcmFeeInternalOptions<TApi, TRes, TDisableFallback>) => Promise<TGetXcmFeeResult<TDisableFallback>>;
|
|
2176
2234
|
|
|
2177
2235
|
declare const getBridgeStatus: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>) => Promise<TBridgeStatus>;
|
|
2178
2236
|
|
|
@@ -2188,11 +2246,19 @@ declare const getTransferableAmount: <TApi, TRes>(options: TGetTransferableAmoun
|
|
|
2188
2246
|
|
|
2189
2247
|
declare const transferRelayToPara: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>) => Promise<TRes>;
|
|
2190
2248
|
|
|
2249
|
+
declare const constructTypeAndThenCall: <TApi, TRes>(context: TTypeAndThenCallContext<TApi, TRes>, fees?: TTypeAndThenFees | null) => TSerializedApiCall;
|
|
2191
2250
|
/**
|
|
2192
2251
|
* Creates a type and then call for transferring assets using XCM. Works only for DOT and snowbridge assets so far.
|
|
2193
2252
|
*/
|
|
2194
2253
|
declare const createTypeAndThenCall: <TApi, TRes>(chain: TSubstrateChain, options: TPolkadotXCMTransferOptions<TApi, TRes>, overrideReserve?: TSubstrateChain) => Promise<TSerializedApiCall>;
|
|
2195
2254
|
|
|
2255
|
+
/**
|
|
2256
|
+
* Creates a type-and-then call but auto-selects the asset reserve between AssetHub and the Relay chain
|
|
2257
|
+
* by dry-running both variants and preferring the one that succeeds. If both fail, returns the
|
|
2258
|
+
* AssetHub variant. Supports only relaychain assets.
|
|
2259
|
+
*/
|
|
2260
|
+
declare const createTypeThenAutoReserve: <TApi, TRes>(chain: TSubstrateChain, options: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TSerializedApiCall>;
|
|
2261
|
+
|
|
2196
2262
|
declare const validateCurrency: (currency: TCurrencyInput, feeAsset?: TCurrencyInput) => void;
|
|
2197
2263
|
declare const validateDestination: (origin: TSubstrateChain, destination: TDestination) => void;
|
|
2198
2264
|
declare const validateAssetSpecifiers: (assetCheckEnabled: boolean, currency: TCurrencyInput) => void;
|
|
@@ -2211,7 +2277,7 @@ declare const assertIsForeign: (asset: TAssetInfo) => asserts asset is TForeignA
|
|
|
2211
2277
|
declare const createAsset: (version: Version, amount: bigint, location: TLocation) => TAsset;
|
|
2212
2278
|
declare const createVersionedAssets: (version: Version, amount: bigint, location: TLocation) => OneKey<Version, TAsset[]>;
|
|
2213
2279
|
|
|
2214
|
-
declare const getCurrencySelection: (asset: TAssetInfo) => TCurrencyCore;
|
|
2280
|
+
declare const getCurrencySelection: (chain: TSubstrateChain, asset: TAssetInfo) => TCurrencyCore;
|
|
2215
2281
|
|
|
2216
2282
|
declare const maybeOverrideAssets: (version: Version, amount: bigint, assets: TAsset[], overriddenCurrency?: TLocation | TAsset[]) => TAsset[];
|
|
2217
2283
|
declare const maybeOverrideAsset: (version: Version, amount: bigint, asset: TAsset, overriddenCurrency?: TLocation | TAsset[]) => TAsset;
|
|
@@ -2224,6 +2290,8 @@ declare const createTx: <TApi, TRes>(options: TCreateTxsOptions<TApi, TRes>, bui
|
|
|
2224
2290
|
|
|
2225
2291
|
declare const isConfig: <TApi>(value: any) => value is TBuilderConfig<TApi>;
|
|
2226
2292
|
|
|
2293
|
+
declare const getAssetReserveChain: (chain: TSubstrateChain, assetLocation: TLocation) => TSubstrateChain;
|
|
2294
|
+
|
|
2227
2295
|
declare const getChainVersion: <TApi, TRes>(chain: TChain) => Version;
|
|
2228
2296
|
|
|
2229
2297
|
/**
|
|
@@ -2240,7 +2308,7 @@ declare const computeFeeFromDryRun: (dryRun: any, chain: TSubstrateChain, execut
|
|
|
2240
2308
|
|
|
2241
2309
|
declare const computeFeeFromDryRunPjs: (dryRun: any, chain: TSubstrateChain, executionFee: bigint) => bigint;
|
|
2242
2310
|
|
|
2243
|
-
declare const resolveModuleError: (chain: TSubstrateChain, error: TModuleError) =>
|
|
2311
|
+
declare const resolveModuleError: (chain: TSubstrateChain, error: TModuleError) => TDryRunError;
|
|
2244
2312
|
|
|
2245
2313
|
declare const padFee: (raw: bigint, origin: TSubstrateChain, dest: TChain, side: "origin" | "destination") => bigint;
|
|
2246
2314
|
declare const padValueBy: (amount: bigint, percent: number) => bigint;
|
|
@@ -2301,8 +2369,6 @@ declare const createExecuteExchangeXcm: <TApi, TRes>(input: TPolkadotXCMTransfer
|
|
|
2301
2369
|
|
|
2302
2370
|
declare const createDirectExecuteXcm: <TApi, TRes>(options: TCreateTransferXcmOptions<TApi, TRes>) => OneKey<_paraspell_sdk_common.Version, unknown[]>;
|
|
2303
2371
|
|
|
2304
|
-
declare const getAssetReserveChain: (chain: TSubstrateChain, assetLocation: TLocation) => TSubstrateChain;
|
|
2305
|
-
|
|
2306
2372
|
declare const handleExecuteTransfer: <TApi, TRes>(chain: TParachain, options: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TSerializedApiCall>;
|
|
2307
2373
|
|
|
2308
2374
|
declare const handleSwapExecuteTransfer: <TApi, TRes>(options: TCreateSwapXcmOptions<TApi, TRes>) => Promise<TRes>;
|
|
@@ -2314,5 +2380,5 @@ declare const formatUnits: typeof formatUnits$1;
|
|
|
2314
2380
|
|
|
2315
2381
|
declare const validateAddress: (address: TAddress, chain: TChain, isDestination?: boolean) => void;
|
|
2316
2382
|
|
|
2317
|
-
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, formatUnits, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, verifyEdOnDestination, wrapTxBypass };
|
|
2318
|
-
export type { BuildHopInfoOptions, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedSendOptions, TBifrostToken, TBridgeStatus, TBuildDestInfoOptions, TBuildInternalRes, 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, TResolveHopParams, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapConfig, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTxFactory, TTypeAndThenCallContext, TTypeAndThenFees, TUrl, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmFeeSwapConfig, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
|
|
2383
|
+
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, PolkadotXcmExecutionError, 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, constructTypeAndThenCall, convertSs58, createAsset, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createChainClient, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createTx, createTypeAndThenCall, createTypeThenAutoReserve, createVersionedAssets, createX1Payload, deriveAccountId, dryRun, dryRunInternal, dryRunOrigin, encodeSs58, formatUnits, getAssetBalance, getAssetBalanceInternal, getAssetReserveChain, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChain, getChainConfig, getChainLocation, getChainProviders, getChainVersion, getCurrencySelection, getFailureInfo, getMinTransferableAmount, getMinTransferableAmountInternal, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getOriginXcmFeeInternal, getParaEthTransferFees, getParaId, getRelayChainOf, getTChain, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, getXcmFeeInternal, getXcmFeeOnce, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, isConfig, localizeLocation, maybeOverrideAsset, maybeOverrideAssets, normalizeAmount, overrideTxAmount, padFee, padValueBy, parseUnits, resolveDestChain, resolveModuleError, resolveParaId, reverseTransformLocation, send, sortAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, traverseXcmHops, validateAddress, validateAssetSpecifiers, validateCurrency, validateDestination, verifyEdOnDestination, wrapTxBypass };
|
|
2384
|
+
export type { BuildHopInfoOptions, HopProcessParams, HopTraversalConfig, HopTraversalResult, IPolkadotApi, IPolkadotXCMTransfer, IXTokensTransfer, IXTransferTransfer, OneKey, TAddress, TApiOrUrl, TAssetClaimInternalOptions, TAssetClaimOptions, TAssetClaimOptionsBase, TBatchOptions, TBatchedSendOptions, TBifrostToken, TBridgeStatus, TBuildDestInfoOptions, TBuildInternalRes, 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, TDryRunError, 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, TResolveHopParams, TScenario, TSelfReserveAsset, TSendBaseOptions, TSendBaseOptionsWithSenderAddress, TSendInternalOptions, TSendOptions, TSerializeEthTransferOptions, TSerializedApiCall, TSerializedEthTransfer, TSwapConfig, TSwapFeeEstimates, TTransferFeeEstimates, TTransferInfo, TTransferLocalOptions, TTxFactory, TTypeAndThenCallContext, TTypeAndThenFees, TUrl, TVerifyEdOnDestinationOptions, TVerifyEdOnDestinationOptionsBase, TWeight, TXTokensCurrencySelection, TXTokensMethod, TXTokensTransferOptions, TXTransferMethod, TXTransferTransferOptions, TXcmAsset, TXcmFeeBase, TXcmFeeChain, TXcmFeeDetail, TXcmFeeDetailError, TXcmFeeDetailSuccess, TXcmFeeDetailWithFallback, TXcmFeeHopInfo, TXcmFeeHopResult, TXcmFeeSwapConfig, TXcmForeignAsset, TXcmPalletMethod, TXcmVersioned, TZeitgeistAsset, WithApi, WithRequiredSenderAddress };
|