Skip to content

Commit

Permalink
Merge pull request #1425 from oasisprotocol/csillag/follow-nexus-2024.05
Browse files Browse the repository at this point in the history
Get all deployed Nexus API changes
  • Loading branch information
csillag authored May 24, 2024
2 parents 09cac2d + 0257536 commit 2236667
Show file tree
Hide file tree
Showing 3 changed files with 376 additions and 167 deletions.
1 change: 1 addition & 0 deletions .changelog/1425.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Follow Nexus API changes up to Nexus v0.3.0
5 changes: 2 additions & 3 deletions src/app/pages/ValidatorDetailsPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CardContent from '@mui/material/CardContent'
import Divider from '@mui/material/Divider'
import Grid from '@mui/material/Grid'
import { useScreenSize } from '../../hooks/useScreensize'
import { Validator, useGetConsensusValidatorsEntityId } from '../../../oasis-nexus/api'
import { Validator, useGetConsensusValidatorsAddress } from '../../../oasis-nexus/api'
import { RouterTabs } from '../../components/RouterTabs'
import { StyledDescriptionList } from '../../components/StyledDescriptionList'
import { PageLayout } from '../../components/PageLayout'
Expand Down Expand Up @@ -36,9 +36,8 @@ export const ValidatorDetailsPage: FC = () => {
const { t } = useTranslation()
const { isMobile } = useScreenSize()
const scope = useRequiredScopeParam()
// TODO: currently API does not work with address query param. Wait for API update or switch to entity_id
const { address } = useLoaderData() as AddressLoaderData
const validatorQuery = useGetConsensusValidatorsEntityId(scope.network, address)
const validatorQuery = useGetConsensusValidatorsAddress(scope.network, address)
const { isLoading, data } = validatorQuery
const validator = data?.data
const transactionsLink = useHref('')
Expand Down
Loading

0 comments on commit 2236667

Please sign in to comment.