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

feat: update signature controller and integrate decoding api #28397

Merged
merged 12 commits into from
Nov 13, 2024

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Nov 11, 2024

Description

Integrate decoding api.

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3623

Manual testing steps

  1. Enable decoding api locally using env variables
  2. Submit a permit request
  3. Check that decoding api results are present in confirmation object

Screenshots/Recordings

NA

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.

@jpuri jpuri added the team-confirmations Push issues to confirmations team label Nov 11, 2024
@jpuri jpuri requested a review from a team as a code owner November 11, 2024 04:59
Copy link
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.

Copy link

socket-security bot commented Nov 11, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/signature-controller@21.1.0 network +1 420 kB metamaskbot

🚮 Removed packages: npm/@metamask/signature-controller@21.0.0

View full report↗︎

Copy link

socket-security bot commented Nov 11, 2024

👍 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.

Ignoring: npm/@metamask/signature-controller@21.1.0

View full report↗︎

Next steps

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

@jpuri
Copy link
Contributor Author

jpuri commented Nov 11, 2024

@SocketSecurity ignore npm/@metamask/signature-controller@21.1.0

@jpuri
Copy link
Contributor Author

jpuri commented Nov 11, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
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

@metamaskbot metamaskbot requested a review from a team as a code owner November 11, 2024 05:15
@metamaskbot
Copy link
Collaborator

Builds ready [4b04930]
Page Load Metrics (1994 ± 99 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30425601895409196
domContentLoaded173724981975209100
load17552504199420699
domInteractive319955199
backgroundConnect96924178
firstReactRender592061093215
getState584252311
initialActions01000
loadScripts12391924143617986
setupStore661232311
uiStartup192930592248285137
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.88 KiB (0.06%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

app/scripts/metamask-controller.js Show resolved Hide resolved
app/scripts/metamask-controller.js Show resolved Hide resolved
builds.yml Outdated Show resolved Hide resolved
Co-authored-by: Matthew Walsh <matthew.walsh@consensys.net>
@metamaskbot
Copy link
Collaborator

Builds ready [a6862f0]
Page Load Metrics (1881 ± 91 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint38421981709468225
domContentLoaded16632325184418689
load16742331188119091
domInteractive1796522311
backgroundConnect8138393015
firstReactRender622831074320
getState581182211
initialActions01000
loadScripts12121742136614770
setupStore66911147
uiStartup186530112119300144
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.88 KiB (0.06%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [c77528d]
Page Load Metrics (2100 ± 104 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint178427272097220106
domContentLoaded176026572067210101
load178527012100217104
domInteractive16192533818
backgroundConnect993332612
firstReactRender502961317134
getState592222412
initialActions01000
loadScripts12622039153117483
setupStore65417178
uiStartup201629512407260125
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.88 KiB (0.06%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [17f65af]
Page Load Metrics (1888 ± 109 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint36824481817398191
domContentLoaded166823851854211102
load168824531888227109
domInteractive278449189
backgroundConnect992322613
firstReactRender47183972813
getState44710105
initialActions01000
loadScripts12071882136917685
setupStore55516189
uiStartup186328342096263126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.88 KiB (0.05%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [2e1e012]
Page Load Metrics (2250 ± 99 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint36126212153460221
domContentLoaded18592599221620397
load18702625225020799
domInteractive28114602110
backgroundConnect892453014
firstReactRender613971528943
getState674232110
initialActions01000
loadScripts12992035163717785
setupStore660232110
uiStartup209231552593298143
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.88 KiB (0.05%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@jpuri jpuri added this pull request to the merge queue Nov 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 13, 2024
@jpuri jpuri added this pull request to the merge queue Nov 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 13, 2024
@jpuri jpuri added this pull request to the merge queue Nov 13, 2024
Merged via the queue into develop with commit e9ffd0a Nov 13, 2024
77 checks passed
@jpuri jpuri deleted the decoding_api_int branch November 13, 2024 23:27
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2024
@metamaskbot metamaskbot added the release-12.8.0 Issue or pull request that will be included in release 12.8.0 label Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.8.0 Issue or pull request that will be included in release 12.8.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants