|
|
|
@ -6,7 +6,7 @@ import { Message } from '../../../types'; |
|
|
|
|
import { ensureLeading0x } from '../../../utils/addresses'; |
|
|
|
|
import { logger } from '../../../utils/logger'; |
|
|
|
|
import { ChainConfig } from '../../chains/chainConfig'; |
|
|
|
|
import { useChainConfigsWithQueryParams } from '../../chains/useChainConfigs'; |
|
|
|
|
import { useChainConfigs } from '../../chains/useChainConfigs'; |
|
|
|
|
import { useMultiProvider } from '../../providers/multiProvider'; |
|
|
|
|
import { isValidSearchQuery } from '../queries/useMessageQuery'; |
|
|
|
|
|
|
|
|
@ -25,7 +25,7 @@ export function usePiChainMessageSearchQuery({ |
|
|
|
|
endTimeFilter: number | null; |
|
|
|
|
pause: boolean; |
|
|
|
|
}) { |
|
|
|
|
const chainConfigs = useChainConfigsWithQueryParams(); |
|
|
|
|
const { chainConfigs } = useChainConfigs(); |
|
|
|
|
const multiProvider = useMultiProvider(); |
|
|
|
|
const { isLoading, isError, data } = useQuery( |
|
|
|
|
[ |
|
|
|
@ -72,7 +72,7 @@ export function usePiChainMessageQuery({ |
|
|
|
|
messageId: string; |
|
|
|
|
pause: boolean; |
|
|
|
|
}) { |
|
|
|
|
const chainConfigs = useChainConfigsWithQueryParams(); |
|
|
|
|
const { chainConfigs } = useChainConfigs(); |
|
|
|
|
const multiProvider = useMultiProvider(); |
|
|
|
|
const { isLoading, isError, data } = useQuery( |
|
|
|
|
['usePiChainMessageQuery', chainConfigs, messageId, pause], |
|
|
|
|