Replies: 5 comments
-
maybe one "manual" alternative is directly constructing those messages in precompile: crypto-org-chain/cronos#483 ? it won't be "smooth" though, I guess: EVM will see invocation via interchain accounts as from EOA, but taking IBC messages from a precompile and interpreting them would not leverage much of the ibc-go code and there'll be an indirection |
Beta Was this translation helpful? Give feedback.
-
do you mean some custom evm to evm interchain-accounts implementation? |
Beta Was this translation helpful? Give feedback.
-
I'm thinking about making a cosmos-sdk friendly evm msg type, sth like: message EvmMessage {
sender string
to string
value *big.Int
data []byte
} it'll leave the auth/fee stuff to cosmos-sdk, works just like a normal cosmos-sdk msg, under the default ante handler pipeline. |
Beta Was this translation helpful? Give feedback.
-
Yes... one potential advantage is that one may want to restrict contract addresses that it can interact with (similarly to how one can restrict SDK message types for ICA).
as long as it doesn't bypass gas accounting (i.e. being able to pay significantly less than when going through the Ethermint's ante handler), it looks feasible |
Beta Was this translation helpful? Give feedback.
-
@yihuang I'd also add the the limitation that currently the Interchain Account is only supported for |
Beta Was this translation helpful? Give feedback.
-
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:
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.the current pending PR tries to move some events to the ante handler, we should keep a copy in the msg handler too then.Desired behavior: make evm tx works smoothly with interchain-account
Use case: support interchain-account host role
Possible solutions:
Beta Was this translation helpful? Give feedback.
All reactions