core
core copied to clipboard
feat: add main network sync controller integration
Explanation
This adds the main network sync method to the UserStorageController. It also connects the NetworkController events and actions used for network syncing.
References
https://consensyssoftware.atlassian.net/browse/NOTIFY-1094
Changelog
@metamask/profile-sync-controller
-
ADDED: add new method
syncNetworksmethod used to initiate the main network sync -
ADDED: add
performMainNetworkSyncto call the NetworkController actions to get and update NetworkConfigurations. -
ADDED: add
getStorageOptionsprivate method to get storage options for syncing.
Checklist
- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
- [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate