Commit 796d640
authored
feat: add new actions to
## Explanation
Added actions for `createNewVaultAndKeychain` and
`createNewVaultAndRestore`. These are meant to be consumed by the
`createNewMultichainAccountWallet` method in the
`MultichainAccountService`.
## References
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
- [x] 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
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds messenger actions and handlers for `createNewVaultAndKeychain`
and `createNewVaultAndRestore`, and documents them in the changelog.
>
> - **KeyringController**:
> - Add action types `KeyringControllerCreateNewVaultAndKeychainAction`
and `KeyringControllerCreateNewVaultAndRestoreAction` in
`src/KeyringController.ts`.
> - Extend `KeyringControllerActions` union to include the new actions.
> - Register action handlers for `${name}:createNewVaultAndKeychain` and
`${name}:createNewVaultAndRestore`.
> - **Docs**:
> - Update `packages/keyring-controller/CHANGELOG.md` under Unreleased
to note the new actions.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
e424f6b. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->KeyringController (#6928)1 parent dfd2a80 commit 796d640
File tree
2 files changed
+28
-1
lines changed- packages/keyring-controller
- src
2 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
187 | 197 | | |
188 | 198 | | |
189 | 199 | | |
| |||
226 | 236 | | |
227 | 237 | | |
228 | 238 | | |
229 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
230 | 242 | | |
231 | 243 | | |
232 | 244 | | |
| |||
1780 | 1792 | | |
1781 | 1793 | | |
1782 | 1794 | | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
1783 | 1805 | | |
1784 | 1806 | | |
1785 | 1807 | | |
| |||
0 commit comments