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

packetserver: Rename Counterparty to Channel #7429

Open
wants to merge 7 commits into
base: feat/ibc-eureka
Choose a base branch
from

Conversation

AdityaSripal
Copy link
Member

Description

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.

@damiannolan
Copy link
Member

damiannolan commented Oct 9, 2024

Ref: #7333

Needs to be done in channel/v2 also, I can handle that if nobody has picked it up yet? cc. @DimitrisJim
edit: missed dms, happy to leave to yourself in a follow up :)

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Happy to get this merged and keep marching foward! Thanks @AdityaSripal!

Will create follow up issues in the morning from my comments here and organise them.

Tests all passing, lgtm!

func (k *Keeper) GetV2Counterparty(ctx context.Context, portID, channelID string) (packetserver.Counterparty, bool) {
// GetV2Channel returns a version 2 channel for the given port and channel ID
// by converting the v1 channel into a version 2 channel
func (k *Keeper) GetV2Channel(ctx context.Context, portID, channelID string) (packetserver.Channel, bool) {
Copy link
Member

Choose a reason for hiding this comment

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

Can probably remove this from classic at some point later and have it fully in the v2 pkg/codepath.

// getCmdQueryClient defines the command to query the client information (creator and counterparty) for the given client ID.
func getCmdQueryClient() *cobra.Command {
// getCmdQueryChannel defines the command to query the client information (creator and channel) for the given client ID.
func getCmdQueryChannel() *cobra.Command {
cmd := &cobra.Command{
Use: "client [client-id]",
Copy link
Member

Choose a reason for hiding this comment

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

will need to update these also within v2. I don't think there's any point in refactoring them in packet-server as it will eventually be removed, right?

happy to create an issue for CLI's and queries in v2 pkg.

Copy link
Contributor

Choose a reason for hiding this comment

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

we should be able to move the whole folder at some point and do some tweaks. Think these can be moved along with the move of the types in channel/v2?

Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

might be a couple comments that need updating but fine to comb through those too later. Looks great to me!

Copy link

sonarcloud bot commented Oct 9, 2024

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.

3 participants