Skip to content

Add support for eip4337 style initCodes in delegations #56

@danfinlay

Description

@danfinlay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestschema-changeA change that will result in changing the types of the library, & so nneeding new tooling & docs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions