Open hai-rise opened 3 months 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 contractWallet
: manages user state like nonces etc, has a function that forwards delegate calls to contractsThe 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.
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 contractWallet
: manages user state like nonces etc, has a function that forwards delegate calls to contractsThe 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.