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

chore: split out packet handling rpcs #7007

Merged
merged 4 commits into from
Aug 1, 2024

Conversation

DimitrisJim
Copy link
Contributor

@DimitrisJim DimitrisJim commented Aug 1, 2024

Description

split taken from ibc-lite branch, further splitting and shuffling of server impls planned as follow up.

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.

_ clienttypes.MsgServer = (*Keeper)(nil)
_ connectiontypes.MsgServer = (*Keeper)(nil)
_ channeltypes.MsgServer = (*Keeper)(nil)
_ channeltypes.PacketMsgServer = (*Keeper)(nil)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

can also move to a packet_msg_server.go if people wanted. didn't since wanted to leave folder organization/shuffling for later

Copy link
Member

Choose a reason for hiding this comment

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

I would like to see this split out eventually and moved to packet-server. But can be done in future PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

could do with better names here


// BuildMerklePath takes the merkle path prefix and an ICS24 path
// and builds a new path by appending the ICS24 path to the last element of the merkle path prefix.
func BuildMerklePath(prefix *commitmenttypesv2.MerklePath, path []byte) commitmenttypesv2.MerklePath {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

def will add tests, just want to get keeper in branch so we can start working on packet handlers.

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.

Looks good. Can do suggestion in future PR

_ clienttypes.MsgServer = (*Keeper)(nil)
_ connectiontypes.MsgServer = (*Keeper)(nil)
_ channeltypes.MsgServer = (*Keeper)(nil)
_ channeltypes.PacketMsgServer = (*Keeper)(nil)
Copy link
Member

Choose a reason for hiding this comment

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

I would like to see this split out eventually and moved to packet-server. But can be done in future PR

Copy link

sonarqubecloud bot commented Aug 1, 2024

Quality Gate Failed Quality Gate failed for 'ibc-go'

Failed conditions
60.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@AdityaSripal AdityaSripal merged commit 2ff4aa9 into feat/ibc-eureka Aug 1, 2024
63 of 65 checks passed
@AdityaSripal AdityaSripal deleted the jim/split-out-packet-msgs branch August 1, 2024 13:37
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.

2 participants