|
1 | 1 | import type { UnexpectedError } from '@aave/core-next'; |
2 | 2 | import { |
3 | | - type APYSample, |
4 | | - type BorrowAPYHistoryRequest, |
5 | | - BorrowApyHistoryQuery, |
6 | | - type HubAsset, |
7 | | - HubAssetsQuery, |
8 | | - type HubAssetsRequest, |
9 | 3 | type PaginatedUserHistoryResult, |
10 | | - type SupplyAPYHistoryRequest, |
11 | | - SupplyApyHistoryQuery, |
12 | 4 | type UserBalance, |
13 | 5 | UserBalancesQuery, |
14 | 6 | type UserBalancesRequest, |
@@ -248,77 +240,3 @@ export function userSummaryHistory( |
248 | 240 | ): ResultAsync<UserSummaryHistoryItem[], UnexpectedError> { |
249 | 241 | return client.query(UserSummaryHistoryQuery, { request }); |
250 | 242 | } |
251 | | - |
252 | | -/** |
253 | | - * Fetches borrow APY history for a specific reserve over time. |
254 | | - * |
255 | | - * ```ts |
256 | | - * const result = await borrowApyHistory(client, { |
257 | | - * spoke: { |
258 | | - * address: evmAddress('0x123...'), |
259 | | - * chainId: chainId(1) |
260 | | - * }, |
261 | | - * reserve: reserveId(1), |
262 | | - * window: TimeWindow.LastWeek |
263 | | - * }); |
264 | | - * ``` |
265 | | - * |
266 | | - * @param client - Aave client. |
267 | | - * @param request - The borrow APY history request parameters. |
268 | | - * @returns The borrow APY history samples. |
269 | | - */ |
270 | | -export function borrowApyHistory( |
271 | | - client: AaveClient, |
272 | | - request: BorrowAPYHistoryRequest, |
273 | | -): ResultAsync<APYSample[], UnexpectedError> { |
274 | | - return client.query(BorrowApyHistoryQuery, { request }); |
275 | | -} |
276 | | - |
277 | | -/** |
278 | | - * Fetches supply APY history for a specific reserve over time. |
279 | | - * |
280 | | - * ```ts |
281 | | - * const result = await supplyApyHistory(client, { |
282 | | - * spoke: { |
283 | | - * address: evmAddress('0x123...'), |
284 | | - * chainId: chainId(1) |
285 | | - * }, |
286 | | - * reserve: reserveId(1), |
287 | | - * window: TimeWindow.LastWeek |
288 | | - * }); |
289 | | - * ``` |
290 | | - * |
291 | | - * @param client - Aave client. |
292 | | - * @param request - The supply APY history request parameters. |
293 | | - * @returns The supply APY history samples. |
294 | | - */ |
295 | | -export function supplyApyHistory( |
296 | | - client: AaveClient, |
297 | | - request: SupplyAPYHistoryRequest, |
298 | | -): ResultAsync<APYSample[], UnexpectedError> { |
299 | | - return client.query(SupplyApyHistoryQuery, { request }); |
300 | | -} |
301 | | - |
302 | | -/** |
303 | | - * Fetches hub assets for a specific chain and optional hub/user filtering. |
304 | | - * |
305 | | - * ```ts |
306 | | - * const result = await hubAssets(client, { |
307 | | - * chainId: chainId(1), |
308 | | - * hub: evmAddress('0x123...'), // optional |
309 | | - * user: evmAddress('0x456...'), // optional |
310 | | - * }); |
311 | | - * ``` |
312 | | - * |
313 | | - * @param client - Aave client. |
314 | | - * @param request - The hub assets request parameters. |
315 | | - * @param options - The query options. |
316 | | - * @returns The hub assets array. |
317 | | - */ |
318 | | -export function hubAssets( |
319 | | - client: AaveClient, |
320 | | - request: HubAssetsRequest, |
321 | | - options: Required<CurrencyQueryOptions> = DEFAULT_QUERY_OPTIONS, |
322 | | -): ResultAsync<HubAsset[], UnexpectedError> { |
323 | | - return client.query(HubAssetsQuery, { request, ...options }); |
324 | | -} |
0 commit comments