risechain / pevm

Blazingly fast Parallel EVM
MIT License
196 stars 30 forks source link

Add account abstraction samples to our tests & benchmarks #136

Open hai-rise opened 3 months ago

EdwardJES commented 1 week ago

This is a great idea. Here's what I'm thinking this may look like. Contracts (all written in rust, similar to the erc20)

The more realistic way would be have Wallet be an implementation and the actual smart contract wallets be proxies.

Happy to take this one once aligned on the specs.

hai-rise commented 1 week ago

This is a great idea. Here's what I'm thinking this may look like. Contracts (all written in rust, similar to the erc20)

  • Factory: uses create2 to deploy a wallet contract
  • Wallet: manages user state like nonces etc, has a function that forwards delegate calls to contracts

The more realistic way would be have Wallet be an implementation and the actual smart contract wallets be proxies.

Happy to take this one once aligned on the specs.

Ah, this is a big issue. We should prioritize missing features and low-hanging optimizations first. For the record, @kien-rise compiled Solidity templates & forks for ERC-20 and Uniswap to bytecodes in assets/*.hex and used Rust to mock the accounts and transactions.