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

refactor: use new @metamask/keyring-api layout (split packages) #4695

Merged
merged 11 commits into from
Dec 11, 2024

Conversation

ccharly
Copy link
Contributor

@ccharly ccharly commented Sep 12, 2024

Explanation

The keyring-api has been split out into multiple smaller packages, this introduce some breaking changes since some exports have been moved elsewhere.

This was done to reduce the number of required dependencies for the keyring-api. The InternalAccount type (widely used internally by some controllers) has been moved to a new package: @metamask/keyring-internal-api.

References

Relates to:

Basic testing done through the CI + preview builds:

Changelog

@metamask/keyring-controller

  • CHANGED: Remove use of peer dependency @metamask/providers
  • CHANGED: Bump @metamask/keyring-api to ^12.0.0
  • CHANGED: Use @metamask/keyring-internal-api@^1.0.0

Even if we are bumping the major of the keyring-api, this is not breaking since all
types from the split are compatible. The only difference now here is the Keyring
interface which has a new optional method listAccountTransactions, optional, thus
non-breaking (and this type is not used there anyway)

@metamask/accounts-controller

  • CHANGED: Bump @metamask/keyring-api to ^12.0.0
  • CHANGED: Bump @metamask/eth-snap-keyring to ^7.0.0
  • CHANGED: Use @metamask/keyring-internal-api@^1.0.0

eth-snap-keyring has been bumped to 7.0.0 but this was a mistake since no breaking changes has been introduced there either.
The version 6.0.0 also introduces ts-bridge builds, but this is already compatible with this repo, so not breaking here either.

@metamask/assets-controllers

  • CHANGED: Remove use of @metamask/keyring-api
  • CHANGED: Use @metamask/keyring-internal-api@^1.0.0

@metamask/chain-controller

  • CHANGED: Remove use of @metamask/keyring-api
  • CHANGED: Use @metamask/keyring-internal-api@^1.0.0
  • CHANGED: Use @metamask/keyring-utils@^1.0.0

@metamask/profile-sync-controller

  • CHANGED: Remove use of @metamask/keyring-api
  • CHANGED: Use @metamask/keyring-internal-api@^1.0.0

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@ccharly
Copy link
Contributor Author

ccharly commented Sep 12, 2024

@metamaskbot publish-preview

Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "18.2.0-preview-a2f9597",
  "@metamask-previews/address-book-controller": "6.0.0-preview-a2f9597",
  "@metamask-previews/announcement-controller": "7.0.0-preview-a2f9597",
  "@metamask-previews/approval-controller": "7.0.3-preview-a2f9597",
  "@metamask-previews/assets-controllers": "38.0.0-preview-a2f9597",
  "@metamask-previews/base-controller": "7.0.0-preview-a2f9597",
  "@metamask-previews/build-utils": "3.0.0-preview-a2f9597",
  "@metamask-previews/chain-controller": "0.1.1-preview-a2f9597",
  "@metamask-previews/composable-controller": "9.0.0-preview-a2f9597",
  "@metamask-previews/controller-utils": "11.2.0-preview-a2f9597",
  "@metamask-previews/ens-controller": "14.0.0-preview-a2f9597",
  "@metamask-previews/eth-json-rpc-provider": "4.1.3-preview-a2f9597",
  "@metamask-previews/gas-fee-controller": "20.0.0-preview-a2f9597",
  "@metamask-previews/json-rpc-engine": "9.0.2-preview-a2f9597",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.2-preview-a2f9597",
  "@metamask-previews/keyring-controller": "17.2.0-preview-a2f9597",
  "@metamask-previews/logging-controller": "6.0.0-preview-a2f9597",
  "@metamask-previews/message-manager": "10.1.0-preview-a2f9597",
  "@metamask-previews/name-controller": "8.0.0-preview-a2f9597",
  "@metamask-previews/network-controller": "21.0.0-preview-a2f9597",
  "@metamask-previews/notification-controller": "6.0.0-preview-a2f9597",
  "@metamask-previews/notification-services-controller": "0.5.0-preview-a2f9597",
  "@metamask-previews/permission-controller": "11.0.1-preview-a2f9597",
  "@metamask-previews/permission-log-controller": "3.0.0-preview-a2f9597",
  "@metamask-previews/phishing-controller": "12.0.2-preview-a2f9597",
  "@metamask-previews/polling-controller": "10.0.0-preview-a2f9597",
  "@metamask-previews/preferences-controller": "13.0.2-preview-a2f9597",
  "@metamask-previews/profile-sync-controller": "0.5.0-preview-a2f9597",
  "@metamask-previews/queued-request-controller": "5.0.0-preview-a2f9597",
  "@metamask-previews/rate-limit-controller": "6.0.0-preview-a2f9597",
  "@metamask-previews/selected-network-controller": "18.0.0-preview-a2f9597",
  "@metamask-previews/signature-controller": "19.0.0-preview-a2f9597",
  "@metamask-previews/transaction-controller": "36.1.0-preview-a2f9597",
  "@metamask-previews/user-operation-controller": "15.0.0-preview-a2f9597"
}

