Skip to content

chore: remove MMI hooks and upgrade transaction controller#31597

Merged
matthewwalsh0 merged 10 commits into
mainfrom
remove-mmi-hooks-upgrade-tx-controller
Apr 8, 2025
Merged

chore: remove MMI hooks and upgrade transaction controller#31597
matthewwalsh0 merged 10 commits into
mainfrom
remove-mmi-hooks-upgrade-tx-controller

Conversation

@shane-t

@shane-t shane-t commented Apr 4, 2025

Copy link
Copy Markdown
Member

Description

Upgrades @metamask/transaction-controller to v53.0.0

Also removes the MMI hooks, so that we are no longer dependent on the custodyStatus/custodyId properties from transaction controller, given that they were removed in v53.0.0. MMI is deprecated, so this code is gradually being cleared out.

Open in GitHub Codespaces

Related issues

Core PR: MetaMask/core#5045

Manual testing steps

yarn lint will break otherwise

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • 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.

@metamaskbot metamaskbot added the team-identity-deprecated DEPRECATED: team no longer exists label Apr 4, 2025
@socket-security

socket-security Bot commented Apr 4, 2025

Copy link
Copy Markdown

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/controller-utils@11.6.011.7.0 None 0 0 B
npm/@metamask/transaction-controller@52.3.053.0.0 None 0 2.71 MB metamaskbot

View full report↗︎

@metamaskbot

metamaskbot commented Apr 4, 2025

Copy link
Copy Markdown
Collaborator

✨ Files requiring CODEOWNER review ✨

✅ @MetaMask/confirmations

  • app/scripts/controller-init/confirmations/transaction-controller-init.ts

@shane-t shane-t marked this pull request as ready for review April 4, 2025 10:12
@shane-t shane-t requested a review from a team as a code owner April 4, 2025 10:12
matthewwalsh0
matthewwalsh0 previously approved these changes Apr 4, 2025
Comment thread package.json Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep the ^?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea^^^^^^^^^

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unpinned

@matthewwalsh0

Copy link
Copy Markdown
Member

@metamaskbot update-policies

@metamaskbot

Copy link
Copy Markdown
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@socket-security

socket-security Bot commented Apr 4, 2025

Copy link
Copy Markdown

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

vinistevam
vinistevam previously approved these changes Apr 4, 2025
chore: upgrade transaction controller

chore: update lavamoat

chore: tweak build system lavamoat policy

chore: satisfy yarn dedupe

chore: unpin transaction-controller version

Update LavaMoat policies

chore: update lockfile since tx controller version was unpinned

chore: update sentry constants

chore: update sentry constants

chore: update fixture

chore: remove file
@shane-t shane-t force-pushed the remove-mmi-hooks-upgrade-tx-controller branch from 8bc12a9 to cc8a217 Compare April 5, 2025 01:36
@github-actions

github-actions Bot commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

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.

@metamaskbot

Copy link
Copy Markdown
Collaborator
Builds ready [ea40927]
UI Startup Metrics (1238 ± 58 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1238109413785812871330
load10859761208551153993
domContentLoaded10799711202561147987
domInteractive17136271628
firstPaint8001301208408225986
backgroundConnect1167910910
firstReactRender19144952029
getState13544868
initialActions001001
loadScripts82571295756881907
setupStore7525378
WebpackHomeuiStartup21631766248918822952410
load17051358207016718061968
domContentLoaded16951353206016517971963
domInteractive181372121553
firstPaint165653616224884
backgroundConnect3812415573764
firstReactRender166554271166695
getState2253114979
initialActions317135
loadScripts16831346203415917901930
setupStore2973176079
FirefoxBrowserifyHomeuiStartup13841214194716814281793
load12441070180816212931626
domContentLoaded12441069180816212931626
domInteractive10142190278998
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2517109122447
firstReactRender22195342228
getState7313278
initialActions001001
loadScripts12201038177515912721600
setupStore6431367
WebpackHomeuiStartup15981403218015116691926
load13761200189014314521677
domContentLoaded13751200188914314521676
domInteractive10138219258998
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect27205073044
firstReactRender38295864350
getState11532789
initialActions002111
loadScripts13511178186314314251649
setupStore9560789
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 1.9 KiB (0.02%)

@metamaskbot

Copy link
Copy Markdown
Collaborator
Builds ready [a113d06]
UI Startup Metrics (1224 ± 64 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1224109214056412581383
load10659211252661145991
domContentLoaded10599151247661201987
domInteractive17136161630
firstPaint7301251253421228966
backgroundConnect107273910
firstReactRender20145371935
getState13548878
initialActions001001
loadScripts80866998964842965
setupStore8424379
WebpackHomeuiStartup21651690253819522942414
load17061328207816917902015
domContentLoaded17001323206816717852007
domInteractive171262111457
firstPaint169674367225281
backgroundConnect3112235243656
firstReactRender195533921185894
getState12455889
initialActions317146
loadScripts16891317203516117791973
setupStore176449399
FirefoxBrowserifyHomeuiStartup14471234187915515011844
load12911087172915113591654
domContentLoaded12901087172915113581654
domInteractive11142364478998
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect271770102852
firstReactRender24206352431
getState1041821889
initialActions001001
loadScripts12641066170415113201626
setupStore7423368
WebpackHomeuiStartup15111353210616115361921
load13051149187415013391676
domContentLoaded13051149187415013391676
domInteractive9238158189097
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect24185562642
firstReactRender35285853746
getState8335589
initialActions002111
loadScripts12821130185114913161651
setupStore8530479
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 1.9 KiB (0.02%)

@metamaskbot

Copy link
Copy Markdown
Collaborator
Builds ready [68148fd]
UI Startup Metrics (1223 ± 55 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1223110214365512571329
load10749811235491113991
domContentLoaded10679751229491110993
domInteractive17135671631
firstPaint770891183418213282
backgroundConnect107384910
firstReactRender19144352031
getState13433768
initialActions001001
loadScripts81572795246845894
setupStore8515279
WebpackHomeuiStartup22171744267019123492573
load17341332223016518142021
domContentLoaded17281327222516318092006
domInteractive171380121453
firstPaint165685246724983
backgroundConnect3611401404172
firstReactRender203554171135693
getState14434759
initialActions317145
loadScripts17151318222016418011978
setupStore22721822337
FirefoxBrowserifyHomeuiStartup14111219195216614711848
load12661074178916113251686
domContentLoaded12661074178916113251686
domInteractive10439286398897
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect25166382645
firstReactRender23194142431
getState7414288
initialActions001001
loadScripts12421056176016012991665
setupStore6425367
WebpackHomeuiStartup15361317198415716371877
load13231144176114714031655
domContentLoaded13221144176014714021654
domInteractive9445252249198
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect25178082646
firstReactRender36306263849
getState9446689
initialActions002111
loadScripts13001125173814613811628
setupStore7530388
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 1.9 KiB (0.02%)

@matthewwalsh0 matthewwalsh0 added this pull request to the merge queue Apr 8, 2025
Merged via the queue into main with commit ac9c6f5 Apr 8, 2025
@matthewwalsh0 matthewwalsh0 deleted the remove-mmi-hooks-upgrade-tx-controller branch April 8, 2025 10:12
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 8, 2025
@metamaskbot metamaskbot added the release-12.17.0 Issue or pull request that will be included in release 12.17.0 label Apr 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-12.17.0 Issue or pull request that will be included in release 12.17.0 team-identity-deprecated DEPRECATED: team no longer exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants