Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(relayer): relaying packet from Cosmos to Eth #134

Merged
merged 26 commits into from
Dec 4, 2024
Merged

Conversation

srdtrk
Copy link
Member

@srdtrk srdtrk commented Dec 4, 2024

Description

closes: #127, #135


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Wrote unit and integration tests.
  • Added relevant natspec and godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.84%. Comparing base (9ddf442) to head (b6f1475).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #134   +/-   ##
=======================================
  Coverage   96.84%   96.84%           
=======================================
  Files          11       11           
  Lines         539      539           
=======================================
  Hits          522      522           
  Misses         17       17           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@srdtrk srdtrk linked an issue Dec 4, 2024 that may be closed by this pull request
4 tasks
Copy link
Contributor

@gjermundgaraba gjermundgaraba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

e2e/interchaintestv8/relayer_test.go Outdated Show resolved Hide resolved
}))

var multicallTx []byte
s.Require().True(s.Run("Retrieve relay tx to Ethereum", func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

s.Require().NotEmpty(resp.Tx)
s.Require().Equal(resp.Address, ics26Address.String())

multicallTx = resp.Tx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would we want it to be a multi call tx when it's a single tx? I haven't measured, but I would assume the cost is higher than a direct tx?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think consistency is always good. This is not a usecase we are optimizing for, and the gas cost of using multicall vs standard entry point should be very low, compared to all the other reasons gas will be high in that scenario

@srdtrk srdtrk merged commit 53be22f into main Dec 4, 2024
38 checks passed
@srdtrk srdtrk deleted the serdar/127-relay-tx branch December 4, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve relayer API Add relaying capabilities from Cosmos to Ethereum and test it with 1 tx hash
2 participants