Skip to content

feat: support version 2.0.0 of EIP-5792#31913

Merged
matthewwalsh0 merged 14 commits intomainfrom
feat/eip-5792-atomic-capability
Apr 16, 2025
Merged

feat: support version 2.0.0 of EIP-5792#31913
matthewwalsh0 merged 14 commits intomainfrom
feat/eip-5792-atomic-capability

Conversation

@matthewwalsh0
Copy link
Copy Markdown
Member

@matthewwalsh0 matthewwalsh0 commented Apr 11, 2025

Description

Update middleware handlers to support version 2.0.0 of EIP-5792.

Specifically:

  • Update supported wallet_sendCalls version to 2.0.0.
  • Return atomic capability in wallet_getCapabilities including status property.
  • Fallback to AccountsController:getSelectedAccount if from not specified in wallet_sendCalls.
  • Use new error codes.
  • Bump @metamask/eth-json-rpc-middleware, @metamask/transaction-controller, and @metamask/test-dapp.

Open in GitHub Codespaces

Related issues

Manual testing steps

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.

@matthewwalsh0 matthewwalsh0 added the team-confirmations Push issues to confirmations team label Apr 11, 2025
@matthewwalsh0 matthewwalsh0 requested a review from a team as a code owner April 11, 2025 23:46
@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 14, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​transaction-controller@​54.0.0 ⏵ 54.1.093 +110079 +1100100
Updated@​metamask/​test-dapp@​9.2.0 ⏵ 9.3.094 +81008996100

View full report

@metamaskbot
Copy link
Copy Markdown
Collaborator

metamaskbot commented Apr 14, 2025

✨ Files requiring CODEOWNER review ✨

✅ @MetaMask/confirmations

  • ui/pages/confirmations/hooks/useSmartAccountActions.ts

🧩 @MetaMask/extension-devs

  • lavamoat/browserify/beta/policy.json
  • lavamoat/browserify/flask/policy.json
  • lavamoat/browserify/main/policy.json
  • lavamoat/browserify/mmi/policy.json

📜 @MetaMask/policy-reviewers

  • lavamoat/browserify/beta/policy.json
  • lavamoat/browserify/flask/policy.json
  • lavamoat/browserify/main/policy.json
  • lavamoat/browserify/mmi/policy.json

🔗 @MetaMask/supply-chain

  • lavamoat/browserify/beta/policy.json
  • lavamoat/browserify/flask/policy.json
  • lavamoat/browserify/main/policy.json
  • lavamoat/browserify/mmi/policy.json

@matthewwalsh0 matthewwalsh0 requested review from a team as code owners April 15, 2025 19:08
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [2e87ac0]
UI Startup Metrics (1223 ± 53 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1223112613685312591323
load105796412245210871151
domContentLoaded105195812185210821147
domInteractive18136381733
firstPaint69576117741810781138
backgroundConnect6418279
firstReactRender20154642126
getState1343071828
initialActions001001
loadScripts81071894950835891
setupStore85172811
WebpackHomeuiStartup21151684250316522082390
load16301301221614017251810
domContentLoaded16201297195313017181807
domInteractive151163101344
firstPaint1776932652213289
backgroundConnect279319322955
firstReactRender20754382121337359
getState1135281325
initialActions316135
loadScripts16161296193113017161805
setupStore246303432035
FirefoxBrowserifyHomeuiStartup14271195186113214911674
load12641053167213413351528
domContentLoaded12641053167113413351527
domInteractive1063725733125164
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2415110152366
firstReactRender24205242531
getState85384812
initialActions001001
loadScripts12421027164913613131509
setupStore9419219713
WebpackHomeuiStartup14761335180911215321734
load12621141157210213051479
domContentLoaded12611141157210213051478
domInteractive79342912982132
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect221479102240
firstReactRender35295253744
getState94336928
initialActions002111
loadScripts12431122155810312881464
setupStore95406828

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [2e87ac0]
UI Startup Metrics (1227 ± 64 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1227110613906412721338
load105491612175910861163
domContentLoaded104890512125810781157
domInteractive18137381728
firstPaint77085122041010691164
backgroundConnect6424278
firstReactRender21164552134
getState1353881833
initialActions001001
loadScripts80966698057841910
setupStore85192912
WebpackHomeuiStartup21361749260218022512405
load16451348205313917531868
domContentLoaded16391345204313717461861
domInteractive151164101345
firstPaint1776634656217282
backgroundConnect251068133055
firstReactRender22257402116337360
getState1244971426
initialActions318146
loadScripts16341343201913617441851
setupStore216312312338
FirefoxBrowserifyHomeuiStartup14341250190912414851693
load12691058172512513361519
domContentLoaded12691058172512513351519
domInteractive1033817728122154
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2713142212586
firstReactRender24204032632
getState84253911
initialActions001001
loadScripts12451044170712213201468
setupStore8419919710
WebpackHomeuiStartup15181383200013415491807
load12961172173011613171519
domContentLoaded12951172172911613171519
domInteractive85533373494133
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23144472442
firstReactRender35285153746
getState94314920
initialActions102111
loadScripts12751150171011613011502
setupStore12628828826

@matthewwalsh0 matthewwalsh0 force-pushed the feat/eip-5792-atomic-capability branch from 2e87ac0 to 9804cab Compare April 15, 2025 22:22
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [c37b9a2]
UI Startup Metrics (1211 ± 57 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1211109013955712471318
load104895112265410831161
domContentLoaded104394612205410781153
domInteractive17136271730
firstPaint702134123442010671126
backgroundConnect6418279
firstReactRender22166482142
getState1353581830
initialActions001001
loadScripts80271197351833898
setupStore74213811
WebpackHomeuiStartup21011747252617621952372
load16181356195712917171817
domContentLoaded16111353192612817131809
domInteractive161167111343
firstPaint1846535669232327
backgroundConnect24978142559
firstReactRender19854395122336361
getState1144761421
initialActions3110135
loadScripts16061351190212717051806
setupStore3563016720256
FirefoxBrowserifyHomeuiStartup13321141177211813911595
load1188998161112512391445
domContentLoaded1187998161112512391445
domInteractive1004222428109158
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2012108111937
firstReactRender22195442227
getState7432379
initialActions001001
loadScripts1170984156712512251431
setupStore64345610
WebpackHomeuiStartup15491367215814516091856
load13191150191413613831616
domContentLoaded13191150191413613821616
domInteractive81571411995119
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect221493112240
firstReactRender36296453847
getState94317929
initialActions002111
loadScripts13001132189413513591598
setupStore11531431816
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 102.23 KiB (1.98%)
  • ui: 117 Bytes (0%)
  • common: 3.89 KiB (0.04%)

@matthewwalsh0 matthewwalsh0 added this pull request to the merge queue Apr 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 16, 2025
@matthewwalsh0 matthewwalsh0 added this pull request to the merge queue Apr 16, 2025
Merged via the queue into main with commit c566fc3 Apr 16, 2025
168 checks passed
@matthewwalsh0 matthewwalsh0 deleted the feat/eip-5792-atomic-capability branch April 16, 2025 11:15
@github-actions github-actions bot locked and limited conversation to collaborators Apr 16, 2025
@metamaskbot metamaskbot added the release-12.18.0 Issue or pull request that will be included in release 12.18.0 label Apr 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-12.16.1 release-12.18.0 Issue or pull request that will be included in release 12.18.0 team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants