MetaMask / core

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

Update token rates controller for multi evm fetching #4866

Closed bergeron closed 3 weeks ago

bergeron commented 3 weeks ago

Explanation

This PR Updates the TokenRatesController to be used in clients across multiple chains.

References

Changelog

@metamask/assets-controllers

Checklist

bergeron commented 3 weeks ago

@metamaskbot publish-preview

github-actions[bot] commented 3 weeks 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": "18.2.2-preview-1e2accee", "@metamask-previews/address-book-controller": "6.0.1-preview-1e2accee", "@metamask-previews/announcement-controller": "7.0.1-preview-1e2accee", "@metamask-previews/approval-controller": "7.1.0-preview-1e2accee", "@metamask-previews/assets-controllers": "39.0.0-preview-1e2accee", "@metamask-previews/base-controller": "7.0.1-preview-1e2accee", "@metamask-previews/build-utils": "3.0.1-preview-1e2accee", "@metamask-previews/chain-controller": "0.1.3-preview-1e2accee", "@metamask-previews/composable-controller": "9.0.1-preview-1e2accee", "@metamask-previews/controller-utils": "11.4.0-preview-1e2accee", "@metamask-previews/ens-controller": "14.0.1-preview-1e2accee", "@metamask-previews/eth-json-rpc-provider": "4.1.5-preview-1e2accee", "@metamask-previews/gas-fee-controller": "21.0.0-preview-1e2accee", "@metamask-previews/json-rpc-engine": "10.0.0-preview-1e2accee", "@metamask-previews/json-rpc-middleware-stream": "8.0.4-preview-1e2accee", "@metamask-previews/keyring-controller": "17.3.0-preview-1e2accee", "@metamask-previews/logging-controller": "6.0.1-preview-1e2accee", "@metamask-previews/message-manager": "11.0.0-preview-1e2accee", "@metamask-previews/multichain": "0.0.0-preview-1e2accee", "@metamask-previews/name-controller": "8.0.1-preview-1e2accee", "@metamask-previews/network-controller": "22.0.0-preview-1e2accee", "@metamask-previews/notification-controller": "7.0.0-preview-1e2accee", "@metamask-previews/notification-services-controller": "0.12.0-preview-1e2accee", "@metamask-previews/permission-controller": "11.0.2-preview-1e2accee", "@metamask-previews/permission-log-controller": "3.0.1-preview-1e2accee", "@metamask-previews/phishing-controller": "12.2.0-preview-1e2accee", "@metamask-previews/polling-controller": "11.0.0-preview-1e2accee", "@metamask-previews/preferences-controller": "13.1.0-preview-1e2accee", "@metamask-previews/profile-sync-controller": "0.9.7-preview-1e2accee", "@metamask-previews/queued-request-controller": "5.1.0-preview-1e2accee", "@metamask-previews/rate-limit-controller": "6.0.1-preview-1e2accee", "@metamask-previews/selected-network-controller": "18.0.2-preview-1e2accee", "@metamask-previews/signature-controller": "20.1.0-preview-1e2accee", "@metamask-previews/transaction-controller": "37.3.0-preview-1e2accee", "@metamask-previews/user-operation-controller": "16.0.0-preview-1e2accee" } ```
bergeron commented 3 weeks ago

@metamaskbot publish-preview

