From 4762e5d13fbcc9ad9625bb5b507b4a94cc8100f2 Mon Sep 17 00:00:00 2001 From: DrPresident Date: Thu, 21 Nov 2024 11:48:18 -0600 Subject: [PATCH] feat: added type --- src/contracts/services/moneyMarket.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/contracts/services/moneyMarket.ts b/src/contracts/services/moneyMarket.ts index 6c4009f..f9b4ccb 100644 --- a/src/contracts/services/moneyMarket.ts +++ b/src/contracts/services/moneyMarket.ts @@ -5,6 +5,11 @@ import { map, lastValueFrom, } from 'rxjs'; + +import { + BatchQueryParsedResponse, + BatchQueryParams, +} from '~/types/contracts/batchQuery/model'; import { sendSecretClientContractQuery$ } from '~/client/services/clientServices'; import { ConfigResponse, GetCollateralResponse, GetMarketsResponse } from '~/types/contracts/moneyMarket/response'; import { @@ -16,9 +21,6 @@ import { ParsedRewardPoolsResponse, } from '~/types/contracts/moneyMarket/model'; import { Contract } from '~/types/contracts/shared/index'; -import { - BatchQueryParams, BatchQueryParsedResponse, -} from '~/types/contracts/batchQuery/model'; import { MinBlockHeightValidationOptions } from '~/types'; import { batchQuery$ } from './batchQuery'; import { msgQueryMoneyMarketCollaterals, msgQueryMoneyMarketConfig, msgQueryMoneyMarketMarkets } from '../definitions/moneyMarket'; @@ -730,7 +732,9 @@ async function batchQueryMoneyMarketPublicLogs({ })); } -const parseBatchQueryMoneyMarketRewardPools = (responses: any): ParsedRewardPoolsResponse[] => ( +const parseBatchQueryMoneyMarketRewardPools = ( + responses: BatchQueryParsedResponse, +): ParsedRewardPoolsResponse[] => ( responses.map((response: any) => ({ debtMarket: response.id, blockHeight: response.blockHeight,