sei-protocol / sei-chain

Apache License 2.0
2.67k stars 797 forks source link

Add sei_getCosmosTx endpoint #1672

Closed jewei1997 closed 1 month ago

jewei1997 commented 1 month ago

Describe your changes and provide context

sei_ specific endpoint that can be used to retrieve the corresponding cosmos tx hash given the evm tx hash. This can provide a programmatic way for EVM devs to get more information about their tx especially for precompile txs.

Testing performed to validate your change

unit test + manual testing on local sei

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 55.55556% with 16 lines in your changes are missing coverage. Please review.

Project coverage is 60.64%. Comparing base (3be4978) to head (8ae0e47).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1672/graphs/tree.svg?width=650&height=150&src=pr&token=DG7ZZJ3PVV&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol)](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1672?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol) ```diff @@ Coverage Diff @@ ## main #1672 +/- ## ========================================== + Coverage 60.57% 60.64% +0.07% ========================================== Files 367 367 Lines 26748 26784 +36 ========================================== + Hits 16202 16244 +42 + Misses 9455 9442 -13 - Partials 1091 1098 +7 ``` | [Files](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1672?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol) | Coverage Δ | | |---|---|---| | [evmrpc/association.go](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1672?src=pr&el=tree&filepath=evmrpc%2Fassociation.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol#diff-ZXZtcnBjL2Fzc29jaWF0aW9uLmdv) | `30.84% <55.55%> (+12.53%)` | :arrow_up: | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1672/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol)