@sodax/dapp-kit 2.0.0 → 2.1.0-rc.2

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 (52) hide show
  1. package/README.md +128 -115
  2. package/dist/index.d.ts +342 -12
  3. package/dist/index.mjs +405 -47
  4. package/package.json +2 -2
  5. package/src/hooks/_mutationContract.test.ts +5 -0
  6. package/src/hooks/backend/types.ts +1 -1
  7. package/src/hooks/bridge/useBridgeApprove.ts +2 -1
  8. package/src/hooks/bridgeApi/index.ts +13 -0
  9. package/src/hooks/bridgeApi/useBridgeApiAllowance.ts +42 -0
  10. package/src/hooks/bridgeApi/useBridgeApiApprove.ts +42 -0
  11. package/src/hooks/bridgeApi/useBridgeApiBridgeableAmount.ts +45 -0
  12. package/src/hooks/bridgeApi/useBridgeApiCreateBridgeIntent.ts +42 -0
  13. package/src/hooks/bridgeApi/useBridgeApiFee.ts +44 -0
  14. package/src/hooks/bridgeApi/useBridgeApiIsBridgeable.ts +45 -0
  15. package/src/hooks/bridgeApi/useBridgeApiSubmitTx.ts +50 -0
  16. package/src/hooks/bridgeApi/useBridgeApiSubmitTxStatus.ts +60 -0
  17. package/src/hooks/bridgeApi/useBridgeApiTokens.ts +35 -0
  18. package/src/hooks/bridgeApi/useBridgeApiTokensByChain.ts +40 -0
  19. package/src/hooks/index.ts +2 -0
  20. package/src/hooks/migrate/useMigrationApprove.ts +1 -3
  21. package/src/hooks/mm/useWithdraw.ts +5 -1
  22. package/src/hooks/partner/useApproveToken.ts +1 -2
  23. package/src/hooks/shared/index.ts +2 -0
  24. package/src/hooks/shared/useEstablishTrustline.test.ts +89 -0
  25. package/src/hooks/shared/useEstablishTrustline.ts +72 -0
  26. package/src/hooks/shared/useRequestTrustline.test.ts +115 -0
  27. package/src/hooks/shared/useRequestTrustline.ts +41 -56
  28. package/src/hooks/shared/useSafeMutation.ts +1 -4
  29. package/src/hooks/shared/useStellarGate.test.ts +99 -0
  30. package/src/hooks/shared/useStellarGate.ts +102 -0
  31. package/src/hooks/shared/useStellarTrustlineCheck.test.ts +2 -2
  32. package/src/hooks/sponsoring/index.ts +4 -0
  33. package/src/hooks/sponsoring/useActivateStellarAccount.test.ts +74 -0
  34. package/src/hooks/sponsoring/useActivateStellarAccount.ts +38 -0
  35. package/src/hooks/sponsoring/useSponsorConfig.test.ts +46 -0
  36. package/src/hooks/sponsoring/useSponsorConfig.ts +31 -0
  37. package/src/hooks/sponsoring/useStellarAccountActive.test.ts +50 -0
  38. package/src/hooks/sponsoring/useStellarAccountActive.ts +45 -0
  39. package/src/hooks/sponsoring/useStellarAccountStatus.test.ts +90 -0
  40. package/src/hooks/sponsoring/useStellarAccountStatus.ts +57 -0
  41. package/src/hooks/staking/useStakingConfig.ts +1 -3
  42. package/src/hooks/staking/useStakingInfo.ts +4 -4
  43. package/src/hooks/staking/useUnstake.ts +5 -1
  44. package/src/hooks/swap/useCreateLimitOrder.ts +1 -2
  45. package/src/hooks/swap/useSwap.ts +1 -5
  46. package/src/hooks/swapsApi/useSwapsApiSubmitTxStatus.ts +6 -3
  47. package/src/index.ts +1 -1
  48. package/src/providers/createSodaxQueryClient.ts +1 -5
  49. package/src/utils/dex-utils.ts +1 -4
  50. package/src/utils/index.ts +1 -0
  51. package/src/utils/stellarGate.test.ts +196 -0
  52. package/src/utils/stellarGate.ts +84 -0
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions, UseQueryOptions, UseMutationResult, MutateOptions, UseQueryResult, QueryClientConfig, QueryClient } from '@tanstack/react-query';
2
- import { Result, Sodax, SpokeChainKey, GetEstimateGasReturnType, EstimateGasParams, StellarChainKey, IStellarWalletProvider, INearWalletProvider, GetWalletProviderType, 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, SolverIntentQuoteResponse, SolverErrorResponse, SolverIntentQuoteRequest, SwapActionParams, SwapResponse, SolverIntentStatusResponse, Hex, CreateIntentParams, CreateLimitOrderParams, Intent, LimitOrderActionParams, IntentResponse, UserIntentsResponse, OrderbookResponse, MoneyMarketPosition, MoneyMarketAsset, MoneyMarketAssetBorrowers, MoneyMarketAssetSuppliers, MoneyMarketBorrowers, GetSwapTokensResponseV2, RequestOverrideConfig, GetSwapTokensByChainResponseV2, QuoteResponseV2, QuoteRequestV2, QuoteQueryV2, DeadlineResponseV2, DeadlineQueryV2, AllowanceCheckResponseV2, CreateIntentParamsV2, ApproveResponseV2, CreateIntentResponseV2, SubmitIntentRequestV2, SubmitIntentResponseV2, StatusResponseV2, SwapIntentStatusCodeV2, CancelIntentRequestV2, CancelIntentResponseV2, IntentHashResponseV2, IntentRequestV2, IntentPacketResponseV2, IntentPacketRequestV2, IntentExtraDataResponseV2, IntentExtraDataRequestV2, IntentStateV2, GetIntentResponseV2, CreateLimitOrderParamsV2, CreateLimitOrderResponseV2, GasEstimateResponseV2, GasEstimateRequestV2, FeeResponseV2, SubmitTxRequestV2, SubmitTxResponseV2, SubmitTxStatusResponseV2, BridgeParams, CreateBridgeIntentParams, BridgeLimit, 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, LeverageYieldEffectiveApr, LeverageYieldPosition, LeverageYieldSwapDepositParams, LeverageYieldSwapPayload, SolverExecutionRequest, SolverExecutionResponse, VaultSwapActionParams, VaultSwapResponse, LeverageYieldSwapWithdrawParams, SodaxOptions } from '@sodax/sdk';
2
+ 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, SolverIntentQuoteResponse, SolverErrorResponse, SolverIntentQuoteRequest, SwapActionParams, SwapResponse, SolverIntentStatusResponse, Hex, CreateIntentParams, CreateLimitOrderParams, Intent, LimitOrderActionParams, IntentResponse, UserIntentsResponse, OrderbookResponse, MoneyMarketPosition, MoneyMarketAsset, MoneyMarketAssetBorrowers, MoneyMarketAssetSuppliers, MoneyMarketBorrowers, GetSwapTokensResponseV2, RequestOverrideConfig, GetSwapTokensByChainResponseV2, QuoteResponseV2, QuoteRequestV2, QuoteQueryV2, DeadlineResponseV2, DeadlineQueryV2, AllowanceCheckResponseV2, CreateIntentParamsV2, ApproveResponseV2, CreateIntentResponseV2, SubmitIntentRequestV2, SubmitIntentResponseV2, StatusResponseV2, SwapIntentStatusCodeV2, CancelIntentRequestV2, CancelIntentResponseV2, IntentHashResponseV2, IntentRequestV2, IntentPacketResponseV2, IntentPacketRequestV2, IntentExtraDataResponseV2, IntentExtraDataRequestV2, IntentStateV2, GetIntentResponseV2, CreateLimitOrderParamsV2, CreateLimitOrderResponseV2, GasEstimateResponseV2, GasEstimateRequestV2, FeeResponseV2, SubmitTxRequestV2, SubmitTxResponseV2, SubmitTxStatusResponseV2, 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, LeverageYieldEffectiveApr, LeverageYieldPosition, LeverageYieldSwapDepositParams, LeverageYieldSwapPayload, SolverExecutionRequest, SolverExecutionResponse, VaultSwapActionParams, VaultSwapResponse, LeverageYieldSwapWithdrawParams, ActivateStellarAccountParams, StellarSponsorConfig, SodaxOptions } from '@sodax/sdk';
3
3
  export * from '@sodax/sdk';
