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

chore: @metamask/swaps-controller v9 -> v10 #10743

Merged
merged 13 commits into from
Nov 20, 2024
Merged

Conversation

nikoferro
Copy link
Contributor

@nikoferro nikoferro commented Aug 22, 2024

Description

This PR includes the necessary changes for the client to work with @metamask/swaps-controller v10.0.0 (https://www.npmjs.com/package/@metamask/swaps-controller/v/10.0.0)

Related PRs
Upgrade controller to BaseController V2 (#277)
Update name of Polygon network token from MATIC to POL (#312)

These changes are needed since swaps-controller v10, will be upgrading to extend from base controller v2, changing the way how controllers interact with each other

Related issues

N/A

Manual testing steps

N/A

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.

Copy link

socket-security bot commented Aug 22, 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.

View full report↗︎

@nikoferro nikoferro changed the title chore: updates needed to support swaps-controller v10 (WIP) chore: @metamask/swaps-controller v9 -> v10 Aug 22, 2024
@infiniteflower
Copy link
Contributor

Need to delete the patch introduced in #10960

SwapsController v10 will have this: https://github.com/MetaMask/swaps-controller/pull/312

@nikoferro nikoferro added the needs-qa Any New Features that needs a full manual QA prior to being added to a release. label Sep 27, 2024
@nikoferro
Copy link
Contributor Author

Need to delete the patch introduced in #10960

SwapsController v10 will have this: MetaMask/swaps-controller#312

Just updated the PR and removed this.

@nikoferro nikoferro marked this pull request as ready for review September 27, 2024 07:51
@nikoferro nikoferro requested review from a team as code owners September 27, 2024 07:51
martahj
martahj previously approved these changes Sep 30, 2024
Copy link

@martahj martahj left a comment

Choose a reason for hiding this comment

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

Have not QA'd it but code lgtm!

@nikoferro nikoferro requested a review from a team as a code owner October 1, 2024 09:54
@davibroc davibroc added QA Passed A successful QA run through has been done and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Oct 2, 2024
@nikoferro nikoferro requested a review from martahj October 2, 2024 06:05
martahj
martahj previously approved these changes Oct 2, 2024
@legobeat legobeat requested a review from a team as a code owner October 4, 2024 07:00
Copy link
Contributor

github-actions bot commented Oct 4, 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.

Copy link

sonarqubecloud bot commented Oct 4, 2024

@nikoferro nikoferro requested a review from legobeat October 6, 2024 16:58
@Daniel-Cross Daniel-Cross added the Run Smoke E2E Triggers smoke e2e on Bitrise label Oct 16, 2024
Copy link
Contributor

@Daniel-Cross Daniel-Cross left a comment

Choose a reason for hiding this comment

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

This looks good but there's little to no checks or tests ran against these new changes.

At the very least, please run E2E smoke tests on the PR. I already added the label, you may need to remove and add again to get it to run.

I would also like to see some test coverage on the changes. At the moment I just have to trust this doesn't break anything.

Also, a few conflicts that need addressing.

@mikesposito mikesposito added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 24, 2024
@tommasini tommasini added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 4, 2024
Copy link
Contributor

github-actions bot commented Nov 4, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: ba723f3
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b9c3188b-59f2-449d-a422-f97508f624e2

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

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Copy link

socket-security bot commented Nov 19, 2024

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

Package New capabilities Transitives Size Publisher
npm/@metamask/swaps-controller@10.0.0 Transitive: environment, network +6 1.78 MB metamaskbot

🚮 Removed packages: npm/@metamask/swaps-controller@9.0.12

View full report↗︎

@infiniteflower infiniteflower added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 20, 2024
Copy link
Contributor

github-actions bot commented Nov 20, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 674d260
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/cd93bb7d-47b7-4c18-b6c1-5a5dbbcb53e0

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

@infiniteflower
Copy link
Contributor

Tested

@infiniteflower infiniteflower added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 20, 2024
Copy link
Contributor

@Daniel-Cross Daniel-Cross left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@jclancy93 jclancy93 left a comment

Choose a reason for hiding this comment

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

Tested locally and everything LGTM!

@infiniteflower infiniteflower added this pull request to the merge queue Nov 20, 2024
Merged via the queue into main with commit 9454705 Nov 20, 2024
49 checks passed
@infiniteflower infiniteflower deleted the swaps/basecontrollerv2 branch November 20, 2024 19:32
@github-actions github-actions bot locked and limited conversation to collaborators Nov 20, 2024
@metamaskbot metamaskbot added the release-7.37.0 Issue or pull request that will be included in release 7.37.0 label Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed A successful QA run through has been done release-7.37.0 Issue or pull request that will be included in release 7.37.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-swaps
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.