Skip to content

Commit 6bf9844

Browse files
ccharlyhmalik88
andauthored
feat(multichain-account-service): re-sync multichain account and wallets on account events (#6165)
## Explanation Re-sync multichain accounts and wallets upon `AccountsController` events. ## References N/A ## Changelog N/A ## 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 - [ ] I've communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs), highlighting breaking changes as necessary - [ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes --------- Co-authored-by: Hassan Malik <[email protected]>
1 parent d21e035 commit 6bf9844

File tree

14 files changed

+477
-214
lines changed

14 files changed

+477
-214
lines changed

packages/account-tree-controller/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"lodash": "^4.17.21"
5454
},
5555
"devDependencies": {
56-
"@metamask/account-api": "^0.2.0",
56+
"@metamask/account-api": "^0.3.0",
5757
"@metamask/accounts-controller": "^32.0.0",
5858
"@metamask/auto-changelog": "^3.4.4",
5959
"@metamask/keyring-api": "^19.0.0",
@@ -70,7 +70,7 @@
7070
"webextension-polyfill": "^0.12.0"
7171
},
7272
"peerDependencies": {
73-
"@metamask/account-api": "^0.2.0",
73+
"@metamask/account-api": "^0.3.0",
7474
"@metamask/accounts-controller": "^32.0.0",
7575
"@metamask/keyring-controller": "^22.0.0",
7676
"@metamask/providers": "^22.0.0",

packages/multichain-account-service/CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Add multichain account/wallet syncs ([#6165](https://github.com/MetaMask/core/pull/6165))
13+
- Those are getting sync'd during `AccountsController:account{Added,Removed}` events.
14+
15+
### Changed
16+
17+
- **BREAKING:** Add `@metamask/account-api` peer dependency ([#6115](https://github.com/MetaMask/core/pull/6115)), ([#6146](https://github.com/MetaMask/core/pull/6146))
18+
1019
## [0.2.1]
1120

1221
### Fixed
@@ -23,7 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2332

2433
### Added
2534

26-
- Add `MultichainAccountService` ([#6141](https://github.com/MetaMask/core/pull/6141))
35+
- Add `MultichainAccountService` ([#6141](https://github.com/MetaMask/core/pull/6141)), ([#6165](https://github.com/MetaMask/core/pull/6165))
2736
- This service manages multichain accounts/wallets.
2837

2938
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]

packages/multichain-account-service/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
4848
},
4949
"dependencies": {
50-
"@metamask/account-api": "^0.2.0",
5150
"@metamask/base-controller": "^8.0.1",
5251
"@metamask/keyring-api": "^19.0.0",
5352
"@metamask/keyring-internal-api": "^7.0.0",
@@ -57,6 +56,7 @@
5756
"@metamask/superstruct": "^3.1.0"
5857
},
5958
"devDependencies": {
59+
"@metamask/account-api": "^0.3.0",
6060
"@metamask/accounts-controller": "^32.0.0",
6161
"@metamask/auto-changelog": "^3.4.4",
6262
"@metamask/eth-snap-keyring": "^14.0.0",
@@ -73,6 +73,7 @@
7373
"webextension-polyfill": "^0.12.0"
7474
},
7575
"peerDependencies": {
76+
"@metamask/account-api": "^0.3.0",
7677
"@metamask/accounts-controller": "^32.0.0",
7778
"@metamask/keyring-controller": "^22.0.0",
7879
"@metamask/providers": "^22.0.0",

0 commit comments

Comments
 (0)