@aave/client 4.0.0-next.9 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AaveClient-CgHY2iS9.d.ts → AaveClient-C7hQU3qX.d.ts} +14 -17
- package/dist/{AaveClient-L3v8kWvn.d.cts → AaveClient-wwfQOLJS.d.cts} +14 -17
- package/dist/actions/index.cjs +1 -1
- package/dist/actions/index.cjs.map +1 -1
- package/dist/actions/index.d.cts +454 -178
- package/dist/actions/index.d.ts +454 -178
- package/dist/actions/index.js +1 -1
- package/dist/chunk-HH6OAH2K.js +2 -0
- package/dist/chunk-HH6OAH2K.js.map +1 -0
- package/dist/chunk-N4LXBTGY.js +2 -0
- package/dist/chunk-N4LXBTGY.js.map +1 -0
- package/dist/chunk-SXZ2BGUZ.js +2 -0
- package/dist/chunk-SXZ2BGUZ.js.map +1 -0
- package/dist/ethers.cjs +1 -1
- package/dist/ethers.cjs.map +1 -1
- package/dist/ethers.d.cts +45 -11
- package/dist/ethers.d.ts +45 -11
- package/dist/ethers.js +1 -1
- package/dist/ethers.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/privy.cjs +1 -2
- package/dist/privy.cjs.map +1 -1
- package/dist/privy.d.cts +49 -12
- package/dist/privy.d.ts +49 -12
- package/dist/privy.js +1 -1
- package/dist/privy.js.map +1 -1
- package/dist/testing.d.ts +3675 -29
- package/dist/testing.js +52 -289
- package/dist/testing.js.map +1 -1
- package/dist/thirdweb.cjs +1 -2
- package/dist/thirdweb.cjs.map +1 -1
- package/dist/thirdweb.d.cts +49 -20
- package/dist/thirdweb.d.ts +49 -20
- package/dist/thirdweb.js +1 -2
- package/dist/thirdweb.js.map +1 -1
- package/dist/types-XProSTZ7.d.cts +33 -0
- package/dist/types-XProSTZ7.d.ts +33 -0
- package/dist/viem.cjs +1 -2
- package/dist/viem.cjs.map +1 -1
- package/dist/viem.d.cts +51 -23
- package/dist/viem.d.ts +51 -23
- package/dist/viem.js +1 -1
- package/package.json +7 -6
- package/dist/chunk-OKIVO6WG.js +0 -2
- package/dist/chunk-OKIVO6WG.js.map +0 -1
- package/dist/chunk-QV7WXM6U.js +0 -3
- package/dist/chunk-QV7WXM6U.js.map +0 -1
- package/dist/types-Bu63z0x6.d.cts +0 -21
- package/dist/types-Bu63z0x6.d.ts +0 -21
package/dist/actions/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UnexpectedError, TimeoutError } from '@aave/core';
|
|
2
|
-
import { HubRequest, Hub,
|
|
1
|
+
import { UnexpectedError, ValidationError, TimeoutError } from '@aave/core';
|
|
2
|
+
import { HubRequest, Hub, HubAssetInterestRateModelRequest, HubAssetInterestRateModelPoint, HubAssetsRequest, HubAsset, HubSummaryHistoryRequest, HubSummarySample, HubsRequest, ChainRequest, Chain, ChainsRequest, ExchangeRateRequest, ExchangeAmount, HasProcessedKnownTransactionRequest, AssetRequest, Asset, AssetBorrowHistoryRequest, AssetBorrowSample, AssetPriceHistoryRequest, AssetPriceSample, AssetSupplyHistoryRequest, AssetSupplySample, ProtocolHistoryRequest, ProtocolHistorySample, BorrowApyHistoryRequest, ApySample, ReserveRequest, Reserve, ReservesRequest, SupplyApyHistoryRequest, UserClaimableRewardsRequest, UserClaimableReward, SpokeRequest, Spoke, SpokePositionManagersRequest, PaginatedSpokePositionManagerResult, SpokeUserPositionManagersRequest, PaginatedSpokeUserPositionManagerResult, SpokesRequest, SwapCancelled, SwapExpired, SwapFulfilled, BorrowSwapQuoteRequest, PositionSwapByIntentApprovalsRequired, InsufficientLiquidityError, CancelSwapRequest, CancelSwapExecutionPlan, PreparePositionSwapRequest, PrepareSwapOrder, InsufficientBalanceError, PrepareSwapCancelRequest, PrepareSwapCancelResult, PrepareTokenSwapRequest, RepayWithSupplyQuoteRequest, SupplySwapQuoteRequest, SwapRequest, SwapTransactionRequest, SwapReceipt, SwapStatusRequest, SwapStatus, SwappableTokensRequest, Token, TokenSwapQuoteRequest, TokenSwapQuoteResult, UserSwapsRequest, PaginatedUserSwapsResult, WithdrawSwapQuoteRequest, ActivitiesRequest, PaginatedActivitiesResult, BorrowRequest, ExecutionPlan, ClaimRewardsRequest, TransactionRequest, LiquidatePositionRequest, PreviewRequest, PreviewUserPosition, RenounceSpokeUserPositionManagerRequest, RepayRequest, SetSpokeUserPositionManagerRequest, SetUserSuppliesAsCollateralRequest, SupplyRequest, UpdateUserPositionConditionsRequest, WithdrawRequest, UserBalancesRequest, UserBalance, UserBorrowsRequest, UserBorrowItem, UserPositionRequest, UserPosition, UserPositionsRequest, UserRiskPremiumBreakdownRequest, UserRiskPremiumBreakdownItem, UserSummaryRequest, UserSummary, UserSummaryHistoryRequest, UserSummaryHistoryItem, UserSuppliesRequest, UserSupplyItem, StableVaultRequest, StableVault, StableVaultAssignRateRequest, StableVaultClaimStatusRequest, StableVaultClaimStatus, StableVaultClaimSurplusRequest, StableVaultDepositRequest, StableVaultDepositExecutionPlan, StableVaultMovementsRequest, PaginatedStableVaultMovementsResult, StableVaultRateUsersRequest, PaginatedStableVaultRateUsersResult, StableVaultUnassignRateRequest, StableVaultUserPositionsRequest, StableVaultUserPosition, StableVaultWithdrawRequest, StableVaultWithdrawExecutionPlan, StableVaultWithdrawRedeemRequest, StableVaultWithdrawRedeemExecutionPlan, StableVaultsRequest } from '@aave/graphql';
|
|
3
3
|
import { ResultAsync, Prettify } from '@aave/types';
|
|
4
|
-
import { A as AaveClient } from '../AaveClient-
|
|
4
|
+
import { A as AaveClient } from '../AaveClient-wwfQOLJS.cjs';
|
|
5
5
|
import { C as CurrencyQueryOptions, T as TimeWindowQueryOptions, R as RequestPolicyOptions, B as BatchOptions } from '../options-BX6n3sbh.cjs';
|
|
6
|
+
import '../types-XProSTZ7.cjs';
|
|
6
7
|
import '@urql/core';
|
|
7
|
-
import '../types-Bu63z0x6.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Fetches a specific hub by ID or by address and chain ID.
|
|
@@ -37,7 +37,7 @@ declare function hub(client: AaveClient, request: HubRequest, options?: Currency
|
|
|
37
37
|
* @param options - The query options.
|
|
38
38
|
* @returns Array of hub data.
|
|
39
39
|
*/
|
|
40
|
-
declare function hubs(client: AaveClient, request: HubsRequest, { currency, timeWindow, }?:
|
|
40
|
+
declare function hubs(client: AaveClient, request: HubsRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<Hub[], UnexpectedError>;
|
|
41
41
|
/**
|
|
42
42
|
* Fetches hub assets for a specific hub by ID or by address and chain ID.
|
|
43
43
|
*
|
|
@@ -52,7 +52,7 @@ declare function hubs(client: AaveClient, request: HubsRequest, { currency, time
|
|
|
52
52
|
* @param options - The query options.
|
|
53
53
|
* @returns The hub assets array.
|
|
54
54
|
*/
|
|
55
|
-
declare function hubAssets(client: AaveClient, request: HubAssetsRequest, { currency, timeWindow, }?:
|
|
55
|
+
declare function hubAssets(client: AaveClient, request: HubAssetsRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<HubAsset[], UnexpectedError>;
|
|
56
56
|
/**
|
|
57
57
|
* Fetches historical summary data for a specific hub.
|
|
58
58
|
*
|
|
@@ -66,9 +66,25 @@ declare function hubAssets(client: AaveClient, request: HubAssetsRequest, { curr
|
|
|
66
66
|
*
|
|
67
67
|
* @param client - Aave client.
|
|
68
68
|
* @param request - The hub summary history request parameters.
|
|
69
|
+
* @param options - The query options.
|
|
69
70
|
* @returns Array of hub summary samples over time.
|
|
70
71
|
*/
|
|
71
|
-
declare function hubSummaryHistory(client: AaveClient, request: HubSummaryHistoryRequest): ResultAsync<HubSummarySample[], UnexpectedError>;
|
|
72
|
+
declare function hubSummaryHistory(client: AaveClient, request: HubSummaryHistoryRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<HubSummarySample[], UnexpectedError>;
|
|
73
|
+
/**
|
|
74
|
+
* Fetches the interest rate model for a specific hub asset.
|
|
75
|
+
*
|
|
76
|
+
* ```ts
|
|
77
|
+
* const result = await hubAssetInterestRateModel(client, {
|
|
78
|
+
* query: { hubAssetId: hubAssetId('...') },
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @param client - Aave client.
|
|
83
|
+
* @param request - The hub asset interest rate model request parameters.
|
|
84
|
+
* @param options - The query options.
|
|
85
|
+
* @returns Array of interest rate model points.
|
|
86
|
+
*/
|
|
87
|
+
declare function hubAssetInterestRateModel(client: AaveClient, request: HubAssetInterestRateModelRequest, { currency, requestPolicy, }?: CurrencyQueryOptions & RequestPolicyOptions): ResultAsync<HubAssetInterestRateModelPoint[], UnexpectedError>;
|
|
72
88
|
|
|
73
89
|
/**
|
|
74
90
|
* Fetches a specific chain by chain ID.
|
|
@@ -81,13 +97,10 @@ declare function hubSummaryHistory(client: AaveClient, request: HubSummaryHistor
|
|
|
81
97
|
*
|
|
82
98
|
* @param client - Aave client.
|
|
83
99
|
* @param request - The chain request parameters.
|
|
100
|
+
* @param options - The query options.
|
|
84
101
|
* @returns The chain data, or null if not found.
|
|
85
102
|
*/
|
|
86
|
-
declare function chain(client: AaveClient, request: ChainRequest): ResultAsync<Chain | null, UnexpectedError>;
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
declare function chain(client: AaveClient, request: ChainRequest, options: BatchOptions): ResultAsync<Chain | null, UnexpectedError>;
|
|
103
|
+
declare function chain(client: AaveClient, request: ChainRequest, { batch, requestPolicy, }?: BatchOptions & RequestPolicyOptions): ResultAsync<Chain | null, UnexpectedError>;
|
|
91
104
|
/**
|
|
92
105
|
* Fetches the list of supported chains.
|
|
93
106
|
*
|
|
@@ -128,31 +141,10 @@ declare function hasProcessedKnownTransaction(client: AaveClient, request: HasPr
|
|
|
128
141
|
*
|
|
129
142
|
* @param client - Aave client.
|
|
130
143
|
* @param request - The exchange rate request parameters.
|
|
144
|
+
* @param options - The query options.
|
|
131
145
|
* @returns The exchange rate information as a fiat amount.
|
|
132
146
|
*/
|
|
133
|
-
declare function exchangeRate(client: AaveClient, request: ExchangeRateRequest): ResultAsync<ExchangeAmount, UnexpectedError>;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Generates EIP-712 typed data for permit signatures.
|
|
137
|
-
*
|
|
138
|
-
* ```ts
|
|
139
|
-
* const result = await permitTypedData(client, {
|
|
140
|
-
* spender: evmAddress('0x87870bca…'),
|
|
141
|
-
* currency: evmAddress('0xa0b86991c431c924b2047c7094daf21b77e…'),
|
|
142
|
-
* amount: '1000.5',
|
|
143
|
-
* });
|
|
144
|
-
*
|
|
145
|
-
* if (result.isOk()) {
|
|
146
|
-
* // Use the typed data to create a signature
|
|
147
|
-
* const signature = await wallet.signTypedData(result.value);
|
|
148
|
-
* }
|
|
149
|
-
* ```
|
|
150
|
-
*
|
|
151
|
-
* @param client - Aave client.
|
|
152
|
-
* @param request - The permit request parameters.
|
|
153
|
-
* @returns The EIP-712 typed data for permit signature.
|
|
154
|
-
*/
|
|
155
|
-
declare function permitTypedData(client: AaveClient, request: PermitRequest): ResultAsync<PermitTypedDataResponse, UnexpectedError>;
|
|
147
|
+
declare function exchangeRate(client: AaveClient, request: ExchangeRateRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<ExchangeAmount, UnexpectedError>;
|
|
156
148
|
|
|
157
149
|
/**
|
|
158
150
|
* Fetches information about a specific asset (ERC20 token) in the protocol by ID or by token.
|
|
@@ -168,13 +160,15 @@ declare function permitTypedData(client: AaveClient, request: PermitRequest): Re
|
|
|
168
160
|
* @param options - The query options including currency and time window.
|
|
169
161
|
* @returns The asset data, or null if not found.
|
|
170
162
|
*/
|
|
171
|
-
declare function asset(client: AaveClient, request: AssetRequest,
|
|
163
|
+
declare function asset(client: AaveClient, request: AssetRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<Asset | null, UnexpectedError>;
|
|
172
164
|
/**
|
|
173
165
|
* Fetches historical price data for a specific asset.
|
|
174
166
|
*
|
|
175
167
|
* ```ts
|
|
176
168
|
* const result = await assetPriceHistory(client, {
|
|
177
|
-
*
|
|
169
|
+
* query: {
|
|
170
|
+
* token: { chainId: chainId(1), address: evmAddress('0x123…') },
|
|
171
|
+
* },
|
|
178
172
|
* currency: Currency.Usd,
|
|
179
173
|
* window: TimeWindow.LastWeek,
|
|
180
174
|
* });
|
|
@@ -191,65 +185,37 @@ declare function assetPriceHistory(client: AaveClient, request: AssetPriceHistor
|
|
|
191
185
|
*
|
|
192
186
|
* ```ts
|
|
193
187
|
* const result = await assetSupplyHistory(client, {
|
|
194
|
-
*
|
|
188
|
+
* query: {
|
|
189
|
+
* token: { chainId: chainId(1), address: evmAddress('0x123…') },
|
|
190
|
+
* },
|
|
195
191
|
* window: TimeWindow.LastWeek,
|
|
196
192
|
* });
|
|
197
193
|
* ```
|
|
198
194
|
*
|
|
199
195
|
* @param client - Aave client.
|
|
200
196
|
* @param request - The asset supply history request parameters.
|
|
201
|
-
* @param options - The query options.
|
|
197
|
+
* @param options - The query options including currency and time window.
|
|
202
198
|
* @returns Array of asset supply samples over time.
|
|
203
199
|
*/
|
|
204
|
-
declare function assetSupplyHistory(client: AaveClient, request: AssetSupplyHistoryRequest,
|
|
200
|
+
declare function assetSupplyHistory(client: AaveClient, request: AssetSupplyHistoryRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<AssetSupplySample[], UnexpectedError>;
|
|
205
201
|
/**
|
|
206
202
|
* Fetches historical borrow data for a specific asset.
|
|
207
203
|
*
|
|
208
204
|
* ```ts
|
|
209
205
|
* const result = await assetBorrowHistory(client, {
|
|
210
|
-
*
|
|
206
|
+
* query: {
|
|
207
|
+
* token: { chainId: chainId(1), address: evmAddress('0x123…') },
|
|
208
|
+
* },
|
|
211
209
|
* window: TimeWindow.LastWeek,
|
|
212
210
|
* });
|
|
213
211
|
* ```
|
|
214
212
|
*
|
|
215
213
|
* @param client - Aave client.
|
|
216
214
|
* @param request - The asset borrow history request parameters.
|
|
217
|
-
* @param options - The query options.
|
|
215
|
+
* @param options - The query options including currency and time window.
|
|
218
216
|
* @returns Array of asset borrow samples over time.
|
|
219
217
|
*/
|
|
220
|
-
declare function assetBorrowHistory(client: AaveClient, request: AssetBorrowHistoryRequest,
|
|
221
|
-
/**
|
|
222
|
-
* Fetches historical borrow data for a specific token category.
|
|
223
|
-
*
|
|
224
|
-
* ```ts
|
|
225
|
-
* const result = await assetCategoryBorrowHistory(client, {
|
|
226
|
-
* category: TokenCategory.Stablecoin,
|
|
227
|
-
* window: TimeWindow.LastWeek,
|
|
228
|
-
* });
|
|
229
|
-
* ```
|
|
230
|
-
*
|
|
231
|
-
* @param client - Aave client.
|
|
232
|
-
* @param request - The asset category borrow history request parameters.
|
|
233
|
-
* @param options - The query options.
|
|
234
|
-
* @returns Array of asset category borrow samples over time.
|
|
235
|
-
*/
|
|
236
|
-
declare function assetCategoryBorrowHistory(client: AaveClient, request: AssetCategoryBorrowHistoryRequest, { currency }?: Required<CurrencyQueryOptions>): ResultAsync<AssetCategoryBorrowSample[], UnexpectedError>;
|
|
237
|
-
/**
|
|
238
|
-
* Fetches historical supply data for a specific token category.
|
|
239
|
-
*
|
|
240
|
-
* ```ts
|
|
241
|
-
* const result = await assetCategorySupplyHistory(client, {
|
|
242
|
-
* category: TokenCategory.Stablecoin,
|
|
243
|
-
* window: TimeWindow.LastWeek,
|
|
244
|
-
* });
|
|
245
|
-
* ```
|
|
246
|
-
*
|
|
247
|
-
* @param client - Aave client.
|
|
248
|
-
* @param request - The asset category supply history request parameters.
|
|
249
|
-
* @param options - The query options.
|
|
250
|
-
* @returns Array of asset category supply samples over time.
|
|
251
|
-
*/
|
|
252
|
-
declare function assetCategorySupplyHistory(client: AaveClient, request: AssetCategorySupplyHistoryRequest, { currency }?: Required<CurrencyQueryOptions>): ResultAsync<AssetCategorySupplySample[], UnexpectedError>;
|
|
218
|
+
declare function assetBorrowHistory(client: AaveClient, request: AssetBorrowHistoryRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<AssetBorrowSample[], UnexpectedError>;
|
|
253
219
|
/**
|
|
254
220
|
* Fetches historical protocol-wide data (deposits, borrows, earnings).
|
|
255
221
|
*
|
|
@@ -282,7 +248,7 @@ declare function protocolHistory(client: AaveClient, request: ProtocolHistoryReq
|
|
|
282
248
|
* @param options - The query options.
|
|
283
249
|
* @returns The reserve data, or null if not found.
|
|
284
250
|
*/
|
|
285
|
-
declare function reserve(client: AaveClient, request: ReserveRequest, { currency, timeWindow, }?:
|
|
251
|
+
declare function reserve(client: AaveClient, request: ReserveRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<Reserve | null, UnexpectedError>;
|
|
286
252
|
/**
|
|
287
253
|
* Fetches reserves based on specified criteria.
|
|
288
254
|
*
|
|
@@ -304,7 +270,7 @@ declare function reserve(client: AaveClient, request: ReserveRequest, { currency
|
|
|
304
270
|
* @param options - The query options.
|
|
305
271
|
* @returns Array of reserves matching the criteria.
|
|
306
272
|
*/
|
|
307
|
-
declare function reserves(client: AaveClient, request: ReservesRequest, { currency, timeWindow, }?:
|
|
273
|
+
declare function reserves(client: AaveClient, request: ReservesRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<Reserve[], UnexpectedError>;
|
|
308
274
|
/**
|
|
309
275
|
* Fetches borrow APY history for a specific reserve over time.
|
|
310
276
|
*
|
|
@@ -317,9 +283,10 @@ declare function reserves(client: AaveClient, request: ReservesRequest, { curren
|
|
|
317
283
|
*
|
|
318
284
|
* @param client - Aave client.
|
|
319
285
|
* @param request - The borrow APY history request parameters.
|
|
286
|
+
* @param options - The query options.
|
|
320
287
|
* @returns The borrow APY history samples.
|
|
321
288
|
*/
|
|
322
|
-
declare function borrowApyHistory(client: AaveClient, request: BorrowApyHistoryRequest): ResultAsync<ApySample[], UnexpectedError>;
|
|
289
|
+
declare function borrowApyHistory(client: AaveClient, request: BorrowApyHistoryRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<ApySample[], UnexpectedError>;
|
|
323
290
|
/**
|
|
324
291
|
* Fetches supply APY history for a specific reserve over time.
|
|
325
292
|
*
|
|
@@ -332,9 +299,34 @@ declare function borrowApyHistory(client: AaveClient, request: BorrowApyHistoryR
|
|
|
332
299
|
*
|
|
333
300
|
* @param client - Aave client.
|
|
334
301
|
* @param request - The supply APY history request parameters.
|
|
302
|
+
* @param options - The query options.
|
|
335
303
|
* @returns The supply APY history samples.
|
|
336
304
|
*/
|
|
337
|
-
declare function supplyApyHistory(client: AaveClient, request: SupplyApyHistoryRequest): ResultAsync<ApySample[], UnexpectedError>;
|
|
305
|
+
declare function supplyApyHistory(client: AaveClient, request: SupplyApyHistoryRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<ApySample[], UnexpectedError>;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Fetches all claimable rewards for a user.
|
|
309
|
+
*
|
|
310
|
+
* ```ts
|
|
311
|
+
* const result = await userClaimableRewards(client, {
|
|
312
|
+
* user: evmAddress('0x742d35cc…'),
|
|
313
|
+
* chainId: chainId(1),
|
|
314
|
+
* });
|
|
315
|
+
*
|
|
316
|
+
* if (result.isErr()) {
|
|
317
|
+
* // Handle error
|
|
318
|
+
* return;
|
|
319
|
+
* }
|
|
320
|
+
*
|
|
321
|
+
* // result.value: UserClaimableReward[]
|
|
322
|
+
* ```
|
|
323
|
+
*
|
|
324
|
+
* @param client - Aave client.
|
|
325
|
+
* @param request - The user claimable rewards request parameters.
|
|
326
|
+
* @param options - The query options.
|
|
327
|
+
* @returns Array of claimable rewards.
|
|
328
|
+
*/
|
|
329
|
+
declare function userClaimableRewards(client: AaveClient, request: UserClaimableRewardsRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<UserClaimableReward[], UnexpectedError>;
|
|
338
330
|
|
|
339
331
|
/**
|
|
340
332
|
* Fetches a specific spoke.
|
|
@@ -395,28 +387,28 @@ declare function spokePositionManagers(client: AaveClient, request: SpokePositio
|
|
|
395
387
|
declare function spokeUserPositionManagers(client: AaveClient, request: SpokeUserPositionManagersRequest): ResultAsync<PaginatedSpokeUserPositionManagerResult, UnexpectedError>;
|
|
396
388
|
|
|
397
389
|
/**
|
|
398
|
-
* @internal
|
|
399
390
|
* Fetches a swap quote for the specified trade parameters.
|
|
400
391
|
*
|
|
401
392
|
* ```ts
|
|
402
|
-
* const result = await
|
|
403
|
-
*
|
|
404
|
-
*
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
*
|
|
393
|
+
* const result = await tokenSwapQuote(client, {
|
|
394
|
+
* market: {
|
|
395
|
+
* chainId: chainId(1),
|
|
396
|
+
* buy: { erc20: evmAddress('0xA0b86a33E6...') },
|
|
397
|
+
* sell: { erc20: evmAddress('0x6B175474E...') },
|
|
398
|
+
* amount: bigDecimal('1000'),
|
|
399
|
+
* kind: SwapKind.Sell,
|
|
400
|
+
* user: evmAddress('0x742d35cc...'),
|
|
401
|
+
* },
|
|
409
402
|
* });
|
|
410
403
|
* ```
|
|
411
404
|
*
|
|
412
405
|
* @param client - Aave client.
|
|
413
406
|
* @param request - The swap quote request parameters.
|
|
414
407
|
* @param options - The query options.
|
|
415
|
-
* @returns The swap quote including pricing and cost information.
|
|
408
|
+
* @returns The swap quote including pricing and cost information and plan to start executing the swap.
|
|
416
409
|
*/
|
|
417
|
-
declare function
|
|
410
|
+
declare function tokenSwapQuote(client: AaveClient, request: TokenSwapQuoteRequest, { currency, requestPolicy, }?: CurrencyQueryOptions & RequestPolicyOptions): ResultAsync<TokenSwapQuoteResult, UnexpectedError | ValidationError<InsufficientLiquidityError>>;
|
|
418
411
|
/**
|
|
419
|
-
* @internal
|
|
420
412
|
* Fetches the list of tokens available for swapping on a specific chain.
|
|
421
413
|
*
|
|
422
414
|
* ```ts
|
|
@@ -427,63 +419,126 @@ declare function swapQuote(client: AaveClient, request: SwapQuoteRequest, option
|
|
|
427
419
|
*
|
|
428
420
|
* @param client - Aave client.
|
|
429
421
|
* @param request - The swappable tokens request parameters.
|
|
422
|
+
* @param options - The query options.
|
|
430
423
|
* @returns The list of tokens available for swapping.
|
|
431
424
|
*/
|
|
432
|
-
declare function swappableTokens(client: AaveClient, request: SwappableTokensRequest): ResultAsync<Token[], UnexpectedError>;
|
|
425
|
+
declare function swappableTokens(client: AaveClient, request: SwappableTokensRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<Token[], UnexpectedError>;
|
|
433
426
|
/**
|
|
434
|
-
* @internal
|
|
435
427
|
* Prepares a swap for the specified trade parameters.
|
|
436
428
|
*
|
|
437
429
|
* ```ts
|
|
438
|
-
* const result = await
|
|
430
|
+
* const result = await prepareTokenSwap(client, {
|
|
431
|
+
* quoteId: quote.quoteId,
|
|
432
|
+
* }).andThen(order => {
|
|
433
|
+
* return signTypedDataWith(wallet, order.data)
|
|
434
|
+
* .andThen((signature) =>
|
|
435
|
+
* swap({ intent: { quoteId: order.newQuoteId, signature } }),
|
|
436
|
+
* );
|
|
437
|
+
* });
|
|
438
|
+
* ```
|
|
439
|
+
*
|
|
440
|
+
* @param client - Aave client.
|
|
441
|
+
* @param request - The prepare swap request parameters.
|
|
442
|
+
* @returns The prepared swap result containing details of the swap.
|
|
443
|
+
*/
|
|
444
|
+
declare function prepareTokenSwap(client: AaveClient, request: PrepareTokenSwapRequest): ResultAsync<PrepareSwapOrder, ValidationError<InsufficientBalanceError> | UnexpectedError>;
|
|
445
|
+
/**
|
|
446
|
+
* Fetches a supply swap quote for swapping deposited funds.
|
|
447
|
+
*
|
|
448
|
+
* ```ts
|
|
449
|
+
* const result = await supplySwapQuote(client, {
|
|
439
450
|
* market: {
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
* sell: { erc20: evmAddress('0x6B175474E...') },
|
|
451
|
+
* sellPosition: userSupplyItemId('position_123'),
|
|
452
|
+
* buyReserve: reserveId('reserve_456'),
|
|
443
453
|
* amount: bigDecimal('1000'),
|
|
444
|
-
* kind: SwapKind.SELL,
|
|
445
454
|
* user: evmAddress('0x742d35cc...'),
|
|
446
455
|
* },
|
|
447
|
-
* }).andThen(plan => {
|
|
448
|
-
* switch (plan.__typename) {
|
|
449
|
-
* case 'SwapByIntent':
|
|
450
|
-
* return signSwapByIntentWith(plan.data)
|
|
451
|
-
* .andThen((signature) => swap({ intent: { quoteId: quote.quoteId, signature } }))
|
|
452
|
-
* .andThen((plan) => {
|
|
453
|
-
* // …
|
|
454
|
-
* });
|
|
455
|
-
* );
|
|
456
|
-
*
|
|
457
|
-
* case 'SwapByIntentWithApprovalRequired':
|
|
458
|
-
* return sendTransaction(plan.transaction)
|
|
459
|
-
* .andThen(signSwapByIntentWith(plan.data))
|
|
460
|
-
* .andThen((signature) => swap({ intent: { quoteId: quote.quoteId, signature } }))
|
|
461
|
-
* .andThen((plan) => {
|
|
462
|
-
* // …
|
|
463
|
-
* });
|
|
464
|
-
* );
|
|
465
|
-
*
|
|
466
|
-
* case 'SwapByTransaction':
|
|
467
|
-
* return swap({ transaction: { quoteId: quote.quoteId } })
|
|
468
|
-
* .andThen((plan) => {
|
|
469
|
-
* // …
|
|
470
|
-
* });
|
|
471
|
-
* );
|
|
472
|
-
*
|
|
473
|
-
* case 'InsufficientBalanceError':
|
|
474
|
-
* return errAsync(new Error(`Insufficient balance: ${plan.required.value} required.`));
|
|
475
|
-
* }
|
|
476
456
|
* });
|
|
477
457
|
* ```
|
|
478
458
|
*
|
|
479
459
|
* @param client - Aave client.
|
|
480
|
-
* @param request - The
|
|
460
|
+
* @param request - The supply swap request parameters.
|
|
481
461
|
* @param options - The query options.
|
|
482
|
-
* @returns The
|
|
462
|
+
* @returns The supply swap result with quote, approvals, and preview.
|
|
463
|
+
*/
|
|
464
|
+
declare function supplySwapQuote(client: AaveClient, request: SupplySwapQuoteRequest, { currency, requestPolicy, }?: CurrencyQueryOptions & RequestPolicyOptions): ResultAsync<PositionSwapByIntentApprovalsRequired, UnexpectedError | ValidationError<InsufficientLiquidityError>>;
|
|
465
|
+
/**
|
|
466
|
+
* Fetches a borrow swap quote for swapping debt positions.
|
|
467
|
+
*
|
|
468
|
+
* ```ts
|
|
469
|
+
* const result = await borrowSwapQuote(client, {
|
|
470
|
+
* market: {
|
|
471
|
+
* sellPosition: userBorrowItemId('position_123'),
|
|
472
|
+
* buyReserve: reserveId('reserve_456'),
|
|
473
|
+
* amount: bigDecimal('1000'),
|
|
474
|
+
* user: evmAddress('0x742d35cc...'),
|
|
475
|
+
* },
|
|
476
|
+
* });
|
|
477
|
+
* ```
|
|
478
|
+
*
|
|
479
|
+
* @param client - Aave client.
|
|
480
|
+
* @param request - The borrow swap request parameters.
|
|
481
|
+
* @param options - The query options.
|
|
482
|
+
* @returns The borrow swap result with quote, approvals, and preview.
|
|
483
|
+
*/
|
|
484
|
+
declare function borrowSwapQuote(client: AaveClient, request: BorrowSwapQuoteRequest, { currency, requestPolicy, }?: CurrencyQueryOptions & RequestPolicyOptions): ResultAsync<PositionSwapByIntentApprovalsRequired, UnexpectedError | ValidationError<InsufficientLiquidityError>>;
|
|
485
|
+
/**
|
|
486
|
+
* Fetches a repay with supply quote for repaying debt using collateral.
|
|
487
|
+
*
|
|
488
|
+
* ```ts
|
|
489
|
+
* const result = await repayWithSupplyQuote(client, {
|
|
490
|
+
* market: {
|
|
491
|
+
* sellPosition: userSupplyItemId('collateral_123'),
|
|
492
|
+
* buyPosition: userBorrowItemId('debt_456'),
|
|
493
|
+
* amount: bigDecimal('1000'),
|
|
494
|
+
* user: evmAddress('0x742d35cc...'),
|
|
495
|
+
* },
|
|
496
|
+
* });
|
|
497
|
+
* ```
|
|
498
|
+
*
|
|
499
|
+
* @param client - Aave client.
|
|
500
|
+
* @param request - The repay with supply request parameters.
|
|
501
|
+
* @param options - The query options.
|
|
502
|
+
* @returns The repay with supply result with quote, approvals, and preview.
|
|
503
|
+
*/
|
|
504
|
+
declare function repayWithSupplyQuote(client: AaveClient, request: RepayWithSupplyQuoteRequest, { currency, requestPolicy, }?: CurrencyQueryOptions & RequestPolicyOptions): ResultAsync<PositionSwapByIntentApprovalsRequired, UnexpectedError | ValidationError<InsufficientLiquidityError>>;
|
|
505
|
+
/**
|
|
506
|
+
* Fetches a withdraw swap quote for withdrawing deposits and swapping on the fly.
|
|
507
|
+
*
|
|
508
|
+
* ```ts
|
|
509
|
+
* const result = await withdrawSwapQuote(client, {
|
|
510
|
+
* market: {
|
|
511
|
+
* position: userSupplyItemId('position_123'),
|
|
512
|
+
* buyReserve: reserveId('reserve_456'),
|
|
513
|
+
* amount: bigDecimal('1000'),
|
|
514
|
+
* user: evmAddress('0x742d35cc...'),
|
|
515
|
+
* },
|
|
516
|
+
* });
|
|
517
|
+
* ```
|
|
518
|
+
*
|
|
519
|
+
* @param client - Aave client.
|
|
520
|
+
* @param request - The withdraw swap request parameters.
|
|
521
|
+
* @param options - The query options.
|
|
522
|
+
* @returns The withdraw swap result with quote, approvals, and preview.
|
|
523
|
+
*/
|
|
524
|
+
declare function withdrawSwapQuote(client: AaveClient, request: WithdrawSwapQuoteRequest, { currency, requestPolicy, }?: CurrencyQueryOptions & RequestPolicyOptions): ResultAsync<PositionSwapByIntentApprovalsRequired, UnexpectedError | ValidationError<InsufficientLiquidityError>>;
|
|
525
|
+
/**
|
|
526
|
+
* Prepares a position swap by obtaining the typed data for signing.
|
|
527
|
+
*
|
|
528
|
+
* ```ts
|
|
529
|
+
* const result = await preparePositionSwap(client, {
|
|
530
|
+
* quoteId: quote.quoteId,
|
|
531
|
+
* adapterContractSignature: signature('0x456...'),
|
|
532
|
+
* positionManagerSignature: signature('0x789...'),
|
|
533
|
+
* });
|
|
534
|
+
* ```
|
|
535
|
+
*
|
|
536
|
+
* @param client - Aave client.
|
|
537
|
+
* @param request - The position swap request with quote ID and signatures.
|
|
538
|
+
* @returns The position swap result with intent data for execution.
|
|
483
539
|
*/
|
|
484
|
-
declare function
|
|
540
|
+
declare function preparePositionSwap(client: AaveClient, request: PreparePositionSwapRequest): ResultAsync<PrepareSwapOrder, ValidationError<InsufficientBalanceError> | UnexpectedError>;
|
|
485
541
|
/**
|
|
486
|
-
* @internal
|
|
487
542
|
* Fetches the status of a specific swap.
|
|
488
543
|
*
|
|
489
544
|
* ```ts
|
|
@@ -497,10 +552,9 @@ declare function prepareSwap(client: AaveClient, request: PrepareSwapRequest, op
|
|
|
497
552
|
* @param options - The query options.
|
|
498
553
|
* @returns The current status of the swap.
|
|
499
554
|
*/
|
|
500
|
-
declare function swapStatus(client: AaveClient, request: SwapStatusRequest,
|
|
555
|
+
declare function swapStatus(client: AaveClient, request: SwapStatusRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<SwapStatus | null, UnexpectedError>;
|
|
501
556
|
type SwapOutcome = SwapCancelled | SwapExpired | SwapFulfilled;
|
|
502
557
|
/**
|
|
503
|
-
* @internal
|
|
504
558
|
* Waits for a swap to reach a final outcome (cancelled, expired, or fulfilled).
|
|
505
559
|
*
|
|
506
560
|
* ```ts
|
|
@@ -527,17 +581,13 @@ type SwapOutcome = SwapCancelled | SwapExpired | SwapFulfilled;
|
|
|
527
581
|
*/
|
|
528
582
|
declare function waitForSwapOutcome(client: AaveClient): (receipt: SwapReceipt) => ResultAsync<SwapOutcome, TimeoutError | UnexpectedError>;
|
|
529
583
|
/**
|
|
530
|
-
* @internal
|
|
531
584
|
* Executes a swap for the specified request parameters.
|
|
532
585
|
*
|
|
533
586
|
* ```ts
|
|
534
587
|
* const result = await swap(client, {
|
|
535
588
|
* intent: {
|
|
536
|
-
* quoteId:
|
|
537
|
-
* signature:
|
|
538
|
-
* value: signature('0x456...'),
|
|
539
|
-
* deadline: 1234567890,
|
|
540
|
-
* },
|
|
589
|
+
* quoteId: quote.quoteId,
|
|
590
|
+
* signature: signature('0x456...'),
|
|
541
591
|
* },
|
|
542
592
|
* }).andThen((plan) => {
|
|
543
593
|
* switch (plan.__typename) {
|
|
@@ -545,16 +595,8 @@ declare function waitForSwapOutcome(client: AaveClient): (receipt: SwapReceipt)
|
|
|
545
595
|
* return sendTransaction(plan.transaction)
|
|
546
596
|
* .map(() => plan.orderReceipt);
|
|
547
597
|
*
|
|
548
|
-
* case 'SwapApprovalRequired':
|
|
549
|
-
* return sendTransaction(plan.transaction)
|
|
550
|
-
* .andThen(() => sendTransaction(plan.originalTransaction))
|
|
551
|
-
* .map(() => plan.originalTransaction.orderReceipt);
|
|
552
|
-
*
|
|
553
598
|
* case 'SwapReceipt':
|
|
554
|
-
* return okAsync(plan
|
|
555
|
-
*
|
|
556
|
-
* case 'InsufficientBalanceError':
|
|
557
|
-
* return errAsync(new Error(`Insufficient balance: ${plan.required.value} required.`));
|
|
599
|
+
* return okAsync(plan);
|
|
558
600
|
* }
|
|
559
601
|
* });
|
|
560
602
|
*
|
|
@@ -570,9 +612,8 @@ declare function waitForSwapOutcome(client: AaveClient): (receipt: SwapReceipt)
|
|
|
570
612
|
* @param request - The swap request parameters.
|
|
571
613
|
* @returns The swap execution plan containing transaction details or receipt.
|
|
572
614
|
*/
|
|
573
|
-
declare function swap(client: AaveClient, request: SwapRequest): ResultAsync<
|
|
615
|
+
declare function swap(client: AaveClient, request: SwapRequest): ResultAsync<SwapTransactionRequest | SwapReceipt, ValidationError<InsufficientBalanceError> | UnexpectedError>;
|
|
574
616
|
/**
|
|
575
|
-
* @internal
|
|
576
617
|
* Prepares a swap cancellation for the specified swap ID.
|
|
577
618
|
*
|
|
578
619
|
* ```ts
|
|
@@ -587,7 +628,6 @@ declare function swap(client: AaveClient, request: SwapRequest): ResultAsync<Swa
|
|
|
587
628
|
*/
|
|
588
629
|
declare function prepareSwapCancel(client: AaveClient, request: PrepareSwapCancelRequest): ResultAsync<PrepareSwapCancelResult, UnexpectedError>;
|
|
589
630
|
/**
|
|
590
|
-
* @internal
|
|
591
631
|
* Executes a swap cancellation for the specified request parameters.
|
|
592
632
|
*
|
|
593
633
|
* ```ts
|
|
@@ -602,8 +642,7 @@ declare function prepareSwapCancel(client: AaveClient, request: PrepareSwapCance
|
|
|
602
642
|
* }).andThen((plan) => {
|
|
603
643
|
* switch (plan.__typename) {
|
|
604
644
|
* case 'TransactionRequest':
|
|
605
|
-
* return sendTransaction(plan)
|
|
606
|
-
* .map(() => ({ success: true }));
|
|
645
|
+
* return sendTransaction(plan);
|
|
607
646
|
*
|
|
608
647
|
* case 'SwapCancelled':
|
|
609
648
|
* return okAsync(plan);
|
|
@@ -617,7 +656,6 @@ declare function prepareSwapCancel(client: AaveClient, request: PrepareSwapCance
|
|
|
617
656
|
*/
|
|
618
657
|
declare function cancelSwap(client: AaveClient, request: CancelSwapRequest): ResultAsync<CancelSwapExecutionPlan, UnexpectedError>;
|
|
619
658
|
/**
|
|
620
|
-
* @internal
|
|
621
659
|
* Fetches the user's swap history for a specific chain.
|
|
622
660
|
*
|
|
623
661
|
* ```ts
|
|
@@ -633,7 +671,7 @@ declare function cancelSwap(client: AaveClient, request: CancelSwapRequest): Res
|
|
|
633
671
|
* @param options - The query options.
|
|
634
672
|
* @returns The paginated list of user swaps with their status information.
|
|
635
673
|
*/
|
|
636
|
-
declare function userSwaps(client: AaveClient, request: UserSwapsRequest,
|
|
674
|
+
declare function userSwaps(client: AaveClient, request: UserSwapsRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<PaginatedUserSwapsResult, UnexpectedError>;
|
|
637
675
|
|
|
638
676
|
/**
|
|
639
677
|
* Creates a transaction to borrow from a market.
|
|
@@ -654,7 +692,7 @@ declare function userSwaps(client: AaveClient, request: UserSwapsRequest, option
|
|
|
654
692
|
* return;
|
|
655
693
|
* }
|
|
656
694
|
*
|
|
657
|
-
* // result.value:
|
|
695
|
+
* // result.value: TransactionReceipt
|
|
658
696
|
* ```
|
|
659
697
|
*
|
|
660
698
|
* @param client - Aave client.
|
|
@@ -686,7 +724,7 @@ declare function borrow(client: AaveClient, request: BorrowRequest): ResultAsync
|
|
|
686
724
|
* return;
|
|
687
725
|
* }
|
|
688
726
|
*
|
|
689
|
-
* // result.value:
|
|
727
|
+
* // result.value: TransactionReceipt
|
|
690
728
|
* ```
|
|
691
729
|
*
|
|
692
730
|
* @param client - Aave client.
|
|
@@ -715,7 +753,7 @@ declare function supply(client: AaveClient, request: SupplyRequest): ResultAsync
|
|
|
715
753
|
* return;
|
|
716
754
|
* }
|
|
717
755
|
*
|
|
718
|
-
* // result.value:
|
|
756
|
+
* // result.value: TransactionReceipt
|
|
719
757
|
* ```
|
|
720
758
|
*
|
|
721
759
|
* @param client - Aave client.
|
|
@@ -742,7 +780,7 @@ declare function repay(client: AaveClient, request: RepayRequest): ResultAsync<E
|
|
|
742
780
|
* return;
|
|
743
781
|
* }
|
|
744
782
|
*
|
|
745
|
-
* // result.value:
|
|
783
|
+
* // result.value: TransactionReceipt
|
|
746
784
|
* ```
|
|
747
785
|
*
|
|
748
786
|
* **Withdraw specific amount:**
|
|
@@ -790,7 +828,7 @@ declare function withdraw(client: AaveClient, request: WithdrawRequest): ResultA
|
|
|
790
828
|
* return;
|
|
791
829
|
* }
|
|
792
830
|
*
|
|
793
|
-
* // result.value:
|
|
831
|
+
* // result.value: TransactionReceipt
|
|
794
832
|
* ```
|
|
795
833
|
*
|
|
796
834
|
*
|
|
@@ -805,8 +843,7 @@ declare function renounceSpokeUserPositionManager(client: AaveClient, request: R
|
|
|
805
843
|
* ```ts
|
|
806
844
|
* const result = await updateUserPositionConditions(client, {
|
|
807
845
|
* userPositionId: userPositionId('SGVsbG8h'),
|
|
808
|
-
*
|
|
809
|
-
* riskPremium: true,
|
|
846
|
+
* update: UserPositionConditionsUpdate.AllDynamicConfig,
|
|
810
847
|
* }).andThen(sendWith(wallet)).andThen(client.waitForTransaction);
|
|
811
848
|
*
|
|
812
849
|
* if (result.isErr()) {
|
|
@@ -814,7 +851,7 @@ declare function renounceSpokeUserPositionManager(client: AaveClient, request: R
|
|
|
814
851
|
* return;
|
|
815
852
|
* }
|
|
816
853
|
*
|
|
817
|
-
* // result.value:
|
|
854
|
+
* // result.value: TransactionReceipt
|
|
818
855
|
* ```
|
|
819
856
|
*
|
|
820
857
|
*
|
|
@@ -831,7 +868,7 @@ declare function updateUserPositionConditions(client: AaveClient, request: Updat
|
|
|
831
868
|
* collateral: reserveId('SGVsbG8h'),
|
|
832
869
|
* debt: reserveId('Q2lhbyE= '),
|
|
833
870
|
* amount: {
|
|
834
|
-
* exact: bigDecimal('1000'),
|
|
871
|
+
* exact: { value: bigDecimal('1000') },
|
|
835
872
|
* },
|
|
836
873
|
* liquidator: evmAddress('0x9abc…'),
|
|
837
874
|
* user: evmAddress('0xdef0…'),
|
|
@@ -842,7 +879,7 @@ declare function updateUserPositionConditions(client: AaveClient, request: Updat
|
|
|
842
879
|
* return;
|
|
843
880
|
* }
|
|
844
881
|
*
|
|
845
|
-
* // result.value:
|
|
882
|
+
* // result.value: TransactionReceipt
|
|
846
883
|
* ```
|
|
847
884
|
*
|
|
848
885
|
* @param client - Aave client.
|
|
@@ -881,7 +918,7 @@ declare function liquidatePosition(client: AaveClient, request: LiquidatePositio
|
|
|
881
918
|
* return;
|
|
882
919
|
* }
|
|
883
920
|
*
|
|
884
|
-
* // result.value:
|
|
921
|
+
* // result.value: TransactionReceipt
|
|
885
922
|
* ```
|
|
886
923
|
*
|
|
887
924
|
* @param client - Aave client.
|
|
@@ -913,7 +950,7 @@ declare function setSpokeUserPositionManager(client: AaveClient, request: SetSpo
|
|
|
913
950
|
* @param options - The query options.
|
|
914
951
|
* @returns The preview result showing position changes.
|
|
915
952
|
*/
|
|
916
|
-
declare function preview(client: AaveClient, request: PreviewRequest,
|
|
953
|
+
declare function preview(client: AaveClient, request: PreviewRequest, { currency, requestPolicy, }?: CurrencyQueryOptions & RequestPolicyOptions): ResultAsync<PreviewUserPosition, UnexpectedError>;
|
|
917
954
|
/**
|
|
918
955
|
* Updates the collateral status of user's supplies.
|
|
919
956
|
*
|
|
@@ -934,6 +971,29 @@ declare function preview(client: AaveClient, request: PreviewRequest, options?:
|
|
|
934
971
|
* @returns The transaction request to update collateral status.
|
|
935
972
|
*/
|
|
936
973
|
declare function setUserSuppliesAsCollateral(client: AaveClient, request: SetUserSuppliesAsCollateralRequest): ResultAsync<TransactionRequest, UnexpectedError>;
|
|
974
|
+
/**
|
|
975
|
+
* Creates a transaction to claim rewards.
|
|
976
|
+
*
|
|
977
|
+
* ```ts
|
|
978
|
+
* const result = await claimRewards(client, {
|
|
979
|
+
* ids: [rewardId('abc123')],
|
|
980
|
+
* chainId: chainId(1),
|
|
981
|
+
* user: evmAddress('0x9abc…'),
|
|
982
|
+
* });
|
|
983
|
+
*
|
|
984
|
+
* if (result.isErr()) {
|
|
985
|
+
* // Handle error
|
|
986
|
+
* return;
|
|
987
|
+
* }
|
|
988
|
+
*
|
|
989
|
+
* // result.value: TransactionRequest
|
|
990
|
+
* ```
|
|
991
|
+
*
|
|
992
|
+
* @param client - Aave client.
|
|
993
|
+
* @param request - The claim rewards request parameters.
|
|
994
|
+
* @returns The transaction request to claim rewards.
|
|
995
|
+
*/
|
|
996
|
+
declare function claimRewards(client: AaveClient, request: ClaimRewardsRequest): ResultAsync<TransactionRequest, UnexpectedError>;
|
|
937
997
|
/**
|
|
938
998
|
* Fetches paginated list of activities.
|
|
939
999
|
*
|
|
@@ -952,7 +1012,7 @@ declare function setUserSuppliesAsCollateral(client: AaveClient, request: SetUse
|
|
|
952
1012
|
* @param options - The query options.
|
|
953
1013
|
* @returns The paginated list of activities.
|
|
954
1014
|
*/
|
|
955
|
-
declare function activities(client: AaveClient, request: ActivitiesRequest,
|
|
1015
|
+
declare function activities(client: AaveClient, request: ActivitiesRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<PaginatedActivitiesResult, UnexpectedError>;
|
|
956
1016
|
|
|
957
1017
|
/**
|
|
958
1018
|
* Fetches all user supply positions across the specified spoke.
|
|
@@ -974,7 +1034,7 @@ declare function activities(client: AaveClient, request: ActivitiesRequest, opti
|
|
|
974
1034
|
* @param options - The query options.
|
|
975
1035
|
* @returns The user's supply positions.
|
|
976
1036
|
*/
|
|
977
|
-
declare function userSupplies(client: AaveClient, request: UserSuppliesRequest, { currency, timeWindow, }?:
|
|
1037
|
+
declare function userSupplies(client: AaveClient, request: UserSuppliesRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<UserSupplyItem[], UnexpectedError>;
|
|
978
1038
|
/**
|
|
979
1039
|
* Fetches all user borrow positions across the specified spoke.
|
|
980
1040
|
*
|
|
@@ -995,8 +1055,8 @@ declare function userSupplies(client: AaveClient, request: UserSuppliesRequest,
|
|
|
995
1055
|
* @param options - The query options.
|
|
996
1056
|
* @returns The user's borrow positions.
|
|
997
1057
|
*/
|
|
998
|
-
declare function userBorrows(client: AaveClient, request: UserBorrowsRequest, { currency, timeWindow, }?:
|
|
999
|
-
type UserSummaryQueryOptions = Prettify<CurrencyQueryOptions & TimeWindowQueryOptions>;
|
|
1058
|
+
declare function userBorrows(client: AaveClient, request: UserBorrowsRequest, { currency, timeWindow, requestPolicy, }?: CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions): ResultAsync<UserBorrowItem[], UnexpectedError>;
|
|
1059
|
+
type UserSummaryQueryOptions = Prettify<CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions>;
|
|
1000
1060
|
/**
|
|
1001
1061
|
* Fetches a user's summary across all positions.
|
|
1002
1062
|
*
|
|
@@ -1014,8 +1074,8 @@ type UserSummaryQueryOptions = Prettify<CurrencyQueryOptions & TimeWindowQueryOp
|
|
|
1014
1074
|
* @param options - The query options.
|
|
1015
1075
|
* @returns The user's financial summary.
|
|
1016
1076
|
*/
|
|
1017
|
-
declare function userSummary(client: AaveClient, request: UserSummaryRequest, { currency, timeWindow, }?: UserSummaryQueryOptions): ResultAsync<UserSummary, UnexpectedError>;
|
|
1018
|
-
type UserPositionQueryOptions = CurrencyQueryOptions & TimeWindowQueryOptions;
|
|
1077
|
+
declare function userSummary(client: AaveClient, request: UserSummaryRequest, { currency, timeWindow, requestPolicy, }?: UserSummaryQueryOptions): ResultAsync<UserSummary, UnexpectedError>;
|
|
1078
|
+
type UserPositionQueryOptions = CurrencyQueryOptions & TimeWindowQueryOptions & RequestPolicyOptions;
|
|
1019
1079
|
/**
|
|
1020
1080
|
* Fetches all user positions across specified chains.
|
|
1021
1081
|
*
|
|
@@ -1034,7 +1094,7 @@ type UserPositionQueryOptions = CurrencyQueryOptions & TimeWindowQueryOptions;
|
|
|
1034
1094
|
* @param options - The query options.
|
|
1035
1095
|
* @returns The user's positions across all specified chains.
|
|
1036
1096
|
*/
|
|
1037
|
-
declare function userPositions(client: AaveClient, request: UserPositionsRequest, { currency, timeWindow, }?: UserPositionQueryOptions): ResultAsync<UserPosition[], UnexpectedError>;
|
|
1097
|
+
declare function userPositions(client: AaveClient, request: UserPositionsRequest, { currency, timeWindow, requestPolicy, }?: UserPositionQueryOptions): ResultAsync<UserPosition[], UnexpectedError>;
|
|
1038
1098
|
/**
|
|
1039
1099
|
* Fetches a specific user position by ID.
|
|
1040
1100
|
*
|
|
@@ -1049,7 +1109,7 @@ declare function userPositions(client: AaveClient, request: UserPositionsRequest
|
|
|
1049
1109
|
* @param options - The query options.
|
|
1050
1110
|
* @returns The specific user position or null if not found.
|
|
1051
1111
|
*/
|
|
1052
|
-
declare function userPosition(client: AaveClient, request: UserPositionRequest, { currency, timeWindow, }?: UserPositionQueryOptions): ResultAsync<UserPosition | null, UnexpectedError>;
|
|
1112
|
+
declare function userPosition(client: AaveClient, request: UserPositionRequest, { currency, timeWindow, requestPolicy, }?: UserPositionQueryOptions): ResultAsync<UserPosition | null, UnexpectedError>;
|
|
1053
1113
|
/**
|
|
1054
1114
|
* Fetches all user balances across specified chains.
|
|
1055
1115
|
*
|
|
@@ -1067,7 +1127,7 @@ declare function userPosition(client: AaveClient, request: UserPositionRequest,
|
|
|
1067
1127
|
* @param options - The query options.
|
|
1068
1128
|
* @returns The user's balances across all specified chains.
|
|
1069
1129
|
**/
|
|
1070
|
-
declare function userBalances(client: AaveClient, request: UserBalancesRequest,
|
|
1130
|
+
declare function userBalances(client: AaveClient, request: UserBalancesRequest, { currency, requestPolicy, }?: CurrencyQueryOptions & RequestPolicyOptions): ResultAsync<UserBalance[], UnexpectedError>;
|
|
1071
1131
|
/**
|
|
1072
1132
|
* Fetches user summary history over time.
|
|
1073
1133
|
*
|
|
@@ -1086,7 +1146,7 @@ declare function userBalances(client: AaveClient, request: UserBalancesRequest,
|
|
|
1086
1146
|
* @param options - The query options.
|
|
1087
1147
|
* @returns The user summary history items.
|
|
1088
1148
|
*/
|
|
1089
|
-
declare function userSummaryHistory(client: AaveClient, request: UserSummaryHistoryRequest,
|
|
1149
|
+
declare function userSummaryHistory(client: AaveClient, request: UserSummaryHistoryRequest, { currency, requestPolicy, }?: CurrencyQueryOptions & RequestPolicyOptions): ResultAsync<UserSummaryHistoryItem[], UnexpectedError>;
|
|
1090
1150
|
/**
|
|
1091
1151
|
* Fetches the risk premium breakdown for a user position or spoke.
|
|
1092
1152
|
*
|
|
@@ -1101,8 +1161,224 @@ declare function userSummaryHistory(client: AaveClient, request: UserSummaryHist
|
|
|
1101
1161
|
*
|
|
1102
1162
|
* @param client - Aave client.
|
|
1103
1163
|
* @param request - The user risk premium breakdown request parameters.
|
|
1164
|
+
* @param options - The query options.
|
|
1104
1165
|
* @returns Array of risk premium breakdown items.
|
|
1105
1166
|
*/
|
|
1106
|
-
declare function userRiskPremiumBreakdown(client: AaveClient, request: UserRiskPremiumBreakdownRequest): ResultAsync<UserRiskPremiumBreakdownItem[], UnexpectedError>;
|
|
1167
|
+
declare function userRiskPremiumBreakdown(client: AaveClient, request: UserRiskPremiumBreakdownRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<UserRiskPremiumBreakdownItem[], UnexpectedError>;
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Fetches a stable vault by ID.
|
|
1171
|
+
*
|
|
1172
|
+
* ```ts
|
|
1173
|
+
* const result = await stableVault(client, {
|
|
1174
|
+
* id: stableVaultId('vault-123'),
|
|
1175
|
+
* });
|
|
1176
|
+
* ```
|
|
1177
|
+
*
|
|
1178
|
+
* @param client - Aave client.
|
|
1179
|
+
* @param request - The stable vault request parameters.
|
|
1180
|
+
* @param options - The query options.
|
|
1181
|
+
* @returns The stable vault data, or null if not found.
|
|
1182
|
+
*/
|
|
1183
|
+
declare function stableVault(client: AaveClient, request: StableVaultRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<StableVault | null, UnexpectedError>;
|
|
1184
|
+
/**
|
|
1185
|
+
* Fetches all stable vaults managed by a given admin address.
|
|
1186
|
+
*
|
|
1187
|
+
* ```ts
|
|
1188
|
+
* const result = await stableVaults(client, {
|
|
1189
|
+
* adminAddress: evmAddress('0x1234…'),
|
|
1190
|
+
* });
|
|
1191
|
+
* ```
|
|
1192
|
+
*
|
|
1193
|
+
* @param client - Aave client.
|
|
1194
|
+
* @param request - The stable vaults request parameters.
|
|
1195
|
+
* @param options - The query options.
|
|
1196
|
+
* @returns Array of stable vaults.
|
|
1197
|
+
*/
|
|
1198
|
+
declare function stableVaults(client: AaveClient, request: StableVaultsRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<StableVault[], UnexpectedError>;
|
|
1199
|
+
/**
|
|
1200
|
+
* Fetches paginated list of users assigned to a specific boosted rate tier.
|
|
1201
|
+
*
|
|
1202
|
+
* ```ts
|
|
1203
|
+
* const result = await stableVaultRateUsers(client, {
|
|
1204
|
+
* vaultId: stableVaultId('vault-123'),
|
|
1205
|
+
* rateId: boostedRateId('gold'),
|
|
1206
|
+
* pageSize: 10,
|
|
1207
|
+
* });
|
|
1208
|
+
* ```
|
|
1209
|
+
*
|
|
1210
|
+
* @param client - Aave client.
|
|
1211
|
+
* @param request - The rate users request parameters.
|
|
1212
|
+
* @param options - The query options.
|
|
1213
|
+
* @returns Paginated list of user addresses.
|
|
1214
|
+
*/
|
|
1215
|
+
declare function stableVaultRateUsers(client: AaveClient, request: StableVaultRateUsersRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<PaginatedStableVaultRateUsersResult, UnexpectedError>;
|
|
1216
|
+
/**
|
|
1217
|
+
* Creates a transaction to assign users to a boosted rate tier.
|
|
1218
|
+
*
|
|
1219
|
+
* ```ts
|
|
1220
|
+
* const result = await stableVaultAssignRate(client, {
|
|
1221
|
+
* vaultId: stableVaultId('vault-123'),
|
|
1222
|
+
* rateId: boostedRateId('gold'),
|
|
1223
|
+
* users: [evmAddress('0x1234…')],
|
|
1224
|
+
* }).andThen(sendWith(wallet));
|
|
1225
|
+
* ```
|
|
1226
|
+
*
|
|
1227
|
+
* @param client - Aave client.
|
|
1228
|
+
* @param request - The assign rate request parameters.
|
|
1229
|
+
* @param options - The query options.
|
|
1230
|
+
* @returns The transaction data.
|
|
1231
|
+
*/
|
|
1232
|
+
declare function stableVaultAssignRate(client: AaveClient, request: StableVaultAssignRateRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<TransactionRequest, UnexpectedError>;
|
|
1233
|
+
/**
|
|
1234
|
+
* Creates a transaction to remove users from a boosted rate tier.
|
|
1235
|
+
*
|
|
1236
|
+
* ```ts
|
|
1237
|
+
* const result = await stableVaultUnassignRate(client, {
|
|
1238
|
+
* vaultId: stableVaultId('vault-123'),
|
|
1239
|
+
* rateId: boostedRateId('gold'),
|
|
1240
|
+
* users: [evmAddress('0x1234…')],
|
|
1241
|
+
* }).andThen(sendWith(wallet));
|
|
1242
|
+
* ```
|
|
1243
|
+
*
|
|
1244
|
+
* @param client - Aave client.
|
|
1245
|
+
* @param request - The unassign rate request parameters.
|
|
1246
|
+
* @param options - The query options.
|
|
1247
|
+
* @returns The transaction data.
|
|
1248
|
+
*/
|
|
1249
|
+
declare function stableVaultUnassignRate(client: AaveClient, request: StableVaultUnassignRateRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<TransactionRequest, UnexpectedError>;
|
|
1250
|
+
/**
|
|
1251
|
+
* Creates a transaction to claim accumulated surplus from a stable vault.
|
|
1252
|
+
*
|
|
1253
|
+
* ```ts
|
|
1254
|
+
* const result = await stableVaultClaimSurplus(client, {
|
|
1255
|
+
* vaultId: stableVaultId('vault-123'),
|
|
1256
|
+
* claims: [{ address: evmAddress('0xUSDC…'), value: bigDecimal('1000') }],
|
|
1257
|
+
* }).andThen(sendWith(wallet));
|
|
1258
|
+
* ```
|
|
1259
|
+
*
|
|
1260
|
+
* @param client - Aave client.
|
|
1261
|
+
* @param request - The claim surplus request parameters.
|
|
1262
|
+
* @param options - The query options.
|
|
1263
|
+
* @returns The transaction data.
|
|
1264
|
+
*/
|
|
1265
|
+
declare function stableVaultClaimSurplus(client: AaveClient, request: StableVaultClaimSurplusRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<TransactionRequest, UnexpectedError>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Fetches paginated cross-chain fund movements for a stable vault.
|
|
1268
|
+
*
|
|
1269
|
+
* ```ts
|
|
1270
|
+
* const result = await stableVaultMovements(client, {
|
|
1271
|
+
* vaultId: stableVaultId('vault-123'),
|
|
1272
|
+
* pageSize: 10,
|
|
1273
|
+
* });
|
|
1274
|
+
* ```
|
|
1275
|
+
*
|
|
1276
|
+
* @param client - Aave client.
|
|
1277
|
+
* @param request - The movements request parameters.
|
|
1278
|
+
* @param options - The query options.
|
|
1279
|
+
* @returns Paginated list of token movement records.
|
|
1280
|
+
*/
|
|
1281
|
+
declare function stableVaultMovements(client: AaveClient, request: StableVaultMovementsRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<PaginatedStableVaultMovementsResult, UnexpectedError>;
|
|
1282
|
+
/**
|
|
1283
|
+
* Creates a transaction to deposit into a stable vault.
|
|
1284
|
+
*
|
|
1285
|
+
* ```ts
|
|
1286
|
+
* const result = await stableVaultDeposit(client, {
|
|
1287
|
+
* vault: { id: stableVaultId('vault-123') },
|
|
1288
|
+
* user: evmAddress('0x1234…'),
|
|
1289
|
+
* amount: {
|
|
1290
|
+
* address: evmAddress('0xUSDC…'),
|
|
1291
|
+
* value: { exact: bigDecimal('1000') },
|
|
1292
|
+
* },
|
|
1293
|
+
* });
|
|
1294
|
+
* ```
|
|
1295
|
+
*
|
|
1296
|
+
* @param client - Aave client.
|
|
1297
|
+
* @param request - The deposit request parameters.
|
|
1298
|
+
* @returns The transaction data, approval requirements, or insufficient balance error.
|
|
1299
|
+
*/
|
|
1300
|
+
declare function stableVaultDeposit(client: AaveClient, request: StableVaultDepositRequest): ResultAsync<StableVaultDepositExecutionPlan, UnexpectedError>;
|
|
1301
|
+
/**
|
|
1302
|
+
* Creates a transaction to request a withdrawal from a stable vault.
|
|
1303
|
+
*
|
|
1304
|
+
* Withdrawals may be instant if sufficient liquidity exists, or deferred
|
|
1305
|
+
* if funds must be bridged from earning chains.
|
|
1306
|
+
*
|
|
1307
|
+
* ```ts
|
|
1308
|
+
* const result = await stableVaultWithdraw(client, {
|
|
1309
|
+
* vault: { id: stableVaultId('vault-123') },
|
|
1310
|
+
* user: evmAddress('0x1234…'),
|
|
1311
|
+
* amount: {
|
|
1312
|
+
* address: evmAddress('0xUSDC…'),
|
|
1313
|
+
* value: { exact: bigDecimal('500') },
|
|
1314
|
+
* },
|
|
1315
|
+
* });
|
|
1316
|
+
* ```
|
|
1317
|
+
*
|
|
1318
|
+
* @param client - Aave client.
|
|
1319
|
+
* @param request - The withdraw request parameters.
|
|
1320
|
+
* @returns The withdraw execution plan with either an instant transaction or a deferred claim.
|
|
1321
|
+
*/
|
|
1322
|
+
declare function stableVaultWithdraw(client: AaveClient, request: StableVaultWithdrawRequest): ResultAsync<StableVaultWithdrawExecutionPlan, UnexpectedError>;
|
|
1323
|
+
/**
|
|
1324
|
+
* Redeems a deferred withdrawal claim once funds become available.
|
|
1325
|
+
*
|
|
1326
|
+
* ```ts
|
|
1327
|
+
* const result = await stableVaultWithdrawRedeem(client, {
|
|
1328
|
+
* claimId: stableVaultWithdrawClaimId('claim-456'),
|
|
1329
|
+
* }).andThen(sendWith(wallet));
|
|
1330
|
+
* ```
|
|
1331
|
+
*
|
|
1332
|
+
* @param client - Aave client.
|
|
1333
|
+
* @param request - The redeem request with the claim ID.
|
|
1334
|
+
* @returns The redeem execution plan.
|
|
1335
|
+
*/
|
|
1336
|
+
declare function stableVaultWithdrawRedeem(client: AaveClient, request: StableVaultWithdrawRedeemRequest): ResultAsync<StableVaultWithdrawRedeemExecutionPlan, UnexpectedError>;
|
|
1337
|
+
/**
|
|
1338
|
+
* Checks the status of a deferred withdrawal claim.
|
|
1339
|
+
*
|
|
1340
|
+
* ```ts
|
|
1341
|
+
* const result = await stableVaultClaimStatus(client, {
|
|
1342
|
+
* claimId: stableVaultWithdrawClaimId('claim-456'),
|
|
1343
|
+
* });
|
|
1344
|
+
* ```
|
|
1345
|
+
*
|
|
1346
|
+
* @param client - Aave client.
|
|
1347
|
+
* @param request - The claim status request parameters.
|
|
1348
|
+
* @param options - The query options.
|
|
1349
|
+
* @returns The claim status (READY, PENDING, or UNKNOWN).
|
|
1350
|
+
*/
|
|
1351
|
+
declare function stableVaultClaimStatus(client: AaveClient, request: StableVaultClaimStatusRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<StableVaultClaimStatus, UnexpectedError>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Fetches all stable vault positions for a given user.
|
|
1354
|
+
*
|
|
1355
|
+
* ```ts
|
|
1356
|
+
* const result = await stableVaultUserPositions(client, {
|
|
1357
|
+
* user: evmAddress('0x1234…'),
|
|
1358
|
+
* });
|
|
1359
|
+
* ```
|
|
1360
|
+
*
|
|
1361
|
+
* @param client - Aave client.
|
|
1362
|
+
* @param request - The user positions request parameters.
|
|
1363
|
+
* @param options - The query options.
|
|
1364
|
+
* @returns Array of stable vault positions with principal, interests, and APY.
|
|
1365
|
+
*/
|
|
1366
|
+
declare function stableVaultUserPositions(client: AaveClient, request: StableVaultUserPositionsRequest, { requestPolicy, }?: RequestPolicyOptions): ResultAsync<StableVaultUserPosition[], UnexpectedError>;
|
|
1367
|
+
/**
|
|
1368
|
+
* Waits for a deferred withdrawal claim to become ready for redemption.
|
|
1369
|
+
*
|
|
1370
|
+
* Polls the claim status until it reaches `READY`, then resolves.
|
|
1371
|
+
*
|
|
1372
|
+
* ```ts
|
|
1373
|
+
* const result = await waitForStableVaultWithdrawClaim(client, {
|
|
1374
|
+
* claimId: plan.claimId,
|
|
1375
|
+
* });
|
|
1376
|
+
* ```
|
|
1377
|
+
*
|
|
1378
|
+
* @param client - Aave client configured with polling settings.
|
|
1379
|
+
* @param request - The claim status request with the claim ID.
|
|
1380
|
+
* @returns Resolves when the claim is ready, or rejects with a TimeoutError.
|
|
1381
|
+
*/
|
|
1382
|
+
declare function waitForStableVaultWithdrawClaim(client: AaveClient, request: StableVaultClaimStatusRequest): ResultAsync<void, TimeoutError | UnexpectedError>;
|
|
1107
1383
|
|
|
1108
|
-
export { type SwapOutcome, type UserPositionQueryOptions, type UserSummaryQueryOptions, activities, asset, assetBorrowHistory,
|
|
1384
|
+
export { type SwapOutcome, type UserPositionQueryOptions, type UserSummaryQueryOptions, activities, asset, assetBorrowHistory, assetPriceHistory, assetSupplyHistory, borrow, borrowApyHistory, borrowSwapQuote, cancelSwap, chain, chains, claimRewards, exchangeRate, hasProcessedKnownTransaction, hub, hubAssetInterestRateModel, hubAssets, hubSummaryHistory, hubs, liquidatePosition, preparePositionSwap, prepareSwapCancel, prepareTokenSwap, preview, protocolHistory, renounceSpokeUserPositionManager, repay, repayWithSupplyQuote, reserve, reserves, setSpokeUserPositionManager, setUserSuppliesAsCollateral, spoke, spokePositionManagers, spokeUserPositionManagers, spokes, stableVault, stableVaultAssignRate, stableVaultClaimStatus, stableVaultClaimSurplus, stableVaultDeposit, stableVaultMovements, stableVaultRateUsers, stableVaultUnassignRate, stableVaultUserPositions, stableVaultWithdraw, stableVaultWithdrawRedeem, stableVaults, supply, supplyApyHistory, supplySwapQuote, swap, swapStatus, swappableTokens, tokenSwapQuote, updateUserPositionConditions, userBalances, userBorrows, userClaimableRewards, userPosition, userPositions, userRiskPremiumBreakdown, userSummary, userSummaryHistory, userSupplies, userSwaps, waitForStableVaultWithdrawClaim, waitForSwapOutcome, withdraw, withdrawSwapQuote };
|