@ccharly ccharly force-pushed the refactor/use-new-accounts-packages branch 2 times, most recently from 1fa68fc to 611dd20 Compare September 13, 2024 08:04
@ccharly ccharly self-assigned this Sep 13, 2024
@ccharly ccharly force-pushed the refactor/use-new-accounts-packages branch 4 times, most recently from 44e5b9d to 105f978 Compare September 13, 2024 09:59
@ccharly
Copy link
Contributor Author

ccharly commented Sep 13, 2024

@metamaskbot publish-preview

Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "18.2.0-preview-105f9783",
  "@metamask-previews/address-book-controller": "6.0.0-preview-105f9783",
  "@metamask-previews/announcement-controller": "7.0.0-preview-105f9783",
  "@metamask-previews/approval-controller": "7.0.3-preview-105f9783",
  "@metamask-previews/assets-controllers": "38.0.0-preview-105f9783",
  "@metamask-previews/base-controller": "7.0.0-preview-105f9783",
  "@metamask-previews/build-utils": "3.0.0-preview-105f9783",
  "@metamask-previews/chain-controller": "0.1.1-preview-105f9783",
  "@metamask-previews/composable-controller": "9.0.0-preview-105f9783",
  "@metamask-previews/controller-utils": "11.2.0-preview-105f9783",
  "@metamask-previews/ens-controller": "14.0.0-preview-105f9783",
  "@metamask-previews/eth-json-rpc-provider": "4.1.3-preview-105f9783",
  "@metamask-previews/gas-fee-controller": "20.0.0-preview-105f9783",
  "@metamask-previews/json-rpc-engine": "9.0.2-preview-105f9783",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.2-preview-105f9783",
  "@metamask-previews/keyring-controller": "17.2.0-preview-105f9783",
  "@metamask-previews/logging-controller": "6.0.0-preview-105f9783",
  "@metamask-previews/message-manager": "10.1.0-preview-105f9783",
  "@metamask-previews/name-controller": "8.0.0-preview-105f9783",
  "@metamask-previews/network-controller": "21.0.0-preview-105f9783",
  "@metamask-previews/notification-controller": "6.0.0-preview-105f9783",
  "@metamask-previews/notification-services-controller": "0.5.0-preview-105f9783",
  "@metamask-previews/permission-controller": "11.0.1-preview-105f9783",
  "@metamask-previews/permission-log-controller": "3.0.0-preview-105f9783",
  "@metamask-previews/phishing-controller": "12.0.2-preview-105f9783",
  "@metamask-previews/polling-controller": "10.0.0-preview-105f9783",
  "@metamask-previews/preferences-controller": "13.0.2-preview-105f9783",
  "@metamask-previews/profile-sync-controller": "0.5.0-preview-105f9783",
  "@metamask-previews/queued-request-controller": "5.0.0-preview-105f9783",
  "@metamask-previews/rate-limit-controller": "6.0.0-preview-105f9783",
  "@metamask-previews/selected-network-controller": "18.0.0-preview-105f9783",
  "@metamask-previews/signature-controller": "19.0.0-preview-105f9783",
  "@metamask-previews/transaction-controller": "36.1.0-preview-105f9783",
  "@metamask-previews/user-operation-controller": "15.0.0-preview-105f9783"
}

