1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui
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
..
__mocks__ remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
components use etherscan-link customBlockExplorer methods with customNetwork usage tracking (#11017) 2021-05-19 09:51:47 -05:00
contexts remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
css Fix #10173 - Prevent lag in external monitors when using Mac + Chrome (#10952) 2021-04-30 10:28:07 -05:00
ducks Fix a condition for checking if a token should be added (#11127) 2021-05-18 13:16:17 -05:00
helpers use etherscan-link customBlockExplorer methods with customNetwork usage tracking (#11017) 2021-05-19 09:51:47 -05:00
hooks Hide basic tab in advanced gas modal for speedup and cancel when on testnets (#11115) 2021-05-18 12:36:05 -04:00
pages use etherscan-link customBlockExplorer methods with customNetwork usage tracking (#11017) 2021-05-19 09:51:47 -05:00
selectors Adding notification for updated seed phrase wording (#11131) 2021-05-18 15:00:34 -07:00
store Migrate to new CurrencyRateController (#11005) 2021-05-20 00:27:51 -02:30
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00