@sodax/dapp-kit 2.2.0-rc.8 → 2.3.0-rc.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.
Files changed (30) hide show
  1. package/README.md +176 -166
  2. package/dist/index.d.ts +313 -30
  3. package/dist/index.mjs +392 -3
  4. package/package.json +5 -5
  5. package/src/hooks/_apiKeyWire.test.ts +10 -0
  6. package/src/hooks/_mutationContract.test.ts +4 -0
  7. package/src/hooks/bridge/index.ts +2 -0
  8. package/src/hooks/bridge/useBridgeApprovalStrategy.test.ts +75 -0
  9. package/src/hooks/bridge/useBridgeApprovalStrategy.ts +53 -0
  10. package/src/hooks/bridge/useBridgeWithApproval.test.ts +73 -0
  11. package/src/hooks/bridge/useBridgeWithApproval.ts +48 -0
  12. package/src/hooks/leverageYield/index.ts +2 -0
  13. package/src/hooks/leverageYield/useLeverageYieldApprovalStrategy.test.ts +82 -0
  14. package/src/hooks/leverageYield/useLeverageYieldApprovalStrategy.ts +55 -0
  15. package/src/hooks/leverageYield/useLeverageYieldVaultSwapWithApproval.test.ts +73 -0
  16. package/src/hooks/leverageYield/useLeverageYieldVaultSwapWithApproval.ts +48 -0
  17. package/src/hooks/shared/useNearStorageGate.ts +10 -4
  18. package/src/hooks/swap/index.ts +3 -0
  19. package/src/hooks/swap/useSwapApprovalStrategy.test.ts +92 -0
  20. package/src/hooks/swap/useSwapApprovalStrategy.ts +54 -0
  21. package/src/hooks/swap/useSwapLifecycle.test.ts +329 -0
  22. package/src/hooks/swap/useSwapLifecycle.ts +212 -0
  23. package/src/hooks/swap/useSwapWithApproval.test.ts +63 -0
  24. package/src/hooks/swap/useSwapWithApproval.ts +45 -0
  25. package/src/hooks/swapsApi/index.ts +1 -0
  26. package/src/hooks/swapsApi/useSwapsApiBroadcastWithApproval.test.ts +331 -0
  27. package/src/hooks/swapsApi/useSwapsApiBroadcastWithApproval.ts +183 -0
  28. package/src/utils/nearStorageGate.ts +4 -1
  29. package/src/utils/swapLifecycle.test.ts +292 -0
  30. package/src/utils/swapLifecycle.ts +183 -0
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions, UseQueryOptions, UseMutationResult, MutateOptions, UseQueryResult, QueryClient, QueryClientConfig } from '@tanstack/react-query';
2
2
  import * as _sodax_sdk from '@sodax/sdk';
3
- import { Result, Sodax, SpokeChainKey, GetEstimateGasReturnType, EstimateGasParams, StellarChainKey, IStellarWalletProvider, INearWalletProvider, GetWalletProviderType, StellarAccountStatus, ActivateStellarAccountResult, IXServiceBase, XToken, EvmHubProvider, IBitcoinWalletProvider, RadfiWalletBalance, IWalletProvider, RadfiUtxo, MoneyMarketBorrowActionParams, TxHashPair, MoneyMarketRepayActionParams, MoneyMarketSupplyActionParams, MoneyMarketWithdrawActionParams, UserReserveData, AggregatedReserveData, BaseCurrencyInfo, ReservesDataHumanized, Address as Address$1, MoneyMarketParams, MoneyMarketApproveActionParams, TxReturnType, Erc20Token, ChainKey, ReserveDataHumanized, FormatReserveUSDResponse, FormatUserSummaryResponse, EmodeDataHumanized, SolverIntentQuoteRequest, SwapActionParams, SwapResponse, SolverIntentStatusResponse, SolverErrorResponse, Hex, DetailedSwapStatus, DetailedStatusError, CreateIntentParams, CreateLimitOrderParams, Intent, LimitOrderActionParams, IntentResponse, UserIntentsResponse, OrderbookResponse, MoneyMarketPosition, MoneyMarketAsset, MoneyMarketAssetBorrowers, MoneyMarketAssetSuppliers, MoneyMarketBorrowers, OracleMarketsResponse, OracleCandlesResponse, OracleCandleInterval, GetSwapTokensResponseV2, RequestOverrideConfig, GetSwapTokensByChainResponseV2, QuoteResponseV2, QuoteRequestV2, QuoteQueryV2, DeadlineResponseV2, DeadlineQueryV2, AllowanceCheckResponseV2, CreateIntentParamsV2, ApproveResponseV2, RawTxReturnType, CreateIntentResponseV2, SubmitIntentRequestV2, SubmitIntentResponseV2, StatusResponseV2, SwapIntentStatusCodeV2, CancelIntentRequestV2, CancelIntentResponseV2, IntentHashResponseV2, IntentRequestV2, IntentPacketResponseV2, IntentPacketRequestV2, IntentExtraDataResponseV2, IntentExtraDataRequestV2, IntentStateV2, GetIntentResponseV2, CreateLimitOrderParamsV2, CreateLimitOrderResponseV2, GasEstimateResponseV2, GasEstimateRequestV2, FeeResponseV2, SubmitTxRequestV2, SubmitTxResponseV2, SubmitTxStatusResponseV2, DetailedBridgeStatus, BridgeDetailedStatusError, BridgeParams, CreateBridgeIntentParams, BridgeLimit, BridgeAllowanceCheckResponseV2, CreateBridgeIntentParamsV2, BridgeApproveResponseV2, BridgeableAmountResponseV2, BridgeQuoteRequestV2, CreateBridgeIntentResponseV2, BridgeFeeResponseV2, BridgeFeeRequestV2, BridgeableCheckResponseV2, BridgeSubmitTxRequestV2, BridgeSubmitTxResponseV2, BridgeSubmitTxStatusResponseV2, GetBridgeTokensResponseV2, GetBridgeTokensByChainResponseV2, StakeAction, StakeParams, UnstakeAction, ClaimAction, CancelUnstakeAction, StakingInfo, UnstakingInfo, UnstakeRequestWithPenalty, StakingConfig, InstantUnstakeAction, UnstakeParams, InstantUnstakeParams, PartnerFeeClaimAssetBalance, AutoSwapPreferences, FeeTokenApproveParams, FeeTokenApproveAction, HubChainKey, SetSwapPreferenceAction, PartnerFeeClaimSwapAction, IntentAutoSwapResult, PartnerFeeClaimCancelAction, GetUserIntentParams, HubAssetBalance, WithdrawHubAssetAction, IcxMigrateAction, IcxRevertMigrationAction, UnifiedBnUSDMigrateAction, BalnMigrateAction, MigrationAction, IcxMigrateParams, IcxCreateRevertMigrationParams, UnifiedBnUSDMigrateParams, BalnMigrateParams, PoolKey, PoolData, ClPositionInfo, AssetDepositAction, AssetWithdrawAction, CreateAssetDepositParams, ClSupplyParams, ClIncreaseLiquidityParams, ClLiquidityDecreaseLiquidityAction, ClDecreaseLiquidityParams, CreateAssetWithdrawParams, PoolSpokeAssets, DestinationParamsType, ClLiquidityClaimRewardsAction, LeverageYieldQuoteParams, LeverageYieldEffectiveApr, LeverageYieldPosition, LeverageYieldSwapDepositParams, LeverageYieldSwapPayload, SolverExecutionRequest, SolverExecutionResponse, DetailedLeverageYieldStatus, LeverageYieldDetailedStatusError, VaultSwapActionParams, VaultSwapResponse, LeverageYieldSwapWithdrawParams, LeveragePositionAccount, LeveragePositionCollateral, LeveragePosition, LeveragePositionPendingState, SpokeExecActionParams, OpenPositionParams, OpenPositionFromDebtTokenParams, LeveragePositionIntentResult, PositionOperationParams, PositionBatchCall, PositionDirectCall, GetLeverageVaultsResponseV2, GetLeverageVaultResponseV2, VaultAssetResponseV2, LeverageYieldPositionV2, LeverageYieldAprV2, LeverageYieldEffectiveAprV2, LeverageYieldLsdAprV2, VaultTotalAssetsResponseV2, PreviewDepositResponseV2, PreviewWithdrawResponseV2, PreviewRedeemResponseV2, ShareBalanceResponseV2, MaxWithdrawResponseV2, LeverageYieldDepositQuoteRequestV2, LeverageYieldWithdrawQuoteRequestV2, CreateDepositIntentParamsV2, CreateWithdrawIntentParamsV2, LeverageYieldSubmitTxRequestV2, ActivateStellarAccountParams, StellarSponsorConfig, SodaxOptions } from '@sodax/sdk';
3
+ import { Result, Sodax, SpokeChainKey, GetEstimateGasReturnType, EstimateGasParams, StellarChainKey, IStellarWalletProvider, INearWalletProvider, GetWalletProviderType, StellarAccountStatus, ActivateStellarAccountResult, IXServiceBase, XToken, EvmHubProvider, IBitcoinWalletProvider, RadfiWalletBalance, IWalletProvider, RadfiUtxo, MoneyMarketBorrowActionParams, TxHashPair, MoneyMarketRepayActionParams, MoneyMarketSupplyActionParams, MoneyMarketWithdrawActionParams, UserReserveData, AggregatedReserveData, BaseCurrencyInfo, ReservesDataHumanized, Address as Address$1, MoneyMarketParams, MoneyMarketApproveActionParams, TxReturnType, Erc20Token, ChainKey, ReserveDataHumanized, FormatReserveUSDResponse, FormatUserSummaryResponse, EmodeDataHumanized, SolverIntentQuoteRequest, SwapActionParams, SwapResponse, SolverIntentStatusResponse, SolverErrorResponse, Hex, DetailedSwapStatus, DetailedStatusError, CreateIntentParams, CreateLimitOrderParams, SwapApprovalStrategy, SwapWithApprovalParams, SwapWithApprovalResponse, SwapExtras, Intent, LimitOrderActionParams, IntentResponse, UserIntentsResponse, OrderbookResponse, MoneyMarketPosition, MoneyMarketAsset, MoneyMarketAssetBorrowers, MoneyMarketAssetSuppliers, MoneyMarketBorrowers, OracleMarketsResponse, OracleCandlesResponse, OracleCandleInterval, GetSwapTokensResponseV2, RequestOverrideConfig, GetSwapTokensByChainResponseV2, QuoteResponseV2, QuoteRequestV2, QuoteQueryV2, DeadlineResponseV2, DeadlineQueryV2, AllowanceCheckResponseV2, CreateIntentParamsV2, ApproveResponseV2, RawTxReturnType, Hash, ApprovalStrategy, ApprovalOptions, EvmRawTransaction, IEvmWalletProvider, CreateIntentResponseV2, SubmitIntentRequestV2, SubmitIntentResponseV2, StatusResponseV2, SwapIntentStatusCodeV2, CancelIntentRequestV2, CancelIntentResponseV2, IntentHashResponseV2, IntentRequestV2, IntentPacketResponseV2, IntentPacketRequestV2, IntentExtraDataResponseV2, IntentExtraDataRequestV2, IntentStateV2, GetIntentResponseV2, CreateLimitOrderParamsV2, CreateLimitOrderResponseV2, GasEstimateResponseV2, GasEstimateRequestV2, FeeResponseV2, SubmitTxRequestV2, SubmitTxResponseV2, SubmitTxStatusResponseV2, DetailedBridgeStatus, BridgeDetailedStatusError, BridgeParams, CreateBridgeIntentParams, BridgeWithApprovalParams, BridgeWithApprovalResponse, BridgeLimit, BridgeAllowanceCheckResponseV2, CreateBridgeIntentParamsV2, BridgeApproveResponseV2, BridgeableAmountResponseV2, BridgeQuoteRequestV2, CreateBridgeIntentResponseV2, BridgeFeeResponseV2, BridgeFeeRequestV2, BridgeableCheckResponseV2, BridgeSubmitTxRequestV2, BridgeSubmitTxResponseV2, BridgeSubmitTxStatusResponseV2, GetBridgeTokensResponseV2, GetBridgeTokensByChainResponseV2, StakeAction, StakeParams, UnstakeAction, ClaimAction, CancelUnstakeAction, StakingInfo, UnstakingInfo, UnstakeRequestWithPenalty, StakingConfig, InstantUnstakeAction, UnstakeParams, InstantUnstakeParams, PartnerFeeClaimAssetBalance, AutoSwapPreferences, FeeTokenApproveParams, FeeTokenApproveAction, HubChainKey, SetSwapPreferenceAction, PartnerFeeClaimSwapAction, IntentAutoSwapResult, PartnerFeeClaimCancelAction, GetUserIntentParams, HubAssetBalance, WithdrawHubAssetAction, IcxMigrateAction, IcxRevertMigrationAction, UnifiedBnUSDMigrateAction, BalnMigrateAction, MigrationAction, IcxMigrateParams, IcxCreateRevertMigrationParams, UnifiedBnUSDMigrateParams, BalnMigrateParams, PoolKey, PoolData, ClPositionInfo, AssetDepositAction, AssetWithdrawAction, CreateAssetDepositParams, ClSupplyParams, ClIncreaseLiquidityParams, ClLiquidityDecreaseLiquidityAction, ClDecreaseLiquidityParams, CreateAssetWithdrawParams, PoolSpokeAssets, DestinationParamsType, ClLiquidityClaimRewardsAction, LeverageYieldQuoteParams, LeverageYieldEffectiveApr, LeverageYieldPosition, LeverageYieldSwapDepositParams, LeverageYieldSwapPayload, SolverExecutionRequest, SolverExecutionResponse, DetailedLeverageYieldStatus, LeverageYieldDetailedStatusError, VaultSwapActionParams, VaultSwapResponse, VaultSwapWithApprovalParams, VaultSwapWithApprovalResponse, LeverageYieldSwapWithdrawParams, LeveragePositionAccount, LeveragePositionCollateral, LeveragePosition, LeveragePositionPendingState, SpokeExecActionParams, OpenPositionParams, OpenPositionFromDebtTokenParams, LeveragePositionIntentResult, PositionOperationParams, PositionBatchCall, PositionDirectCall, GetLeverageVaultsResponseV2, GetLeverageVaultResponseV2, VaultAssetResponseV2, LeverageYieldPositionV2, LeverageYieldAprV2, LeverageYieldEffectiveAprV2, LeverageYieldLsdAprV2, VaultTotalAssetsResponseV2, PreviewDepositResponseV2, PreviewWithdrawResponseV2, PreviewRedeemResponseV2, ShareBalanceResponseV2, MaxWithdrawResponseV2, LeverageYieldDepositQuoteRequestV2, LeverageYieldWithdrawQuoteRequestV2, CreateDepositIntentParamsV2, CreateWithdrawIntentParamsV2, LeverageYieldSubmitTxRequestV2, ActivateStellarAccountParams, StellarSponsorConfig, SodaxOptions } from '@sodax/sdk';
4
4
  export * from '@sodax/sdk';
