This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add support for ERC-4337 accounts #213
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8b392ff
to
8ffd019
Compare
8ffd019
to
7cd842d
Compare
1 task
7cd842d
to
94b46db
Compare
94b46db
to
67ffc9a
Compare
This was referenced Dec 1, 2023
gantunesr
previously approved these changes
Dec 4, 2023
6dcec41
to
6741d22
Compare
gantunesr
approved these changes
Dec 6, 2023
legobeat
added a commit
that referenced
this pull request
Dec 6, 2023
legobeat
added a commit
that referenced
this pull request
Dec 6, 2023
danroc
pushed a commit
that referenced
this pull request
Dec 7, 2023
danroc
pushed a commit
that referenced
this pull request
Dec 7, 2023
danroc
added a commit
to MetaMask/core
that referenced
this pull request
Jan 22, 2024
## Description **Depends on:** - [x] <MetaMask/keyring-api#213> - [x] <MetaMask/KeyringController#315> - [x] <#3617> This PR adds the following new methods available in the `EthKeyring` interface: - `prepareUserOperation` - `patchUserOperation` - `signUserOperation` See the [PR](MetaMask/keyring-api#213) in the `keyring-api` for more details. ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc) - [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support to ERC-4337 accounts. These new accounts should implement the following signing flow:
Changes
This PR adds a new
EthKeyring
interface to be used internally by MetaMask.It also adds the follwoing methods that are required to implement the flow described above:
prepareUserOperation
patchUserOperation
signUserOperation