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

chore: remove x/gov dependencies in x/distr #16587

Merged
merged 15 commits into from
Jun 19, 2023
Merged

Conversation

atheeshp
Copy link
Contributor

Description

Closes: #16469
ref: #13025


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:x/distribution distribution module related C:x/gov labels Jun 16, 2023
@github-actions github-actions bot added the C:CLI label Jun 16, 2023
@atheeshp atheeshp marked this pull request as ready for review June 16, 2023 12:52
@atheeshp atheeshp requested a review from a team as a code owner June 16, 2023 12:52
@atheeshp atheeshp requested a review from kocubinski June 16, 2023 12:52
@github-actions github-actions bot removed the C:CLI label Jun 19, 2023
@atheeshp atheeshp requested a review from tac0turtle June 19, 2023 07:25
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.

left one question but otherwise lgtm

@@ -32,6 +33,10 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
(*Content)(nil),
&TextProposal{},
)
registry.RegisterImplementations(
Copy link
Member

Choose a reason for hiding this comment

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

are we fine with introducing this dependency?

Copy link
Member

Choose a reason for hiding this comment

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

Gov already depends on distribution so it isn't a new dependency introduction.

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.

lgtm! one nit to ensure the InvalidSigner err has the same message in all modules.

@@ -17,4 +17,5 @@ var (
ErrNoValidatorExists = errors.Register(ModuleName, 12, "validator does not exist")
ErrNoDelegationExists = errors.Register(ModuleName, 13, "delegation does not exist")
ErrInvalidProposalContent = errors.Register(ModuleName, 14, "invalid proposal content")
ErrInvalidSigner = errors.Register(ModuleName, 15, "expected authority account as only signer for proposal message")
Copy link
Member

Choose a reason for hiding this comment

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

Some existing ErrInvalidSigner have a different message, could we standardize them?

@atheeshp atheeshp added this pull request to the merge queue Jun 19, 2023
Merged via the queue into main with commit 7e01488 Jun 19, 2023
@atheeshp atheeshp deleted the ap/remove-distr-gov-deps branch June 19, 2023 11:29
ruthishvitwit added a commit to ruthishvitwit/cosmos-sdk that referenced this pull request Jul 5, 2023
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x/distribution should not depend on x/gov
4 participants