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

refactor: Move Counterparty to packet server #7280

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

DimitrisJim
Copy link
Contributor

Description

As tiny as I could get this diff. Simply moves it over for now. Follow ups will add the a query server for packet server and change the counterparty struct to contain the additional identifiers.

closes: #XXXX


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.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

DimitrisJim and others added 2 commits September 10, 2024 20:24
Co-authored-by: Aditya <adityasripal@gmail.com>
Co-authored-by: Aditya <adityasripal@gmail.com>
@DimitrisJim DimitrisJim changed the title Move Counterparty to packet server refactor: Move Counterparty to packet server Sep 10, 2024
Copy link
Member

@AdityaSripal AdityaSripal left a comment

Choose a reason for hiding this comment

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

Nice work! I presume you'll separate client ID and channel ID in a future pr?

suite.Require().True(found, "GetCounterparty does not return counterparty")
suite.Require().Equal(counterparty, retrievedCounterparty, "Counterparty retrieved not equal")

retrievedCounterparty, found = suite.chainA.App.GetIBCKeeper().PacketServerKeeper.GetCounterparty(suite.chainA.GetContext(), "client-0")
Copy link
Member

Choose a reason for hiding this comment

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

maybe note this clientid doesn't exist or use ibctesting constant invalid client id (think it exists)

Copy link
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

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

LGTM, Looked through all the changes and they all seem good, nice job on the shuffling!

Copy link

sonarcloud bot commented Sep 11, 2024

@DimitrisJim DimitrisJim merged commit 37d3d39 into feat/ibc-eureka Sep 11, 2024
66 of 67 checks passed
@DimitrisJim DimitrisJim deleted the jim/move-proto-defs branch September 11, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants