-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Eth snap keyring #10829
feat: Eth snap keyring #10829
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
e1e227a
to
3072451
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10829 +/- ##
==========================================
+ Coverage 55.87% 55.92% +0.04%
==========================================
Files 1587 1593 +6
Lines 37651 37860 +209
Branches 4505 4540 +35
==========================================
+ Hits 21039 21174 +135
- Misses 16116 16187 +71
- Partials 496 499 +3 ☔ View full report in Codecov by Sentry. |
68e5af1
to
5ba2375
Compare
6e17748
to
dfe6473
Compare
f6b7013
to
28aff50
Compare
234cb58
to
8c8d04e
Compare
Bitrise❌❌❌ Commit hash: a501525 Note
Tip
|
- This change adds lays the foundation for third party snap accounts by implementing/integrating the eth-snap-keyring into mobile flask - this change is needed to unlock the future of account management beyond native EOA accounts - In this change we implement the snapKeyringBuilder method which returns an instance of the snap keyring and allows third party snaps to add accounts to metamask - This change also sets up the appropriate permissions for these snaps.
4539f7a
to
6bcddfe
Compare
6bcddfe
to
8763e21
Compare
Bitrise✅✅✅ Commit hash: 8763e21 Note
|
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Engine
as well as thesnapMethodMiddlewareBuilder
'endowment:keyring': 'endowment:keyring'
to the set of available snap permissionskeyringSnapPermissionsBuilder
which derives the permissions for a specific origin.IF THE BUILD TYPE IS FLASK
.metamask-controllers.js
file.This PR DOES NOT
origin
instead ofhostname
to identify subject websites #11029. For now we will eagerly grant keyring permissions to dapps since this is just a flask feature and is not doing into production.Related issues
Fixes: https://github.com/MetaMask/accounts-planning/issues/149
Manual testing steps
export METAMASK_BUILD_TYPE=flask
source .js.env
yarn watch:clean
https://metamask.github.io/snap-simple-keyring/latest/
Snap Account 1
Screenshots/Recordings
Before
N/A
After
Screen.Recording.2024-09-13.at.3.41.02.PM.1080.mov
Pre-merge author checklist
Pre-merge reviewer checklist