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

Add support for eip4337 style initCodes in delegations #56

Open
danfinlay opened this issue Mar 8, 2023 · 0 comments
Open

Add support for eip4337 style initCodes in delegations #56

danfinlay opened this issue Mar 8, 2023 · 0 comments
Labels
enhancement New feature or request schema-change A change that will result in changing the types of the library, & so nneeding new tooling & docs.

Comments

@danfinlay
Copy link

EIP 4337 introduced a counterfactual Wallet deployer pattern using initCodes, which allows one to send a transaction from an account that doesn't exist on chain until the tx is processed.

I bet we could support the same initCode + Wallet deployer pattern within the delegation schema to offer some potential. If nothing else, a counterfactual contract account could both receive and issue a delegation.

I'm not sure if there's any benefit for a 4337-style contract account to be the "end of the line" receiver of a delegation, since depending on how the UserOperation was constructed, they could already (under 4337) deploy the contract as part of calling the method.

But, supporting intermediate delegations seems like a good long term feature, so I'm opening this as a possible future enhancement.

@danfinlay danfinlay added enhancement New feature or request schema-change A change that will result in changing the types of the library, & so nneeding new tooling & docs. labels Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request schema-change A change that will result in changing the types of the library, & so nneeding new tooling & docs.
Projects
None yet
Development

No branches or pull requests

1 participant