@ccharly ccharly force-pushed the refactor/use-new-accounts-packages branch 2 times, most recently from 44af2e0 to 8839575 Compare September 13, 2024 11:42
@ccharly
Copy link
Contributor Author

ccharly commented Sep 13, 2024

@metamaskbot publish-preview

Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "18.2.0-preview-88395757",
  "@metamask-previews/address-book-controller": "6.0.0-preview-88395757",
  "@metamask-previews/announcement-controller": "7.0.0-preview-88395757",
  "@metamask-previews/approval-controller": "7.0.3-preview-88395757",
  "@metamask-previews/assets-controllers": "38.0.0-preview-88395757",
  "@metamask-previews/base-controller": "7.0.0-preview-88395757",
  "@metamask-previews/build-utils": "3.0.0-preview-88395757",
  "@metamask-previews/chain-controller": "0.1.1-preview-88395757",
  "@metamask-previews/composable-controller": "9.0.0-preview-88395757",
  "@metamask-previews/controller-utils": "11.2.0-preview-88395757",
  "@metamask-previews/ens-controller": "14.0.0-preview-88395757",
  "@metamask-previews/eth-json-rpc-provider": "4.1.3-preview-88395757",
  "@metamask-previews/gas-fee-controller": "20.0.0-preview-88395757",
  "@metamask-previews/json-rpc-engine": "9.0.2-preview-88395757",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.2-preview-88395757",
  "@metamask-previews/keyring-controller": "17.2.0-preview-88395757",
  "@metamask-previews/logging-controller": "6.0.0-preview-88395757",
  "@metamask-previews/message-manager": "10.1.0-preview-88395757",
  "@metamask-previews/name-controller": "8.0.0-preview-88395757",
  "@metamask-previews/network-controller": "21.0.0-preview-88395757",
  "@metamask-previews/notification-controller": "6.0.0-preview-88395757",
  "@metamask-previews/notification-services-controller": "0.5.0-preview-88395757",
  "@metamask-previews/permission-controller": "11.0.1-preview-88395757",
  "@metamask-previews/permission-log-controller": "3.0.0-preview-88395757",
  "@metamask-previews/phishing-controller": "12.0.2-preview-88395757",
  "@metamask-previews/polling-controller": "10.0.0-preview-88395757",
  "@metamask-previews/preferences-controller": "13.0.2-preview-88395757",
  "@metamask-previews/profile-sync-controller": "0.5.0-preview-88395757",
  "@metamask-previews/queued-request-controller": "5.0.0-preview-88395757",
  "@metamask-previews/rate-limit-controller": "6.0.0-preview-88395757",
  "@metamask-previews/selected-network-controller": "18.0.0-preview-88395757",
  "@metamask-previews/signature-controller": "19.0.0-preview-88395757",
  "@metamask-previews/transaction-controller": "36.1.0-preview-88395757",
  "@metamask-previews/user-operation-controller": "15.0.0-preview-88395757"
}

@ccharly ccharly force-pushed the refactor/use-new-accounts-packages branch from 8839575 to e0cafc3 Compare November 29, 2024 09:31
@ccharly ccharly force-pushed the refactor/use-new-accounts-packages branch 2 times, most recently from bea7ef9 to a744f8f Compare November 29, 2024 11:26
@ccharly
Copy link
Contributor Author

ccharly commented Dec 2, 2024

@metamaskbot publish-preview

Copy link
Contributor