github-actions[bot] commented 3 weeks 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": "18.2.2-preview-c6d939c9", "@metamask-previews/address-book-controller": "6.0.1-preview-c6d939c9", "@metamask-previews/announcement-controller": "7.0.1-preview-c6d939c9", "@metamask-previews/approval-controller": "7.1.1-preview-c6d939c9", "@metamask-previews/assets-controllers": "40.0.0-preview-c6d939c9", "@metamask-previews/base-controller": "7.0.2-preview-c6d939c9", "@metamask-previews/build-utils": "3.0.1-preview-c6d939c9", "@metamask-previews/chain-controller": "0.1.3-preview-c6d939c9", "@metamask-previews/composable-controller": "9.0.1-preview-c6d939c9", "@metamask-previews/controller-utils": "11.4.1-preview-c6d939c9", "@metamask-previews/ens-controller": "15.0.0-preview-c6d939c9", "@metamask-previews/eth-json-rpc-provider": "4.1.6-preview-c6d939c9", "@metamask-previews/gas-fee-controller": "22.0.0-preview-c6d939c9", "@metamask-previews/json-rpc-engine": "10.0.1-preview-c6d939c9", "@metamask-previews/json-rpc-middleware-stream": "8.0.5-preview-c6d939c9", "@metamask-previews/keyring-controller": "17.3.0-preview-c6d939c9", "@metamask-previews/logging-controller": "6.0.1-preview-c6d939c9", "@metamask-previews/message-manager": "11.0.0-preview-c6d939c9", "@metamask-previews/multichain": "0.0.0-preview-c6d939c9", "@metamask-previews/name-controller": "8.0.1-preview-c6d939c9", "@metamask-previews/network-controller": "22.0.0-preview-c6d939c9", "@metamask-previews/notification-controller": "7.0.0-preview-c6d939c9", "@metamask-previews/notification-services-controller": "0.12.0-preview-c6d939c9", "@metamask-previews/permission-controller": "11.0.3-preview-c6d939c9", "@metamask-previews/permission-log-controller": "3.0.1-preview-c6d939c9", "@metamask-previews/phishing-controller": "12.3.0-preview-c6d939c9", "@metamask-previews/polling-controller": "12.0.0-preview-c6d939c9", "@metamask-previews/preferences-controller": "13.1.0-preview-c6d939c9", "@metamask-previews/profile-sync-controller": "0.9.7-preview-c6d939c9", "@metamask-previews/queued-request-controller": "6.0.0-preview-c6d939c9", "@metamask-previews/rate-limit-controller": "6.0.1-preview-c6d939c9", "@metamask-previews/selected-network-controller": "19.0.0-preview-c6d939c9", "@metamask-previews/signature-controller": "21.0.0-preview-c6d939c9", "@metamask-previews/transaction-controller": "38.1.0-preview-c6d939c9", "@metamask-previews/user-operation-controller": "17.0.0-preview-c6d939c9" } ```
bergeron commented 3 weeks ago

@metamaskbot publish-preview

github-actions[bot] commented 3 weeks 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": "18.2.2-preview-fa7d96bb", "@metamask-previews/address-book-controller": "6.0.1-preview-fa7d96bb", "@metamask-previews/announcement-controller": "7.0.1-preview-fa7d96bb", "@metamask-previews/approval-controller": "7.1.1-preview-fa7d96bb", "@metamask-previews/assets-controllers": "40.0.0-preview-fa7d96bb", "@metamask-previews/base-controller": "7.0.2-preview-fa7d96bb", "@metamask-previews/build-utils": "3.0.1-preview-fa7d96bb", "@metamask-previews/chain-controller": "0.1.3-preview-fa7d96bb", "@metamask-previews/composable-controller": "9.0.1-preview-fa7d96bb", "@metamask-previews/controller-utils": "11.4.1-preview-fa7d96bb", "@metamask-previews/ens-controller": "15.0.0-preview-fa7d96bb", "@metamask-previews/eth-json-rpc-provider": "4.1.6-preview-fa7d96bb", "@metamask-previews/gas-fee-controller": "22.0.0-preview-fa7d96bb", "@metamask-previews/json-rpc-engine": "10.0.1-preview-fa7d96bb", "@metamask-previews/json-rpc-middleware-stream": "8.0.5-preview-fa7d96bb", "@metamask-previews/keyring-controller": "17.3.0-preview-fa7d96bb", "@metamask-previews/logging-controller": "6.0.1-preview-fa7d96bb", "@metamask-previews/message-manager": "11.0.0-preview-fa7d96bb", "@metamask-previews/multichain": "0.0.0-preview-fa7d96bb", "@metamask-previews/name-controller": "8.0.1-preview-fa7d96bb", "@metamask-previews/network-controller": "22.0.0-preview-fa7d96bb", "@metamask-previews/notification-controller": "7.0.0-preview-fa7d96bb", "@metamask-previews/notification-services-controller": "0.12.0-preview-fa7d96bb", "@metamask-previews/permission-controller": "11.0.3-preview-fa7d96bb", "@metamask-previews/permission-log-controller": "3.0.1-preview-fa7d96bb", "@metamask-previews/phishing-controller": "12.3.0-preview-fa7d96bb", "@metamask-previews/polling-controller": "12.0.0-preview-fa7d96bb", "@metamask-previews/preferences-controller": "13.1.0-preview-fa7d96bb", "@metamask-previews/profile-sync-controller": "0.9.7-preview-fa7d96bb", "@metamask-previews/queued-request-controller": "6.0.0-preview-fa7d96bb", "@metamask-previews/rate-limit-controller": "6.0.1-preview-fa7d96bb", "@metamask-previews/selected-network-controller": "19.0.0-preview-fa7d96bb", "@metamask-previews/signature-controller": "21.0.0-preview-fa7d96bb", "@metamask-previews/transaction-controller": "38.1.0-preview-fa7d96bb", "@metamask-previews/user-operation-controller": "17.0.0-preview-fa7d96bb" } ```
bergeron commented 3 weeks ago

