-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 CommunitySpendProposals in migration #7607
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7607 +/- ##
==========================================
+ Coverage 54.19% 54.21% +0.02%
==========================================
Files 610 611 +1
Lines 38363 38461 +98
==========================================
+ Hits 20791 20852 +61
- Misses 15465 15500 +35
- Partials 2107 2109 +2 |
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.
Left one comment.
RouterKey = ModuleName | ||
|
||
// ProposalTypeCommunityPoolSpend defines the type for a CommunityPoolSpendProposal | ||
ProposalTypeCommunityPoolSpend = "CommunityPoolSpend" | ||
) |
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.
why don't we import this from x/distribution/types/keys.go
?
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.
Bez preferred to have migration logic self-contained and not rely on the module itself, ref: #6839 (comment).
Note that we're breaking the above rule for >=0.40, as we're now using proto types from the module for 0.40.
* Add CommunitySpendProposals in migration * Fix lint * Avoid double registration Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Add CommunitySpendProposals in migration * Fix lint * Avoid double registration Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Description
closes: #7601
Add CommunitySpendProposals in v036 distribution, and add correct migration paths until v040.
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