github-actions bot commented Dec 2, 2024

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "20.0.0-preview-8bf18729",
  "@metamask-previews/address-book-controller": "6.0.1-preview-8bf18729",
  "@metamask-previews/announcement-controller": "7.0.1-preview-8bf18729",
  "@metamask-previews/approval-controller": "7.1.1-preview-8bf18729",
  "@metamask-previews/assets-controllers": "45.1.0-preview-8bf18729",
  "@metamask-previews/base-controller": "7.0.2-preview-8bf18729",
  "@metamask-previews/build-utils": "3.0.1-preview-8bf18729",
  "@metamask-previews/chain-controller": "0.2.0-preview-8bf18729",
  "@metamask-previews/composable-controller": "9.0.1-preview-8bf18729",
  "@metamask-previews/controller-utils": "11.4.3-preview-8bf18729",
  "@metamask-previews/ens-controller": "15.0.0-preview-8bf18729",
  "@metamask-previews/eth-json-rpc-provider": "4.1.6-preview-8bf18729",
  "@metamask-previews/gas-fee-controller": "22.0.1-preview-8bf18729",
  "@metamask-previews/json-rpc-engine": "10.0.1-preview-8bf18729",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.5-preview-8bf18729",
  "@metamask-previews/keyring-controller": "19.0.0-preview-8bf18729",
  "@metamask-previews/logging-controller": "6.0.2-preview-8bf18729",
  "@metamask-previews/message-manager": "11.0.1-preview-8bf18729",
  "@metamask-previews/multichain": "1.1.0-preview-8bf18729",
  "@metamask-previews/name-controller": "8.0.1-preview-8bf18729",
  "@metamask-previews/network-controller": "22.0.2-preview-8bf18729",
  "@metamask-previews/notification-services-controller": "0.14.0-preview-8bf18729",
  "@metamask-previews/permission-controller": "11.0.3-preview-8bf18729",
  "@metamask-previews/permission-log-controller": "3.0.1-preview-8bf18729",
  "@metamask-previews/phishing-controller": "12.3.0-preview-8bf18729",
  "@metamask-previews/polling-controller": "12.0.1-preview-8bf18729",
  "@metamask-previews/preferences-controller": "15.0.0-preview-8bf18729",
  "@metamask-previews/profile-sync-controller": "2.0.0-preview-8bf18729",
  "@metamask-previews/queued-request-controller": "8.0.0-preview-8bf18729",
  "@metamask-previews/rate-limit-controller": "6.0.1-preview-8bf18729",
  "@metamask-previews/remote-feature-flag-controller": "1.0.0-preview-8bf18729",
  "@metamask-previews/selected-network-controller": "20.0.0-preview-8bf18729",
  "@metamask-previews/signature-controller": "23.0.0-preview-8bf18729",
  "@metamask-previews/transaction-controller": "41.0.0-preview-8bf18729",
  "@metamask-previews/user-operation-controller": "20.0.0-preview-8bf18729"
}

@ccharly
Copy link
Contributor Author

ccharly commented Dec 3, 2024

@metamaskbot publish-preview

Copy link
Contributor

github-actions bot commented Dec 3, 2024

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "20.0.1-preview-977dd3f9",
  "@metamask-previews/address-book-controller": "6.0.2-preview-977dd3f9",
  "@metamask-previews/announcement-controller": "7.0.2-preview-977dd3f9",
  "@metamask-previews/approval-controller": "7.1.1-preview-977dd3f9",
  "@metamask-previews/assets-controllers": "45.1.1-preview-977dd3f9",
  "@metamask-previews/base-controller": "7.0.2-preview-977dd3f9",
  "@metamask-previews/build-utils": "3.0.2-preview-977dd3f9",
  "@metamask-previews/chain-controller": "0.2.1-preview-977dd3f9",
  "@metamask-previews/composable-controller": "9.0.1-preview-977dd3f9",
  "@metamask-previews/controller-utils": "11.4.4-preview-977dd3f9",
  "@metamask-previews/ens-controller": "15.0.1-preview-977dd3f9",
  "@metamask-previews/eth-json-rpc-provider": "4.1.6-preview-977dd3f9",
  "@metamask-previews/gas-fee-controller": "22.0.2-preview-977dd3f9",
  "@metamask-previews/json-rpc-engine": "10.0.1-preview-977dd3f9",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.5-preview-977dd3f9",
  "@metamask-previews/keyring-controller": "19.0.1-preview-977dd3f9",
  "@metamask-previews/logging-controller": "6.0.3-preview-977dd3f9",
  "@metamask-previews/message-manager": "11.0.2-preview-977dd3f9",
  "@metamask-previews/multichain": "1.1.1-preview-977dd3f9",
  "@metamask-previews/name-controller": "8.0.2-preview-977dd3f9",
  "@metamask-previews/network-controller": "22.1.0-preview-977dd3f9",
  "@metamask-previews/notification-services-controller": "0.15.0-preview-977dd3f9",
  "@metamask-previews/permission-controller": "11.0.4-preview-977dd3f9",
  "@metamask-previews/permission-log-controller": "3.0.2-preview-977dd3f9",
  "@metamask-previews/phishing-controller": "12.3.1-preview-977dd3f9",
  "@metamask-previews/polling-controller": "12.0.2-preview-977dd3f9",
  "@metamask-previews/preferences-controller": "15.0.1-preview-977dd3f9",
  "@metamask-previews/profile-sync-controller": "3.0.0-preview-977dd3f9",
  "@metamask-previews/queued-request-controller": "8.0.1-preview-977dd3f9",
  "@metamask-previews/rate-limit-controller": "6.0.2-preview-977dd3f9",
  "@metamask-previews/remote-feature-flag-controller": "1.1.0-preview-977dd3f9",
  "@metamask-previews/selected-network-controller": "20.0.1-preview-977dd3f9",
  "@metamask-previews/signature-controller": "23.0.1-preview-977dd3f9",
  "@metamask-previews/transaction-controller": "41.1.0-preview-977dd3f9",
  "@metamask-previews/user-operation-controller": "20.0.1-preview-977dd3f9"
}

