Files
explorer-monorepo/frontend/src/pages/weth/index.tsx
defiQUG 0972178cc5 refactor: rename SolaceScanScout to Solace and update related configurations
- Updated branding from "SolaceScanScout" to "Solace" across various files including deployment scripts, API responses, and documentation.
- Changed default base URL for Playwright tests and updated security headers to reflect the new branding.
- Enhanced README and API documentation to include new authentication endpoints and product access details.

This refactor aligns the project branding and improves clarity in the API documentation.
2026-04-10 12:52:17 -07:00

34 lines
1.3 KiB
TypeScript

import type { GetStaticProps } from 'next'
import WethOperationsPage from '@/components/explorer/WethOperationsPage'
import { fetchPublicJson } from '@/utils/publicExplorer'
import type { MissionControlBridgeStatusResponse } from '@/services/api/missionControl'
import type { InternalExecutionPlanResponse, PlannerCapabilitiesResponse } from '@/services/api/planner'
interface WethPageProps {
initialBridgeStatus: MissionControlBridgeStatusResponse | null
initialPlannerCapabilities: PlannerCapabilitiesResponse | null
initialInternalPlan: InternalExecutionPlanResponse | null
}
export default function WethPage(props: WethPageProps) {
return <WethOperationsPage {...props} />
}
export const getStaticProps: GetStaticProps<WethPageProps> = async () => {
const [bridgeStatus, plannerCapabilities] = await Promise.all([
fetchPublicJson<MissionControlBridgeStatusResponse>('/explorer-api/v1/track1/bridge/status').catch(() => null),
fetchPublicJson<PlannerCapabilitiesResponse>('/token-aggregation/api/v2/providers/capabilities?chainId=138').catch(
() => null,
),
])
return {
props: {
initialBridgeStatus: bridgeStatus,
initialPlannerCapabilities: plannerCapabilities,
initialInternalPlan: null,
},
revalidate: 60,
}
}