@paraspell/sdk-core 11.8.3 → 11.8.5
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 +217 -134
- package/dist/index.d.ts +8 -4
- package/dist/index.mjs +218 -135
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _paraspell_sdk_common from '@paraspell/sdk-common';
|
|
2
|
-
import { TLocation, TSubstrateChain,
|
|
2
|
+
import { TChain, TLocation, TSubstrateChain, Version, TRelaychain, TParachain, TExternalChain, TJunction, TJunctions } from '@paraspell/sdk-common';
|
|
3
3
|
export * from '@paraspell/sdk-common';
|
|
4
4
|
import * as _paraspell_assets from '@paraspell/assets';
|
|
5
5
|
import { TCurrencyInputWithAmount, TCurrencyInput, WithAmount, TAssetInfo, TAsset, TAssetWithFee, WithComplexAmount, TCurrencyCore, TAmount, TAssetWithLocation, TForeignAssetWithId, TForeignAssetInfo } from '@paraspell/assets';
|
|
@@ -635,7 +635,7 @@ type TXcmFeeHopResult = {
|
|
|
635
635
|
asset: TAssetInfo;
|
|
636
636
|
};
|
|
637
637
|
type TConditionalXcmFeeDetail<TDisableFallback extends boolean> = TDisableFallback extends false ? TXcmFeeDetailWithFallback : TXcmFeeDetail;
|
|
638
|
-
type TDestXcmFeeDetail<TDisableFallback extends boolean> =
|
|
638
|
+
type TDestXcmFeeDetail<TDisableFallback extends boolean> = TConditionalXcmFeeDetail<TDisableFallback> & {
|
|
639
639
|
forwardedXcms?: any;
|
|
640
640
|
destParaId?: number;
|
|
641
641
|
};
|
|
@@ -978,6 +978,10 @@ type TDryRunCallBaseOptions<TRes> = {
|
|
|
978
978
|
* The chain to dry-run on
|
|
979
979
|
*/
|
|
980
980
|
chain: TSubstrateChain;
|
|
981
|
+
/**
|
|
982
|
+
* The destination chain
|
|
983
|
+
*/
|
|
984
|
+
destination: TDestination;
|
|
981
985
|
/**
|
|
982
986
|
* The address to dry-run with
|
|
983
987
|
*/
|
|
@@ -990,7 +994,7 @@ type TDryRunCallBaseOptions<TRes> = {
|
|
|
990
994
|
bypassOptions?: TBypassOptions;
|
|
991
995
|
feeAsset?: TAssetInfo;
|
|
992
996
|
};
|
|
993
|
-
type TDryRunBypassOptions<TApi, TRes> = WithApi<Omit<TDryRunCallBaseOptions<TRes>, 'useRootOrigin'>, TApi, TRes>;
|
|
997
|
+
type TDryRunBypassOptions<TApi, TRes> = WithApi<Omit<TDryRunCallBaseOptions<TRes>, 'useRootOrigin' | 'destination'>, TApi, TRes>;
|
|
994
998
|
type TDryRunCallOptions<TApi, TRes> = WithApi<TDryRunCallBaseOptions<TRes>, TApi, TRes>;
|
|
995
999
|
type TDryRunXcmBaseOptions<TRes> = {
|
|
996
1000
|
originLocation: any;
|
|
@@ -2119,7 +2123,7 @@ declare const dryRunInternal: <TApi, TRes>(options: TDryRunOptions<TApi, TRes>)
|
|
|
2119
2123
|
|
|
2120
2124
|
declare const dryRunOrigin: <TApi, TRes>(options: TDryRunCallOptions<TApi, TRes>) => Promise<TDryRunChainResult>;
|
|
2121
2125
|
|
|
2122
|
-
declare
|
|
2126
|
+
declare const traverseXcmHops: <TApi, TRes, THopResult>(config: HopTraversalConfig<TApi, TRes, THopResult>) => Promise<HopTraversalResult<THopResult>>;
|
|
2123
2127
|
declare const addEthereumBridgeFees: <TApi, TRes, TResult extends {
|
|
2124
2128
|
fee?: bigint;
|
|
2125
2129
|
}>(api: IPolkadotApi<TApi, TRes>, bridgeHubResult: TResult | undefined, destination: TChain, assetHubChain: TSubstrateChain) => Promise<TResult | undefined>;
|