@ccharly
Copy link
Contributor Author

ccharly commented Dec 5, 2024

@metamaskbot publish-preview

Copy link
Contributor

github-actions bot commented Dec 5, 2024

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "20.0.1-preview-23fc04cd",
  "@metamask-previews/address-book-controller": "6.0.2-preview-23fc04cd",
  "@metamask-previews/announcement-controller": "7.0.2-preview-23fc04cd",
  "@metamask-previews/approval-controller": "7.1.1-preview-23fc04cd",
  "@metamask-previews/assets-controllers": "45.1.1-preview-23fc04cd",
  "@metamask-previews/base-controller": "7.0.2-preview-23fc04cd",
  "@metamask-previews/build-utils": "3.0.2-preview-23fc04cd",
  "@metamask-previews/chain-controller": "0.2.1-preview-23fc04cd",
  "@metamask-previews/composable-controller": "9.0.1-preview-23fc04cd",
  "@metamask-previews/controller-utils": "11.4.4-preview-23fc04cd",
  "@metamask-previews/ens-controller": "15.0.1-preview-23fc04cd",
  "@metamask-previews/eth-json-rpc-provider": "4.1.6-preview-23fc04cd",
  "@metamask-previews/gas-fee-controller": "22.0.2-preview-23fc04cd",
  "@metamask-previews/json-rpc-engine": "10.0.1-preview-23fc04cd",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.5-preview-23fc04cd",
  "@metamask-previews/keyring-controller": "19.0.1-preview-23fc04cd",
  "@metamask-previews/logging-controller": "6.0.3-preview-23fc04cd",
  "@metamask-previews/message-manager": "11.0.2-preview-23fc04cd",
  "@metamask-previews/multichain": "1.1.1-preview-23fc04cd",
  "@metamask-previews/name-controller": "8.0.2-preview-23fc04cd",
  "@metamask-previews/network-controller": "22.1.0-preview-23fc04cd",
  "@metamask-previews/notification-services-controller": "0.15.0-preview-23fc04cd",
  "@metamask-previews/permission-controller": "11.0.4-preview-23fc04cd",
  "@metamask-previews/permission-log-controller": "3.0.2-preview-23fc04cd",
  "@metamask-previews/phishing-controller": "12.3.1-preview-23fc04cd",
  "@metamask-previews/polling-controller": "12.0.2-preview-23fc04cd",
  "@metamask-previews/preferences-controller": "15.0.1-preview-23fc04cd",
  "@metamask-previews/profile-sync-controller": "3.0.0-preview-23fc04cd",
  "@metamask-previews/queued-request-controller": "8.0.1-preview-23fc04cd",
  "@metamask-previews/rate-limit-controller": "6.0.2-preview-23fc04cd",
  "@metamask-previews/remote-feature-flag-controller": "1.1.0-preview-23fc04cd",
  "@metamask-previews/selected-network-controller": "20.0.1-preview-23fc04cd",
  "@metamask-previews/signature-controller": "23.0.1-preview-23fc04cd",
  "@metamask-previews/transaction-controller": "41.1.0-preview-23fc04cd",
  "@metamask-previews/user-operation-controller": "20.0.1-preview-23fc04cd"
}