4
4
  import { Address } from 'viem';
5
5
  import { ReactNode, ReactElement } from 'react';
@@ -182,18 +182,42 @@ declare function getStellarTrustlineCheckQueryOptions({ sodax, token, amount, ch
182
182
  };
183
183
  declare function useStellarTrustlineCheck({ params, queryOptions, }?: UseStellarTrustlineCheckParams): UseQueryResult<boolean, Error>;
184
184
 
185
- declare function useRequestTrustline(token: string | undefined): {
186
- requestTrustline: (params: {
187
- token: string;
188
- amount: bigint;
189
- srcChainKey: StellarChainKey;
190
- walletProvider: IStellarWalletProvider;
191
- }) => Promise<string>;
185
+ type UseEstablishTrustlineVars = {
186
+ token: string;
187
+ amount: bigint;
188
+ srcChainKey: StellarChainKey;
189
+ walletProvider: IStellarWalletProvider;
190
+ };
191
+ /**
192
+ * Establish a Stellar trustline. The account pays its fee and reserve; use
193
+ * {@link useStellarGate} to verify it can afford them.
194
+ *
195
+ * Supersedes the deprecated `useRequestTrustline`, which keeps the hand-rolled
196
+ * shape released in 2.0.0.
197
+ */
198
+ declare function useEstablishTrustline({ mutationOptions, }?: MutationHookParams<string, UseEstablishTrustlineVars>): SafeUseMutationResult<string, Error, UseEstablishTrustlineVars>;
199
+
200
+ /**
201
+ * The shape released in 2.0.0. Declared explicitly so a change to it fails
202
+ * `checkTs` here rather than silently breaking consumers.
203
+ */
204
+ type ReleasedRequestTrustline = {
205
+ requestTrustline: (params: UseEstablishTrustlineVars) => Promise<string>;
192
206
  isLoading: boolean;
193
207
  isRequested: boolean;
194
208
  error: Error | null;
195
209
  data: string | null;
196
210
  };
211
+ /**
212
+ * Establish a Stellar trustline.
213
+ *
214
+ * @deprecated Use {@link useEstablishTrustline}, the canonical mutation hook, which exposes
215
+ * `mutate` / `mutateAsync` / `mutateAsyncSafe` and accepts `mutationOptions`. This wrapper
216
+ * preserves the shape released in 2.0.0 and will be removed in the next major.
217
+ *
218
+ * @param token - Ignored, as it was in 2.0.0. Accepted only so existing call sites compile.
219
+ */
220
+ declare function useRequestTrustline(token?: string | undefined): ReleasedRequestTrustline;
197
221
 
198
222
  type UseNearStorageCheckParams = ReadHookParams<boolean, {
199
223
  token: string | undefined;
@@ -261,6 +285,67 @@ interface NearStorageGate {
261
285
  */
262
286
  declare function useNearStorageGate({ dstChainKey, token, accountId, walletProvider, }: UseNearStorageGateParams): NearStorageGate;
263
287
 
288
+ /**
289
+ * The subset of a query result the gate reads. A full `UseQueryResult<T>` satisfies it.
290
+ *
291
+ * `isLoading` is intentional: `isPending` remains true for disabled queries.
292
+ * Errors remain distinct from unmet prerequisites.
293
+ */
294
+ type StellarCheckResult<T> = Pick<UseQueryResult<T>, 'isLoading' | 'isError' | 'data'>;
295
+ interface StellarGateState {
296
+ isStellar: boolean;
297
+ needsActivation: boolean;
298
+ /**
299
+ * The account needs a trustline but lacks spendable XLM. Never set for
300
+ * native XLM or an existing trustline.
301
+ */
302
+ needsFunding: boolean;
303
+ needsTrustline: boolean;
304
+ /** A query failed; disabled or unresolved queries do not set this. */
305
+ checkFailed: boolean;
306
+ /** Whether the downstream action must remain disabled. */
307
+ blocksAction: boolean;
308
+ }
309
+ interface StellarGateInputs {
310
+ /** Account existence and spending capacity from one Horizon read. */
311
+ statusCheck: StellarCheckResult<StellarAccountStatus>;
312
+ trustlineCheck: StellarCheckResult<boolean>;
313
+ /** Resolve from chain config, never by comparing token symbols. */
314
+ isNativeToken: boolean;
315
+ }
316
+ /**
317
+ * Resolve activation, trustline, and funding prerequisites in order.
318
+ *
319
+ * Check the trustline before affordability because an existing trustline needs
320
+ * no additional XLM. Unknown states fail closed.
321
+ */
322
+ declare function resolveStellarGate(chainKey: SpokeChainKey | undefined, inputs: StellarGateInputs): StellarGateState;
323
+
324
+ interface UseStellarGateParams {
325
+ dstChainKey: SpokeChainKey | undefined;
326
+ token: string | undefined;
327
+ amount: bigint | undefined;
328
+ address: string | undefined;
329
+ walletProvider: GetWalletProviderType<SpokeChainKey> | undefined;
330
+ }
331
+ interface StellarGate extends StellarGateState {
332
+ isChecking: boolean;
333
+ /** Surface when `checkFailed` is true. */
334
+ error: Error | undefined;
335
+ retry: () => void;
336
+ isActivating: boolean;
337
+ isRequestingTrustline: boolean;
338
+ /** Returns `undefined` when required inputs are missing. */
339
+ activate: () => Promise<Result<ActivateStellarAccountResult> | undefined>;
340
+ /** Returns `undefined` when required inputs are missing. */
341
+ requestTrustline: () => Promise<Result<string> | undefined>;
342
+ }
343
+ /**
344
+ * Gate Stellar delivery on account activation, trustline availability, and
345
+ * enough spendable XLM to create a missing trustline.
346
+ */
347
+ declare function useStellarGate({ dstChainKey, token, amount, address, walletProvider, }: UseStellarGateParams): StellarGate;
348
+
264
349
  type UseGetUserHubWalletAddressParams = ReadHookParams<Address, {
265
350
  spokeChainId?: SpokeChainKey;
266
351
  spokeAddress?: string;
@@ -1234,7 +1319,8 @@ type UseSwapsApiSubmitTxStatusParams = ReadHookParams<SubmitTxStatusResponseV2 |
1234
1319
  * });
1235
1320
  *
1236
1321
  * @remarks
1237
- * - Default refetch interval is 1 second; stops on 'solved' or 'failed' status.
1322
+ * - Default refetch interval is 1 second; stops on 'solved' or 'failed' status, or when the
1323
+ * backend marks the submission abandoned (`abandonedAt`) while `status` stays non-terminal.
1238
1324
  */
1239
1325
  declare const useSwapsApiSubmitTxStatus: ({ params, queryOptions, }?: UseSwapsApiSubmitTxStatusParams) => UseQueryResult<SubmitTxStatusResponseV2 | undefined, Error>;
1240
1326
 
@@ -1287,6 +1373,191 @@ type UseGetBridgeableTokensParams = ReadHookParams<XToken[], {
1287
1373
  }>;
1288
1374
  declare function useGetBridgeableTokens({ params, queryOptions, }?: UseGetBridgeableTokensParams): UseQueryResult<XToken[], Error>;
1289
1375
 
1376
+ type UseBridgeApiAllowanceParams = ReadHookParams<BridgeAllowanceCheckResponseV2 | undefined, {
1377
+ body: CreateBridgeIntentParamsV2 | undefined;
1378
+ apiConfig?: RequestOverrideConfig;
1379
+ }>;
1380
+ /**
1381
+ * React hook to check whether the source-token allowance is already sufficient for a bridge via
1382
+ * the bridge API — `sodax.api.bridge.checkAllowance`. Returns `{ valid }`.
1383
+ *
1384
+ * The `body` uses the wire DTO field names (`inputToken`/`inputAmount`).
1385
+ *
1386
+ * @example
1387
+ * const { data: allowance } = useBridgeApiAllowance({ params: { body: createBridgeIntentParams } });
1388
+ */
1389
+ declare const useBridgeApiAllowance: ({ params, queryOptions, }?: UseBridgeApiAllowanceParams) => UseQueryResult<BridgeAllowanceCheckResponseV2 | undefined, Error>;
1390
+
1391
+ /**
1392
+ * Mutation variables for {@link useBridgeApiApprove}. The per-request `apiConfig` override belongs
1393
+ * here rather than at the hook level — different calls in the same component can target different
1394
+ * endpoints without re-rendering.
1395
+ */
1396
+ type UseBridgeApiApproveVars = {
1397
+ body: CreateBridgeIntentParamsV2;
1398
+ apiConfig?: RequestOverrideConfig;
1399
+ };
1400
+ /**
1401
+ * React hook to build an unsigned token-approval transaction for the source token via the bridge
1402
+ * API — `sodax.api.bridge.approve`. Returns `{ tx }` (chain-specific unsigned tx) to sign and
1403
+ * broadcast yourself; it does not change state, so no queries are invalidated.
1404
+ *
1405
+ * @example
1406
+ * const { mutateAsync: approve } = useBridgeApiApprove();
1407
+ * const { tx } = await approve({ body: createBridgeIntentParams });
1408
+ */
1409
+ declare const useBridgeApiApprove: ({ mutationOptions, }?: MutationHookParams<BridgeApproveResponseV2, UseBridgeApiApproveVars>) => SafeUseMutationResult<BridgeApproveResponseV2, Error, UseBridgeApiApproveVars>;
1410
+
1411
+ type UseBridgeApiBridgeableAmountParams = ReadHookParams<BridgeableAmountResponseV2 | undefined, {
1412
+ body: BridgeQuoteRequestV2 | undefined;
1413
+ apiConfig?: RequestOverrideConfig;
1414
+ }>;
1415
+ /**
1416
+ * React hook to fetch the deposit capacity / withdrawal liquidity limit for a (from, to) token pair
1417
+ * via the bridge API — `sodax.api.bridge.getBridgeableAmount`. Returns `{ limit }`.
1418
+ *
1419
+ * Computable client-side from config + vault reserves — prefer `sodax.bridge.getBridgeableAmount`
1420
+ * for a no-round-trip read; this HTTP variant mirrors the `/bridge/bridgeable-amount` endpoint.
1421
+ *
1422
+ * The `body` uses the wire DTO field names (`srcChainKey`/`dstChainKey`/`inputToken`/`outputToken`).
1423
+ *
1424
+ * @example
1425
+ * const { data } = useBridgeApiBridgeableAmount({ params: { body: quote } });
1426
+ */
1427
+ declare const useBridgeApiBridgeableAmount: ({ params, queryOptions, }?: UseBridgeApiBridgeableAmountParams) => UseQueryResult<BridgeableAmountResponseV2 | undefined, Error>;
1428
+
1429
+ /**
1430
+ * Mutation variables for {@link useBridgeApiCreateBridgeIntent}. The per-request `apiConfig`
1431
+ * override belongs here rather than at the hook level.
1432
+ */
1433
+ type UseBridgeApiCreateBridgeIntentVars = {
1434
+ body: CreateBridgeIntentParamsV2;
1435
+ apiConfig?: RequestOverrideConfig;
1436
+ };
1437
+ /**
1438
+ * React hook to build an unsigned spoke-deposit (create-bridge-intent) transaction via the bridge
1439
+ * API — `sodax.api.bridge.createBridgeIntent`. Returns `{ tx, relayData }` (no `intent` struct —
1440
+ * bridge is vault-backed) to sign and broadcast yourself; it does not change state, so no queries
1441
+ * are invalidated.
1442
+ *
1443
+ * @example
1444
+ * const { mutateAsync: createBridgeIntent } = useBridgeApiCreateBridgeIntent();
1445
+ * const { tx, relayData } = await createBridgeIntent({ body: createBridgeIntentParams });
1446
+ */
1447
+ declare const useBridgeApiCreateBridgeIntent: ({ mutationOptions, }?: MutationHookParams<CreateBridgeIntentResponseV2, UseBridgeApiCreateBridgeIntentVars>) => SafeUseMutationResult<CreateBridgeIntentResponseV2, Error, UseBridgeApiCreateBridgeIntentVars>;
1448
+
1449
+ type UseBridgeApiFeeParams = ReadHookParams<BridgeFeeResponseV2 | undefined, {
1450
+ body: BridgeFeeRequestV2 | undefined;
1451
+ apiConfig?: RequestOverrideConfig;
1452
+ }>;
1453
+ /**
1454
+ * React hook to fetch the bridge partner fee for an input amount via the bridge API (uses a per-request
1455
+ * `body.partnerFee` override when supplied, else the backend-configured fee) —
1456
+ * `sodax.api.bridge.getFee`. Returns `{ fee }` (smallest unit, decimal string).
1457
+ *
1458
+ * The fee is computable client-side (config-driven, token-independent) — prefer `sodax.bridge.getFee`
1459
+ * for a no-round-trip read; this HTTP variant mirrors the `/bridge/fee` endpoint for parity.
1460
+ *
1461
+ * @example
1462
+ * const { data: fee } = useBridgeApiFee({ params: { body: { inputAmount } } });
1463
+ */
1464
+ declare const useBridgeApiFee: ({ params, queryOptions, }?: UseBridgeApiFeeParams) => UseQueryResult<BridgeFeeResponseV2 | undefined, Error>;
1465
+
1466
+ type UseBridgeApiIsBridgeableParams = ReadHookParams<BridgeableCheckResponseV2 | undefined, {
1467
+ body: BridgeQuoteRequestV2 | undefined;
1468
+ apiConfig?: RequestOverrideConfig;
1469
+ }>;
1470
+ /**
1471
+ * React hook to check whether a (from, to) token pair is bridgeable via the bridge API —
1472
+ * `sodax.api.bridge.isBridgeable`. Returns `{ bridgeable }`.
1473
+ *
1474
+ * Computable client-side from config + vault reserves — prefer `sodax.bridge.isBridgeable`
1475
+ * for a no-round-trip read; this HTTP variant mirrors the `/bridge/bridgeable/check` endpoint.
1476
+ *
1477
+ * The `body` uses the wire DTO field names (`srcChainKey`/`dstChainKey`/`inputToken`/`outputToken`).
1478
+ *
1479
+ * @example
1480
+ * const { data } = useBridgeApiIsBridgeable({ params: { body: quote } });
1481
+ */
1482
+ declare const useBridgeApiIsBridgeable: ({ params, queryOptions, }?: UseBridgeApiIsBridgeableParams) => UseQueryResult<BridgeableCheckResponseV2 | undefined, Error>;
1483
+
1484
+ /**
1485
+ * Mutation variables for {@link useBridgeApiSubmitTx}. The per-request `apiConfig` override
1486
+ * (e.g. base URL) belongs here rather than at the hook level — different submissions in the same
1487
+ * component can target different endpoints without re-rendering.
1488
+ */
1489
+ type UseBridgeApiSubmitTxVars = {
1490
+ request: BridgeSubmitTxRequestV2;
1491
+ apiConfig?: RequestOverrideConfig;
1492
+ };
1493
+ /**
1494
+ * React hook for submitting a broadcast bridge (spoke-deposit) transaction to be processed
1495
+ * (relayed server-side) via the bridge API — `sodax.api.bridge.submitTx`. Called AFTER signing +
1496
+ * broadcasting the spoke-deposit tx, handing it (with the FULL `relayData { address, payload }`
1497
+ * envelope) to the backend.
1498
+ *
1499
+ * Pure mutation: pass `{ request, apiConfig? }` to `mutate({...})`. Default `retry: 3` is applied
1500
+ * at the hook level — consumers can override via `mutationOptions.retry`.
1501
+ *
1502
+ * @example
1503
+ * const { mutateAsync: submitBridgeTx, isPending, error } = useBridgeApiSubmitTx();
1504
+ *
1505
+ * const result = await submitBridgeTx({
1506
+ * request: { txHash: '0x123...', srcChainKey: '0xa4b1.arbitrum', walletAddress: '0xabc...', relayData: { address: '0x...', payload: '0x...' } },
1507
+ * apiConfig: { baseURL: 'https://...' },
1508
+ * });
1509
+ */
1510
+ declare const useBridgeApiSubmitTx: ({ mutationOptions, }?: MutationHookParams<BridgeSubmitTxResponseV2, UseBridgeApiSubmitTxVars>) => SafeUseMutationResult<BridgeSubmitTxResponseV2, Error, UseBridgeApiSubmitTxVars>;
1511
+
1512
+ type UseBridgeApiSubmitTxStatusParams = ReadHookParams<BridgeSubmitTxStatusResponseV2 | undefined, {
1513
+ txHash: string | undefined;
1514
+ srcChainKey?: string;
1515
+ apiConfig?: RequestOverrideConfig;
1516
+ }>;
1517
+ /**
1518
+ * React hook for polling the processing status of a submitted bridge transaction via the bridge
1519
+ * API — `sodax.api.bridge.getSubmitTxStatus`. Both `txHash` and `srcChainKey` are required for the
1520
+ * query to run.
1521
+ *
1522
+ * @example
1523
+ * const { data: status } = useBridgeApiSubmitTxStatus({
1524
+ * params: { txHash: '0x123...', srcChainKey: '0xa4b1.arbitrum' },
1525
+ * });
1526
+ *
1527
+ * @remarks
1528
+ * - Default refetch interval is 1 second; stops on 'executed' or 'failed' status, or when the
1529
+ * backend marks the submission abandoned (`abandonedAt`) while `status` stays non-terminal —
1530
+ * mirroring the SDK's backend submit-tx poll (no solver `posting_execution` state — bridge has
1531
+ * no post-execution).
1532
+ */
1533
+ declare const useBridgeApiSubmitTxStatus: ({ params, queryOptions, }?: UseBridgeApiSubmitTxStatusParams) => UseQueryResult<BridgeSubmitTxStatusResponseV2 | undefined, Error>;
1534
+
1535
+ type UseBridgeApiTokensParams = ReadHookParams<GetBridgeTokensResponseV2, {
1536
+ apiConfig?: RequestOverrideConfig;
1537
+ }>;
1538
+ /**
1539
+ * React hook to fetch all supported bridge tokens grouped by SpokeChainKey via the bridge API —
1540
+ * `sodax.api.bridge.getTokens`. The token list is backend-served; the bridgeable-amount quote is
1541
+ * computable client-side via `useGetBridgeableAmount` (also mirrored by `useBridgeApiBridgeableAmount`).
1542
+ *
1543
+ * @example
1544
+ * const { data: tokensByChain } = useBridgeApiTokens();
1545
+ */
1546
+ declare const useBridgeApiTokens: ({ params, queryOptions, }?: UseBridgeApiTokensParams) => UseQueryResult<GetBridgeTokensResponseV2, Error>;
1547
+
1548
+ type UseBridgeApiTokensByChainParams = ReadHookParams<GetBridgeTokensByChainResponseV2 | undefined, {
1549
+ chainKey: string | undefined;
1550
+ apiConfig?: RequestOverrideConfig;
1551
+ }>;
1552
+ /**
1553
+ * React hook to fetch supported bridge tokens for a single SpokeChainKey via the bridge API —
1554
+ * `sodax.api.bridge.getTokensByChain`. Use `useBridgeApiTokens` for every chain at once.
1555
+ *
1556
+ * @example
1557
+ * const { data: tokens } = useBridgeApiTokensByChain({ params: { chainKey: '0xa4b1.arbitrum' } });
1558
+ */
1559
+ declare const useBridgeApiTokensByChain: ({ params, queryOptions, }?: UseBridgeApiTokensByChainParams) => UseQueryResult<GetBridgeTokensByChainResponseV2 | undefined, Error>;
1560
+
1290
1561
  /**
1291
1562
  * Mutation variables for {@link useStake}. Generic over `K extends SpokeChainKey` (defaults to
1292
1563
  * the full union). Sophisticated callers can lock K at the hook call site to narrow the
@@ -1363,7 +1634,7 @@ type UseStakingInfoParams = ReadHookParams<StakingInfo, {
1363
1634
  * deriving the hub wallet from the spoke `srcAddress` + `srcChainKey`. Throws on `!ok` so React
1364
1635
  * Query lands in `error` state.
1365
1636
  */
1366
- declare function useStakingInfo({ params, queryOptions }?: UseStakingInfoParams): UseQueryResult<StakingInfo, Error>;
1637
+ declare function useStakingInfo({ params, queryOptions, }?: UseStakingInfoParams): UseQueryResult<StakingInfo, Error>;
1367
1638
 
1368
1639
  type UnstakingInfoWithPenalty = UnstakingInfo & {
1369
1640
  requestsWithPenalty: UnstakeRequestWithPenalty[];
@@ -1383,7 +1654,7 @@ type UseStakingConfigParams = ReadHookParams<StakingConfig>;
1383
1654
  * React hook to fetch the global staking config (unstaking period, min unstaking period, max
1384
1655
  * penalty). Hub-only read; no chain context required. Throws on `!ok`.
1385
1656
  */
1386
- declare function useStakingConfig({ queryOptions, }?: UseStakingConfigParams): UseQueryResult<StakingConfig, Error>;
1657
+ declare function useStakingConfig({ queryOptions }?: UseStakingConfigParams): UseQueryResult<StakingConfig, Error>;
1387
1658
 
1388
1659
  type UseStakeRatioParams = ReadHookParams<[
1389
1660
  bigint,
@@ -2181,6 +2452,65 @@ type UseLeverageYieldWithdrawVars = LeverageYieldSwapWithdrawParams;
2181
2452
  */
2182
2453
  declare function useLeverageYieldWithdraw({ mutationOptions, }?: MutationHookParams<LeverageYieldSwapPayload, UseLeverageYieldWithdrawVars>): SafeUseMutationResult<LeverageYieldSwapPayload, Error, UseLeverageYieldWithdrawVars>;
2183
2454
 
2455
+ /** Keep mutation variables aligned with the SDK operation. */
2456
+ type UseActivateStellarAccountVars = ActivateStellarAccountParams;
2457
+ /**
2458
+ * Activate a Stellar account through the sponsoring service. Both `submitted`
2459
+ * and `alreadyActive` are successful outcomes.
2460
+ */
2461
+ declare function useActivateStellarAccount({ mutationOptions, }?: MutationHookParams<ActivateStellarAccountResult, UseActivateStellarAccountVars>): SafeUseMutationResult<ActivateStellarAccountResult, Error, UseActivateStellarAccountVars>;
2462
+
2463
+ type UseSponsorConfigParams = ReadHookParams<StellarSponsorConfig>;
2464
+ type SponsorConfigReader = {
2465
+ sponsoring: Pick<Sodax['sponsoring'], 'getStellarSponsorConfig'>;
2466
+ };
2467
+ declare function getSponsorConfigQueryOptions({ sodax }: {
2468
+ sodax: SponsorConfigReader;
2469
+ }): {
2470
+ queryKey: readonly ["sponsoring", "sponsorConfig"];
2471
+ queryFn: () => Promise<StellarSponsorConfig>;
2472
+ staleTime: number;
2473
+ };
2474
+ /** Read the sponsoring service's published transaction parameters. */
2475
+ declare function useSponsorConfig({ queryOptions, }?: UseSponsorConfigParams): UseQueryResult<StellarSponsorConfig, Error>;
2476
+
2477
+ type UseStellarAccountActiveParams = ReadHookParams<boolean, {
2478
+ address: string | undefined;
2479
+ }>;
2480
+ type StellarAccountReader = {
2481
+ sponsoring: Pick<Sodax['sponsoring'], 'isStellarAccountActive'>;
2482
+ };
2483
+ declare function getStellarAccountActiveQueryOptions({ sodax, address, }: {
2484
+ sodax: StellarAccountReader;
2485
+ address: string | undefined;
2486
+ }): {
2487
+ queryKey: readonly ["sponsoring", "stellarAccountActive", string | undefined];
2488
+ queryFn: () => Promise<boolean>;
2489
+ enabled: boolean;
2490
+ };
2491
+ /** Whether a Stellar account exists on-chain. */
2492
+ declare function useStellarAccountActive({ params, queryOptions, }?: UseStellarAccountActiveParams): UseQueryResult<boolean, Error>;
2493
+
2494
+ type UseStellarAccountStatusParams = ReadHookParams<StellarAccountStatus, {
2495
+ address: string | undefined;
2496
+ }>;
2497
+ type StellarAccountStatusReader = {
2498
+ sponsoring: Pick<Sodax['sponsoring'], 'getStellarAccountStatus'>;
2499
+ };
2500
+ declare function getStellarAccountStatusQueryOptions({ sodax, address, }: {
2501
+ sodax: StellarAccountStatusReader;
2502
+ address: string | undefined;
2503
+ }): {
2504
+ queryKey: readonly ["sponsoring", "stellarAccountStatus", string | undefined];
2505
+ queryFn: () => Promise<StellarAccountStatus>;
2506
+ enabled: boolean;
2507
+ };
2508
+ /**
2509
+ * Read account existence and trustline affordability in one Horizon request.
2510
+ * Prefer {@link useStellarGate} for destination gating.
2511
+ */
2512
+ declare function useStellarAccountStatus({ params, queryOptions, }?: UseStellarAccountStatusParams): UseQueryResult<StellarAccountStatus, Error>;
2513
+
2184
2514
  interface SodaxProviderProps {
2185
2515
  children: ReactNode;
2186
2516
  /**
@@ -2286,4 +2616,4 @@ interface NearStorageGateState {
2286
2616
  */
2287
2617
  declare function resolveNearStorageGate(chainKey: SpokeChainKey, check: NearStorageCheckResult): NearStorageGateState;
2288
2618
 
2289
- export { type ATokenData, type BackendPaginationParams, type BitcoinTradingSetup, type CreateSodaxQueryClientOptions, type DecreaseLiquidityParamsCore, type DepositParamsCore, type LeverageYieldShareHolder, type LeverageYieldShareHolding, type MutationHookOptions, type MutationHookParams, type NearStorageCheckResult, type NearStorageGateState, type RadfiSession, type ReadHookParams, type ReadQueryOptions, type ReserveUsdFormat, type SafeUseMutationResult, SodaxProvider, type UseATokenParams, type UseATokensBalancesParams, type UseApproveTokenVars, type UseBitcoinBalanceParams, type UseBitcoinTradingSetupParams, type UseBorrowVars, type UseBridgeAllowanceParams, type UseBridgeApproveVars, type UseBridgeVars, type UseClaimRewardsVars, type UseCreateDecreaseLiquidityParamsProps, type UseCreateDepositParamsProps, type UseCreateLimitOrderVars, type UseCreateSupplyLiquidityParamsProps, type UseCreateSupplyLiquidityParamsResult, type UseCreateWithdrawParamsProps, type UseDecreaseLiquidityVars, type UseDeriveUserWalletAddressParams, type UseDexAllowanceParams, type UseDexApproveVars, type UseDexDepositVars, type UseDexWithdrawVars, type UseEnsureRadfiAccessTokenVars, 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 UseLeverageYieldDepositVars, type UseLeverageYieldEffectiveAprParams, type UseLeverageYieldNotifySolverVars, type UseLeverageYieldPositionParams, type UseLeverageYieldPreviewRedeemParams, 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 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 UseSetSwapPreferenceVars, type UseSetSwapPreferenceVarsHub, type UseStatusParams, type UseStellarTrustlineCheckParams, type UseSupplyLiquidityVars, type UseSupplyVars, type UseSwapAllowanceParams, type UseSwapApproveVars, type UseSwapVars, type UseSwapsApiAllowanceParams, 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, getStellarTrustlineCheckQueryOptions, getXBalancesQueryOptions, isTerminalSwapIntentStatus, isUserRejectedError, loadRadfiSession, resolveNearStorageGate, saveRadfiSession, toResult, unwrapResult, useAToken, useATokensBalances, useApproveToken, useBackendAllMoneyMarketAssets, useBackendAllMoneyMarketBorrowers, useBackendIntentByHash, useBackendIntentByTxHash, useBackendMoneyMarketAsset, useBackendMoneyMarketAssetBorrowers, useBackendMoneyMarketAssetSuppliers, useBackendMoneyMarketPosition, useBackendOrderbook, useBackendUserIntents, useBitcoinBalance, useBitcoinTradingSetup, useBorrow, useBridge, useBridgeAllowance, useBridgeApprove, useCancelLimitOrder, useCancelSwap, useCancelUnstake, useClaim, useClaimRewards, useConvertedAssets, useCreateDecreaseLiquidityParams, useCreateDepositParams, useCreateLimitOrder, useCreateSupplyLiquidityParams, useCreateWithdrawParams, useDecreaseLiquidity, useDeriveUserWalletAddress, useDexAllowance, useDexApprove, useDexDeposit, useDexWithdraw, useEnsureRadfiAccessToken, useEstimateGas, useExpiredUtxos, useFeeClaimSwap, useFeeClaimWithdraw, useFetchAssetsBalances, useFundTradingWallet, useGetAutoSwapPreferences, useGetBridgeableAmount, useGetBridgeableTokens, useGetIntentDetails, useGetUserHubWalletAddress, useGetUserIntent, useHubAssetBalances, useHubProvider, useInstantUnstake, useInstantUnstakeAllowance, useInstantUnstakeApprove, useInstantUnstakeRatio, useIsTokenApproved, useLeverageYieldDeposit, useLeverageYieldEffectiveApr, useLeverageYieldNotifySolver, useLeverageYieldPosition, useLeverageYieldPreviewRedeem, useLeverageYieldShareBalances, useLeverageYieldTotalAssets, useLeverageYieldVaultSwap, useLeverageYieldWithdraw, useLiquidityAmounts, useMMAllowance, useMMApprove, useMigrateBaln, useMigrateIcxToSoda, useMigratebnUSD, useMigrationAllowance, useMigrationApprove, useNearStorageCheck, useNearStorageGate, usePartnerCancelIntent, usePoolBalances, usePoolData, usePools, usePositionInfo, useQuote, useRadfiAuth, useRadfiSession, useRadfiWithdraw, useRegisterNearStorage, useRenewUtxos, useRepay, useRequestTrustline, useReservesData, useReservesHumanized, useReservesList, useReservesUsdFormat, useRevertMigrateSodaToIcx, useSafeMutation, useSetSwapPreference, useSodaxContext, useStake, useStakeAllowance, useStakeApprove, useStakeRatio, useStakingConfig, useStakingInfo, useStatus, useStellarTrustlineCheck, useSupply, useSupplyLiquidity, useSwap, useSwapAllowance, useSwapApprove, useSwapsApiAllowance, useSwapsApiApprove, 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 };
2619
+ export { type ATokenData, type BackendPaginationParams, type BitcoinTradingSetup, type CreateSodaxQueryClientOptions, type DecreaseLiquidityParamsCore, type DepositParamsCore, 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 UseATokenParams, type UseATokensBalancesParams, type UseActivateStellarAccountVars, type UseApproveTokenVars, type UseBitcoinBalanceParams, type UseBitcoinTradingSetupParams, type UseBorrowVars, type UseBridgeAllowanceParams, type UseBridgeApiAllowanceParams, type UseBridgeApiApproveVars, type UseBridgeApiBridgeableAmountParams, type UseBridgeApiCreateBridgeIntentVars, type UseBridgeApiFeeParams, type UseBridgeApiIsBridgeableParams, type UseBridgeApiSubmitTxStatusParams, type UseBridgeApiSubmitTxVars, type UseBridgeApiTokensByChainParams, type UseBridgeApiTokensParams, type UseBridgeApproveVars, type UseBridgeVars, type UseClaimRewardsVars, type UseCreateDecreaseLiquidityParamsProps, type UseCreateDepositParamsProps, type UseCreateLimitOrderVars, type UseCreateSupplyLiquidityParamsProps, type UseCreateSupplyLiquidityParamsResult, type UseCreateWithdrawParamsProps, type UseDecreaseLiquidityVars, type UseDeriveUserWalletAddressParams, type UseDexAllowanceParams, type UseDexApproveVars, type UseDexDepositVars, type UseDexWithdrawVars, 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 UseLeverageYieldDepositVars, type UseLeverageYieldEffectiveAprParams, type UseLeverageYieldNotifySolverVars, type UseLeverageYieldPositionParams, type UseLeverageYieldPreviewRedeemParams, 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 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 UseSetSwapPreferenceVars, type UseSetSwapPreferenceVarsHub, type UseSponsorConfigParams, type UseStatusParams, type UseStellarAccountActiveParams, type UseStellarAccountStatusParams, type UseStellarGateParams, type UseStellarTrustlineCheckParams, type UseSupplyLiquidityVars, type UseSupplyVars, type UseSwapAllowanceParams, type UseSwapApproveVars, type UseSwapVars, type UseSwapsApiAllowanceParams, 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, getSponsorConfigQueryOptions, getStellarAccountActiveQueryOptions, getStellarAccountStatusQueryOptions, getStellarTrustlineCheckQueryOptions, getXBalancesQueryOptions, isTerminalSwapIntentStatus, isUserRejectedError, loadRadfiSession, resolveNearStorageGate, resolveStellarGate, saveRadfiSession, toResult, unwrapResult, useAToken, useATokensBalances, useActivateStellarAccount, useApproveToken, useBackendAllMoneyMarketAssets, useBackendAllMoneyMarketBorrowers, useBackendIntentByHash, useBackendIntentByTxHash, useBackendMoneyMarketAsset, useBackendMoneyMarketAssetBorrowers, useBackendMoneyMarketAssetSuppliers, useBackendMoneyMarketPosition, useBackendOrderbook, useBackendUserIntents, useBitcoinBalance, useBitcoinTradingSetup, useBorrow, useBridge, useBridgeAllowance, useBridgeApiAllowance, useBridgeApiApprove, useBridgeApiBridgeableAmount, useBridgeApiCreateBridgeIntent, useBridgeApiFee, useBridgeApiIsBridgeable, useBridgeApiSubmitTx, useBridgeApiSubmitTxStatus, useBridgeApiTokens, useBridgeApiTokensByChain, useBridgeApprove, useCancelLimitOrder, useCancelSwap, useCancelUnstake, useClaim, useClaimRewards, useConvertedAssets, useCreateDecreaseLiquidityParams, useCreateDepositParams, useCreateLimitOrder, useCreateSupplyLiquidityParams, useCreateWithdrawParams, useDecreaseLiquidity, useDeriveUserWalletAddress, useDexAllowance, useDexApprove, useDexDeposit, useDexWithdraw, useEnsureRadfiAccessToken, useEstablishTrustline, useEstimateGas, useExpiredUtxos, useFeeClaimSwap, useFeeClaimWithdraw, useFetchAssetsBalances, useFundTradingWallet, useGetAutoSwapPreferences, useGetBridgeableAmount, useGetBridgeableTokens, useGetIntentDetails, useGetUserHubWalletAddress, useGetUserIntent, useHubAssetBalances, useHubProvider, useInstantUnstake, useInstantUnstakeAllowance, useInstantUnstakeApprove, useInstantUnstakeRatio, useIsTokenApproved, useLeverageYieldDeposit, useLeverageYieldEffectiveApr, useLeverageYieldNotifySolver, useLeverageYieldPosition, useLeverageYieldPreviewRedeem, useLeverageYieldShareBalances, useLeverageYieldTotalAssets, useLeverageYieldVaultSwap, useLeverageYieldWithdraw, useLiquidityAmounts, useMMAllowance, useMMApprove, useMigrateBaln, useMigrateIcxToSoda, useMigratebnUSD, useMigrationAllowance, useMigrationApprove, useNearStorageCheck, useNearStorageGate, usePartnerCancelIntent, usePoolBalances, usePoolData, usePools, usePositionInfo, useQuote, useRadfiAuth, useRadfiSession, useRadfiWithdraw, useRegisterNearStorage, useRenewUtxos, useRepay, useRequestTrustline, useReservesData, useReservesHumanized, useReservesList, useReservesUsdFormat, useRevertMigrateSodaToIcx, useSafeMutation, useSetSwapPreference, useSodaxContext, useSponsorConfig, useStake, useStakeAllowance, useStakeApprove, useStakeRatio, useStakingConfig, useStakingInfo, useStatus, useStellarAccountActive, useStellarAccountStatus, useStellarGate, useStellarTrustlineCheck, useSupply, useSupplyLiquidity, useSwap, useSwapAllowance, useSwapApprove, useSwapsApiAllowance, useSwapsApiApprove, 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 };