Skip to content

Commit

Permalink
dashboard: display safe/finalized heights
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-gray committed Nov 16, 2023
1 parent baebb75 commit fc0266d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dashboard/src/components/Chains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ const columns = [
sortingFn: `text`,
}),
columnHelper.accessor('network.height', {
header: () => 'Height',
header: () => 'Latest',
}),
columnHelper.accessor('network.safeHeight', {
header: () => 'Safe',
}),
columnHelper.accessor('network.finalizedHeight', {
header: () => 'Finalized',
}),
columnHelper.accessor('network.contractAddress', {
header: () => 'Contract',
Expand Down
2 changes: 2 additions & 0 deletions dashboard/src/utils/getLastHeartbeats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export interface HeartbeatNetwork {
height: string;
contractAddress: string;
errorCount: string;
safeHeight?: string;
finalizedHeight?: string;
}

export async function getLastHeartbeats(network: Network): Promise<Heartbeat[]> {
Expand Down

0 comments on commit fc0266d

Please sign in to comment.