@ccharly
Copy link
Contributor Author

ccharly commented Dec 5, 2024

@metamaskbot publish-preview

Copy link
Contributor

github-actions bot commented Dec 5, 2024

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "20.0.1-preview-9c296dcb",
  "@metamask-previews/address-book-controller": "6.0.2-preview-9c296dcb",
  "@metamask-previews/announcement-controller": "7.0.2-preview-9c296dcb",
  "@metamask-previews/approval-controller": "7.1.1-preview-9c296dcb",
  "@metamask-previews/assets-controllers": "45.1.1-preview-9c296dcb",
  "@metamask-previews/base-controller": "7.0.2-preview-9c296dcb",
  "@metamask-previews/build-utils": "3.0.2-preview-9c296dcb",
  "@metamask-previews/chain-controller": "0.2.1-preview-9c296dcb",
  "@metamask-previews/composable-controller": "9.0.1-preview-9c296dcb",
  "@metamask-previews/controller-utils": "11.4.4-preview-9c296dcb",
  "@metamask-previews/ens-controller": "15.0.1-preview-9c296dcb",
  "@metamask-previews/eth-json-rpc-provider": "4.1.6-preview-9c296dcb",
  "@metamask-previews/gas-fee-controller": "22.0.2-preview-9c296dcb",
  "@metamask-previews/json-rpc-engine": "10.0.1-preview-9c296dcb",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.5-preview-9c296dcb",
  "@metamask-previews/keyring-controller": "19.0.1-preview-9c296dcb",
  "@metamask-previews/logging-controller": "6.0.3-preview-9c296dcb",
  "@metamask-previews/message-manager": "11.0.2-preview-9c296dcb",
  "@metamask-previews/multichain": "1.1.1-preview-9c296dcb",
  "@metamask-previews/name-controller": "8.0.2-preview-9c296dcb",
  "@metamask-previews/network-controller": "22.1.0-preview-9c296dcb",
  "@metamask-previews/notification-services-controller": "0.15.0-preview-9c296dcb",
  "@metamask-previews/permission-controller": "11.0.4-preview-9c296dcb",
  "@metamask-previews/permission-log-controller": "3.0.2-preview-9c296dcb",
  "@metamask-previews/phishing-controller": "12.3.1-preview-9c296dcb",
  "@metamask-previews/polling-controller": "12.0.2-preview-9c296dcb",
  "@metamask-previews/preferences-controller": "15.0.1-preview-9c296dcb",
  "@metamask-previews/profile-sync-controller": "3.0.0-preview-9c296dcb",
  "@metamask-previews/queued-request-controller": "8.0.1-preview-9c296dcb",
  "@metamask-previews/rate-limit-controller": "6.0.2-preview-9c296dcb",
  "@metamask-previews/remote-feature-flag-controller": "1.1.0-preview-9c296dcb",
  "@metamask-previews/selected-network-controller": "20.0.1-preview-9c296dcb",
  "@metamask-previews/signature-controller": "23.0.1-preview-9c296dcb",
  "@metamask-previews/transaction-controller": "41.1.0-preview-9c296dcb",
  "@metamask-previews/user-operation-controller": "20.0.1-preview-9c296dcb"
}

Copy link

socket-security bot commented Dec 10, 2024

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

Package New capabilities Transitives Size Publisher
npm/@metamask/eth-snap-keyring@7.0.0 None +21 4.63 MB metamaskbot
npm/@metamask/keyring-api@12.0.0 None +1 529 kB metamaskbot
npm/@metamask/keyring-internal-api@1.0.0 None +3 895 kB metamaskbot

