Skip to content

Commit

Permalink
feat: added type
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPresident committed Nov 21, 2024
1 parent f259a3e commit 4762e5d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/contracts/services/moneyMarket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4762e5d

Please sign in to comment.