@aave/react 4.0.0-next.0 → 4.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/dist/chunk-7FNJZJRF.js +2 -0
- package/dist/chunk-7FNJZJRF.js.map +1 -0
- package/dist/chunk-IESN2WLA.js +2 -0
- package/dist/chunk-IESN2WLA.js.map +1 -0
- package/dist/ethers.cjs +1 -1
- package/dist/ethers.cjs.map +1 -1
- package/dist/ethers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +324 -82
- package/dist/index.d.ts +324 -82
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{misc-gmAnSdm5.d.ts → misc-BUJSXsyz.d.ts} +11 -13
- package/dist/{misc-BkG5G4yl.d.cts → misc-CB94S1RB.d.cts} +11 -13
- package/dist/privy.cjs +1 -1
- package/dist/privy.cjs.map +1 -1
- package/dist/privy.js +1 -1
- package/dist/thirdweb.cjs +1 -2
- package/dist/thirdweb.cjs.map +1 -1
- package/dist/thirdweb.js +1 -2
- package/dist/thirdweb.js.map +1 -1
- package/dist/viem/index.cjs +1 -1
- package/dist/viem/index.cjs.map +1 -1
- package/dist/viem/index.d.cts +7 -17
- package/dist/viem/index.d.ts +7 -17
- package/dist/viem/index.js +1 -1
- package/dist/viem/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-GTUQRT5Q.js +0 -2
- package/dist/chunk-GTUQRT5Q.js.map +0 -1
- package/dist/chunk-XIDOSID3.js +0 -2
- package/dist/chunk-XIDOSID3.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AaveClient, CurrencyQueryOptions,
|
|
1
|
+
import { AaveClient, CurrencyQueryOptions, TimeWindowQueryOptions, UnexpectedError, ValidationError, ActivitiesRequest, PaginatedActivitiesResult } from '@aave/client';
|
|
2
2
|
export * from '@aave/client';
|
|
3
3
|
import React, { ReactNode } from 'react';
|
|
4
4
|
import { a as UseAsyncTask, C as CancelOperation, S as SendTransactionError, P as PendingTransactionError, b as PendingTransaction, T as TransactionHandler } from './writes-BXnwYgAQ.cjs';
|
|
5
5
|
export { A as AsyncTaskError, c as AsyncTaskIdle, d as AsyncTaskLoading, e as AsyncTaskState, f as AsyncTaskSuccess, g as TransactionHandlerOptions, U as UseSendTransactionResult } from './writes-BXnwYgAQ.cjs';
|
|
6
|
-
import { HubRequest, Hub, HubsRequest, HubAssetsRequest, HubAsset, PermitRequest, PermitTypedDataResponse, AssetRequest, Asset, AssetPriceHistoryRequest, AssetPriceSample, AssetSupplyHistoryRequest, AssetSupplySample, AssetBorrowHistoryRequest, AssetBorrowSample, ReserveRequest, Reserve, ReservesRequest,
|
|
6
|
+
import { HubRequest, Hub, HubsRequest, HubAssetsRequest, HubAsset, HubSummaryHistoryRequest, HubSummarySample, PermitRequest, PermitTypedDataResponse, AssetRequest, Asset, AssetPriceHistoryRequest, AssetPriceSample, AssetSupplyHistoryRequest, AssetSupplySample, AssetBorrowHistoryRequest, AssetBorrowSample, AssetCategoryBorrowHistoryRequest, AssetCategoryBorrowSample, AssetCategorySupplyHistoryRequest, AssetCategorySupplySample, ProtocolHistoryRequest, ProtocolHistorySample, ReserveRequest, Reserve, ReservesRequest, BorrowApyHistoryRequest, ApySample, SupplyApyHistoryRequest, SpokeRequest, Spoke, SpokesRequest, SpokePositionManagersRequest, PaginatedSpokePositionManagerResult, SpokeUserPositionManagersRequest, PaginatedSpokeUserPositionManagerResult, SwapQuoteRequest, SwapQuote, SwappableTokensRequest, Token, UserSwapsRequest, PaginatedUserSwapsResult, PrepareSwapRequest, SwapByIntentTypedData, SwapByIntentWithApprovalRequired, SwapTransactionRequest, SwapApprovalRequired, ERC20PermitSignature, SwapReceipt, InsufficientBalanceError, CancelSwapTypedData, TransactionRequest, PrepareSwapCancelRequest, SwapCancelled, SupplyRequest, BorrowRequest, RepayRequest, WithdrawRequest, RenounceSpokeUserPositionManagerRequest, UpdateUserPositionConditionsRequest, SetUserSuppliesAsCollateralRequest, LiquidatePositionRequest, SetSpokeUserPositionManagerRequest, PreviewRequest, PreviewUserPosition, UserSuppliesRequest, UserSupplyItem, UserBorrowsRequest, UserBorrowItem, UserSummaryRequest, UserSummary, UserPositionsRequest, UserPosition, UserPositionRequest, UserBalancesRequest, UserBalance, UserRiskPremiumBreakdownRequest, UserRiskPremiumBreakdownItem, UserSummaryHistoryRequest, UserSummaryHistoryItem } from '@aave/graphql';
|
|
7
7
|
import { Prettify, ResultAsync, ResultAwareError, TxHash } from '@aave/types';
|
|
8
|
-
import { S as Suspendable, a as SuspenseResult, P as Pausable, b as PausableSuspenseResult, R as ReadResult, c as PausableReadResult, d as Selector } from './misc-
|
|
9
|
-
export { e as UseChainArgs, f as UseChainsArgs, i as UseExchangeRateArgs, U as UseNetworkFee, l as UseNetworkFeeArgs, k as UseNetworkFeeRequestQuery, u as useChain, g as useChains, j as useExchangeRate, h as useExchangeRateAction } from './misc-
|
|
8
|
+
import { S as Suspendable, a as SuspenseResult, P as Pausable, b as PausableSuspenseResult, R as ReadResult, c as PausableReadResult, d as Selector } from './misc-CB94S1RB.cjs';
|
|
9
|
+
export { e as UseChainArgs, f as UseChainsArgs, i as UseExchangeRateArgs, U as UseNetworkFee, l as UseNetworkFeeArgs, k as UseNetworkFeeRequestQuery, u as useChain, g as useChains, j as useExchangeRate, h as useExchangeRateAction } from './misc-CB94S1RB.cjs';
|
|
10
10
|
import { UnexpectedError as UnexpectedError$1, SigningError, CancelError, TimeoutError, TransactionError, ValidationError as ValidationError$1 } from '@aave/core';
|
|
11
11
|
import { UserPositionQueryOptions } from '@aave/client/actions';
|
|
12
12
|
|
|
@@ -49,7 +49,7 @@ declare function AaveProvider({ children, client }: AaveProviderProps): React.JS
|
|
|
49
49
|
*/
|
|
50
50
|
declare function useAaveClient(): AaveClient;
|
|
51
51
|
|
|
52
|
-
type UseHubArgs = Prettify<HubRequest & CurrencyQueryOptions>;
|
|
52
|
+
type UseHubArgs = Prettify<HubRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
|
|
53
53
|
/**
|
|
54
54
|
* Fetch a specific hub by ID or by address and chain ID.
|
|
55
55
|
*
|
|
@@ -102,7 +102,7 @@ declare function useHub(args: UseHubArgs): ReadResult<Hub | null>;
|
|
|
102
102
|
* ```
|
|
103
103
|
*/
|
|
104
104
|
declare function useHub(args: Pausable<UseHubArgs>): PausableReadResult<Hub | null>;
|
|
105
|
-
type UseHubsArgs = Prettify<HubsRequest & CurrencyQueryOptions>;
|
|
105
|
+
type UseHubsArgs = Prettify<HubsRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
|
|
106
106
|
/**
|
|
107
107
|
* Fetch multiple hubs based on specified criteria.
|
|
108
108
|
*
|
|
@@ -153,7 +153,7 @@ declare function useHubs(args: UseHubsArgs): ReadResult<Hub[]>;
|
|
|
153
153
|
* ```
|
|
154
154
|
*/
|
|
155
155
|
declare function useHubs(args: Pausable<UseHubsArgs>): PausableReadResult<Hub[]>;
|
|
156
|
-
type UseHubAssetsArgs = Prettify<HubAssetsRequest & CurrencyQueryOptions>;
|
|
156
|
+
type UseHubAssetsArgs = Prettify<HubAssetsRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
|
|
157
157
|
/**
|
|
158
158
|
* Fetch hub assets for a specific hub by ID or by address and chain ID.
|
|
159
159
|
*
|
|
@@ -208,6 +208,61 @@ declare function useHubAssets(args: UseHubAssetsArgs): ReadResult<HubAsset[]>;
|
|
|
208
208
|
* ```
|
|
209
209
|
*/
|
|
210
210
|
declare function useHubAssets(args: Pausable<UseHubAssetsArgs>): PausableReadResult<HubAsset[]>;
|
|
211
|
+
type UseHubSummaryHistoryArgs = HubSummaryHistoryRequest;
|
|
212
|
+
/**
|
|
213
|
+
* Fetch historical summary data for a specific hub.
|
|
214
|
+
*
|
|
215
|
+
* This signature supports React Suspense:
|
|
216
|
+
*
|
|
217
|
+
* ```tsx
|
|
218
|
+
* const { data } = useHubSummaryHistory({
|
|
219
|
+
* query: { hubId: hubId('SGVsbG8h') },
|
|
220
|
+
* currency: Currency.Usd,
|
|
221
|
+
* window: TimeWindow.LastWeek,
|
|
222
|
+
* suspense: true,
|
|
223
|
+
* });
|
|
224
|
+
* ```
|
|
225
|
+
*/
|
|
226
|
+
declare function useHubSummaryHistory(args: UseHubSummaryHistoryArgs & Suspendable): SuspenseResult<HubSummarySample[]>;
|
|
227
|
+
/**
|
|
228
|
+
* Fetch historical summary data for a specific hub.
|
|
229
|
+
*
|
|
230
|
+
* Pausable suspense mode.
|
|
231
|
+
*
|
|
232
|
+
* ```tsx
|
|
233
|
+
* const { data } = useHubSummaryHistory({
|
|
234
|
+
* query: { hubId: hubId('SGVsbG8h') },
|
|
235
|
+
* suspense: true,
|
|
236
|
+
* pause: true,
|
|
237
|
+
* });
|
|
238
|
+
* ```
|
|
239
|
+
*/
|
|
240
|
+
declare function useHubSummaryHistory(args: Pausable<UseHubSummaryHistoryArgs> & Suspendable): PausableSuspenseResult<HubSummarySample[]>;
|
|
241
|
+
/**
|
|
242
|
+
* Fetch historical summary data for a specific hub.
|
|
243
|
+
*
|
|
244
|
+
* ```tsx
|
|
245
|
+
* const { data, error, loading } = useHubSummaryHistory({
|
|
246
|
+
* query: { hubId: hubId('SGVsbG8h') },
|
|
247
|
+
* currency: Currency.Usd,
|
|
248
|
+
* window: TimeWindow.LastWeek,
|
|
249
|
+
* });
|
|
250
|
+
* ```
|
|
251
|
+
*/
|
|
252
|
+
declare function useHubSummaryHistory(args: UseHubSummaryHistoryArgs): ReadResult<HubSummarySample[]>;
|
|
253
|
+
/**
|
|
254
|
+
* Fetch historical summary data for a specific hub.
|
|
255
|
+
*
|
|
256
|
+
* Pausable loading state mode.
|
|
257
|
+
*
|
|
258
|
+
* ```tsx
|
|
259
|
+
* const { data, error, loading, paused } = useHubSummaryHistory({
|
|
260
|
+
* query: { hubId: hubId('SGVsbG8h') },
|
|
261
|
+
* pause: true,
|
|
262
|
+
* });
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
265
|
+
declare function useHubSummaryHistory(args: Pausable<UseHubSummaryHistoryArgs>): PausableReadResult<HubSummarySample[]>;
|
|
211
266
|
/**
|
|
212
267
|
* Low-level hook to execute a {@link hubs} action directly.
|
|
213
268
|
*
|
|
@@ -456,8 +511,169 @@ declare function useAssetBorrowHistory(args: UseAssetBorrowHistoryArgs): ReadRes
|
|
|
456
511
|
* ```
|
|
457
512
|
*/
|
|
458
513
|
declare function useAssetBorrowHistory(args: Pausable<UseAssetBorrowHistoryArgs>): PausableReadResult<AssetBorrowSample[]>;
|
|
514
|
+
type UseAssetCategoryBorrowHistoryArgs = Prettify<AssetCategoryBorrowHistoryRequest & CurrencyQueryOptions>;
|
|
515
|
+
/**
|
|
516
|
+
* Fetch historical borrow data for a specific token category.
|
|
517
|
+
*
|
|
518
|
+
* This signature supports React Suspense:
|
|
519
|
+
*
|
|
520
|
+
* ```tsx
|
|
521
|
+
* const { data } = useAssetCategoryBorrowHistory({
|
|
522
|
+
* category: TokenCategory.Stablecoin,
|
|
523
|
+
* window: TimeWindow.LastWeek,
|
|
524
|
+
* suspense: true,
|
|
525
|
+
* });
|
|
526
|
+
* ```
|
|
527
|
+
*/
|
|
528
|
+
declare function useAssetCategoryBorrowHistory(args: UseAssetCategoryBorrowHistoryArgs & Suspendable): SuspenseResult<AssetCategoryBorrowSample[]>;
|
|
529
|
+
/**
|
|
530
|
+
* Fetch historical borrow data for a specific token category.
|
|
531
|
+
*
|
|
532
|
+
* Pausable suspense mode.
|
|
533
|
+
*
|
|
534
|
+
* ```tsx
|
|
535
|
+
* const { data } = useAssetCategoryBorrowHistory({
|
|
536
|
+
* category: TokenCategory.Stablecoin,
|
|
537
|
+
* suspense: true,
|
|
538
|
+
* pause: true,
|
|
539
|
+
* });
|
|
540
|
+
* ```
|
|
541
|
+
*/
|
|
542
|
+
declare function useAssetCategoryBorrowHistory(args: Pausable<UseAssetCategoryBorrowHistoryArgs> & Suspendable): PausableSuspenseResult<AssetCategoryBorrowSample[]>;
|
|
543
|
+
/**
|
|
544
|
+
* Fetch historical borrow data for a specific token category.
|
|
545
|
+
*
|
|
546
|
+
* ```tsx
|
|
547
|
+
* const { data, error, loading } = useAssetCategoryBorrowHistory({
|
|
548
|
+
* category: TokenCategory.Stablecoin,
|
|
549
|
+
* window: TimeWindow.LastWeek,
|
|
550
|
+
* });
|
|
551
|
+
* ```
|
|
552
|
+
*/
|
|
553
|
+
declare function useAssetCategoryBorrowHistory(args: UseAssetCategoryBorrowHistoryArgs): ReadResult<AssetCategoryBorrowSample[]>;
|
|
554
|
+
/**
|
|
555
|
+
* Fetch historical borrow data for a specific token category.
|
|
556
|
+
*
|
|
557
|
+
* Pausable loading state mode.
|
|
558
|
+
*
|
|
559
|
+
* ```tsx
|
|
560
|
+
* const { data, error, loading, paused } = useAssetCategoryBorrowHistory({
|
|
561
|
+
* category: TokenCategory.Stablecoin,
|
|
562
|
+
* pause: true,
|
|
563
|
+
* });
|
|
564
|
+
* ```
|
|
565
|
+
*/
|
|
566
|
+
declare function useAssetCategoryBorrowHistory(args: Pausable<UseAssetCategoryBorrowHistoryArgs>): PausableReadResult<AssetCategoryBorrowSample[]>;
|
|
567
|
+
type UseAssetCategorySupplyHistoryArgs = Prettify<AssetCategorySupplyHistoryRequest & CurrencyQueryOptions>;
|
|
568
|
+
/**
|
|
569
|
+
* Fetch historical supply data for a specific token category.
|
|
570
|
+
*
|
|
571
|
+
* This signature supports React Suspense:
|
|
572
|
+
*
|
|
573
|
+
* ```tsx
|
|
574
|
+
* const { data } = useAssetCategorySupplyHistory({
|
|
575
|
+
* category: TokenCategory.Stablecoin,
|
|
576
|
+
* window: TimeWindow.LastWeek,
|
|
577
|
+
* suspense: true,
|
|
578
|
+
* });
|
|
579
|
+
* ```
|
|
580
|
+
*/
|
|
581
|
+
declare function useAssetCategorySupplyHistory(args: UseAssetCategorySupplyHistoryArgs & Suspendable): SuspenseResult<AssetCategorySupplySample[]>;
|
|
582
|
+
/**
|
|
583
|
+
* Fetch historical supply data for a specific token category.
|
|
584
|
+
*
|
|
585
|
+
* Pausable suspense mode.
|
|
586
|
+
*
|
|
587
|
+
* ```tsx
|
|
588
|
+
* const { data } = useAssetCategorySupplyHistory({
|
|
589
|
+
* category: TokenCategory.Stablecoin,
|
|
590
|
+
* suspense: true,
|
|
591
|
+
* pause: true,
|
|
592
|
+
* });
|
|
593
|
+
* ```
|
|
594
|
+
*/
|
|
595
|
+
declare function useAssetCategorySupplyHistory(args: Pausable<UseAssetCategorySupplyHistoryArgs> & Suspendable): PausableSuspenseResult<AssetCategorySupplySample[]>;
|
|
596
|
+
/**
|
|
597
|
+
* Fetch historical supply data for a specific token category.
|
|
598
|
+
*
|
|
599
|
+
* ```tsx
|
|
600
|
+
* const { data, error, loading } = useAssetCategorySupplyHistory({
|
|
601
|
+
* category: TokenCategory.Stablecoin,
|
|
602
|
+
* window: TimeWindow.LastWeek,
|
|
603
|
+
* });
|
|
604
|
+
* ```
|
|
605
|
+
*/
|
|
606
|
+
declare function useAssetCategorySupplyHistory(args: UseAssetCategorySupplyHistoryArgs): ReadResult<AssetCategorySupplySample[]>;
|
|
607
|
+
/**
|
|
608
|
+
* Fetch historical supply data for a specific token category.
|
|
609
|
+
*
|
|
610
|
+
* Pausable loading state mode.
|
|
611
|
+
*
|
|
612
|
+
* ```tsx
|
|
613
|
+
* const { data, error, loading, paused } = useAssetCategorySupplyHistory({
|
|
614
|
+
* category: TokenCategory.Stablecoin,
|
|
615
|
+
* pause: true,
|
|
616
|
+
* });
|
|
617
|
+
* ```
|
|
618
|
+
*/
|
|
619
|
+
declare function useAssetCategorySupplyHistory(args: Pausable<UseAssetCategorySupplyHistoryArgs>): PausableReadResult<AssetCategorySupplySample[]>;
|
|
620
|
+
type UseProtocolHistoryArgs = ProtocolHistoryRequest;
|
|
621
|
+
/**
|
|
622
|
+
* Fetch historical protocol-wide data (deposits, borrows, earnings).
|
|
623
|
+
*
|
|
624
|
+
* This signature supports React Suspense:
|
|
625
|
+
*
|
|
626
|
+
* ```tsx
|
|
627
|
+
* const { data } = useProtocolHistory({
|
|
628
|
+
* currency: Currency.Usd,
|
|
629
|
+
* window: TimeWindow.LastWeek,
|
|
630
|
+
* suspense: true,
|
|
631
|
+
* });
|
|
632
|
+
* ```
|
|
633
|
+
*/
|
|
634
|
+
declare function useProtocolHistory(args: UseProtocolHistoryArgs & Suspendable): SuspenseResult<ProtocolHistorySample[]>;
|
|
635
|
+
/**
|
|
636
|
+
* Fetch historical protocol-wide data (deposits, borrows, earnings).
|
|
637
|
+
*
|
|
638
|
+
* Pausable suspense mode.
|
|
639
|
+
*
|
|
640
|
+
* ```tsx
|
|
641
|
+
* const { data } = useProtocolHistory({
|
|
642
|
+
* currency: Currency.Usd,
|
|
643
|
+
* window: TimeWindow.LastWeek,
|
|
644
|
+
* suspense: true,
|
|
645
|
+
* pause: true,
|
|
646
|
+
* });
|
|
647
|
+
* ```
|
|
648
|
+
*/
|
|
649
|
+
declare function useProtocolHistory(args: Pausable<UseProtocolHistoryArgs> & Suspendable): PausableSuspenseResult<ProtocolHistorySample[]>;
|
|
650
|
+
/**
|
|
651
|
+
* Fetch historical protocol-wide data (deposits, borrows, earnings).
|
|
652
|
+
*
|
|
653
|
+
* ```tsx
|
|
654
|
+
* const { data, error, loading } = useProtocolHistory({
|
|
655
|
+
* currency: Currency.Usd,
|
|
656
|
+
* window: TimeWindow.LastWeek,
|
|
657
|
+
* });
|
|
658
|
+
* ```
|
|
659
|
+
*/
|
|
660
|
+
declare function useProtocolHistory(args: UseProtocolHistoryArgs): ReadResult<ProtocolHistorySample[]>;
|
|
661
|
+
/**
|
|
662
|
+
* Fetch historical protocol-wide data (deposits, borrows, earnings).
|
|
663
|
+
*
|
|
664
|
+
* Pausable loading state mode.
|
|
665
|
+
*
|
|
666
|
+
* ```tsx
|
|
667
|
+
* const { data, error, loading, paused } = useProtocolHistory({
|
|
668
|
+
* currency: Currency.Usd,
|
|
669
|
+
* window: TimeWindow.LastWeek,
|
|
670
|
+
* pause: true,
|
|
671
|
+
* });
|
|
672
|
+
* ```
|
|
673
|
+
*/
|
|
674
|
+
declare function useProtocolHistory(args: Pausable<UseProtocolHistoryArgs>): PausableReadResult<ProtocolHistorySample[]>;
|
|
459
675
|
|
|
460
|
-
type UseReserveArgs = Prettify<ReserveRequest & CurrencyQueryOptions>;
|
|
676
|
+
type UseReserveArgs = Prettify<ReserveRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
|
|
461
677
|
/**
|
|
462
678
|
* Fetch a specific reserve by reserve ID, spoke, and chain.
|
|
463
679
|
*
|
|
@@ -537,8 +753,8 @@ declare function useReserve(args: Pausable<UseReserveArgs>): PausableReadResult<
|
|
|
537
753
|
* }
|
|
538
754
|
* ```
|
|
539
755
|
*/
|
|
540
|
-
declare function useReserveAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<ReserveRequest, Reserve | null, UnexpectedError>;
|
|
541
|
-
type UseReservesArgs<T = Reserve[]> = Prettify<ReservesRequest & CurrencyQueryOptions & {
|
|
756
|
+
declare function useReserveAction(options?: Required<CurrencyQueryOptions> & TimeWindowQueryOptions): UseAsyncTask<ReserveRequest, Reserve | null, UnexpectedError>;
|
|
757
|
+
type UseReservesArgs<T = Reserve[]> = Prettify<ReservesRequest & CurrencyQueryOptions & TimeWindowQueryOptions & {
|
|
542
758
|
/**
|
|
543
759
|
* A function that maps the full list of reserves
|
|
544
760
|
* into a derived or narrowed value.
|
|
@@ -737,8 +953,8 @@ declare function useReserves<T = Reserve[]>(args: Pausable<UseReservesArgs<T>>):
|
|
|
737
953
|
* }
|
|
738
954
|
* ```
|
|
739
955
|
*/
|
|
740
|
-
declare function useReservesAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<ReservesRequest, Reserve[], UnexpectedError>;
|
|
741
|
-
type UseBorrowApyHistoryArgs =
|
|
956
|
+
declare function useReservesAction(options?: Required<CurrencyQueryOptions> & TimeWindowQueryOptions): UseAsyncTask<ReservesRequest, Reserve[], UnexpectedError>;
|
|
957
|
+
type UseBorrowApyHistoryArgs = BorrowApyHistoryRequest;
|
|
742
958
|
/**
|
|
743
959
|
* Fetch borrow APY history for a specific reserve over time.
|
|
744
960
|
*
|
|
@@ -752,7 +968,7 @@ type UseBorrowApyHistoryArgs = BorrowAPYHistoryRequest;
|
|
|
752
968
|
* });
|
|
753
969
|
* ```
|
|
754
970
|
*/
|
|
755
|
-
declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs & Suspendable): SuspenseResult<
|
|
971
|
+
declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs & Suspendable): SuspenseResult<ApySample[]>;
|
|
756
972
|
/**
|
|
757
973
|
* Fetch borrow APY history for a specific reserve over time.
|
|
758
974
|
*
|
|
@@ -767,7 +983,7 @@ declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs & Suspendable
|
|
|
767
983
|
* });
|
|
768
984
|
* ```
|
|
769
985
|
*/
|
|
770
|
-
declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs> & Suspendable): PausableSuspenseResult<
|
|
986
|
+
declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs> & Suspendable): PausableSuspenseResult<ApySample[]>;
|
|
771
987
|
/**
|
|
772
988
|
* Fetch borrow APY history for a specific reserve over time.
|
|
773
989
|
*
|
|
@@ -778,7 +994,7 @@ declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs> & S
|
|
|
778
994
|
* });
|
|
779
995
|
* ```
|
|
780
996
|
*/
|
|
781
|
-
declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs): ReadResult<
|
|
997
|
+
declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs): ReadResult<ApySample[]>;
|
|
782
998
|
/**
|
|
783
999
|
* Fetch borrow APY history for a specific reserve over time.
|
|
784
1000
|
*
|
|
@@ -792,8 +1008,8 @@ declare function useBorrowApyHistory(args: UseBorrowApyHistoryArgs): ReadResult<
|
|
|
792
1008
|
* });
|
|
793
1009
|
* ```
|
|
794
1010
|
*/
|
|
795
|
-
declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs>): PausableReadResult<
|
|
796
|
-
type UseSupplyApyHistoryArgs =
|
|
1011
|
+
declare function useBorrowApyHistory(args: Pausable<UseBorrowApyHistoryArgs>): PausableReadResult<ApySample[]>;
|
|
1012
|
+
type UseSupplyApyHistoryArgs = SupplyApyHistoryRequest;
|
|
797
1013
|
/**
|
|
798
1014
|
* Fetch supply APY history for a specific reserve over time.
|
|
799
1015
|
*
|
|
@@ -807,7 +1023,7 @@ type UseSupplyApyHistoryArgs = SupplyAPYHistoryRequest;
|
|
|
807
1023
|
* });
|
|
808
1024
|
* ```
|
|
809
1025
|
*/
|
|
810
|
-
declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs & Suspendable): SuspenseResult<
|
|
1026
|
+
declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs & Suspendable): SuspenseResult<ApySample[]>;
|
|
811
1027
|
/**
|
|
812
1028
|
* Fetch supply APY history for a specific reserve over time.
|
|
813
1029
|
*
|
|
@@ -822,7 +1038,7 @@ declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs & Suspendable
|
|
|
822
1038
|
* });
|
|
823
1039
|
* ```
|
|
824
1040
|
*/
|
|
825
|
-
declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs> & Suspendable): PausableSuspenseResult<
|
|
1041
|
+
declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs> & Suspendable): PausableSuspenseResult<ApySample[]>;
|
|
826
1042
|
/**
|
|
827
1043
|
* Fetch supply APY history for a specific reserve over time.
|
|
828
1044
|
*
|
|
@@ -833,7 +1049,7 @@ declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs> & S
|
|
|
833
1049
|
* });
|
|
834
1050
|
* ```
|
|
835
1051
|
*/
|
|
836
|
-
declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs): ReadResult<
|
|
1052
|
+
declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs): ReadResult<ApySample[]>;
|
|
837
1053
|
/**
|
|
838
1054
|
* Fetch supply APY history for a specific reserve over time.
|
|
839
1055
|
*
|
|
@@ -847,7 +1063,7 @@ declare function useSupplyApyHistory(args: UseSupplyApyHistoryArgs): ReadResult<
|
|
|
847
1063
|
* });
|
|
848
1064
|
* ```
|
|
849
1065
|
*/
|
|
850
|
-
declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs>): PausableReadResult<
|
|
1066
|
+
declare function useSupplyApyHistory(args: Pausable<UseSupplyApyHistoryArgs>): PausableReadResult<ApySample[]>;
|
|
851
1067
|
|
|
852
1068
|
type UseSpokeArgs = SpokeRequest;
|
|
853
1069
|
/**
|
|
@@ -1627,62 +1843,21 @@ declare function useWithdraw(handler: TransactionHandler): UseAsyncTask<Withdraw
|
|
|
1627
1843
|
*/
|
|
1628
1844
|
declare function useRenounceSpokeUserPositionManager(handler: TransactionHandler): UseAsyncTask<RenounceSpokeUserPositionManagerRequest, TxHash, SendTransactionError | PendingTransactionError>;
|
|
1629
1845
|
/**
|
|
1630
|
-
*
|
|
1846
|
+
* Hook for updating user position conditions (dynamic config and/or risk premium).
|
|
1631
1847
|
*
|
|
1632
1848
|
* ```ts
|
|
1633
1849
|
* const [sendTransaction] = useSendTransaction(wallet);
|
|
1634
|
-
* const [
|
|
1850
|
+
* const [update, { loading, error }] = useUpdateUserPositionConditions((transaction, { cancel }) => {
|
|
1635
1851
|
* return sendTransaction(transaction);
|
|
1636
1852
|
* });
|
|
1637
1853
|
*
|
|
1638
1854
|
* // …
|
|
1639
1855
|
*
|
|
1640
|
-
* const result = await
|
|
1641
|
-
*
|
|
1642
|
-
*
|
|
1643
|
-
* switch (result.error.name) {
|
|
1644
|
-
* case 'CancelError':
|
|
1645
|
-
* // The user cancelled the operation
|
|
1646
|
-
* return;
|
|
1647
|
-
*
|
|
1648
|
-
* case 'SigningError':
|
|
1649
|
-
* console.error(`Failed to sign the transaction: ${result.error.message}`);
|
|
1650
|
-
* break;
|
|
1651
|
-
*
|
|
1652
|
-
* case 'TimeoutError':
|
|
1653
|
-
* console.error(`Transaction timed out: ${result.error.message}`);
|
|
1654
|
-
* break;
|
|
1655
|
-
*
|
|
1656
|
-
* case 'TransactionError':
|
|
1657
|
-
* console.error(`Transaction failed: ${result.error.message}`);
|
|
1658
|
-
* break;
|
|
1659
|
-
*
|
|
1660
|
-
* case 'UnexpectedError':
|
|
1661
|
-
* console.error(result.error.message);
|
|
1662
|
-
* break;
|
|
1663
|
-
* }
|
|
1664
|
-
* return;
|
|
1665
|
-
* }
|
|
1666
|
-
*
|
|
1667
|
-
* console.log('Transaction sent with hash:', result.value);
|
|
1668
|
-
* ```
|
|
1669
|
-
*
|
|
1670
|
-
* @param handler - The handler that will be used to handle the transaction.
|
|
1671
|
-
*/
|
|
1672
|
-
declare function useUpdateUserRiskPremium(handler: TransactionHandler): UseAsyncTask<UpdateUserRiskPremiumRequest, TxHash, SendTransactionError | PendingTransactionError>;
|
|
1673
|
-
/**
|
|
1674
|
-
* A hook that provides a way to update the user dynamic configuration for a spoke.
|
|
1675
|
-
*
|
|
1676
|
-
* ```ts
|
|
1677
|
-
* const [sendTransaction] = useSendTransaction(wallet);
|
|
1678
|
-
* const [updateUserDynamicConfig, { loading, error }] = useUpdateUserDynamicConfig((transaction, { cancel }) => {
|
|
1679
|
-
* return sendTransaction(transaction);
|
|
1856
|
+
* const result = await update({
|
|
1857
|
+
* userPositionId: userPosition.id,
|
|
1858
|
+
* update: UserPositionConditionsUpdate.AllDynamicConfig,
|
|
1680
1859
|
* });
|
|
1681
1860
|
*
|
|
1682
|
-
* // …
|
|
1683
|
-
*
|
|
1684
|
-
* const result = await updateUserDynamicConfig({ ... });
|
|
1685
|
-
*
|
|
1686
1861
|
* if (result.isErr()) {
|
|
1687
1862
|
* switch (result.error.name) {
|
|
1688
1863
|
* case 'CancelError':
|
|
@@ -1713,20 +1888,24 @@ declare function useUpdateUserRiskPremium(handler: TransactionHandler): UseAsync
|
|
|
1713
1888
|
*
|
|
1714
1889
|
* @param handler - The handler that will be used to handle the transaction.
|
|
1715
1890
|
*/
|
|
1716
|
-
declare function
|
|
1891
|
+
declare function useUpdateUserPositionConditions(handler: TransactionHandler): UseAsyncTask<UpdateUserPositionConditionsRequest, TxHash, SendTransactionError | PendingTransactionError>;
|
|
1717
1892
|
/**
|
|
1718
|
-
* Hook for
|
|
1893
|
+
* Hook for updating the collateral status of user's supplies.
|
|
1719
1894
|
*
|
|
1720
1895
|
* ```ts
|
|
1721
1896
|
* const [sendTransaction] = useSendTransaction(wallet);
|
|
1722
|
-
* const [
|
|
1897
|
+
* const [setUserSuppliesAsCollateral, { loading, error }] = useSetUserSuppliesAsCollateral((transaction, { cancel }) => {
|
|
1723
1898
|
* return sendTransaction(transaction);
|
|
1724
1899
|
* });
|
|
1725
1900
|
*
|
|
1726
|
-
* const result = await
|
|
1727
|
-
*
|
|
1728
|
-
*
|
|
1729
|
-
*
|
|
1901
|
+
* const result = await setUserSuppliesAsCollateral({
|
|
1902
|
+
* changes: [
|
|
1903
|
+
* {
|
|
1904
|
+
* reserve: reserve.id,
|
|
1905
|
+
* enableCollateral: true
|
|
1906
|
+
* }
|
|
1907
|
+
* ],
|
|
1908
|
+
* sender: evmAddress('0x456...')
|
|
1730
1909
|
* });
|
|
1731
1910
|
*
|
|
1732
1911
|
* if (result.isErr()) {
|
|
@@ -1759,7 +1938,7 @@ declare function useUpdateUserDynamicConfig(handler: TransactionHandler): UseAsy
|
|
|
1759
1938
|
*
|
|
1760
1939
|
* @param handler - The handler that will be used to handle the transaction.
|
|
1761
1940
|
*/
|
|
1762
|
-
declare function
|
|
1941
|
+
declare function useSetUserSuppliesAsCollateral(handler: TransactionHandler): UseAsyncTask<SetUserSuppliesAsCollateralRequest, TxHash, SendTransactionError | PendingTransactionError>;
|
|
1763
1942
|
/**
|
|
1764
1943
|
* A hook that provides a way to liquidate a user's position.
|
|
1765
1944
|
*
|
|
@@ -2011,7 +2190,7 @@ declare function usePreview(args: UsePreviewArgs): ReadResult<PreviewUserPositio
|
|
|
2011
2190
|
* ```
|
|
2012
2191
|
*/
|
|
2013
2192
|
declare function usePreview(args: Pausable<UsePreviewArgs>): PausableReadResult<PreviewUserPosition>;
|
|
2014
|
-
type UseActivitiesArgs = Prettify<ActivitiesRequest & CurrencyQueryOptions>;
|
|
2193
|
+
type UseActivitiesArgs = Prettify<ActivitiesRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
|
|
2015
2194
|
/**
|
|
2016
2195
|
* Fetch paginated list of activities.
|
|
2017
2196
|
*
|
|
@@ -2093,9 +2272,9 @@ declare function useActivities(args: Pausable<UseActivitiesArgs>): PausableReadR
|
|
|
2093
2272
|
* @param options - The query options.
|
|
2094
2273
|
* @returns The user history.
|
|
2095
2274
|
*/
|
|
2096
|
-
declare function useActivitiesAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<ActivitiesRequest, PaginatedActivitiesResult, UnexpectedError>;
|
|
2275
|
+
declare function useActivitiesAction(options?: Required<CurrencyQueryOptions> & TimeWindowQueryOptions): UseAsyncTask<ActivitiesRequest, PaginatedActivitiesResult, UnexpectedError>;
|
|
2097
2276
|
|
|
2098
|
-
type UseUserSuppliesArgs = Prettify<UserSuppliesRequest & CurrencyQueryOptions>;
|
|
2277
|
+
type UseUserSuppliesArgs = Prettify<UserSuppliesRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
|
|
2099
2278
|
/**
|
|
2100
2279
|
* Fetch all user supply positions.
|
|
2101
2280
|
*
|
|
@@ -2208,8 +2387,8 @@ declare function useUserSupplies(args: Pausable<UseUserSuppliesArgs>): PausableR
|
|
|
2208
2387
|
* }
|
|
2209
2388
|
* ```
|
|
2210
2389
|
*/
|
|
2211
|
-
declare function useUserSuppliesAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<UserSuppliesRequest, UserSupplyItem[], UnexpectedError>;
|
|
2212
|
-
type UseUserBorrowsArgs = Prettify<UserBorrowsRequest & CurrencyQueryOptions>;
|
|
2390
|
+
declare function useUserSuppliesAction(options?: Required<CurrencyQueryOptions> & TimeWindowQueryOptions): UseAsyncTask<UserSuppliesRequest, UserSupplyItem[], UnexpectedError>;
|
|
2391
|
+
type UseUserBorrowsArgs = Prettify<UserBorrowsRequest & CurrencyQueryOptions & TimeWindowQueryOptions>;
|
|
2213
2392
|
/**
|
|
2214
2393
|
* Fetch all user borrow positions.
|
|
2215
2394
|
*
|
|
@@ -2315,7 +2494,7 @@ declare function useUserBorrows(args: Pausable<UseUserBorrowsArgs>): PausableRea
|
|
|
2315
2494
|
* }
|
|
2316
2495
|
* ```
|
|
2317
2496
|
*/
|
|
2318
|
-
declare function useUserBorrowsAction(options?: Required<CurrencyQueryOptions>): UseAsyncTask<UserBorrowsRequest, UserBorrowItem[], UnexpectedError>;
|
|
2497
|
+
declare function useUserBorrowsAction(options?: Required<CurrencyQueryOptions> & TimeWindowQueryOptions): UseAsyncTask<UserBorrowsRequest, UserBorrowItem[], UnexpectedError>;
|
|
2319
2498
|
type UseUserSummaryArgs = Prettify<UserSummaryRequest & TimeWindowQueryOptions & CurrencyQueryOptions>;
|
|
2320
2499
|
/**
|
|
2321
2500
|
* Fetch a user's financial summary.
|
|
@@ -2578,6 +2757,69 @@ declare function useUserBalances(args: UseUserBalancesArgs): ReadResult<UserBala
|
|
|
2578
2757
|
* ```
|
|
2579
2758
|
*/
|
|
2580
2759
|
declare function useUserBalances(args: Pausable<UseUserBalancesArgs>): PausableReadResult<UserBalance[]>;
|
|
2760
|
+
type UseUserRiskPremiumBreakdownArgs = UserRiskPremiumBreakdownRequest;
|
|
2761
|
+
/**
|
|
2762
|
+
* Fetch the risk premium breakdown for a user position or spoke.
|
|
2763
|
+
*
|
|
2764
|
+
* This signature supports React Suspense:
|
|
2765
|
+
*
|
|
2766
|
+
* ```tsx
|
|
2767
|
+
* const { data } = useUserRiskPremiumBreakdown({
|
|
2768
|
+
* query: {
|
|
2769
|
+
* userPositionId: userPositionId('SGVsbG8h'),
|
|
2770
|
+
* },
|
|
2771
|
+
* user: evmAddress('0x742d35cc…'),
|
|
2772
|
+
* suspense: true,
|
|
2773
|
+
* });
|
|
2774
|
+
* ```
|
|
2775
|
+
*/
|
|
2776
|
+
declare function useUserRiskPremiumBreakdown(args: UseUserRiskPremiumBreakdownArgs & Suspendable): SuspenseResult<UserRiskPremiumBreakdownItem[]>;
|
|
2777
|
+
/**
|
|
2778
|
+
* Fetch the risk premium breakdown for a user position or spoke.
|
|
2779
|
+
*
|
|
2780
|
+
* Pausable suspense mode.
|
|
2781
|
+
*
|
|
2782
|
+
* ```tsx
|
|
2783
|
+
* const { data } = useUserRiskPremiumBreakdown({
|
|
2784
|
+
* query: {
|
|
2785
|
+
* userPositionId: userPositionId('SGVsbG8h'),
|
|
2786
|
+
* },
|
|
2787
|
+
* user: evmAddress('0x742d35cc…'),
|
|
2788
|
+
* suspense: true,
|
|
2789
|
+
* pause: true,
|
|
2790
|
+
* });
|
|
2791
|
+
* ```
|
|
2792
|
+
*/
|
|
2793
|
+
declare function useUserRiskPremiumBreakdown(args: Pausable<UseUserRiskPremiumBreakdownArgs> & Suspendable): PausableSuspenseResult<UserRiskPremiumBreakdownItem[]>;
|
|
2794
|
+
/**
|
|
2795
|
+
* Fetch the risk premium breakdown for a user position or spoke.
|
|
2796
|
+
*
|
|
2797
|
+
* ```tsx
|
|
2798
|
+
* const { data, error, loading } = useUserRiskPremiumBreakdown({
|
|
2799
|
+
* query: {
|
|
2800
|
+
* userPositionId: userPositionId('SGVsbG8h'),
|
|
2801
|
+
* },
|
|
2802
|
+
* user: evmAddress('0x742d35cc…'),
|
|
2803
|
+
* });
|
|
2804
|
+
* ```
|
|
2805
|
+
*/
|
|
2806
|
+
declare function useUserRiskPremiumBreakdown(args: UseUserRiskPremiumBreakdownArgs): ReadResult<UserRiskPremiumBreakdownItem[]>;
|
|
2807
|
+
/**
|
|
2808
|
+
* Fetch the risk premium breakdown for a user position or spoke.
|
|
2809
|
+
*
|
|
2810
|
+
* Pausable loading state mode.
|
|
2811
|
+
*
|
|
2812
|
+
* ```tsx
|
|
2813
|
+
* const { data, error, loading, paused } = useUserRiskPremiumBreakdown({
|
|
2814
|
+
* query: {
|
|
2815
|
+
* userPositionId: userPositionId('SGVsbG8h'),
|
|
2816
|
+
* },
|
|
2817
|
+
* user: evmAddress('0x742d35cc…'),
|
|
2818
|
+
* pause: true,
|
|
2819
|
+
* });
|
|
2820
|
+
* ```
|
|
2821
|
+
*/
|
|
2822
|
+
declare function useUserRiskPremiumBreakdown(args: Pausable<UseUserRiskPremiumBreakdownArgs>): PausableReadResult<UserRiskPremiumBreakdownItem[]>;
|
|
2581
2823
|
/**
|
|
2582
2824
|
* Low-level hook to execute a {@link userBalances} action directly.
|
|
2583
2825
|
*
|
|
@@ -2667,4 +2909,4 @@ declare function useUserSummaryHistory(args: UseUserSummaryHistoryArgs): ReadRes
|
|
|
2667
2909
|
*/
|
|
2668
2910
|
declare function useUserSummaryHistory(args: Pausable<UseUserSummaryHistoryArgs>): PausableReadResult<UserSummaryHistoryItem[]>;
|
|
2669
2911
|
|
|
2670
|
-
export { AaveProvider, type AaveProviderProps, type CancelSwapError, type CancelSwapHandler, CannotCancelSwapError, SendTransactionError, type SwapHandler, type SwapHandlerOptions, type SwapIntent, type UseActivitiesArgs, type UseAssetArgs, type UseAssetBorrowHistoryArgs, type UseAssetPriceHistoryArgs, type UseAssetSupplyHistoryArgs, UseAsyncTask, type UseBorrowApyHistoryArgs, type UseHubArgs, type UseHubAssetsArgs, type UseHubsArgs, type UsePreviewArgs, type UseReserveArgs, type UseReservesArgs, type UseSpokeArgs, type UseSpokePositionManagersArgs, type UseSpokeUserPositionManagersArgs, type UseSpokesArgs, type UseSupplyApyHistoryArgs, type UseSwapQuoteArgs, type UseSwapTokensRequest, type UseSwappableTokensArgs, type UseUserBalancesArgs, type UseUserBorrowsArgs, type UseUserPositionArgs, type UseUserPositionsArgs, type UseUserSummaryArgs, type UseUserSummaryHistoryArgs, type UseUserSuppliesArgs, type UseUserSwapsArgs, useAaveClient, useActivities, useActivitiesAction, useAsset, useAssetBorrowHistory, useAssetPriceHistory, useAssetSupplyHistory, useBorrow, useBorrowApyHistory, useCancelSwap, useHub, useHubAssets, useHubs, useHubsAction, useLiquidatePosition, usePermitTypedDataAction, usePreview, usePreviewAction, useRenounceSpokeUserPositionManager, useRepay, useReserve, useReserveAction, useReserves, useReservesAction, useSetSpokeUserPositionManager,
|
|
2912
|
+
export { AaveProvider, type AaveProviderProps, type CancelSwapError, type CancelSwapHandler, CannotCancelSwapError, SendTransactionError, type SwapHandler, type SwapHandlerOptions, type SwapIntent, type UseActivitiesArgs, type UseAssetArgs, type UseAssetBorrowHistoryArgs, type UseAssetCategoryBorrowHistoryArgs, type UseAssetCategorySupplyHistoryArgs, type UseAssetPriceHistoryArgs, type UseAssetSupplyHistoryArgs, UseAsyncTask, type UseBorrowApyHistoryArgs, type UseHubArgs, type UseHubAssetsArgs, type UseHubSummaryHistoryArgs, type UseHubsArgs, type UsePreviewArgs, type UseProtocolHistoryArgs, type UseReserveArgs, type UseReservesArgs, type UseSpokeArgs, type UseSpokePositionManagersArgs, type UseSpokeUserPositionManagersArgs, type UseSpokesArgs, type UseSupplyApyHistoryArgs, type UseSwapQuoteArgs, type UseSwapTokensRequest, type UseSwappableTokensArgs, type UseUserBalancesArgs, type UseUserBorrowsArgs, type UseUserPositionArgs, type UseUserPositionsArgs, type UseUserRiskPremiumBreakdownArgs, type UseUserSummaryArgs, type UseUserSummaryHistoryArgs, type UseUserSuppliesArgs, type UseUserSwapsArgs, useAaveClient, useActivities, useActivitiesAction, useAsset, useAssetBorrowHistory, useAssetCategoryBorrowHistory, useAssetCategorySupplyHistory, useAssetPriceHistory, useAssetSupplyHistory, useBorrow, useBorrowApyHistory, useCancelSwap, useHub, useHubAssets, useHubSummaryHistory, useHubs, useHubsAction, useLiquidatePosition, usePermitTypedDataAction, usePreview, usePreviewAction, useProtocolHistory, useRenounceSpokeUserPositionManager, useRepay, useReserve, useReserveAction, useReserves, useReservesAction, useSetSpokeUserPositionManager, useSetUserSuppliesAsCollateral, useSpoke, useSpokePositionManagers, useSpokeUserPositionManagers, useSpokes, useSupply, useSupplyApyHistory, useSwapQuote, useSwapQuoteAction, useSwapTokens, useSwappableTokens, useUpdateUserPositionConditions, useUserBalances, useUserBalancesAction, useUserBorrows, useUserBorrowsAction, useUserPosition, useUserPositions, useUserPositionsAction, useUserRiskPremiumBreakdown, useUserSummary, useUserSummaryHistory, useUserSupplies, useUserSuppliesAction, useUserSwaps, useWithdraw };
|