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(x/distribution): add autocli config query #16218

Merged

Conversation

JeancarloBarrios
Copy link
Contributor

Description

Closes: #16214


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 C:CLI C:x/distribution distribution module related labels May 18, 2023
@github-actions github-actions bot removed the C:CLI label May 24, 2023
@JeancarloBarrios JeancarloBarrios marked this pull request as ready for review May 25, 2023 12:35
@JeancarloBarrios JeancarloBarrios requested a review from a team as a code owner May 25, 2023 12:35
@github-actions github-actions bot added the C:CLI label May 25, 2023
@github-actions

This comment has been minimized.

@github-prbot github-prbot requested review from a team, mark-rushakoff and samricotta and removed request for a team May 25, 2023 14:20
x/distribution/autocli.go Outdated Show resolved Hide resolved
x/distribution/autocli.go Outdated Show resolved Hide resolved
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

the app builds but does not run.

x/distribution/autocli.go Outdated Show resolved Hide resolved
x/distribution/module.go Outdated Show resolved Hide resolved
x/distribution/module.go Outdated Show resolved Hide resolved
x/distribution/autocli.go Outdated Show resolved Hide resolved
x/distribution/client/cli/tx_test.go Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@facundomedica facundomedica left a comment

Choose a reason for hiding this comment

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

lgtm, let's fix the cl and get this merged 👌

@julienrbrt
Copy link
Member

julienrbrt commented Jun 14, 2023

There are still some tests failing if I look at CI.

@JeancarloBarrios
Copy link
Contributor Author

There are still some tests failing if I look at CI.

fixed!

Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

nit can we have a description for these?
image

Unrelated but there is a difference with coins display:
image

Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

tACK. Two nits.

if err != nil {
panic(err)
}
valAddress, err := types.ValAddressFromHex("A58856F0FD53BF058B4909A21AEC019107BA6A58856F0FD53BF058B4909A21AEC019107BA6")
Copy link
Member

@julienrbrt julienrbrt Jun 15, 2023

Choose a reason for hiding this comment

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

This does not give me a good address in an example

simd query distribution slashes cosmosvaloper15ky9du8a2wlstz6fpx3p4mqpjyrm56jcs4hsl4fm7pvtfyy6yxhvqxgs0wnqmanre8 0 100

Maybe let's just simplify the ux and in the example just say [validator address]. That will clean-up some dependency as well.

@julienrbrt julienrbrt added the backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release label Jun 15, 2023
CHANGELOG.md Outdated
@@ -37,6 +37,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
# Changelog

## [Unreleased]
* (x/distriubtion) [#16218](https://github.com/cosmos/cosmos-sdk/pull/16218) Add Autocli config to distribution module.
Copy link
Member

Choose a reason for hiding this comment

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

nit, can it be under the improvement category?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok ok!!

@facundomedica facundomedica added this pull request to the merge queue Jun 16, 2023
Merged via the queue into main with commit 6f32a94 Jun 16, 2023
@facundomedica facundomedica deleted the JeancarloBarrios/distirbuition-autocli-config-query branch June 16, 2023 14:03
mergify bot pushed a commit that referenced this pull request Jun 16, 2023
julienrbrt pushed a commit that referenced this pull request Jun 16, 2023
)

Co-authored-by: Jeancarlo Barrios <JeancarloBarrios@users.noreply.github.com>
@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/distribution distribution module related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Query AutoCliConfig to distribution
3 participants