I've been further examining ERC4337 (Ethereum's chosen Account Abstraction model, following up on #1095061621497409626 message) to try and understand if there's anything we can do to enable this type of transaction "Bundling" in the future and allow for custom accounts to pay fees.
One category of EVM functionality that seems to be important, and is present in abundance in the ERC4337's EntryPoint contract spec relates to cross contract calls, resouce consumption and fees. The EVM allows contracts to:
- Specify a resource limit when making a cross contract call
- Check the resource consumption of a completed cross contract call (not exactly but you can check how much gas was consumed before and after)
- Translate resources consumed to fees in eth (using
tx.gasprice)
Obviously this is much easier in ethereum given that resources are uni-dimensional - just gas.
With that said, how much of this is possible in Soroban and what would be the cost to implement what's not?