5
5
  import { Address } from 'viem';
6
6
  import { ReactNode, ReactElement } from 'react';
@@ -271,8 +271,8 @@ type UseRegisterNearStorageVars = {
271
271
  declare function useRegisterNearStorage({ mutationOptions, }?: MutationHookParams<string, UseRegisterNearStorageVars>): SafeUseMutationResult<string, Error, UseRegisterNearStorageVars>;
272
272
 
273
273
  interface UseNearStorageGateParams {
274
- /** Destination chain the token is delivered on. */
275
- dstChainKey: SpokeChainKey;
274
+ /** Destination chain the token is delivered on; `undefined` (not chosen yet) leaves the gate inert. */
275
+ dstChainKey: SpokeChainKey | undefined;
276
276
  /** Destination token address the recipient must be registered for. */
277
277
  token: string | undefined;
278
278
  /** Recipient NEAR account id. */
@@ -289,6 +289,10 @@ interface NearStorageGate {
289
289
  blocksAction: boolean;
290
290
  /** The registration-status query is actively fetching. */
291
291
  isChecking: boolean;
292
+ /** Destination is NEAR and the registration check failed, so whether the recipient can receive is unknown. */
293
+ checkFailed: boolean;
294
+ /** Re-run the registration check. */
295
+ retry: () => void;
292
296
  /** A `storage_deposit` tx is in flight. */
293
297
  isRegistering: boolean;
294
298
  /** Submit the `storage_deposit`; resolves to the SDK `Result` or `undefined` if inputs are missing. */
@@ -959,6 +963,179 @@ type UseSwapApproveVars<K extends SpokeChainKey = SpokeChainKey> = {
959
963
  */
960
964
  declare function useSwapApprove<K extends SpokeChainKey = SpokeChainKey>({ mutationOptions, }?: MutationHookParams<TxReturnType<K, false>, UseSwapApproveVars<K>>): SafeUseMutationResult<TxReturnType<K, false>, Error, UseSwapApproveVars<K>>;
961
965
 
966
+ type UseSwapApprovalStrategyParams<K extends SpokeChainKey = SpokeChainKey> = ReadHookParams<SwapApprovalStrategy, {
967
+ payload: CreateIntentParams<K> | undefined;
968
+ walletProvider: GetWalletProviderType<K> | undefined;
969
+ /** `false` keeps a wallet that would first ask to upgrade the account (EIP-5792 `'ready'`) off the batch path. Defaults to `true`. */
970
+ allowAccountUpgrade?: boolean;
971
+ }>;
972
+ /**
973
+ * Which approval path {@link useSwapWithApproval} would take for this swap: `'not-required'`,
974
+ * `'atomic-batch'` (approve + swap in one EIP-5792 signature) or `'sequential'` (approve, then
975
+ * swap). Use it to label the swap button before the user clicks. Pass the same `allowAccountUpgrade`
976
+ * you give the swap.
977
+ *
978
+ * Not polled: `useSwapWithApproval` invalidates it after a successful swap, and the swap itself
979
+ * re-reads the strategy at execution, so a stale label never picks the wrong path.
980
+ */
981
+ declare function useSwapApprovalStrategy<K extends SpokeChainKey = SpokeChainKey>({ params, queryOptions, }?: UseSwapApprovalStrategyParams<K>): UseQueryResult<SwapApprovalStrategy, Error>;
982
+
983
+ /**
984
+ * Mutation variables for {@link useSwapWithApproval}: `useSwap`'s, plus `allowAccountUpgrade`, `resumeBatchId` and
985
+ * `resumeBatchCallCount`.
986
+ */
987
+ type UseSwapWithApprovalVars<K extends SpokeChainKey = SpokeChainKey> = Omit<SwapWithApprovalParams<K>, 'raw'>;
988
+ /**
989
+ * `useSwap` with the source-token approval folded in (`sodax.swaps.swapWithApproval`): no approval
990
+ * when the allowance suffices, approve + swap as one EIP-5792 batch (one signature) on a
991
+ * batch-capable EVM wallet, otherwise approve, wait for it, then swap. `data.approvalStrategy`
992
+ * says which ran; {@link useSwapApprovalStrategy} predicts it.
993
+ *
994
+ * Throws on SDK failure so React Query's error model engages. On success invalidates balances and
995
+ * the swap allowance and approval-strategy queries.
996
+ */
997
+ declare function useSwapWithApproval<K extends SpokeChainKey = SpokeChainKey>({ mutationOptions, }?: MutationHookParams<SwapWithApprovalResponse, UseSwapWithApprovalVars<K>>): SafeUseMutationResult<SwapWithApprovalResponse, Error, UseSwapWithApprovalVars<K>>;
998
+
999
+ /** The subset of a `useNearStorageCheck` result the gate reads. A full `UseQueryResult<boolean>` satisfies it. */
1000
+ type NearStorageCheckResult = Pick<UseQueryResult<boolean>, 'isLoading' | 'data'>;
1001
+ /** UI gate state for NEP-141 storage registration on NEAR. */
1002
+ interface NearStorageGateState {
1003
+ /** Destination is NEAR — the only chain with a NEP-141 storage-registration prerequisite. */
1004
+ isNear: boolean;
1005
+ /** Show the "register storage" action: the check resolved and the recipient is not registered. */
1006
+ needsRegistration: boolean;
1007
+ /**
1008
+ * Keep the downstream action (swap/bridge/borrow/withdraw) disabled: the NEAR gate is unresolved
1009
+ * (still checking) or unmet (needs registration).
1010
+ */
1011
+ blocksAction: boolean;
1012
+ }
1013
+ /**
1014
+ * Derives the NEP-141 storage-registration UI gate state for a flow that delivers a token to a user
1015
+ * on NEAR — NEAR's analogue of the Stellar trustline gate. Unwrapped (no hook): pass the destination
1016
+ * `chainKey` and the `useNearStorageCheck` result; the util owns the `=== NEAR` test and reads
1017
+ * `isLoading` (NOT `isPending`, which stays `true` for a disabled query and would block forever).
1018
+ *
1019
+ * `blocksAction` deliberately also covers the in-flight check window so the action can't be
1020
+ * triggered before registration status is known; `needsRegistration` only flips once the check has
1021
+ * resolved (so the "register" button isn't shown speculatively while still checking).
1022
+ */
1023
+ declare function resolveNearStorageGate(chainKey: SpokeChainKey | undefined, check: NearStorageCheckResult): NearStorageGateState;
1024
+
1025
+ /** A prerequisite the user must resolve before the swap can go out. */
1026
+ type SwapSetupReason = 'stellarActivation' | 'stellarFunding' | 'stellarTrustline' | 'stellarCheckFailed' | 'nearStorage' | 'nearStorageCheckFailed' | 'external';
1027
+ /**
1028
+ * Where a swap form stands, discriminated on `kind`. `useSwapLifecycle`'s `next()` acts on it.
1029
+ *
1030
+ * - `checking` — waiting before anything can be done: a gate or the approval strategy is still reading, or a
1031
+ * setup tx (activation, trustline, NEAR storage) is in flight or its check is refreshing.
1032
+ * - `submitting` — the swap call is in flight: signing, and on the default backend path settlement too.
1033
+ * - `pending` — the source tx is on-chain and its status is being read. `error` is set when the swap call
1034
+ * failed after broadcast, or when the status read cannot recover (a rejected API key); the swap may
1035
+ * still complete either way. The read can also stop polling without an error (after its budget of
1036
+ * ambiguous reads), so keep `reset()` reachable here.
1037
+ * - `unconfirmed` — the wallet accepted an approve + swap batch that was not confirmed in time. It may
1038
+ * still land, so `next()` never sends it again: it waits for that batch and finishes the swap once it
1039
+ * lands. `reset()` stops tracking it.
1040
+ */
1041
+ type SwapLifecycleState = {
1042
+ kind: 'idle';
1043
+ } | {
1044
+ kind: 'checking';
1045
+ } | {
1046
+ kind: 'needsChainSwitch';
1047
+ } | {
1048
+ kind: 'needsSetup';
1049
+ reason: SwapSetupReason;
1050
+ } | {
1051
+ kind: 'ready';
1052
+ approvalStrategy: SwapApprovalStrategy;
1053
+ } | {
1054
+ kind: 'submitting';
1055
+ } | {
1056
+ kind: 'pending';
1057
+ srcChainKey: SpokeChainKey;
1058
+ srcTxHash: string;
1059
+ error?: Error;
1060
+ } | {
1061
+ kind: 'unconfirmed';
1062
+ batchId: string;
1063
+ callCount?: number;
1064
+ error: Error;
1065
+ } | {
1066
+ kind: 'settled';
1067
+ srcChainKey: SpokeChainKey;
1068
+ srcTxHash: string;
1069
+ fillTxHash?: Hex;
1070
+ } | {
1071
+ kind: 'failed';
1072
+ error: Error;
1073
+ srcChainKey?: SpokeChainKey;
1074
+ srcTxHash?: string;
1075
+ };
1076
+
1077
+ type UseSwapLifecycleParams<K extends SpokeChainKey = SpokeChainKey> = {
1078
+ /**
1079
+ * The swap to run. Changing it starts a new lifecycle once the current swap is done; one that may still
1080
+ * land (failed after broadcast, or an unconfirmed batch) holds until `reset()`. A `0n` `minOutputAmount`
1081
+ * accepts any fill, so an app should not send one.
1082
+ */
1083
+ intentParams: CreateIntentParams<K> | undefined;
1084
+ srcWalletProvider: GetWalletProviderType<K> | undefined;
1085
+ /**
1086
+ * Destination wallet, for the Stellar and NEAR setup actions. The gates check `intentParams.dstAddress`,
1087
+ * the account the swap pays, so this wallet must control it for those actions to clear them.
1088
+ */
1089
+ dstWalletProvider: GetWalletProviderType<SpokeChainKey> | undefined;
1090
+ /** Source-chain switching, e.g. `useEvmSwitchChain` from `@sodax/wallet-sdk-react`. */
1091
+ chainSwitch?: {
1092
+ isWrongChain: boolean;
1093
+ switchChain: () => void | Promise<void>;
1094
+ };
1095
+ /** An app-owned prerequisite that must hold before swapping (e.g. a Bitcoin trading-wallet setup). */
1096
+ externalBlocked?: boolean;
1097
+ /**
1098
+ * `false` approves separately instead of asking a `'ready'` wallet to upgrade the account (e.g. after
1099
+ * the user declined: `USER_REJECTED` with `context.reason === ACCOUNT_UPGRADE_DECLINED`). Defaults to `true`.
1100
+ */
1101
+ allowAccountUpgrade?: boolean;
1102
+ extras?: SwapExtras<K>;
1103
+ timeout?: number;
1104
+ mutationOptions?: MutationHookOptions<SwapWithApprovalResponse, UseSwapWithApprovalVars<K>>;
1105
+ };
1106
+ type SwapLifecycle<K extends SpokeChainKey = SpokeChainKey> = {
1107
+ state: SwapLifecycleState;
1108
+ /** The error behind `failed`, `unconfirmed` or a `pending` with one. Setup-action failures come back from `next()`. */
1109
+ error: Error | undefined;
1110
+ /**
1111
+ * Does what the current state needs: switch chain, resolve a setup step, swap, re-check an `unconfirmed`
1112
+ * batch (finishing the swap once it lands, never sending it again), or start over after a settled or
1113
+ * failed swap. Does nothing while waiting or while a previous call is still running.
1114
+ */
1115
+ next: () => Promise<Result<unknown> | undefined>;
1116
+ /**
1117
+ * Stops tracking the current swap and re-reads the approval strategy. Cancels nothing on-chain; a no-op
1118
+ * while the swap call is still in flight.
1119
+ */
1120
+ reset: () => void;
1121
+ approvalStrategy: UseQueryResult<SwapApprovalStrategy, Error>;
1122
+ swap: SafeUseMutationResult<SwapWithApprovalResponse, Error, UseSwapWithApprovalVars<K>>;
1123
+ status: UseQueryResult<UseDetailedStatusResult>;
1124
+ stellar: StellarGate;
1125
+ nearStorage: NearStorageGate;
1126
+ };
1127
+ /**
1128
+ * One hook for a swap form: approval strategy, destination prerequisites (Stellar account and
1129
+ * trustline, NEAR storage), source-chain switching, the swap itself (`useSwapWithApproval` — one
1130
+ * signature on an EIP-5792 wallet) and its status (`useDetailedStatus`), as a single discriminated
1131
+ * `state` with one `next()` action. Render from `state.kind`; wire the button to `next()`.
1132
+ *
1133
+ * Headless and additive: the granular hooks are unchanged, and each one this composes is returned.
1134
+ * Wallet-layer concerns (chain switching, app-owned setup) are passed in, because dapp-kit does not
1135
+ * depend on the wallet packages.
1136
+ */
1137
+ declare function useSwapLifecycle<K extends SpokeChainKey = SpokeChainKey>({ intentParams, srcWalletProvider, dstWalletProvider, chainSwitch, externalBlocked, allowAccountUpgrade, extras, timeout, mutationOptions, }: UseSwapLifecycleParams<K>): SwapLifecycle<K>;
1138
+
962
1139
  type CancelIntentParams<K extends SpokeChainKey = SpokeChainKey> = {
963
1140
  srcChainKey: K;
964
1141
  walletProvider: GetWalletProviderType<K>;
@@ -1337,6 +1514,72 @@ type UseSwapsApiApproveAndBroadcastVars<K extends SpokeChainKey = SpokeChainKey>
1337
1514
  */
1338
1515
  declare const useSwapsApiApproveAndBroadcast: <K extends SpokeChainKey = "0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "injective-1" | "sonic" | "0x1.icon" | "sui" | "0xa.optimism" | "0x89.polygon" | "solana" | "stellar" | "hyper" | "lightlink" | "near" | "ethereum" | "bitcoin" | "redbelly" | "0x2019.kaia" | "stacks" | "hedera" | "robinhood">({ mutationOptions, }?: MutationHookParams<SwapsApiApprovalHashes, UseSwapsApiApproveAndBroadcastVars<K>>) => SafeUseMutationResult<SwapsApiApprovalHashes, Error, UseSwapsApiApproveAndBroadcastVars<K>>;
1339
1516
 
1517
+ type UseSwapsApiBroadcastWithApprovalVars = ApprovalOptions & {
1518
+ /** The swap's create-intent params — the same body `/swaps/intents` built `intentTx` from. */
1519
+ body: CreateIntentParamsV2;
1520
+ /** The unsigned source transaction `/swaps/intents` returned for `body`. */
1521
+ intentTx: EvmRawTransaction;
1522
+ walletProvider: IEvmWalletProvider;
1523
+ apiConfig?: RequestOverrideConfig;
1524
+ /** Progress of a separate approval, hashes included. A batch is one prompt and reports nothing. */
1525
+ onProgress?: ApprovalProgressListener;
1526
+ /**
1527
+ * Called with the batch id and its call count once the wallet accepts the batch, before the wait.
1528
+ * Persist both: if the batch comes back unconfirmed, `confirmApprovalBatch` with them is how to find
1529
+ * the deposit again instead of sending a second one.
1530
+ */
1531
+ onBatchSent?: (batchId: string, callCount: number) => void;
1532
+ /**
1533
+ * What happens when there is no batch to send: the wallet refuses it before signing, or cannot batch
1534
+ * (the Sonic hub never does). By default the hook rejects with a refusal (`isAtomicBatchRefusal`) and
1535
+ * sends nothing: approve with `useSwapsApiApproveAndBroadcast`, then create the intent again and sign
1536
+ * that one. `true` approves and then sends this `intentTx` instead — built before the approval, so its
1537
+ * deadline and quote must outlast the approval's wait.
1538
+ */
1539
+ fallbackOnRefusal?: boolean;
1540
+ };
1541
+ type SwapsApiBroadcastWithApprovalResult = {
1542
+ /** The source transaction carrying the deposit — what `/swaps/submit-tx` takes as `txHash`. */
1543
+ txHash: Hash;
1544
+ approvalStrategy: Exclude<ApprovalStrategy, 'not-required'>;
1545
+ /** The separate approval's hashes, when it ran on its own (`'sequential'`). */
1546
+ approval?: ApprovalHashes;
1547
+ };
1548
+ /**
1549
+ * React hook that broadcasts a swaps-API intent transaction whose source-token allowance is short,
1550
+ * with the approval folded in: on an EIP-5792 wallet, the approval and `intentTx` go out as **one
1551
+ * atomic batch — one signature**.
1552
+ *
1553
+ * Call it when `/swaps/allowance/check` says the allowance is short and the source is an EVM chain —
1554
+ * it always approves, so with enough allowance sign `intentTx` directly instead. It stops at the
1555
+ * broadcast: persist `txHash` and then call `/swaps/submit-tx` as before.
1556
+ *
1557
+ * The batch rules match the SDK's `swapWithApproval`; the Sonic hub never batches. With no batch to
1558
+ * send — the wallet cannot batch, or refuses the batch before signing — it rejects with a refusal
1559
+ * (`isAtomicBatchRefusal`) and sends nothing: approve with `useSwapsApiApproveAndBroadcast`, create
1560
+ * the intent again and sign that. `fallbackOnRefusal: true` approves (via {@link runApprovalPlan}) and
1561
+ * sends this `intentTx` instead. A batch the user saw is never resent:
1562
+ * - rejected → `SodaxError` `USER_REJECTED`, with `context.reason: ACCOUNT_UPGRADE_DECLINED` when the
1563
+ * user declined the account upgrade — retry with `allowAccountUpgrade: false`;
1564
+ * - never included or fully reverted → `INTENT_CREATION_FAILED`, `context.reason: 'atomic-batch-failed'`;
1565
+ * - sent but not confirmed → `TX_VERIFICATION_FAILED`, `context.reason: ATOMIC_BATCH_UNCONFIRMED`. It
1566
+ * may still land: do not let the user swap again. Resume it with `confirmApprovalBatch` and the
1567
+ * batch id `onBatchSent` reported.
1568
+ *
1569
+ * With `fallbackOnRefusal: true`, errors from the separate approval or intent send are the wallet's
1570
+ * own, as with `useSwapsApiApproveAndBroadcast`.
1571
+ *
1572
+ * @example
1573
+ * const { mutateAsyncSafe: broadcast } = useSwapsApiBroadcastWithApproval();
1574
+ * const created = await sodax.api.swaps.createIntent(body);
1575
+ * const result = await broadcast({ body, intentTx: created.value.tx as EvmRawTransaction, walletProvider });
1576
+ * if (result.ok) await submitTx({ txHash: result.value.txHash, ... });
1577
+ * else if (isAtomicBatchRefusal(result.error)) {
1578
+ * // Nothing was sent: approve, create the intent again (fresh deadline), sign it, then submit-tx.
1579
+ * }
1580
+ */
1581
+ declare const useSwapsApiBroadcastWithApproval: ({ mutationOptions, }?: MutationHookParams<SwapsApiBroadcastWithApprovalResult, UseSwapsApiBroadcastWithApprovalVars>) => SafeUseMutationResult<SwapsApiBroadcastWithApprovalResult, Error, UseSwapsApiBroadcastWithApprovalVars>;
1582
+
1340
1583
  /**
1341
1584
  * Mutation variables for {@link useSwapsApiCreateIntent}. The per-request `apiConfig` override
1342
1585
  * belongs here rather than at the hook level.
@@ -1688,6 +1931,38 @@ type UseBridgeApproveVars<K extends SpokeChainKey = SpokeChainKey> = Omit<Bridge
1688
1931
  */
1689
1932
  declare function useBridgeApprove<K extends SpokeChainKey = SpokeChainKey>({ mutationOptions, }?: MutationHookParams<TxReturnType<K, false>, UseBridgeApproveVars<K>>): SafeUseMutationResult<TxReturnType<K, false>, Error, UseBridgeApproveVars<K>>;
1690
1933
 
1934
+ type UseBridgeApprovalStrategyParams<K extends SpokeChainKey = SpokeChainKey> = ReadHookParams<ApprovalStrategy, {
1935
+ payload: CreateBridgeIntentParams<K> | undefined;
1936
+ walletProvider: GetWalletProviderType<K> | undefined;
1937
+ /** `false` keeps a wallet that would first ask to upgrade the account (EIP-5792 `'ready'`) off the batch path. Defaults to `true`. */
1938
+ allowAccountUpgrade?: boolean;
1939
+ }>;
1940
+ /**
1941
+ * Which approval path {@link useBridgeWithApproval} would take for this bridge: `'not-required'`,
1942
+ * `'atomic-batch'` (approve + deposit in one EIP-5792 signature) or `'sequential'` (approve, then
1943
+ * bridge). Use it to label the bridge button. Pass the same `allowAccountUpgrade` you give the bridge.
1944
+ *
1945
+ * Not polled: `useBridgeWithApproval` invalidates it after a successful bridge, and the bridge
1946
+ * re-reads the strategy at execution, so a stale label never picks the wrong path.
1947
+ */
1948
+ declare function useBridgeApprovalStrategy<K extends SpokeChainKey = SpokeChainKey>({ params, queryOptions, }?: UseBridgeApprovalStrategyParams<K>): UseQueryResult<ApprovalStrategy, Error>;
1949
+
1950
+ /**
1951
+ * Mutation variables for {@link useBridgeWithApproval}: `useBridge`'s, plus `allowAccountUpgrade`, `resumeBatchId` and
1952
+ * `resumeBatchCallCount`.
1953
+ */
1954
+ type UseBridgeWithApprovalVars<K extends SpokeChainKey = SpokeChainKey> = Omit<BridgeWithApprovalParams<K>, 'raw'>;
1955
+ /**
1956
+ * `useBridge` with the source-token approval folded in (`sodax.bridge.bridgeWithApproval`): no approval
1957
+ * when the allowance suffices, approve + deposit as one EIP-5792 batch (one signature) on a
1958
+ * batch-capable EVM wallet, otherwise approve, wait for it, then bridge. `data.approvalStrategy`
1959
+ * says which ran; {@link useBridgeApprovalStrategy} predicts it.
1960
+ *
1961
+ * Throws on SDK failure so React Query's error model engages. On success invalidates balances and
1962
+ * the bridge allowance and approval-strategy queries.
1963
+ */
1964
+ declare function useBridgeWithApproval<K extends SpokeChainKey = SpokeChainKey>({ mutationOptions, }?: MutationHookParams<BridgeWithApprovalResponse, UseBridgeWithApprovalVars<K>>): SafeUseMutationResult<BridgeWithApprovalResponse, Error, UseBridgeWithApprovalVars<K>>;
1965
+
1691
1966
  type UseGetBridgeableAmountParams = ReadHookParams<BridgeLimit, {
1692
1967
  from: XToken | undefined;
1693
1968
  to: XToken | undefined;
@@ -2906,6 +3181,40 @@ type UseLeverageYieldVaultSwapVars<K extends SpokeChainKey = SpokeChainKey> = Om
2906
3181
  */
2907
3182
  declare function useLeverageYieldVaultSwap<K extends SpokeChainKey = SpokeChainKey>({ mutationOptions, }?: MutationHookParams<VaultSwapResponse, UseLeverageYieldVaultSwapVars<K>>): SafeUseMutationResult<VaultSwapResponse, Error, UseLeverageYieldVaultSwapVars<K>>;
2908
3183
 
3184
+ /**
3185
+ * Mutation variables for {@link useLeverageYieldVaultSwapWithApproval}: `useLeverageYieldVaultSwap`'s, plus
3186
+ * `allowAccountUpgrade`, `resumeBatchId` and `resumeBatchCallCount`.
3187
+ */
3188
+ type UseLeverageYieldVaultSwapWithApprovalVars<K extends SpokeChainKey = SpokeChainKey> = Omit<VaultSwapWithApprovalParams<K>, 'raw'>;
3189
+ /**
3190
+ * `useLeverageYieldVaultSwap` with the deposit's source-token approval folded in
3191
+ * (`sodax.leverageYield.vaultSwapWithApproval`): approve + deposit as one EIP-5792 batch (one
3192
+ * signature) on a batch-capable EVM wallet, otherwise approve, wait for it, then deposit. A withdraw
3193
+ * (`hubWalletSwap`) needs no approval and runs as `useLeverageYieldVaultSwap` does.
3194
+ * `data.approvalStrategy` says which path ran; {@link useLeverageYieldApprovalStrategy} predicts it.
3195
+ *
3196
+ * Throws on SDK failure so React Query's error model engages. On success invalidates balances, the
3197
+ * deposit allowance (read through `useSwapAllowance`) and the approval-strategy query.
3198
+ */
3199
+ declare function useLeverageYieldVaultSwapWithApproval<K extends SpokeChainKey = SpokeChainKey>({ mutationOptions, }?: MutationHookParams<VaultSwapWithApprovalResponse, UseLeverageYieldVaultSwapWithApprovalVars<K>>): SafeUseMutationResult<VaultSwapWithApprovalResponse, Error, UseLeverageYieldVaultSwapWithApprovalVars<K>>;
3200
+
3201
+ type UseLeverageYieldApprovalStrategyParams<K extends SpokeChainKey = SpokeChainKey> = ReadHookParams<ApprovalStrategy, {
3202
+ /** The payload `useLeverageYieldDeposit` / `useLeverageYieldWithdraw` built. */
3203
+ payload: LeverageYieldSwapPayload | undefined;
3204
+ walletProvider: GetWalletProviderType<K> | undefined;
3205
+ /** `false` keeps a wallet that would first ask to upgrade the account (EIP-5792 `'ready'`) off the batch path. Defaults to `true`. */
3206
+ allowAccountUpgrade?: boolean;
3207
+ }>;
3208
+ /**
3209
+ * Which approval path {@link useLeverageYieldVaultSwapWithApproval} would take: `'not-required'`
3210
+ * (always for a withdraw), `'atomic-batch'` (approve + deposit in one EIP-5792 signature) or
3211
+ * `'sequential'` (approve, then deposit). Use it to label the deposit button. Pass the same
3212
+ * `allowAccountUpgrade` you give the vault swap.
3213
+ *
3214
+ * Not polled: the vault swap invalidates it on success and re-reads the strategy at execution.
3215
+ */
3216
+ declare function useLeverageYieldApprovalStrategy<K extends SpokeChainKey = SpokeChainKey>({ params, queryOptions, }?: UseLeverageYieldApprovalStrategyParams<K>): UseQueryResult<ApprovalStrategy, Error>;
3217
+
2909
3218
  /** Mutation variables for {@link useLeverageYieldWithdraw} — the swap-style withdraw inputs. */
2910
3219
  type UseLeverageYieldWithdrawVars = LeverageYieldSwapWithdrawParams;
2911
3220
  /**
@@ -3823,30 +4132,4 @@ type CreateSodaxQueryClientOptions = {
3823
4132
  */
3824
4133
  declare function createSodaxQueryClient({ onMutationError, config, }?: CreateSodaxQueryClientOptions): QueryClient;
3825
4134
 
3826
- /** The subset of a `useNearStorageCheck` result the gate reads. A full `UseQueryResult<boolean>` satisfies it. */
3827
- type NearStorageCheckResult = Pick<UseQueryResult<boolean>, 'isLoading' | 'data'>;
3828
- /** UI gate state for NEP-141 storage registration on NEAR. */
3829
- interface NearStorageGateState {
3830
- /** Destination is NEAR — the only chain with a NEP-141 storage-registration prerequisite. */
3831
- isNear: boolean;
3832
- /** Show the "register storage" action: the check resolved and the recipient is not registered. */
3833
- needsRegistration: boolean;
3834
- /**
3835
- * Keep the downstream action (swap/bridge/borrow/withdraw) disabled: the NEAR gate is unresolved
3836
- * (still checking) or unmet (needs registration).
3837
- */
3838
- blocksAction: boolean;
3839
- }
3840
- /**
3841
- * Derives the NEP-141 storage-registration UI gate state for a flow that delivers a token to a user
3842
- * on NEAR — NEAR's analogue of the Stellar trustline gate. Unwrapped (no hook): pass the destination
3843
- * `chainKey` and the `useNearStorageCheck` result; the util owns the `=== NEAR` test and reads
3844
- * `isLoading` (NOT `isPending`, which stays `true` for a disabled query and would block forever).
3845
- *
3846
- * `blocksAction` deliberately also covers the in-flight check window so the action can't be
3847
- * triggered before registration status is known; `needsRegistration` only flips once the check has
3848
- * resolved (so the "register" button isn't shown speculatively while still checking).
3849
- */
3850
- declare function resolveNearStorageGate(chainKey: SpokeChainKey, check: NearStorageCheckResult): NearStorageGateState;
3851
-
3852
- export { type ATokenData, type ApprovalHashes, type ApprovalPlan, type ApprovalProgress, type ApprovalProgressListener, type BackendPaginationParams, type BalancesInputs, type BitcoinTradingSetup, type BridgeApiApprovalHashes, type CreateSodaxQueryClientOptions, type DecreaseLiquidityParamsCore, type DepositParamsCore, type LeverageYieldApiApprovalHashes, type LeverageYieldShareHolder, type LeverageYieldShareHolding, type MutationHookOptions, type MutationHookParams, type NearStorageCheckResult, type NearStorageGateState, type RadfiSession, type ReadHookParams, type ReadQueryOptions, type ReserveUsdFormat, type SafeUseMutationResult, SodaxProvider, type StellarCheckResult, type StellarGate, type StellarGateInputs, type StellarGateState, type SwapsApiApprovalHashes, type UseATokenParams, type UseATokensBalancesParams, type UseActivateStellarAccountVars, type UseApproveLeveragePositionFundingVars, type UseApproveTokenVars, type UseBalancesParams, type UseBitcoinBalanceParams, type UseBitcoinTradingSetupParams, type UseBorrowVars, type UseBridgeAllowanceParams, type UseBridgeApiAllowanceParams, type UseBridgeApiApproveAndBroadcastVars, type UseBridgeApiApproveVars, type UseBridgeApiBridgeableAmountParams, type UseBridgeApiCreateBridgeIntentVars, type UseBridgeApiFeeParams, type UseBridgeApiIsBridgeableParams, type UseBridgeApiSubmitTxStatusParams, type UseBridgeApiSubmitTxVars, type UseBridgeApiTokensByChainParams, type UseBridgeApiTokensParams, type UseBridgeApproveVars, type UseBridgeDetailedStatusParams, type UseBridgeDetailedStatusResult, type UseBridgeVars, type UseClaimRewardsVars, type UseCreateDecreaseLiquidityParamsProps, type UseCreateDepositParamsProps, type UseCreateLimitOrderVars, type UseCreateSupplyLiquidityParamsProps, type UseCreateSupplyLiquidityParamsResult, type UseCreateWithdrawParamsProps, type UseDecreaseLiquidityVars, type UseDeriveUserWalletAddressParams, type UseDetailedStatusParams, type UseDetailedStatusResult, type UseDexAllowanceParams, type UseDexApproveVars, type UseDexDepositVars, type UseDexWithdrawVars, type UseEModesParams, type UseEnsureRadfiAccessTokenVars, type UseEstablishTrustlineVars, type UseExpiredUtxosParams, type UseFeeClaimSwapVars, type UseFeeClaimWithdrawVars, type UseFetchAssetsBalancesParams, type UseFundTradingWalletVars, type UseGetAutoSwapPreferencesParams, type UseGetBridgeableAmountParams, type UseGetBridgeableTokensParams, type UseGetIntentDetailsParams, type UseGetUserHubWalletAddressParams, type UseGetUserIntentParams, type UseHubAssetBalancesParams, type UseIsTokenApprovedParams, type UseLeveragePositionAccountParams, type UseLeveragePositionCollateralParams, type UseLeveragePositionFundingAllowanceParams, type UseLeveragePositionInfoParams, type UseLeveragePositionPayoutAddressParams, type UseLeveragePositionPendingParams, type UseLeveragePositionsForUserParams, type UseLeveragePositionsParams, type UseLeverageYieldApiAllowanceParams, type UseLeverageYieldApiApproveAndBroadcastVars, type UseLeverageYieldApiApproveVars, type UseLeverageYieldApiAprParams, type UseLeverageYieldApiAssetParams, type UseLeverageYieldApiCancelIntentVars, type UseLeverageYieldApiCreateDepositIntentVars, type UseLeverageYieldApiCreateWithdrawIntentVars, type UseLeverageYieldApiDeadlineParams, type UseLeverageYieldApiDepositQuoteParams, type UseLeverageYieldApiEffectiveAprParams, type UseLeverageYieldApiEstimateGasParams, type UseLeverageYieldApiFilledIntentParams, type UseLeverageYieldApiIntentExtraDataParams, type UseLeverageYieldApiIntentHashParams, type UseLeverageYieldApiIntentPacketParams, type UseLeverageYieldApiIntentParams, type UseLeverageYieldApiLsdAprParams, type UseLeverageYieldApiMaxWithdrawParams, type UseLeverageYieldApiPartnerFeeParams, type UseLeverageYieldApiPositionParams, type UseLeverageYieldApiPreviewDepositParams, type UseLeverageYieldApiPreviewRedeemParams, type UseLeverageYieldApiPreviewWithdrawParams, type UseLeverageYieldApiShareBalanceParams, type UseLeverageYieldApiSolverFeeParams, type UseLeverageYieldApiStatusParams, type UseLeverageYieldApiSubmitIntentVars, type UseLeverageYieldApiSubmitTxStatusParams, type UseLeverageYieldApiSubmitTxVars, type UseLeverageYieldApiTotalAssetsParams, type UseLeverageYieldApiVaultParams, type UseLeverageYieldApiVaultsParams, type UseLeverageYieldApiWithdrawQuoteParams, type UseLeverageYieldDepositVars, type UseLeverageYieldDetailedStatusParams, type UseLeverageYieldDetailedStatusResult, type UseLeverageYieldEffectiveAprParams, type UseLeverageYieldNotifySolverVars, type UseLeverageYieldPositionParams, type UseLeverageYieldPreviewRedeemParams, type UseLeverageYieldQuoteParams, type UseLeverageYieldShareBalancesParams, type UseLeverageYieldTotalAssetsParams, type UseLeverageYieldVaultSwapVars, type UseLeverageYieldWithdrawVars, type UseLiquidityAmountsResult, type UseMMAllowanceParams, type UseMMApproveVars, type UseMigrateBalnVars, type UseMigrateIcxToSodaVars, type UseMigratebnUSDVars, type UseMigrationAllowanceInputs, type UseMigrationAllowanceParams, type UseMigrationApproveVars, type UseNearStorageCheckParams, type UseOpenLeveragePositionVars, type UsePartnerCancelIntentVars, type UsePoolBalancesParams, type UsePoolBalancesResponse, type UsePoolDataParams, type UsePoolsParams, type UsePositionInfoParams, type UsePositionInfoResponse, type UseQuoteParams, type UseRadfiAuthVars, type UseRadfiSessionReturn, type UseRadfiWithdrawVars, type UseRegisterNearStorageVars, type UseRenewUtxosVars, type UseRepayVars, type UseReservesDataParams, type UseReservesHumanizedParams, type UseReservesListParams, type UseReservesUsdFormatParams, type UseRevertMigrateSodaToIcxVars, type UseRunLeveragePositionOperationVars, type UseSetSwapPreferenceVars, type UseSetSwapPreferenceVarsHub, type UseSponsorConfigParams, type UseStatusParams, type UseStellarAccountActiveParams, type UseStellarAccountStatusParams, type UseStellarGateParams, type UseStellarTrustlineCheckParams, type UseSubmitLeveragePositionIntentVars, type UseSupplyLiquidityVars, type UseSupplyVars, type UseSwapAllowanceParams, type UseSwapApproveVars, type UseSwapVars, type UseSwapsApiAllowanceParams, type UseSwapsApiApproveAndBroadcastVars, type UseSwapsApiApproveVars, type UseSwapsApiCancelIntentVars, type UseSwapsApiCreateIntentVars, type UseSwapsApiCreateLimitOrderVars, type UseSwapsApiDeadlineParams, type UseSwapsApiEstimateGasParams, type UseSwapsApiFilledIntentParams, type UseSwapsApiIntentExtraDataParams, type UseSwapsApiIntentHashParams, type UseSwapsApiIntentPacketParams, type UseSwapsApiIntentParams, type UseSwapsApiPartnerFeeParams, type UseSwapsApiQuoteParams, type UseSwapsApiSolverFeeParams, type UseSwapsApiStatusParams, type UseSwapsApiSubmitIntentVars, type UseSwapsApiSubmitTxStatusParams, type UseSwapsApiSubmitTxVars, type UseSwapsApiTokensByChainParams, type UseSwapsApiTokensParams, type UseTradingWalletBalanceParams, type UseUserFormattedSummaryParams, type UseUserReservesDataParams, type UseWithdrawHubAssetVars, type UseWithdrawVars, type UseXBalancesParams, type WithdrawParamsCore, type XBalancesInputs, clearRadfiSession, createDecreaseLiquidityParamsProps, createDepositParamsProps, createSodaxQueryClient, createSupplyLiquidityParamsProps, createWithdrawParamsProps, getBalancesQueryOptions, getBridgeDetailedStatusRefetchInterval, getLeverageYieldQuoteQueryOptions, getSponsorConfigQueryOptions, getStellarAccountActiveQueryOptions, getStellarAccountStatusQueryOptions, getStellarTrustlineCheckQueryOptions, getSwapQuoteQueryOptions, getXBalancesQueryOptions, invalidateBalances, isBridgeNotDelivered, isTerminalSwapIntentStatus, isUserRejectedError, loadRadfiSession, resolveNearStorageGate, resolveStellarGate, retryUnlessAuthFailure, runApprovalPlan, saveRadfiSession, toResult, unwrapResult, useAToken, useATokensBalances, useActivateStellarAccount, useApproveLeveragePositionFunding, useApproveToken, useBackendAllMoneyMarketAssets, useBackendAllMoneyMarketBorrowers, useBackendIntentByHash, useBackendIntentByTxHash, useBackendMoneyMarketAsset, useBackendMoneyMarketAssetBorrowers, useBackendMoneyMarketAssetSuppliers, useBackendMoneyMarketPosition, useBackendOracleCandles, useBackendOracleMarkets, useBackendOrderbook, useBackendUserIntents, useBalances, useBitcoinBalance, useBitcoinTradingSetup, useBorrow, useBridge, useBridgeAllowance, useBridgeApiAllowance, useBridgeApiApprove, useBridgeApiApproveAndBroadcast, useBridgeApiBridgeableAmount, useBridgeApiCreateBridgeIntent, useBridgeApiFee, useBridgeApiIsBridgeable, useBridgeApiSubmitTx, useBridgeApiSubmitTxStatus, useBridgeApiTokens, useBridgeApiTokensByChain, useBridgeApprove, useBridgeDetailedStatus, useCancelLimitOrder, useCancelSwap, useCancelUnstake, useClaim, useClaimRewards, useConvertedAssets, useCreateDecreaseLiquidityParams, useCreateDepositParams, useCreateLimitOrder, useCreateSupplyLiquidityParams, useCreateWithdrawParams, useDecreaseLiquidity, useDeriveUserWalletAddress, useDetailedStatus, useDexAllowance, useDexApprove, useDexDeposit, useDexWithdraw, useEModes, useEnsureRadfiAccessToken, useEstablishTrustline, useEstimateGas, useExpiredUtxos, useFeeClaimSwap, useFeeClaimWithdraw, useFetchAssetsBalances, useFundTradingWallet, useGetAutoSwapPreferences, useGetBridgeableAmount, useGetBridgeableTokens, useGetIntentDetails, useGetUserHubWalletAddress, useGetUserIntent, useHubAssetBalances, useHubProvider, useInstantUnstake, useInstantUnstakeAllowance, useInstantUnstakeApprove, useInstantUnstakeRatio, useIsTokenApproved, useLeveragePositionAccount, useLeveragePositionCollateral, useLeveragePositionFundingAllowance, useLeveragePositionInfo, useLeveragePositionPayoutAddress, useLeveragePositionPending, useLeveragePositions, useLeveragePositionsForUser, useLeverageYieldApiAllowance, useLeverageYieldApiApprove, useLeverageYieldApiApproveAndBroadcast, useLeverageYieldApiApr, useLeverageYieldApiAsset, useLeverageYieldApiCancelIntent, useLeverageYieldApiCreateDepositIntent, useLeverageYieldApiCreateWithdrawIntent, useLeverageYieldApiDeadline, useLeverageYieldApiDepositQuote, useLeverageYieldApiEffectiveApr, useLeverageYieldApiEstimateGas, useLeverageYieldApiFilledIntent, useLeverageYieldApiIntent, useLeverageYieldApiIntentExtraData, useLeverageYieldApiIntentHash, useLeverageYieldApiIntentPacket, useLeverageYieldApiLsdApr, useLeverageYieldApiMaxWithdraw, useLeverageYieldApiPartnerFee, useLeverageYieldApiPosition, useLeverageYieldApiPreviewDeposit, useLeverageYieldApiPreviewRedeem, useLeverageYieldApiPreviewWithdraw, useLeverageYieldApiShareBalance, useLeverageYieldApiSolverFee, useLeverageYieldApiStatus, useLeverageYieldApiSubmitIntent, useLeverageYieldApiSubmitTx, useLeverageYieldApiSubmitTxStatus, useLeverageYieldApiTotalAssets, useLeverageYieldApiVault, useLeverageYieldApiVaults, useLeverageYieldApiWithdrawQuote, useLeverageYieldDeposit, useLeverageYieldDetailedStatus, useLeverageYieldEffectiveApr, useLeverageYieldNotifySolver, useLeverageYieldPosition, useLeverageYieldPreviewRedeem, useLeverageYieldQuote, useLeverageYieldShareBalances, useLeverageYieldTotalAssets, useLeverageYieldVaultSwap, useLeverageYieldWithdraw, useLiquidityAmounts, useMMAllowance, useMMApprove, useMigrateBaln, useMigrateIcxToSoda, useMigratebnUSD, useMigrationAllowance, useMigrationApprove, useNearStorageCheck, useNearStorageGate, useOpenLeveragePosition, usePartnerCancelIntent, usePoolBalances, usePoolData, usePools, usePositionInfo, useQuote, useRadfiAuth, useRadfiSession, useRadfiWithdraw, useRegisterNearStorage, useRenewUtxos, useRepay, useRequestTrustline, useReservesData, useReservesHumanized, useReservesList, useReservesUsdFormat, useRevertMigrateSodaToIcx, useRunLeveragePositionOperation, useSafeMutation, useSetSwapPreference, useSodaxContext, useSponsorConfig, useStake, useStakeAllowance, useStakeApprove, useStakeRatio, useStakingConfig, useStakingInfo, useStatus, useStellarAccountActive, useStellarAccountStatus, useStellarGate, useStellarTrustlineCheck, useSubmitLeveragePositionIntent, useSupply, useSupplyLiquidity, useSwap, useSwapAllowance, useSwapApprove, useSwapsApiAllowance, useSwapsApiApprove, useSwapsApiApproveAndBroadcast, useSwapsApiCancelIntent, useSwapsApiCreateIntent, useSwapsApiCreateLimitOrder, useSwapsApiDeadline, useSwapsApiEstimateGas, useSwapsApiFilledIntent, useSwapsApiIntent, useSwapsApiIntentExtraData, useSwapsApiIntentHash, useSwapsApiIntentPacket, useSwapsApiPartnerFee, useSwapsApiQuote, useSwapsApiSolverFee, useSwapsApiStatus, useSwapsApiSubmitIntent, useSwapsApiSubmitTx, useSwapsApiSubmitTxStatus, useSwapsApiTokens, useSwapsApiTokensByChain, useTradingWallet, useTradingWalletBalance, useUnstake, useUnstakeAllowance, useUnstakeApprove, useUnstakingInfo, useUnstakingInfoWithPenalty, useUserFormattedSummary, useUserReservesData, useWithdraw, useWithdrawHubAsset, useXBalances };
4135
+ export { type ATokenData, type ApprovalHashes, type ApprovalPlan, type ApprovalProgress, type ApprovalProgressListener, type BackendPaginationParams, type BalancesInputs, type BitcoinTradingSetup, type BridgeApiApprovalHashes, type CreateSodaxQueryClientOptions, type DecreaseLiquidityParamsCore, type DepositParamsCore, type LeverageYieldApiApprovalHashes, type LeverageYieldShareHolder, type LeverageYieldShareHolding, type MutationHookOptions, type MutationHookParams, type NearStorageCheckResult, type NearStorageGate, type NearStorageGateState, type RadfiSession, type ReadHookParams, type ReadQueryOptions, type ReserveUsdFormat, type SafeUseMutationResult, SodaxProvider, type StellarCheckResult, type StellarGate, type StellarGateInputs, type StellarGateState, type SwapLifecycle, type SwapLifecycleState, type SwapSetupReason, type SwapsApiApprovalHashes, type SwapsApiBroadcastWithApprovalResult, type UseATokenParams, type UseATokensBalancesParams, type UseActivateStellarAccountVars, type UseApproveLeveragePositionFundingVars, type UseApproveTokenVars, type UseBalancesParams, type UseBitcoinBalanceParams, type UseBitcoinTradingSetupParams, type UseBorrowVars, type UseBridgeAllowanceParams, type UseBridgeApiAllowanceParams, type UseBridgeApiApproveAndBroadcastVars, type UseBridgeApiApproveVars, type UseBridgeApiBridgeableAmountParams, type UseBridgeApiCreateBridgeIntentVars, type UseBridgeApiFeeParams, type UseBridgeApiIsBridgeableParams, type UseBridgeApiSubmitTxStatusParams, type UseBridgeApiSubmitTxVars, type UseBridgeApiTokensByChainParams, type UseBridgeApiTokensParams, type UseBridgeApprovalStrategyParams, type UseBridgeApproveVars, type UseBridgeDetailedStatusParams, type UseBridgeDetailedStatusResult, type UseBridgeVars, type UseBridgeWithApprovalVars, type UseClaimRewardsVars, type UseCreateDecreaseLiquidityParamsProps, type UseCreateDepositParamsProps, type UseCreateLimitOrderVars, type UseCreateSupplyLiquidityParamsProps, type UseCreateSupplyLiquidityParamsResult, type UseCreateWithdrawParamsProps, type UseDecreaseLiquidityVars, type UseDeriveUserWalletAddressParams, type UseDetailedStatusParams, type UseDetailedStatusResult, type UseDexAllowanceParams, type UseDexApproveVars, type UseDexDepositVars, type UseDexWithdrawVars, type UseEModesParams, type UseEnsureRadfiAccessTokenVars, type UseEstablishTrustlineVars, type UseExpiredUtxosParams, type UseFeeClaimSwapVars, type UseFeeClaimWithdrawVars, type UseFetchAssetsBalancesParams, type UseFundTradingWalletVars, type UseGetAutoSwapPreferencesParams, type UseGetBridgeableAmountParams, type UseGetBridgeableTokensParams, type UseGetIntentDetailsParams, type UseGetUserHubWalletAddressParams, type UseGetUserIntentParams, type UseHubAssetBalancesParams, type UseIsTokenApprovedParams, type UseLeveragePositionAccountParams, type UseLeveragePositionCollateralParams, type UseLeveragePositionFundingAllowanceParams, type UseLeveragePositionInfoParams, type UseLeveragePositionPayoutAddressParams, type UseLeveragePositionPendingParams, type UseLeveragePositionsForUserParams, type UseLeveragePositionsParams, type UseLeverageYieldApiAllowanceParams, type UseLeverageYieldApiApproveAndBroadcastVars, type UseLeverageYieldApiApproveVars, type UseLeverageYieldApiAprParams, type UseLeverageYieldApiAssetParams, type UseLeverageYieldApiCancelIntentVars, type UseLeverageYieldApiCreateDepositIntentVars, type UseLeverageYieldApiCreateWithdrawIntentVars, type UseLeverageYieldApiDeadlineParams, type UseLeverageYieldApiDepositQuoteParams, type UseLeverageYieldApiEffectiveAprParams, type UseLeverageYieldApiEstimateGasParams, type UseLeverageYieldApiFilledIntentParams, type UseLeverageYieldApiIntentExtraDataParams, type UseLeverageYieldApiIntentHashParams, type UseLeverageYieldApiIntentPacketParams, type UseLeverageYieldApiIntentParams, type UseLeverageYieldApiLsdAprParams, type UseLeverageYieldApiMaxWithdrawParams, type UseLeverageYieldApiPartnerFeeParams, type UseLeverageYieldApiPositionParams, type UseLeverageYieldApiPreviewDepositParams, type UseLeverageYieldApiPreviewRedeemParams, type UseLeverageYieldApiPreviewWithdrawParams, type UseLeverageYieldApiShareBalanceParams, type UseLeverageYieldApiSolverFeeParams, type UseLeverageYieldApiStatusParams, type UseLeverageYieldApiSubmitIntentVars, type UseLeverageYieldApiSubmitTxStatusParams, type UseLeverageYieldApiSubmitTxVars, type UseLeverageYieldApiTotalAssetsParams, type UseLeverageYieldApiVaultParams, type UseLeverageYieldApiVaultsParams, type UseLeverageYieldApiWithdrawQuoteParams, type UseLeverageYieldApprovalStrategyParams, type UseLeverageYieldDepositVars, type UseLeverageYieldDetailedStatusParams, type UseLeverageYieldDetailedStatusResult, type UseLeverageYieldEffectiveAprParams, type UseLeverageYieldNotifySolverVars, type UseLeverageYieldPositionParams, type UseLeverageYieldPreviewRedeemParams, type UseLeverageYieldQuoteParams, type UseLeverageYieldShareBalancesParams, type UseLeverageYieldTotalAssetsParams, type UseLeverageYieldVaultSwapVars, type UseLeverageYieldVaultSwapWithApprovalVars, type UseLeverageYieldWithdrawVars, type UseLiquidityAmountsResult, type UseMMAllowanceParams, type UseMMApproveVars, type UseMigrateBalnVars, type UseMigrateIcxToSodaVars, type UseMigratebnUSDVars, type UseMigrationAllowanceInputs, type UseMigrationAllowanceParams, type UseMigrationApproveVars, type UseNearStorageCheckParams, type UseNearStorageGateParams, type UseOpenLeveragePositionVars, type UsePartnerCancelIntentVars, type UsePoolBalancesParams, type UsePoolBalancesResponse, type UsePoolDataParams, type UsePoolsParams, type UsePositionInfoParams, type UsePositionInfoResponse, type UseQuoteParams, type UseRadfiAuthVars, type UseRadfiSessionReturn, type UseRadfiWithdrawVars, type UseRegisterNearStorageVars, type UseRenewUtxosVars, type UseRepayVars, type UseReservesDataParams, type UseReservesHumanizedParams, type UseReservesListParams, type UseReservesUsdFormatParams, type UseRevertMigrateSodaToIcxVars, type UseRunLeveragePositionOperationVars, type UseSetSwapPreferenceVars, type UseSetSwapPreferenceVarsHub, type UseSponsorConfigParams, type UseStatusParams, type UseStellarAccountActiveParams, type UseStellarAccountStatusParams, type UseStellarGateParams, type UseStellarTrustlineCheckParams, type UseSubmitLeveragePositionIntentVars, type UseSupplyLiquidityVars, type UseSupplyVars, type UseSwapAllowanceParams, type UseSwapApprovalStrategyParams, type UseSwapApproveVars, type UseSwapLifecycleParams, type UseSwapVars, type UseSwapWithApprovalVars, type UseSwapsApiAllowanceParams, type UseSwapsApiApproveAndBroadcastVars, type UseSwapsApiApproveVars, type UseSwapsApiBroadcastWithApprovalVars, type UseSwapsApiCancelIntentVars, type UseSwapsApiCreateIntentVars, type UseSwapsApiCreateLimitOrderVars, type UseSwapsApiDeadlineParams, type UseSwapsApiEstimateGasParams, type UseSwapsApiFilledIntentParams, type UseSwapsApiIntentExtraDataParams, type UseSwapsApiIntentHashParams, type UseSwapsApiIntentPacketParams, type UseSwapsApiIntentParams, type UseSwapsApiPartnerFeeParams, type UseSwapsApiQuoteParams, type UseSwapsApiSolverFeeParams, type UseSwapsApiStatusParams, type UseSwapsApiSubmitIntentVars, type UseSwapsApiSubmitTxStatusParams, type UseSwapsApiSubmitTxVars, type UseSwapsApiTokensByChainParams, type UseSwapsApiTokensParams, type UseTradingWalletBalanceParams, type UseUserFormattedSummaryParams, type UseUserReservesDataParams, type UseWithdrawHubAssetVars, type UseWithdrawVars, type UseXBalancesParams, type WithdrawParamsCore, type XBalancesInputs, clearRadfiSession, createDecreaseLiquidityParamsProps, createDepositParamsProps, createSodaxQueryClient, createSupplyLiquidityParamsProps, createWithdrawParamsProps, getBalancesQueryOptions, getBridgeDetailedStatusRefetchInterval, getLeverageYieldQuoteQueryOptions, getSponsorConfigQueryOptions, getStellarAccountActiveQueryOptions, getStellarAccountStatusQueryOptions, getStellarTrustlineCheckQueryOptions, getSwapQuoteQueryOptions, getXBalancesQueryOptions, invalidateBalances, isBridgeNotDelivered, isTerminalSwapIntentStatus, isUserRejectedError, loadRadfiSession, resolveNearStorageGate, resolveStellarGate, retryUnlessAuthFailure, runApprovalPlan, saveRadfiSession, toResult, unwrapResult, useAToken, useATokensBalances, useActivateStellarAccount, useApproveLeveragePositionFunding, useApproveToken, useBackendAllMoneyMarketAssets, useBackendAllMoneyMarketBorrowers, useBackendIntentByHash, useBackendIntentByTxHash, useBackendMoneyMarketAsset, useBackendMoneyMarketAssetBorrowers, useBackendMoneyMarketAssetSuppliers, useBackendMoneyMarketPosition, useBackendOracleCandles, useBackendOracleMarkets, useBackendOrderbook, useBackendUserIntents, useBalances, useBitcoinBalance, useBitcoinTradingSetup, useBorrow, useBridge, useBridgeAllowance, useBridgeApiAllowance, useBridgeApiApprove, useBridgeApiApproveAndBroadcast, useBridgeApiBridgeableAmount, useBridgeApiCreateBridgeIntent, useBridgeApiFee, useBridgeApiIsBridgeable, useBridgeApiSubmitTx, useBridgeApiSubmitTxStatus, useBridgeApiTokens, useBridgeApiTokensByChain, useBridgeApprovalStrategy, useBridgeApprove, useBridgeDetailedStatus, useBridgeWithApproval, useCancelLimitOrder, useCancelSwap, useCancelUnstake, useClaim, useClaimRewards, useConvertedAssets, useCreateDecreaseLiquidityParams, useCreateDepositParams, useCreateLimitOrder, useCreateSupplyLiquidityParams, useCreateWithdrawParams, useDecreaseLiquidity, useDeriveUserWalletAddress, useDetailedStatus, useDexAllowance, useDexApprove, useDexDeposit, useDexWithdraw, useEModes, useEnsureRadfiAccessToken, useEstablishTrustline, useEstimateGas, useExpiredUtxos, useFeeClaimSwap, useFeeClaimWithdraw, useFetchAssetsBalances, useFundTradingWallet, useGetAutoSwapPreferences, useGetBridgeableAmount, useGetBridgeableTokens, useGetIntentDetails, useGetUserHubWalletAddress, useGetUserIntent, useHubAssetBalances, useHubProvider, useInstantUnstake, useInstantUnstakeAllowance, useInstantUnstakeApprove, useInstantUnstakeRatio, useIsTokenApproved, useLeveragePositionAccount, useLeveragePositionCollateral, useLeveragePositionFundingAllowance, useLeveragePositionInfo, useLeveragePositionPayoutAddress, useLeveragePositionPending, useLeveragePositions, useLeveragePositionsForUser, useLeverageYieldApiAllowance, useLeverageYieldApiApprove, useLeverageYieldApiApproveAndBroadcast, useLeverageYieldApiApr, useLeverageYieldApiAsset, useLeverageYieldApiCancelIntent, useLeverageYieldApiCreateDepositIntent, useLeverageYieldApiCreateWithdrawIntent, useLeverageYieldApiDeadline, useLeverageYieldApiDepositQuote, useLeverageYieldApiEffectiveApr, useLeverageYieldApiEstimateGas, useLeverageYieldApiFilledIntent, useLeverageYieldApiIntent, useLeverageYieldApiIntentExtraData, useLeverageYieldApiIntentHash, useLeverageYieldApiIntentPacket, useLeverageYieldApiLsdApr, useLeverageYieldApiMaxWithdraw, useLeverageYieldApiPartnerFee, useLeverageYieldApiPosition, useLeverageYieldApiPreviewDeposit, useLeverageYieldApiPreviewRedeem, useLeverageYieldApiPreviewWithdraw, useLeverageYieldApiShareBalance, useLeverageYieldApiSolverFee, useLeverageYieldApiStatus, useLeverageYieldApiSubmitIntent, useLeverageYieldApiSubmitTx, useLeverageYieldApiSubmitTxStatus, useLeverageYieldApiTotalAssets, useLeverageYieldApiVault, useLeverageYieldApiVaults, useLeverageYieldApiWithdrawQuote, useLeverageYieldApprovalStrategy, useLeverageYieldDeposit, useLeverageYieldDetailedStatus, useLeverageYieldEffectiveApr, useLeverageYieldNotifySolver, useLeverageYieldPosition, useLeverageYieldPreviewRedeem, useLeverageYieldQuote, useLeverageYieldShareBalances, useLeverageYieldTotalAssets, useLeverageYieldVaultSwap, useLeverageYieldVaultSwapWithApproval, useLeverageYieldWithdraw, useLiquidityAmounts, useMMAllowance, useMMApprove, useMigrateBaln, useMigrateIcxToSoda, useMigratebnUSD, useMigrationAllowance, useMigrationApprove, useNearStorageCheck, useNearStorageGate, useOpenLeveragePosition, usePartnerCancelIntent, usePoolBalances, usePoolData, usePools, usePositionInfo, useQuote, useRadfiAuth, useRadfiSession, useRadfiWithdraw, useRegisterNearStorage, useRenewUtxos, useRepay, useRequestTrustline, useReservesData, useReservesHumanized, useReservesList, useReservesUsdFormat, useRevertMigrateSodaToIcx, useRunLeveragePositionOperation, useSafeMutation, useSetSwapPreference, useSodaxContext, useSponsorConfig, useStake, useStakeAllowance, useStakeApprove, useStakeRatio, useStakingConfig, useStakingInfo, useStatus, useStellarAccountActive, useStellarAccountStatus, useStellarGate, useStellarTrustlineCheck, useSubmitLeveragePositionIntent, useSupply, useSupplyLiquidity, useSwap, useSwapAllowance, useSwapApprovalStrategy, useSwapApprove, useSwapLifecycle, useSwapWithApproval, useSwapsApiAllowance, useSwapsApiApprove, useSwapsApiApproveAndBroadcast, useSwapsApiBroadcastWithApproval, useSwapsApiCancelIntent, useSwapsApiCreateIntent, useSwapsApiCreateLimitOrder, useSwapsApiDeadline, useSwapsApiEstimateGas, useSwapsApiFilledIntent, useSwapsApiIntent, useSwapsApiIntentExtraData, useSwapsApiIntentHash, useSwapsApiIntentPacket, useSwapsApiPartnerFee, useSwapsApiQuote, useSwapsApiSolverFee, useSwapsApiStatus, useSwapsApiSubmitIntent, useSwapsApiSubmitTx, useSwapsApiSubmitTxStatus, useSwapsApiTokens, useSwapsApiTokensByChain, useTradingWallet, useTradingWalletBalance, useUnstake, useUnstakeAllowance, useUnstakeApprove, useUnstakingInfo, useUnstakingInfoWithPenalty, useUserFormattedSummary, useUserReservesData, useWithdraw, useWithdrawHubAsset, useXBalances };