Commit 8bb23bf
chore: update sei fallback rpc and default visibility (#22450)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
This change removes Sei from the default preloaded networks so that it
no longer appears as a default entry in the networks list.
Instead, it will now be displayed under Additional Networks, allowing
users to manually add it if needed.
Additionally, this update introduces a fallback RPC for Sei
(QUICKNODE_SEI_URL) in customNetworks.tsx, ensuring improved redundancy
and reliability when Infura is unavailable.
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: removed Sei from default networks and added QuickNode
fallback RPC.
## **Manual testing steps**
```gherkin
Feature: Sei network configuration updates
Scenario: Verify Sei is not listed as a default network
Given the app is freshly installed or reset
When I open the list of default networks
Then I should NOT see "Sei" listed in the main network list
And I should see "Sei" listed under the "Additional Networks" section
Scenario: Verify Sei can be manually added
Given I open the "Add Network" flow
When I search for "Sei"
Then I should be able to add the "Sei" network manually
```
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
<img width="391" height="799" alt="Screenshot 2025-11-10 at 21 19 16"
src="https://github.com/user-attachments/assets/f9a2266d-b27f-453e-a0c1-c60ca0b2d15e"
/>
## **Pre-merge author checklist**
- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Removes Sei from default networks and adds a QuickNode fallback RPC,
including a migration to populate failoverUrls and associated
test/snapshot updates.
>
> - **Networks**:
> - Remove `sei-mainnet` from default `NetworkController` state so it
appears under Additional Networks
(`app/core/Engine/controllers/network-controller-init.ts`).
> - Add QuickNode mapping for `sei-mainnet` and use it as
`failoverRpcUrls` in `PopularList`
(`app/util/networks/customNetworks.tsx`).
> - **Migration**:
> - Add `migration107` to append `failoverUrls` to SEI RPC endpoints
when missing, guarded by `QUICKNODE_SEI_URL`
(`app/store/migrations/107.ts`, wired in
`app/store/migrations/index.ts`).
> - Comprehensive tests for structure validation and behavior
(`app/store/migrations/107.test.ts`).
> - **Tests/Snapshots**:
> - Update AddressSelector expectations/snapshot to exclude `Sei` from
EVM list (`app/components/Views/AddressSelector/*`).
> - Extend QuickNode env support to include `QUICKNODE_SEI_URL` in utils
tests (`app/core/Engine/controllers/network-controller/utils.test.ts`).
> - Update logs and initial background state fixtures to remove default
SEI config (`app/util/logs/__snapshots__/index.test.ts.snap`,
`app/util/test/initial-background-state.json`).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
27c61df. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Stanley Yuen <102275989+stanleyyconsensys@users.noreply.github.com>1 parent c6baef5 commit 8bb23bf
File tree
10 files changed
+606
-238
lines changed- app
- components/Views/AddressSelector
- __snapshots__
- core/Engine/controllers
- network-controller
- store/migrations
- util
- logs/__snapshots__
- networks
- test
10 files changed
+606
-238
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
Lines changed: 5 additions & 186 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | 1078 | | |
1260 | 1079 | | |
1261 | 1080 | | |
| |||
1392 | 1211 | | |
1393 | 1212 | | |
1394 | 1213 | | |
1395 | | - | |
| 1214 | + | |
1396 | 1215 | | |
1397 | 1216 | | |
1398 | 1217 | | |
| |||
1573 | 1392 | | |
1574 | 1393 | | |
1575 | 1394 | | |
1576 | | - | |
| 1395 | + | |
1577 | 1396 | | |
1578 | 1397 | | |
1579 | 1398 | | |
| |||
1754 | 1573 | | |
1755 | 1574 | | |
1756 | 1575 | | |
1757 | | - | |
| 1576 | + | |
1758 | 1577 | | |
1759 | 1578 | | |
1760 | 1579 | | |
| |||
1935 | 1754 | | |
1936 | 1755 | | |
1937 | 1756 | | |
1938 | | - | |
| 1757 | + | |
1939 | 1758 | | |
1940 | 1759 | | |
1941 | 1760 | | |
| |||
2116 | 1935 | | |
2117 | 1936 | | |
2118 | 1937 | | |
2119 | | - | |
| 1938 | + | |
2120 | 1939 | | |
2121 | 1940 | | |
2122 | 1941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
94 | 97 | | |
95 | | - | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| |||
0 commit comments