From 9ed31a91f2cda6c24c640634e1d60949347ffb31 Mon Sep 17 00:00:00 2001 From: jdjioe5-cpu Date: Sun, 26 Jul 2026 10:08:35 +0800 Subject: [PATCH] fix(hooks): remove unused HorizonOperation/HorizonEffect interfaces (issue #376) - hooks/use-stream-history.ts: drop HorizonOperation (used nowhere) and HorizonEffect (used nowhere); keep HorizonTransaction which fetchHorizonTransactions() references at line ~72. Verified via repo-wide grep that no other .ts/.tsx file consumes either interface. Close as part of FlowwStar/FlowStar#376. --- hooks/use-stream-history.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/hooks/use-stream-history.ts b/hooks/use-stream-history.ts index ff14d39..3f4fb32 100644 --- a/hooks/use-stream-history.ts +++ b/hooks/use-stream-history.ts @@ -31,22 +31,6 @@ function decodeEventType(topics: string[]): TimelineEventType | null { return null } -interface HorizonOperation { - type: string - transaction_hash: string - created_at: string - amount?: string - from?: string - to?: string -} - -interface HorizonEffect { - type: string - created_at: string - amount?: string - account?: string -} - interface HorizonTransaction { hash: string ledger: number