Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Support a cosmos-sdk friendly eth msg #1227

Closed
yihuang opened this issue Aug 4, 2022 · 3 comments
Closed

Support a cosmos-sdk friendly eth msg #1227

yihuang opened this issue Aug 4, 2022 · 3 comments

Comments

@yihuang
Copy link
Contributor

yihuang commented Aug 4, 2022

Proposal: Support a cosmos-sdk friendly eth msg

Current behavior:

Currently to keep it compatible with ethereum APIs, the MsgEthereumTx need many customization to work:

  • Not signing the wrapping cosmos tx, and enforce most of the fields to be empty.
  • custom ante handler pipeline.
  • custom gas deduction/refund logic.

It makes it hard to apply some cosmos-sdk features on eth tx, notably:

  • Transaction Tips
  • Execute EVM tx in ICA-host chain.

Desired behavior: Implement an alternative cosmos-sdk friendly eth msg

gas price/gas limit, signatures will be specified in the tx structure.

message MsgEthereum {
  string sender = 1;
  string to = 2;
  string value = 3;
  bytes data = 4;
  repeated AccessTuple accesses = 5;
}

How to blend into the JSON-RPC apis:

  • How to fake an eth tx hash
  • In batch mode, there's only one set of gas price/gas limit in cosmos tx, but eth APIs would expect one for each msg.

Use case:

Support transaction tips and ICA host.

@github-actions
Copy link

This issue is stale because it has been open 45 days with no activity. Remove Status: Stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2022
@itsdevbear
Copy link

itsdevbear commented Oct 6, 2022

@yihuang bump related to #1363 and would likely solve the problem.

@yihuang
Copy link
Contributor Author

yihuang commented Nov 1, 2022

@yihuang bump related to #1363 and would likely solve the problem.

I think it's a different case, it's about executing evm contract in cosmos ecosystem, like in ICA-host chain, or utilize the cosmos-sdk tx features, like transaction tips, authz, new gov proposals.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants