1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts
Mark Stacey 5009ceae53
Migrate to new CurrencyRateController (#11005)
The CurrencyRateController has been migrated to the BaseControllerV2
API, which includes various API changes. These changes include:
* The constructor now expects to be passed a
`RestrictedControllerMessenger`.
* State changes are subscribed to via the `ControllerMessenger` now,
rather than via a `subscribe` function.
* The state and configration are passed in as one "options" object,
rather than as two separate parameters
* The polling needs to be started explicitly by calling `start`. It
can be stopped and started on-demand now as well.
* Changing the current currency or native currency will now throw an
error if we fail to update the conversion rate.

The `ComposableObservableStore` has been updated to accomodate these
new types of controllers. The constructor has been updated to use an
options bag pattern as well, to make the addition of the new required
`controllerMessenger` parameter a bit less unweildly.
2021-05-20 00:27:51 -02:30
..
account-import-strategies Use strict assertion mode everywhere (#11012) 2021-05-07 17:08:24 -02:30
constants
controllers use safer toChecksum utility (#11117) 2021-05-17 16:19:39 -05:00
lib Migrate to new CurrencyRateController (#11005) 2021-05-20 00:27:51 -02:30
migrations Removing support survey notification from What's New (#11118) 2021-05-18 10:55:55 -07:00
platforms use etherscan-link customBlockExplorer methods with customNetwork usage tracking (#11017) 2021-05-19 09:51:47 -05:00
background.js
contentscript.js
disable-console.js
first-time-state.js
initSentry.js
inpage.js @metamask/providers@8.1.1 (#11078) 2021-05-12 19:51:14 -07:00
metamask-controller.js Migrate to new CurrencyRateController (#11005) 2021-05-20 00:27:51 -02:30
metamask-controller.test.js Migrate to new CurrencyRateController (#11005) 2021-05-20 00:27:51 -02:30
phishing-detect.js
runLockdown.js
ui.js