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

fix: @metamask/swaps-controller v6 -> v9 #9584

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented May 9, 2024

Description

  • Upgrade @metamask/swaps-controller from v8 to v9
    • Remove redundant patches

Resolves a bunch of outstanding legacy, including web-provider-engine.

Also enables Base Network for Swaps.

Related issues

Blocked by

Manual testing steps

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

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.

Copy link
Contributor

github-actions bot commented May 9, 2024

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.

@legobeat legobeat added dependencies Pull requests that update a dependency file swaps MetaSwaps issues type-security team-security labels May 9, 2024
Copy link

socket-security bot commented May 9, 2024

Copy link

socket-security bot commented May 9, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Network access npm/web3-providers-http@4.1.0
Network access npm/web3-providers-ipc@4.0.7
Network access npm/web3-providers-ipc@4.0.7
New author npm/web3-eth-personal@4.0.8
Unstable ownership npm/web3-errors@1.2.0
New author npm/web3-errors@1.2.0
Unstable ownership npm/web3-net@4.1.0
New author npm/web3-net@4.1.0

View full report↗︎

Next steps

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is unstable ownership?

A new collaborator has begun publishing package versions. Package stability and security risk may be elevated.

Try to reduce the amount of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

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

  • @SocketSecurity ignore npm/web3-providers-http@4.1.0
  • @SocketSecurity ignore npm/web3-providers-ipc@4.0.7
  • @SocketSecurity ignore npm/web3-eth-personal@4.0.8
  • @SocketSecurity ignore npm/web3-errors@1.2.0
  • @SocketSecurity ignore npm/web3-net@4.1.0

@legobeat legobeat added Run Smoke E2E Triggers smoke e2e on Bitrise DO-NOT-MERGE Pull requests that should not be merged labels May 9, 2024
Copy link
Contributor

github-actions bot commented May 9, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 2adf95f
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ebcc7bec-2a7b-4f03-87fb-50de0a90d192

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@legobeat legobeat force-pushed the deps-swaps-controller-9 branch 2 times, most recently from cd5b613 to 7dd0864 Compare May 9, 2024 19:29
@legobeat legobeat removed the DO-NOT-MERGE Pull requests that should not be merged label Jun 1, 2024
@legobeat legobeat changed the title fix: @metamask/swaps-controller v9 feat+fix: @metamask/swaps-controller v9 Jun 1, 2024
@legobeat legobeat added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Jun 1, 2024
@legobeat legobeat changed the title feat+fix: @metamask/swaps-controller v9 fix: @metamask/swaps-controller v9 Jun 1, 2024
Copy link
Contributor

github-actions bot commented Jun 1, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: e7841ee
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/39fa6918-d553-4017-8502-c0f87ace6696

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@legobeat legobeat marked this pull request as ready for review June 1, 2024 01:18
@legobeat legobeat requested review from a team as code owners June 1, 2024 01:18
@legobeat legobeat marked this pull request as draft June 1, 2024 03:22
Copy link

sonarcloud bot commented Jun 4, 2024

@nikoferro nikoferro added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Jun 4, 2024
Copy link
Contributor

github-actions bot commented Jun 4, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 858ffe9
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/625931f0-676c-4108-af9c-048cedd183f4

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@legobeat legobeat changed the title fix: @metamask/swaps-controller v9 fix: @metamask/swaps-controller v6 -> v9 Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Run Smoke E2E Triggers smoke e2e on Bitrise swaps MetaSwaps issues team-security type-security
Projects
Status: Needs more work from the author
Development

Successfully merging this pull request may close these issues.

None yet

2 participants