1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/lib
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
..
ens-ipfs
migrator
rpc-method-middleware Fix error behavior of addEthereumChain (#11031) 2021-05-11 09:34:52 -07:00
account-tracker.js
buy-eth-url.js
buy-eth-url.test.js
cleanErrorStack.js
cleanErrorStack.test.js
ComposableObservableStore.js Migrate to new CurrencyRateController (#11005) 2021-05-20 00:27:51 -02:30
ComposableObservableStore.test.js Migrate to new CurrencyRateController (#11005) 2021-05-20 00:27:51 -02:30
createLoggerMiddleware.js
createMetaRPCHandler.js return early from metaRPCHandler if stream has ended (#11065) 2021-05-12 15:12:46 -07:00
createMetaRPCHandler.test.js return early from metaRPCHandler if stream has ended (#11065) 2021-05-12 15:12:46 -07:00
createOnboardingMiddleware.js
createOriginMiddleware.js
createStreamSink.js
createTabIdMiddleware.js
decrypt-message-manager.js
encryption-public-key-manager.js
extractEthjsErrorMessage.js
get-first-preferred-lang-code.js Replace uses of hasOwnProperty.call with simpler alternatives (#11009) 2021-05-11 14:09:17 -02:30
getObjStructure.js
local-store.js
message-manager.js
message-manager.test.js
metaRPCClientFactory.js fix metaRPCClientFactory id handling (#11116) 2021-05-17 14:46:00 -07:00
metaRPCClientFactory.test.js fix metaRPCClientFactory id handling (#11116) 2021-05-17 14:46:00 -07:00
network-store.js
nodeify.js
nodeify.test.js
notification-manager.js
personal-message-manager.js
personal-message-manager.test.js
seed-phrase-verifier.js
seed-phrase-verifier.test.js
segment.js
setupSentry.js Migrate Sentry settings to environment variables (#11085) 2021-05-18 13:56:22 -02:30
stream-utils.js
typed-message-manager.js create safer isValidAddress method (#11089) 2021-05-17 14:00:59 -05:00
typed-message-manager.test.js
util.js
util.test.js