Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: network sync - add main sync logic (#4694)
## Explanation This adds support for the "main-sync" on network syncing feature. This will get all a users local networks, and saved remote networks; then will append/update/delete networks synced across their devices. We will add the controller integration in a following PR. ## References https://consensyssoftware.atlassian.net/browse/NOTIFY-1040 ## Changelog ### `@metamask/profile-sync-controller` - **CHANGED**: Renamed the `sync.ts` file to `sync-mutations.ts` - **ADDED**: `utils` to the `UserStorageController` subpath. - **ADDED**: `findNetworksToUpdate()` function which will perform the "main-sync" logic for local and remote network configurations. ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
- Loading branch information