@metamaskbot publish-preview

github-actions[bot] commented 3 weeks 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": "18.2.3-preview-699c6b6a", "@metamask-previews/address-book-controller": "6.0.1-preview-699c6b6a", "@metamask-previews/announcement-controller": "7.0.1-preview-699c6b6a", "@metamask-previews/approval-controller": "7.1.1-preview-699c6b6a", "@metamask-previews/assets-controllers": "41.0.0-preview-699c6b6a", "@metamask-previews/base-controller": "7.0.2-preview-699c6b6a", "@metamask-previews/build-utils": "3.0.1-preview-699c6b6a", "@metamask-previews/chain-controller": "0.1.3-preview-699c6b6a", "@metamask-previews/composable-controller": "9.0.1-preview-699c6b6a", "@metamask-previews/controller-utils": "11.4.2-preview-699c6b6a", "@metamask-previews/ens-controller": "15.0.0-preview-699c6b6a", "@metamask-previews/eth-json-rpc-provider": "4.1.6-preview-699c6b6a", "@metamask-previews/gas-fee-controller": "22.0.0-preview-699c6b6a", "@metamask-previews/json-rpc-engine": "10.0.1-preview-699c6b6a", "@metamask-previews/json-rpc-middleware-stream": "8.0.5-preview-699c6b6a", "@metamask-previews/keyring-controller": "17.3.1-preview-699c6b6a", "@metamask-previews/logging-controller": "6.0.1-preview-699c6b6a", "@metamask-previews/message-manager": "11.0.1-preview-699c6b6a", "@metamask-previews/multichain": "0.0.0-preview-699c6b6a", "@metamask-previews/name-controller": "8.0.1-preview-699c6b6a", "@metamask-previews/network-controller": "22.0.1-preview-699c6b6a", "@metamask-previews/notification-controller": "7.0.0-preview-699c6b6a", "@metamask-previews/notification-services-controller": "0.12.0-preview-699c6b6a", "@metamask-previews/permission-controller": "11.0.3-preview-699c6b6a", "@metamask-previews/permission-log-controller": "3.0.1-preview-699c6b6a", "@metamask-previews/phishing-controller": "12.3.0-preview-699c6b6a", "@metamask-previews/polling-controller": "12.0.1-preview-699c6b6a", "@metamask-previews/preferences-controller": "13.2.0-preview-699c6b6a", "@metamask-previews/profile-sync-controller": "0.9.7-preview-699c6b6a", "@metamask-previews/queued-request-controller": "7.0.0-preview-699c6b6a", "@metamask-previews/rate-limit-controller": "6.0.1-preview-699c6b6a", "@metamask-previews/selected-network-controller": "19.0.0-preview-699c6b6a", "@metamask-previews/signature-controller": "21.0.0-preview-699c6b6a", "@metamask-previews/transaction-controller": "38.1.0-preview-699c6b6a", "@metamask-previews/user-operation-controller": "17.0.0-preview-699c6b6a" } ```
bergeron commented 3 weeks ago

Gonna tweak the changelog. Since fetchAndMapExchangeRatesForUnsupportedNativeCurrency is a private function that is not exported or used elsewhere, I don't think it needs to be in the changelog since it won't affect consumers