Skip to content

Conversation

@AugmentedMode
Copy link
Contributor

@AugmentedMode AugmentedMode commented Nov 11, 2025

Explanation

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Introduces scanAddress with per-chain caching, new types, and messenger action to screen EVM addresses via Security Alerts API.

  • Controller (src/PhishingController.ts)
    • Add scanAddress(chainId, address) hitting SECURITY_ALERTS_BASE_URL + ADDRESS_SCAN_ENDPOINT with 5s timeout; returns AddressScanResult and caches per chainId+address.
    • Add addressScanCache (state, metadata), cache manager, defaults (DEFAULT_ADDRESS_SCAN_CACHE_TTL/MAX_SIZE), and options (addressScanCacheTTL/MaxSize).
    • Register action PhishingController:scanAddress and export constants SECURITY_ALERTS_BASE_URL, ADDRESS_SCAN_ENDPOINT.
  • Types/Exports
    • Add AddressScanResult, AddressScanResultType, AddressScanCacheData; extend chain ID map; export new types/enums via index.ts.
  • Tests (PhishingController.test.ts)
    • Add comprehensive scanAddress tests: success, HTTP errors, timeout, validation, normalization, caching (including per-chain).
    • Update metadata snapshots to include addressScanCache.
  • Changelog
    • Document new address scanning feature and related API/action/state additions.

Written by Cursor Bugbot for commit 6e3e5d1. This will update automatically on new commits. Configure here.

@AugmentedMode AugmentedMode requested a review from a team as a code owner November 11, 2025 15:46
@AugmentedMode AugmentedMode requested a review from a team as a code owner November 17, 2025 22:22
@AugmentedMode AugmentedMode added this pull request to the merge queue Nov 19, 2025
Merged via the queue into main with commit 901f63a Nov 19, 2025
273 checks passed
@AugmentedMode AugmentedMode deleted the feat/address-scanning branch November 19, 2025 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants