-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add utility function to get supported chains from the Security Alerts API #25716
feat: add utility function to get supported chains from the Security Alerts API #25716
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [7e6af5d]
Page Load Metrics (208 ± 230 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25716 +/- ##
========================================
Coverage 69.67% 69.67%
========================================
Files 1400 1400
Lines 49513 49521 +8
Branches 13692 13693 +1
========================================
+ Hits 34495 34502 +7
- Misses 15018 15019 +1 ☔ View full report in Codecov by Sentry. |
Builds ready [47cce73]
Page Load Metrics (152 ± 141 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [5bfc335]
Page Load Metrics (76 ± 10 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
Builds ready [fe04f80]
Page Load Metrics (162 ± 186 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This PR aims to include a new utility function to get supported chains from the Security Alerts API when enabled.
Related Repository
Refer to the Security Alerts API repository for more details.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2846
Manual testing steps
Test blockaid regression
add the envs
security-alerts
and find the call to the API service.Existing PPOM logic should function as before, even with the above environment variables added, due to the fallback to the controller in the event of an error.
Screenshots/Recordings
supported-chains.webm
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist