mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
5009ceae53
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. |
||
---|---|---|
.. | ||
ens-ipfs | ||
migrator | ||
rpc-method-middleware | ||
account-tracker.js | ||
buy-eth-url.js | ||
buy-eth-url.test.js | ||
cleanErrorStack.js | ||
cleanErrorStack.test.js | ||
ComposableObservableStore.js | ||
ComposableObservableStore.test.js | ||
createLoggerMiddleware.js | ||
createMetaRPCHandler.js | ||
createMetaRPCHandler.test.js | ||
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 | ||
getObjStructure.js | ||
local-store.js | ||
message-manager.js | ||
message-manager.test.js | ||
metaRPCClientFactory.js | ||
metaRPCClientFactory.test.js | ||
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 | ||
stream-utils.js | ||
typed-message-manager.js | ||
typed-message-manager.test.js | ||
util.js | ||
util.test.js |