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: add protobuf files for channel/v2 genesis storage. #7502

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

DimitrisJim
Copy link
Contributor

Description

adds initial protobuf files for channel/v2 genesis.

part of: #7479


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.

Comment on lines +26 to +29
// channel unique identifier.
string channel_id = 1;
// packet sequence.
uint64 sequence = 2;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

basically a PacketSequence as defined underneath. Unsure if this wasn't used here in channel/v1 for some reason but keeping it separate for now (and possibly merge after bulk of genesis stuff is done)

Copy link
Member

Choose a reason for hiding this comment

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

we need this also for some queries I think

proto/ibc/core/channel/v2/channel.proto Show resolved Hide resolved
Comment on lines +26 to +29
// channel unique identifier.
string channel_id = 1;
// packet sequence.
uint64 sequence = 2;
Copy link
Member

Choose a reason for hiding this comment

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

we need this also for some queries I think

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.

Pre-approving pending any changes before merge

}

// PacketSequence defines the genesis type necessary to retrieve and store next send sequences.
message PacketSequence {
Copy link
Member

Choose a reason for hiding this comment

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

Feel like ChannelSequence makes more sense here, but fine we keeping the same as v1 if you want.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will keep same for time being, can rename after getting other stuff in (should be a simple rename). Do think this does make sense to me too.

proto/ibc/core/channel/v2/channel.proto Show resolved Hide resolved
@DimitrisJim DimitrisJim force-pushed the jim/7479-genesis-proto-channel-v2 branch from 68cdd3b to 84ef69b Compare November 6, 2024 10:37
Copy link

sonarcloud bot commented Nov 6, 2024

@DimitrisJim DimitrisJim merged commit e3b46ff into feat/ibc-eureka Nov 6, 2024
66 checks passed
@DimitrisJim DimitrisJim deleted the jim/7479-genesis-proto-channel-v2 branch November 6, 2024 10:50
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.

2 participants