core icon indicating copy to clipboard operation
core copied to clipboard

feat: add main network sync controller integration

Open Prithpal-Sooriya opened this issue 1 year ago • 0 comments

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 syncNetworks method used to initiate the main network sync
  • ADDED: add performMainNetworkSync to call the NetworkController actions to get and update NetworkConfigurations.
  • ADDED: add getStorageOptions private 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

Prithpal-Sooriya avatar Sep 13 '24 15:09 Prithpal-Sooriya