View full report↗︎

@ccharly ccharly changed the title refactor: use new accounts packages refactor: use new @metamask/keyring-api layout (split packages) Dec 11, 2024
@ccharly
Copy link
Contributor Author

ccharly commented Dec 11, 2024

@metamaskbot publish-preview

Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "20.0.1-preview-470d2e31",
  "@metamask-previews/address-book-controller": "6.0.2-preview-470d2e31",
  "@metamask-previews/announcement-controller": "7.0.2-preview-470d2e31",
  "@metamask-previews/approval-controller": "7.1.1-preview-470d2e31",
  "@metamask-previews/assets-controllers": "45.1.1-preview-470d2e31",
  "@metamask-previews/base-controller": "7.0.2-preview-470d2e31",
  "@metamask-previews/build-utils": "3.0.2-preview-470d2e31",
  "@metamask-previews/chain-controller": "0.2.1-preview-470d2e31",
  "@metamask-previews/composable-controller": "10.0.0-preview-470d2e31",
  "@metamask-previews/controller-utils": "11.4.4-preview-470d2e31",
  "@metamask-previews/ens-controller": "15.0.1-preview-470d2e31",
  "@metamask-previews/eth-json-rpc-provider": "4.1.6-preview-470d2e31",
  "@metamask-previews/gas-fee-controller": "22.0.2-preview-470d2e31",
  "@metamask-previews/json-rpc-engine": "10.0.1-preview-470d2e31",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.5-preview-470d2e31",
  "@metamask-previews/keyring-controller": "19.0.1-preview-470d2e31",
  "@metamask-previews/logging-controller": "6.0.3-preview-470d2e31",
  "@metamask-previews/message-manager": "11.0.3-preview-470d2e31",
  "@metamask-previews/multichain": "1.1.2-preview-470d2e31",
  "@metamask-previews/name-controller": "8.0.2-preview-470d2e31",
  "@metamask-previews/network-controller": "22.1.1-preview-470d2e31",
  "@metamask-previews/notification-services-controller": "0.15.0-preview-470d2e31",
  "@metamask-previews/permission-controller": "11.0.4-preview-470d2e31",
  "@metamask-previews/permission-log-controller": "3.0.2-preview-470d2e31",
  "@metamask-previews/phishing-controller": "12.3.1-preview-470d2e31",
  "@metamask-previews/polling-controller": "12.0.2-preview-470d2e31",
  "@metamask-previews/preferences-controller": "15.0.1-preview-470d2e31",
  "@metamask-previews/profile-sync-controller": "3.0.0-preview-470d2e31",
  "@metamask-previews/queued-request-controller": "8.0.2-preview-470d2e31",
  "@metamask-previews/rate-limit-controller": "6.0.2-preview-470d2e31",
  "@metamask-previews/remote-feature-flag-controller": "1.1.0-preview-470d2e31",
  "@metamask-previews/selected-network-controller": "20.0.2-preview-470d2e31",
  "@metamask-previews/signature-controller": "23.1.0-preview-470d2e31",
  "@metamask-previews/transaction-controller": "42.0.0-preview-470d2e31",
  "@metamask-previews/user-operation-controller": "21.0.0-preview-470d2e31"
}

@ccharly ccharly marked this pull request as ready for review December 11, 2024 10:47
@ccharly ccharly requested review from a team as code owners December 11, 2024 10:47
Copy link

@mirceanis mirceanis left a comment

Choose a reason for hiding this comment

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

looks ok to me

@ccharly ccharly enabled auto-merge (squash) December 11, 2024 14:03
@ccharly ccharly merged commit 058534e into main Dec 11, 2024
120 checks passed
@ccharly ccharly deleted the refactor/use-new-accounts-packages branch December 11, 2024 14:11
ccharly added a commit that referenced this pull request Dec 11, 2024
## Explanation

This peer dependency has been wrongly removed with my previous PR. I'm
just re-adding it.

## References

- #4695

## Changelog

N/A (will be unchanged for the next release)

## Checklist

- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [ ] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants