fix: migrate Sei explorer from Seitrace to Seiscan#29221
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. |
AI PR Analysis🚫 Merge safe: false | 🟠 Risk: high
AI analysis did not complete. Manual review recommended. |
90a80e0 to
3aa3d27
Compare
3aa3d27 to
bd0df20
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
SmokeNetworkAbstractions is the most relevant tag because:
No other tags are warranted because:
Performance Test Selection: |
|



Description
Seitrace (
https://seitrace.com), the current Sei Mainnet blockexplorer, is being decommissioned. This PR swaps every hardcoded
reference to
seiscan.ioand adds migration 134 to rewrite existingusers' persisted
NetworkControllerstate on upgrade.Hardcoded URL swaps:
app/util/networks/customNetworks.tsx— Sei MainnetblockExplorerUrltests/resources/networks.e2e.js— e2e resourcetests/api-mocking/mock-responses/tx-sentinel-networks-map.ts— mockexplorerMigration 134 rewrites
engine.backgroundState.NetworkController.networkConfigurationsByChainId['0x531'].blockExplorerUrlsfrom
seitrace.comtoseiscan.iofor existing installs. It onlytouches entries still pointing at
seitrace.com— a user who customizedtheir Sei block explorer (e.g. to
seistream.app) is left alone. Themigration follows mobile's current pattern (sync arrow function with
in-place
statemutation), and is registered inapp/store/migrations/index.ts. Cross-repo reference for this familyof block-explorer-URL migrations is
metamask-extension/app/scripts/migrations/197.ts.The
@metamask/controller-utilsbump is deliberately deferred untilthe sibling PR in
MetaMask/corereleases; this PR stands alone.Changelog
CHANGELOG entry: Fixed Sei Mainnet: replaced deprecated Seitrace explorer with Seiscan (
https://seiscan.io). Existing installs are migrated via migration 134.Related issues
Fixes:
Companion PRs:
MetaMask/core#8545— defaultBlockExplorerUrl[SeiMainnet]MetaMask/metafi-sdk#525— shared SDKSEI_EXPLORERMetaMask/metamask-extension#42064— extension migration 207Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
Pre-merge reviewer checklist
Note
Medium Risk
Adds a new persisted-state migration that mutates
NetworkControllernetwork configs for Sei Mainnet; while narrowly scoped, migrations run on upgrade and can affect existing user state if bugs slip through.Overview
Updates Sei Mainnet’s default block explorer from Seitrace to Seiscan across the in-app popular network config and test fixtures.
Adds migration
134(registered inapp/store/migrations/index.ts) to rewrite persisted Sei MainnetblockExplorerUrlsentries whose URL hostname is exactlyseitrace.comtoseiscan.io, while leaving missing/invalid controller state and user-customized/lookalike URLs untouched; includes unit tests covering the rewrite and no-op cases.Reviewed by Cursor Bugbot for commit 68e91bc. Bugbot is set up for automated code reviews on this repo. Configure here.