Skip to content

Commit

Permalink
feat: add some filters on channels api
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Dec 2, 2024
1 parent 5abf024 commit 66efc52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/GraphChannelList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const GraphChannelList: FC<{ list: Fiber.Graph.Channel[]; isFullWidth?: boolean;
<dt>ID</dt>
<dd>
<Tooltip title={channel.node1}>
<Link to={`/fiber/graph/node${channel.node1}`} className="monospace">{`0x${channel.node1.slice(
<Link to={`/fiber/graph/node/${channel.node1}`} className="monospace">{`0x${channel.node1.slice(
0,
8,
)}...${channel.node1.slice(-8)}`}</Link>
Expand All @@ -155,7 +155,7 @@ const GraphChannelList: FC<{ list: Fiber.Graph.Channel[]; isFullWidth?: boolean;
<dt>ID</dt>
<dd>
<Tooltip title={channel.node2}>
<Link to={`/fiber/graph/node${channel.node2}`} className="monospace">{`0x${channel.node2.slice(
<Link to={`/fiber/graph/node/${channel.node2}`} className="monospace">{`0x${channel.node2.slice(
0,
8,
)}...${channel.node2.slice(-8)}`}</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/services/ExplorerService/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,7 @@ export const apiFetcher = {
`/fiber/graph_channels?${new URLSearchParams({
page: page.toString(),
page_size: pageSize.toString(),
status: 'open',
})}`,
)
.then(res =>
Expand Down Expand Up @@ -1561,7 +1562,6 @@ export namespace Fiber {
totalCapacity: string
connectedNodeIds: string[]
openChannelsCount: number
channelLinksCount: number
}

export interface Channel {
Expand Down

0 comments on commit 66efc52

Please sign in to comment.