@paraspell/swap 14.5.2 → 14.5.4
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.d.ts +6 -7
- package/dist/index.mjs +482 -586
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ type TSwapOptionsCommon<TApi, TRes, TSigner, TCustomChain extends string = never
|
|
|
24
24
|
amount: bigint;
|
|
25
25
|
slippagePct: string;
|
|
26
26
|
sender: string;
|
|
27
|
+
recipient: string;
|
|
28
|
+
destination?: TDestinationInfo;
|
|
27
29
|
feeCalcAddress: string;
|
|
28
30
|
origin?: TOriginInfo<TApi>;
|
|
29
31
|
isForFeeEstimation?: boolean;
|
|
@@ -47,14 +49,10 @@ type TPjsGetAmountOutOptions<TApi, TRes, TSigner, TCustomChain extends string =
|
|
|
47
49
|
type TPapiGetAmountOutOptions<TApi, TRes, TSigner, TCustomChain extends string = never> = TGetAmountOutOptionsFor<TApi, TRes, TSigner, 'PAPI', TCustomChain>;
|
|
48
50
|
type TGenericGetAmountOutOptions<TApi, TRes, TSigner, TCustomChain extends string = never> = TGetAmountOutOptionsFor<TApi, TRes, TSigner, 'GENERIC', TCustomChain>;
|
|
49
51
|
type TExtrinsic<TRes> = Extrinsic | TPapiTransaction | TRes;
|
|
50
|
-
type
|
|
52
|
+
type TSwapResult<TRes> = {
|
|
51
53
|
tx: TExtrinsic<TRes>;
|
|
52
54
|
amountOut: bigint;
|
|
53
55
|
};
|
|
54
|
-
type TMultiSwapResult<TRes> = {
|
|
55
|
-
txs: TExtrinsic<TRes>[];
|
|
56
|
-
amountOut: bigint;
|
|
57
|
-
};
|
|
58
56
|
/**
|
|
59
57
|
* The options for an XCM Router transfer.
|
|
60
58
|
*/
|
|
@@ -155,6 +153,7 @@ type TAdditionalTransferOptions<TApi, TRes, TSigner, TCustomChain extends string
|
|
|
155
153
|
origin?: TOriginInfo<TApi>;
|
|
156
154
|
exchange: TExchangeInfo<TApi, TRes, TSigner, TCustomChain>;
|
|
157
155
|
destination?: TDestinationInfo;
|
|
156
|
+
recipient: string;
|
|
158
157
|
feeCalcAddress: string;
|
|
159
158
|
};
|
|
160
159
|
type TPairs = TLocation[][];
|
|
@@ -199,7 +198,7 @@ type TExecuteRouterPlanOptions<TApi, TRes, TSigner, TCustomChain extends string
|
|
|
199
198
|
};
|
|
200
199
|
type TPreparedExtrinsics<TRes> = {
|
|
201
200
|
toExchangeTx?: TRes;
|
|
202
|
-
|
|
201
|
+
swapTx: TRes;
|
|
203
202
|
isExecute?: boolean;
|
|
204
203
|
toDestTx?: TRes;
|
|
205
204
|
amountOut: bigint;
|
|
@@ -337,4 +336,4 @@ declare const FALLBACK_FEE_CALC_ADDRESS = "5EtHZF4E8QagNCz6naobCkCAUT52SbcEqaXiD
|
|
|
337
336
|
declare const FALLBACK_FEE_CALC_EVM_ADDRESS = "0x1501C1413e4178c38567Ada8945A80351F7B8496";
|
|
338
337
|
|
|
339
338
|
export { DEST_FEE_BUFFER_PCT, FALLBACK_FEE_CALC_ADDRESS, FALLBACK_FEE_CALC_EVM_ADDRESS, FEE_BUFFER_PCT, SwapBuilder, SwapBuilderCore, getExchangeAssets, getExchangeConfig, getExchangePairs, getSupportedAssetsFrom, getSupportedAssetsFromImpl, getSupportedAssetsTo, getSupportedAssetsToImpl, getSupportedFeeAssets, getSupportedFeeAssetsImpl };
|
|
340
|
-
export type { TAdditionalTransferOptions, TAssetsRecord, TBuildFromExchangeTxOptions, TBuildSwapExecuteOverrides, TBuildToExchangeTxOptions, TBuildTransactionsBaseOptions, TBuildTransactionsOptions, TCallDexAmountOutOverrides, TCommonRouterOptions, TDestinationInfo, TDexConfig, TDexConfigBase, TDexConfigStored, TExchangeApiType, TExchangeApiVariant, TExchangeInfo, TExchangeInfoFor, TExecuteRouterPlanOptions, TExtrinsic, TGenericExchangeInfo, TGenericGetAmountOutOptions, TGenericSwapOptions, TGetAmountOutOptions, TGetAmountOutOptionsFor, TGetBestAmountOutBaseOptions, TGetBestAmountOutOptions, TGetBestAmountOutResult, TGetDexConfigApi,
|
|
339
|
+
export type { TAdditionalTransferOptions, TAssetsRecord, TBuildFromExchangeTxOptions, TBuildSwapExecuteOverrides, TBuildToExchangeTxOptions, TBuildTransactionsBaseOptions, TBuildTransactionsOptions, TCallDexAmountOutOverrides, TCommonRouterOptions, TDestinationInfo, TDexConfig, TDexConfigBase, TDexConfigStored, TExchangeApiType, TExchangeApiVariant, TExchangeInfo, TExchangeInfoFor, TExecuteRouterPlanOptions, TExtrinsic, TGenericExchangeInfo, TGenericGetAmountOutOptions, TGenericSwapOptions, TGetAmountOutOptions, TGetAmountOutOptionsFor, TGetBestAmountOutBaseOptions, TGetBestAmountOutOptions, TGetBestAmountOutResult, TGetDexConfigApi, TOriginInfo, TPairs, TPapiExchangeInfo, TPapiGetAmountOutOptions, TPapiSwapOptions, TPjsExchangeInfo, TPjsGetAmountOutOptions, TPjsSwapOptions, TPreparedExtrinsics, TRouterPlan, TSwapAndTransferTransaction, TSwapOptions, TSwapOptionsFor, TSwapResult, TSwapTransaction, TSwapTransformedOptions, TTransaction, TTransferBaseOptions, TTransferOptions, TTransformedOptions };
|