Skip to content

Conversation

@rekmarks
Copy link
Member

@rekmarks rekmarks commented Jan 7, 2026

Summary

  • Update @metamask/eth-json-rpc-filters to use V2 middleware format
  • Wrap V2 middleware with asLegacyMiddleware for V1 engine compatibility
  • Refactor createMetamaskMiddleware to return array of V2 middleware
  • Combine filter, subscription, and metamask middleware into single V2 engine in provider setup

Test plan

  • Verify filter methods (eth_newFilter, eth_newBlockFilter, eth_getFilterChanges, etc.) work correctly
  • Verify subscription methods (eth_subscribe, eth_unsubscribe) work correctly
  • Test multichain API subscription functionality

🤖 Generated with Claude Code

- Update @metamask/eth-json-rpc-filters to use V2 middleware
- Wrap V2 middleware with asLegacyMiddleware for V1 engine compatibility
- Refactor createMetamaskMiddleware to return array of V2 middleware
- Combine filter, subscription, and metamask middleware into single V2 engine

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@metamaskbot metamaskbot added the team-ocap-kernel The Ocap Kernel team label Jan 7, 2026
@github-actions github-actions bot added the size-S label Jan 7, 2026
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 7, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/wallet-integrations (1 files, +22 -29)
  • 📁 app/
    • 📁 scripts/
      • 📁 lib/
        • 📄 createMetamaskMiddleware.ts +22 -29

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 7, 2026

Builds ready [7a41f69]
UI Startup Metrics (1275 ± 109 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12751054158510913311443
load1072875131810111371248
domContentLoaded1066862130810011291239
domInteractive2615110212389
firstPaint171661155172189339
backgroundConnect21319527111217235
firstReactRender1593461630
getState331670104051
initialActions107112
loadScripts86066411121009221032
setupStore1285151220
numNetworkReqs171175171166
BrowserifyPower User HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
WebpackStandard HomeuiStartup8106681118898571001
load64858395069660798
domContentLoaded64357894368653788
domInteractive261695202383
firstPaint1056242657122213
backgroundConnect2851312838115
firstReactRender15113651626
getState3415127194465
initialActions104112
loadScripts63957693467651778
setupStore1062941117
numNetworkReqs171174161166
WebpackPower User HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
FirefoxBrowserifyStandard HomeuiStartup14301114261623015321835
load1145936238419811951386
domContentLoaded1144936238319811951386
domInteractive8832131012995145
firstPaint------
backgroundConnect671924956114179
firstReactRender14991101325
getState146139161226
initialActions102012
loadScripts1102921236118311391277
setupStore174109211379
numNetworkReqs20991201478
BrowserifyPower User HomeuiStartup22961416292645326362869
load1576969235545519952236
domContentLoaded1575969235545519942234
domInteractive75354436970272
firstPaint------
backgroundConnect3932010574059101011
firstReactRender20116272426
getState82551972388126
initialActions207123
loadScripts1231953220429812331902
setupStore3052714721153
numNetworkReqs74521662889138
WebpackStandard HomeuiStartup16071338202015216721905
load13241135162410113901524
domContentLoaded13231135162410013901523
domInteractive833122439110153
firstPaint------
backgroundConnect59192024070143
firstReactRender16105451725
getState156143171430
initialActions103122
loadScripts1287111615679313331494
setupStore2461973518117
numNetworkReqs21992211580
WebpackPower User HomeuiStartup25861692352951029843275
load19151225270049523872571
domContentLoaded19141225269649523872571
domInteractive64292924871176
firstPaint------
backgroundConnect3022612473523741071
firstReactRender20126592336
getState124571003133127244
initialActions207123
loadScripts16721191252741821112386
setupStore3159951012284
numNetworkReqs70401462882137
📊 Page Load Benchmark Results

Current Commit: 7a41f69 | Date: 1/7/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 987ms (±61ms) 🟢 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 690ms (±59ms) 🟢 | historical mean value: 729ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 72ms (±10ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 987ms 61ms 946ms 1.26s 1.18s 1.26s
domContentLoaded 690ms 59ms 654ms 961ms 886ms 961ms
firstPaint 72ms 10ms 52ms 148ms 84ms 148ms
firstContentfulPaint 72ms 10ms 52ms 148ms 84ms 148ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -75.47 KiB (-1.54%)
  • ui: -10.01 KiB (-0.13%)
  • common: -2.69 KiB (-0.03%)

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 7, 2026

Builds ready [7a41f69]
UI Startup Metrics (1275 ± 109 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12751054158510913311443
load1072875131810111371248
domContentLoaded1066862130810011291239
domInteractive2615110212389
firstPaint171661155172189339
backgroundConnect21319527111217235
firstReactRender1593461630
getState331670104051
initialActions107112
loadScripts86066411121009221032
setupStore1285151220
numNetworkReqs171175171166
BrowserifyPower User HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
WebpackStandard HomeuiStartup8106681118898571001
load64858395069660798
domContentLoaded64357894368653788
domInteractive261695202383
firstPaint1056242657122213
backgroundConnect2851312838115
firstReactRender15113651626
getState3415127194465
initialActions104112
loadScripts63957693467651778
setupStore1062941117
numNetworkReqs171174161166
WebpackPower User HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
FirefoxBrowserifyStandard HomeuiStartup14301114261623015321835
load1145936238419811951386
domContentLoaded1144936238319811951386
domInteractive8832131012995145
firstPaint------
backgroundConnect671924956114179
firstReactRender14991101325
getState146139161226
initialActions102012
loadScripts1102921236118311391277
setupStore174109211379
numNetworkReqs20991201478
BrowserifyPower User HomeuiStartup22961416292645326362869
load1576969235545519952236
domContentLoaded1575969235545519942234
domInteractive75354436970272
firstPaint------
backgroundConnect3932010574059101011
firstReactRender20116272426
getState82551972388126
initialActions207123
loadScripts1231953220429812331902
setupStore3052714721153
numNetworkReqs74521662889138
WebpackStandard HomeuiStartup16071338202015216721905
load13241135162410113901524
domContentLoaded13231135162410013901523
domInteractive833122439110153
firstPaint------
backgroundConnect59192024070143
firstReactRender16105451725
getState156143171430
initialActions103122
loadScripts1287111615679313331494
setupStore2461973518117
numNetworkReqs21992211580
WebpackPower User HomeuiStartup25861692352951029843275
load19151225270049523872571
domContentLoaded19141225269649523872571
domInteractive64292924871176
firstPaint------
backgroundConnect3022612473523741071
firstReactRender20126592336
getState124571003133127244
initialActions207123
loadScripts16721191252741821112386
setupStore3159951012284
numNetworkReqs70401462882137
📊 Page Load Benchmark Results

Current Commit: 7a41f69 | Date: 1/7/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 987ms (±61ms) 🟢 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 690ms (±59ms) 🟢 | historical mean value: 729ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 72ms (±10ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 987ms 61ms 946ms 1.26s 1.18s 1.26s
domContentLoaded 690ms 59ms 654ms 961ms 886ms 961ms
firstPaint 72ms 10ms 52ms 148ms 84ms 148ms
firstContentfulPaint 72ms 10ms 52ms 148ms 84ms 148ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -75.47 KiB (-1.54%)
  • ui: -10.01 KiB (-0.13%)
  • common: -2.69 KiB (-0.03%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-S team-ocap-kernel The Ocap Kernel team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants