-
Notifications
You must be signed in to change notification settings - Fork 318
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
Add back the governance module #272
Conversation
app/app.go
Outdated
govRouter := govtypes.NewRouter() | ||
govRouter.AddRoute(govtypes.RouterKey, govtypes.ProposalHandler). | ||
AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)). | ||
// TODO: do we want a community pool at all? If not, does it even make sense to include that NewCommunityPoolSpendProposalHandler? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's discuss the community pool in a separate issue/github dicsussion thread. I'll remove the todo after we have that issue/discusssion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay! Thanks for adding this back in!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, sorry, reviewed my phone and got too excited. setting a block so we don't accidentally merge before we set the gov module account.
What do you mean? |
I think these are all the changes necessary to add back the governance module. While modifying the code, I've realized that we could restructure files/packages slightly to make it more readable/accessible. I think we can slowly move away from the way starport generates and structures everything. But that is orthogonal to this PR. Either way, turning this into ready for review now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
fairly certain that the linter is only failing because of what was already fixed in #273 |
I agree. I like what osmosis does here by separating the modules out into their own file. We could likely do this with even more components of the app. https://github.com/osmosis-labs/osmosis/blob/main/app/modules.go |
Let me rebase to be more certain :)
Yes, exactly. I also thought Osmosis was a good example here! |
4904e71
to
8117d58
Compare
confirmed, thanks |
Codecov Report
@@ Coverage Diff @@
## master #272 +/- ##
=======================================
Coverage 25.74% 25.74%
=======================================
Files 12 12
Lines 1837 1837
=======================================
Hits 473 473
Misses 1326 1326
Partials 38 38 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Description
Basically copy & paste everything gov related from a fresh starport app.
related to: #168
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.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes