Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt new version of @metamask/signature-controller to add signature operation logs #21207

Merged

Conversation

OGPoyraz
Copy link
Member

@OGPoyraz OGPoyraz commented Oct 5, 2023

Description

This PR aims to update @metamask/signature-controller@^6.1.2 in order to adopt add logs on signature operations.

Manual testing steps

There is no functional change in signatures. But if you get signature request, sign or rejects, that should end up in MetaMask State Logs.json which could be downloaded under Settings>Download State Logs

Screenshots/Recordings

I am adding an example of state logs as a proof. (Please note that I've removed locale messages to make file a bit smaller)
MetaMask state logs.txt

Related issues

_Fixes https://github.com/MetaMask/MetaMask-planning/issues/1321

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained:
    • What problem this PR is solving.
    • How this problem was solved.
    • How reviewers can test my changes.
  • I’ve indicated what issue this PR is linked to: Fixes #???
  • I’ve included tests if applicable.
  • I’ve documented any added code.
  • I’ve applied the right labels on the PR (see labeling guidelines).
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@OGPoyraz OGPoyraz requested a review from a team as a code owner October 5, 2023 09:06
@OGPoyraz
Copy link
Member Author

OGPoyraz commented Oct 5, 2023

@metamaskbot update-policies

@OGPoyraz OGPoyraz added the team-confirmations-system DEPRECATED: please use "team-confirmations" label instead label Oct 5, 2023
@metamaskbot
Copy link
Collaborator

Policies updated

@OGPoyraz OGPoyraz requested review from a team as code owners October 5, 2023 09:22
@metamaskbot
Copy link
Collaborator

Builds ready [49b417d]
Page Load Metrics (1104 ± 429 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint921681232110
domContentLoaded771621122110
load8923331104894429
domInteractive771621122110
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 18.19 KiB (0.50%)
  • ui: 0 Bytes (0.00%)
  • common: 36.08 KiB (0.75%)

brad-decker
brad-decker previously approved these changes Oct 5, 2023
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e614498) 68.61% compared to head (552ae81) 68.62%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #21207      +/-   ##
===========================================
+ Coverage    68.61%   68.62%   +0.01%     
===========================================
  Files         1028     1028              
  Lines        41021    41018       -3     
  Branches     10958    10958              
===========================================
+ Hits         28145    28148       +3     
+ Misses       12876    12870       -6     
Files Coverage Δ
app/scripts/metamask-controller.js 53.76% <ø> (+0.18%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [d76fe18]
Page Load Metrics (1047 ± 411 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint861841142311
domContentLoaded701821052813
load9120061047857411
domInteractive701821052813
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 18.19 KiB (0.50%)
  • ui: 0 Bytes (0.00%)
  • common: 36.08 KiB (0.75%)

@sleepytanya
Copy link
Contributor

sleepytanya commented Oct 9, 2023

Signature requests are logged in MetaMask State Logs.json

logs.pdf

matthewwalsh0
matthewwalsh0 previously approved these changes Oct 11, 2023
vinistevam
vinistevam previously approved these changes Oct 11, 2023
@OGPoyraz OGPoyraz force-pushed the 1321-adopt-signature-controller-logging-in-extension branch from d76fe18 to f044ac4 Compare October 12, 2023 07:45
@socket-security
Copy link

socket-security bot commented Oct 12, 2023

No top level dependency changes detected. Learn more about Socket for GitHub ↗︎

@OGPoyraz
Copy link
Member Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@metamaskbot
Copy link
Collaborator

Builds ready [d07b619]
Page Load Metrics (1416 ± 465 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint951721292110
domContentLoaded711691202914
load8324361416969465
domInteractive711691202914
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 18.45 KiB (0.51%)
  • ui: 0 Bytes (0.00%)
  • common: 72.42 KiB (1.50%)

@metamaskbot
Copy link
Collaborator

Builds ready [d07b619]
Page Load Metrics (1416 ± 465 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint951721292110
domContentLoaded711691202914
load8324361416969465
domInteractive711691202914
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 18.45 KiB (0.51%)
  • ui: 0 Bytes (0.00%)
  • common: 72.42 KiB (1.50%)

matthewwalsh0
matthewwalsh0 previously approved these changes Oct 12, 2023
vinistevam
vinistevam previously approved these changes Oct 16, 2023
@OGPoyraz OGPoyraz force-pushed the 1321-adopt-signature-controller-logging-in-extension branch from d07b619 to 43c2527 Compare October 16, 2023 10:14
@OGPoyraz
Copy link
Member Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@metamaskbot
Copy link
Collaborator

Builds ready [552ae81]
Page Load Metrics (1223 ± 432 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint91167127189
domContentLoaded891661192211
load10621771223900432
domInteractive891661192211
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 49.91 KiB (1.33%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@OGPoyraz OGPoyraz merged commit 1a597a5 into develop Oct 16, 2023
64 checks passed
@OGPoyraz OGPoyraz deleted the 1321-adopt-signature-controller-logging-in-extension branch October 16, 2023 13:01
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
@metamaskbot metamaskbot added the release-11.5.0 Issue or pull request that will be included in release 11.5.0 label Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.5.0 Issue or pull request that will be included in release 11.5.0 team-confirmations-system DEPRECATED: please use "team-confirmations" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants