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:added option extension in the protobuf files #3627

Merged
merged 8 commits into from
Jun 1, 2023

Conversation

vishal-kanna
Copy link
Contributor

@vishal-kanna vishal-kanna commented May 22, 2023

Description

closes: #3624

Commit Message / Changelog Entry

type: commit message

see the guidelines for commit messages. (view raw markdown for examples)


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 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/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@vishal-kanna
Copy link
Contributor Author

@crodriguezvega can you please look into the changes i made , if it is correct ,i'll proceed

@DimitrisJim
Copy link
Contributor

the idea here is to use the option as defined by the sdk, not define one for ibc. I.e where applicable, bring in the option:

https://github.com/cosmos/cosmos-sdk/blob/025e02aeef88455032bc59904193ae449d5b805d/proto/cosmos/bank/v1beta1/tx.proto#L8

and then denote the signer:

https://github.com/cosmos/cosmos-sdk/blob/025e02aeef88455032bc59904193ae449d5b805d/proto/cosmos/bank/v1beta1/tx.proto#L23

hope this helps out!

@vishal-kanna vishal-kanna marked this pull request as ready for review May 23, 2023 05:15
@vishal-kanna vishal-kanna changed the title added msg.proto and used signer in client.proto feat:added option extension in the protobuf files May 23, 2023
@DimitrisJim
Copy link
Contributor

hey @vishal-kanna, due to a recent PR which added some additional proto files (see the mentioned PR), we'd need to rebase and add the option to them too.

To reduce the amount of rebasing you'd need to do, I'd suggest we wait until all PRs that add new messages are merged and then I'll ping you to add the option to the new messages too. How does that sound?

@vishal-kanna
Copy link
Contributor Author

@DimitrisJim it sounds great.Ping me once all the PRs are merged.

# Conflicts:
#	modules/apps/transfer/types/tx.pb.go
#	proto/ibc/applications/transfer/v1/tx.proto
@crodriguezvega
Copy link
Contributor

crodriguezvega commented May 30, 2023

I'd suggest we wait until all PRs that add new messages are merged and then I'll ping you to add the option to the new messages too.

I think I would prefer to merge this PR as is (I have rebased and added the option extension in the missing messages) and then add the extension in the PRs that are already open for the migration of params. Otherwise, we might postpone merging this PR for too long.

Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Thank you, @vishal-kanna. This looks good to me!

@@ -7,6 +7,7 @@ option go_package = "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types";
import "gogoproto/gogo.proto";
import "ibc/applications/fee/v1/fee.proto";
import "ibc/core/channel/v1/channel.proto";
import "cosmos/msg/v1/msg.proto";
Copy link
Contributor

Choose a reason for hiding this comment

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

I remember this is a big nit for Damian, out of order import paths. Though I've opened #3651 in response to this since many of our protos don't respect it.

Copy link
Member

Choose a reason for hiding this comment

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

lol, I won't lose sleep over it

@DimitrisJim
Copy link
Contributor

DimitrisJim commented May 30, 2023

Makes sense to me @crodriguezvega. Note that we might not want to close the original issue as of yet since we still have the new upgrade messages to annotate.

@crodriguezvega
Copy link
Contributor

crodriguezvega commented May 30, 2023

Makes sense to me @crodriguezvega. Note that we might not want to close the original issue as of yet since we still have the new upgrade messages to annotate.

I would still close the issue and keep in mind that from now on we can add the extension to any new message we add. And for channel upgradability, we can open a separate PR to add it to the messages added in that feature branch. :) EDIT: I opened a PR for 04-channel-upgrades.

# Conflicts:
#	modules/core/02-client/types/tx.pb.go
#	proto/ibc/core/client/v1/tx.proto
# Conflicts:
#	modules/core/02-client/types/tx.pb.go
@crodriguezvega crodriguezvega merged commit 861c675 into cosmos:main Jun 1, 2023
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.

Use option extension to signal message signers in protobuf files
5 participants