This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Description
Proposal: Support EVM tx in interchain-account host chain
Current behavior:
In general, the EVM msg handler relies on a custom ante handler pipeline to work, but the ICA host module will run the msgs under the default ante handler, there'll be issues with that, specifically:
- Gas Meter Reset
EthereumTx expects an infinite gas meter set in advance and reset the gas meter with the gas used calculated by EVM, that don't work well with the default msg executor of the interchain-account host module.
- Gas Fee Payment and relayer incentivization.
- we need to have some kind of relayer incentivization first because the cost of evm tx varies.
- JSON-RPCs
- it emits the same events, so it can be found by json-rpc apis similarly to the batch tx.
the current pending PR tries to move some events to the ante handler, we should keep a copy in the msg handler too then.
- it breaks client's assumption that the fee is always paid by the tx sender, it's relayer instead.
Desired behavior: make evm tx works smoothly with interchain-account
Use case: support interchain-account host role
Possible solutions:
- make a custom msg handler which is implemented with interchain-account in mind?