Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add dedicated OneKey keyring class #175

Merged
merged 3 commits into from
Feb 11, 2025

Conversation

Akaryatrh
Copy link
Contributor

@Akaryatrh Akaryatrh commented Jan 30, 2025

This PR adds support for a dedicated OneKey keyring (until now it was sharing the same keyring instance than Trezor) so it's considered as a standalone device and could get its own tag inside account list.

There are two others PRs:

Fixes: https://github.com/MetaMask/accounts-planning/issues/793

@Akaryatrh Akaryatrh added this pull request to the merge queue Feb 11, 2025
Merged via the queue into main with commit cffe41c Feb 11, 2025
31 checks passed
@Akaryatrh Akaryatrh deleted the feat/793-oneKey-dedicated-keyring branch February 11, 2025 13:57
Akaryatrh added a commit to MetaMask/core that referenced this pull request Feb 12, 2025
## Explanation

This PR adds support for a dedicated OneKey keyring (until now it was
sharing the same keyring instance than Trezor) so it's considered as a
standalone device and could get its own tag inside account list.

There are two others PRs:
- metamask-extension:
MetaMask/metamask-extension#29999
- eth-trezor-keyring: MetaMask/accounts#175

## References

Fixes: MetaMask/accounts-planning#793

## Changelog

<!--
If you're making any consumer-facing changes, list those changes here as
if you were updating a changelog, using the template below as a guide.

(CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
FIXED. For security-related issues, follow the Security Advisory
process.)

Please take care to name the exact pieces of the API you've added or
changed (e.g. types, interfaces, functions, or methods).

If there are any breaking changes, make sure to offer a solution for
consumers to follow once they upgrade to the changes.

Finally, if you're only making changes to development scripts or tests,
you may replace the template below with "None".
-->

### `@metamask/accounts-controller`

- **utils**: add OneKey keyring type
- **tests**: update accounts controller unit test with OneKey keyring
type

### `@metamask/keyring-controller`

- **controller**: add OneKey keyring type

## Checklist

- [x] 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
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants