MetaMask / core

This monorepo is a collection of packages used across multiple MetaMask clients
MIT License
293 stars 188 forks source link

CAIP Multichain API with permission refactor changes #4961

Closed jiexi closed 5 days ago

jiexi commented 5 days ago

Explanation

This diff is a bit messy since it also brings in the core PR that refactors the CAIP-25 permission which the caip-multichain-api branch doesn't have yet.

The main thing this PR does is adds getSessionScopes() which massages the new CAIP-25 permission into a NormalizedScopesObject

References

Changelog

@metamask/package-a

@metamask/package-b

Checklist

jiexi commented 5 days ago

@metamaskbot publish-preview

github-actions[bot] commented 5 days ago

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-e6722625", "@metamask-previews/address-book-controller": "6.0.1-preview-e6722625", "@metamask-previews/announcement-controller": "7.0.1-preview-e6722625", "@metamask-previews/approval-controller": "7.1.1-preview-e6722625", "@metamask-previews/assets-controllers": "45.0.0-preview-e6722625", "@metamask-previews/base-controller": "7.0.2-preview-e6722625", "@metamask-previews/build-utils": "3.0.1-preview-e6722625", "@metamask-previews/chain-controller": "0.2.0-preview-e6722625", "@metamask-previews/composable-controller": "9.0.1-preview-e6722625", "@metamask-previews/controller-utils": "11.4.3-preview-e6722625", "@metamask-previews/ens-controller": "15.0.0-preview-e6722625", "@metamask-previews/eth-json-rpc-provider": "4.1.6-preview-e6722625", "@metamask-previews/gas-fee-controller": "22.0.1-preview-e6722625", "@metamask-previews/json-rpc-engine": "10.0.1-preview-e6722625", "@metamask-previews/json-rpc-middleware-stream": "8.0.5-preview-e6722625", "@metamask-previews/keyring-controller": "19.0.0-preview-e6722625", "@metamask-previews/logging-controller": "6.0.2-preview-e6722625", "@metamask-previews/message-manager": "11.0.1-preview-e6722625", "@metamask-previews/multichain": "1.0.0-preview-e6722625", "@metamask-previews/name-controller": "8.0.1-preview-e6722625", "@metamask-previews/network-controller": "22.0.2-preview-e6722625", "@metamask-previews/notification-controller": "7.0.0-preview-e6722625", "@metamask-previews/notification-services-controller": "0.14.0-preview-e6722625", "@metamask-previews/permission-controller": "11.0.3-preview-e6722625", "@metamask-previews/permission-log-controller": "3.0.1-preview-e6722625", "@metamask-previews/phishing-controller": "12.3.0-preview-e6722625", "@metamask-previews/polling-controller": "12.0.1-preview-e6722625", "@metamask-previews/preferences-controller": "15.0.0-preview-e6722625", "@metamask-previews/profile-sync-controller": "2.0.0-preview-e6722625", "@metamask-previews/queued-request-controller": "7.0.1-preview-e6722625", "@metamask-previews/rate-limit-controller": "6.0.1-preview-e6722625", "@metamask-previews/selected-network-controller": "19.0.0-preview-e6722625", "@metamask-previews/signature-controller": "23.0.0-preview-e6722625", "@metamask-previews/transaction-controller": "40.0.0-preview-e6722625", "@metamask-previews/user-operation-controller": "19.0.0-preview-e6722625" } ```