-
Notifications
You must be signed in to change notification settings - Fork 33
Add ERC-4337 and ERC-7702 account implementations #25
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
a7b170a
WIP: Migrate Account code
ernestognw 1859385
Merge branch 'master' into aa/accounts
ernestognw 7847e80
Merge branch 'master' into aa/accounts
ernestognw 25de3ac
Checkpoint
ernestognw 292dae1
Fix lint
ernestognw f8657e7
Checkpoint
ernestognw 8699232
up
ernestognw 7bdf69e
up
ernestognw efd52cd
Adjust
ernestognw 87fcd0e
up
ernestognw 549ab8e
Simplify CallReceiverMock
ernestognw 90c7f5e
Fix slither + Codespell
ernestognw 2e345c3
Fix coverage
ernestognw af200e4
Merge branch 'master' into aa/accounts
ernestognw 4d03f45
Remove entrypoint
ernestognw 9caded9
Readd entrypoint
ernestognw f6b4454
Run --ir-minimum in forge coverage
ernestognw 2d2300f
up
ernestognw d6ba190
Make Accounts initializable
ernestognw 208386f
Finish docs
ernestognw 49fc47d
Merge branch 'master' into aa/accounts
ernestognw d715e4c
rewrite helpers/signers as alternative to ethers.SigningKey and
Amxx 8ad95a1
Rename _validateNestedEIP712Signature -> _validateSignature
ernestognw 885efdd
Read virtual to ERC7739Signer functions
ernestognw d5f0dac
lint
ernestognw 130ce04
Implement review recommendations
ernestognw dcdae8d
Include signer into account factory hash
ernestognw 03d935d
Update Account inheritance order
ernestognw 5456f26
up
ernestognw 9412b65
Merge branch 'master' into aa/accounts
ernestognw 524bf15
Remove ERC1155HolderLean
ernestognw 4718b87
Abstract AccountSignerDomain
ernestognw c8ad19d
up
ernestognw ed66cca
Merge branch 'master' into aa/accounts
ernestognw c41956c
Remove signed hash fn
ernestognw 7e51cd2
Add standalone example of usage
ernestognw 459d594
Merge branch 'master' into aa/accounts
ernestognw f497fd1
Remove docs
ernestognw 6409cb3
ERC4337 userOp validation should not be 7739 wrapped
Amxx 97b33df
documentation
Amxx ddd17e9
Rename `_validateSignature` to `_rawSignatureValidation` and remove _…
ernestognw e8ef6d1
errata
ernestognw d706876
Default _signableUserOpHash to a typed userop signature
ernestognw 188e71d
Remove docs mocks
ernestognw 6ace1a7
Remove ERC7739 from AccountBase
ernestognw 9793e49
Make ERC7739Signer validations private
ernestognw 9e34432
Move EIP712 userop signing to Accountbase
ernestognw ae6a665
Split AccountCore / Account
Amxx 07ca067
remove intermediary variable
Amxx 6aa5597
doc
Amxx 0513f3a
spelling
Amxx e3ce6b5
abstract signer
Amxx 69cc3da
docs
Amxx d0bd34f
ERC7702 signer
Amxx 3b1c1f4
fix
Amxx 190b5a5
doc example for ERC7739 use signers
Amxx a6ab43b
Complete minimal documentation
ernestognw 5c210cf
Update CHANGELOG.md
ernestognw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make Accounts initializable
- Loading branch information
commit d6ba190d3c6d0e7717bcb605df61f4be19ad1eae
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| pragma solidity ^0.8.20; | ||
|
|
||
| import {PackedUserOperation} from "@openzeppelin/contracts/interfaces/draft-IERC4337.sol"; | ||
| import {ERC4337Utils} from "@openzeppelin/contracts/account/utils/draft-ERC4337Utils.sol"; | ||
| import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol"; | ||
| import {AccountECDSA} from "../../account/draft-AccountECDSA.sol"; | ||
|
|
||
| contract AccountECDSAMock is AccountECDSA { | ||
| constructor(string memory name, string memory version, address signerAddr) EIP712(name, version) { | ||
| _initializeSigner(signerAddr); | ||
| } | ||
| } | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| pragma solidity ^0.8.20; | ||
|
|
||
| import {PackedUserOperation} from "@openzeppelin/contracts/interfaces/draft-IERC4337.sol"; | ||
| import {ERC4337Utils} from "@openzeppelin/contracts/account/utils/draft-ERC4337Utils.sol"; | ||
ernestognw marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol"; | ||
| import {AccountP256} from "../../account/draft-AccountP256.sol"; | ||
|
|
||
| contract AccountP256Mock is AccountP256 { | ||
| constructor(string memory name, string memory version, bytes32 qx, bytes32 qy) EIP712(name, version) { | ||
| _initializeSigner(qx, qy); | ||
| } | ||
| } | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| pragma solidity ^0.8.20; | ||
|
|
||
| import {PackedUserOperation} from "@openzeppelin/contracts/interfaces/draft-IERC4337.sol"; | ||
| import {ERC4337Utils} from "@openzeppelin/contracts/account/utils/draft-ERC4337Utils.sol"; | ||
ernestognw marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol"; | ||
| import {AccountRSA} from "../../account/draft-AccountRSA.sol"; | ||
|
|
||
| contract AccountRSAMock is AccountRSA { | ||
| constructor(string memory name, string memory version, bytes memory e, bytes memory n) EIP712(name, version) { | ||
| _initializeSigner(e, n); | ||
| } | ||
| } | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.