Skip to content

tx4/EIP7702 support #404

@krakovia-evm

Description

@krakovia-evm

Hello o/
Titanoboa is missing support for tx4/EIP 7702,
I've made a simple workspace with a non-existent function to sign and attach a delegation to a transaction (Following foundry's design)

https://github.com/krakovia-evm/Vyper7702

I've also attached the solidity files from the other workspace example made for Foundry.

The example project is an ERC20 launch on uniswap v2, batching the addLiquidity + buy @MaxTX from 3 users.

All the accounts involved delegate their account to 1 smart contract (smart router).
It will be used by the tx.origin to add liquidity and buy with the 3 EOA.
The smart router will calculate automatically the amounts needed to reach the maxBuy.
Any ETH leftover is sent back to the owner/tx.origin

Using those accounts after the launch() is not calculated/considered.

If it can help, i can upload on github the whole Foundry's workspace I've used those days to help them fixing some issues related to 7702 support.

This moccasin workspace will work if you comment out the function "test_smart_router_launch" from test_router.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions