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(auth,client/v2): add validator address codec #16768

Merged
merged 15 commits into from
Jun 30, 2023

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Jun 29, 2023

Description

Closes: #16767, ref #13140

  • add validator address codec in auth
  • use that address codec in staking instead of using global prefix
  • use that address codec in client/v2
  • update proto annotation properly for validator address

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@github-actions github-actions bot added the C:CLI label Jun 29, 2023
@julienrbrt julienrbrt added the backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release label Jun 29, 2023
@julienrbrt julienrbrt changed the title feat(client/v2): support validator addresses feat(auth,client/v2): add validator address codec Jun 29, 2023
@github-actions github-actions bot removed the C:x/tx label Jun 29, 2023
Copy link
Member Author

@julienrbrt julienrbrt Jun 29, 2023

Choose a reason for hiding this comment

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

I'll be tagging a new API version after this PR so we can use that in release/v0.50.x as well

@julienrbrt julienrbrt marked this pull request as ready for review June 29, 2023 23:56
@julienrbrt julienrbrt requested a review from a team as a code owner June 29, 2023 23:56
@github-prbot github-prbot requested review from a team, alexanderbez and facundomedica and removed request for a team June 29, 2023 23:56
@julienrbrt
Copy link
Member Author

I'll fix the tests tomorrow, but tested with simapp that it works.

@@ -184,7 +184,7 @@ message QueryValidatorDelegationsResponse {
// Query/ValidatorUnbondingDelegations RPC method
message QueryValidatorUnbondingDelegationsRequest {
// validator_addr defines the validator address to query for.
string validator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_addr = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"];
Copy link
Member

Choose a reason for hiding this comment

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

What's the effect of this, in other words, where do we consume this changed option? Looking at generated protos only the packed message descriptors have changed.

Copy link
Member Author

@julienrbrt julienrbrt Jun 30, 2023

Choose a reason for hiding this comment

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

Copy link
Member

@kocubinski kocubinski left a comment

Choose a reason for hiding this comment

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

utACK. Nice use of a type alias in depinject!

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

thanks for knocking this out!!

@julienrbrt julienrbrt enabled auto-merge June 30, 2023 08:23
@julienrbrt julienrbrt added this pull request to the merge queue Jun 30, 2023
Merged via the queue into main with commit 02b7607 Jun 30, 2023
@julienrbrt julienrbrt deleted the julien/autocli-validator branch June 30, 2023 09:47
mergify bot pushed a commit that referenced this pull request Jun 30, 2023
(cherry picked from commit 02b7607)

# Conflicts:
#	CHANGELOG.md
#	client/v2/go.mod
#	client/v2/go.sum
#	go.mod
#	go.sum
#	simapp/go.mod
#	simapp/go.sum
#	tests/go.mod
#	tests/go.sum
julienrbrt added a commit that referenced this pull request Jun 30, 2023
@faddat faddat mentioned this pull request Nov 8, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release C:CLI C:x/auth C:x/group C:x/staking Type: CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support validator addresses in autocli
3 participants