You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Added
Add isOutOfDate to the PhishingController, for checking whether the phishing lists are out-of-date. (#929)
Changed
BREAKING: Make the PhishingController test synchronous (#929)
Rather than being polled regularly (as it was pre-v31), or updated on fetch (as in v31), the phishing lists are no longer updated automatically at all. You will need to manually call isOutOfDate to check whether they are out-of-date, and then call updatePhishingLists to update them.
BREAKING: Migrate NetworkController to BaseControllerV2 (#903)
There is no more "controller configuration" with BaseControllerV2. Instead configuration is set by constructor parameters.
The constructor accepts a single "options" object rather than separate parameters. The initial state is now passed as part of this options object, via the state property.
The constructor must be passed the infuraProjectId and messenger options. The messenger should be a restricted controller messenger.
Controller subscriptions must be registered through the controller messenger, rather than through the controller directly.
A providerChange event has been added. This is dispatched when the provider instance variable is updated.
When there is a network switch, this is dispatched after the network has been fully initialized.
A new getEthQuery action has been added, for obtaining an EthQuery instance that is already setup with the current provider
Note that it will stop working when the provider changes, so you should call this again each time the providerChange event is dispatched.