refactor: migrate PhishingController data fetching to PhishingDataService - #9914
Draft
0xOhm wants to merge 1 commit into
Draft
refactor: migrate PhishingController data fetching to PhishingDataService#99140xOhm wants to merge 1 commit into
0xOhm wants to merge 1 commit into
Conversation
…vice Extract all remote data fetching from PhishingController into a new PhishingDataService built on the BaseDataService pattern. Removes CacheManager in favor of the service's built-in caching, persistence, and request coalescing. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Extracts all remote data fetching from
PhishingControllerinto a newPhishingDataServicebuilt on theBaseDataServicepattern (PSAFE-593).CacheManageris removed in favor of the service's built-in caching, persistence, and request coalescing.Changes
PhishingDataServiceowning all four remote APIs (stalelist/hotlist, request-blocklist/C2, dapp scanning, token/address scanning) with generated method action typesPhishingControllerslimmed to detection/state logic; queries data through the service via the messengerCacheManagerremoved — caching, persistence (StorageService), and request coalescing now come fromBaseDataServiceresult_typeasstring, not enum) to match pre-refactor behavior — production already returns values outside the documented enum (Verified)Verification
maxAge-expired verdicts discardedClient integration PRs
🤖 Generated with Claude Code