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!: migrate x/foundation FoundationTax into x/params #999

Merged
merged 8 commits into from
May 17, 2023

Conversation

0Tech
Copy link
Collaborator

@0Tech 0Tech commented May 10, 2023

Description

This patch would migrate x/foundation FoundationTax into x/params.
This task consists of following items:

  • Remove Msg/UpdateParams.
  • Use "foundation" subspace.

Also, because it's a breaking change,

  • Add in-place migration logic.

Motivation and context

It's a request from the planning team.

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

@0Tech 0Tech added the C:x/foundation x/foundation module label May 10, 2023
@0Tech 0Tech self-assigned this May 10, 2023
@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release/v0.47.x@4f96389). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##             release/v0.47.x     #999   +/-   ##
==================================================
  Coverage                   ?   62.00%           
==================================================
  Files                      ?      656           
  Lines                      ?    78895           
  Branches                   ?        0           
==================================================
  Hits                       ?    48921           
  Misses                     ?    27289           
  Partials                   ?     2685           

@0Tech 0Tech marked this pull request as ready for review May 10, 2023 12:58
@0Tech 0Tech requested review from zemyblue, loin3 and jaeseung-bae May 10, 2023 12:58
@0Tech 0Tech added the A: State Machine Breaking Any changes that result in a different AppState given same genesisState and txList. label May 11, 2023
@0Tech 0Tech requested a review from zemyblue May 15, 2023 13:21
Copy link
Contributor

@jaeseung-bae jaeseung-bae left a comment

Choose a reason for hiding this comment

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

LGTM

@0Tech 0Tech merged commit e9fe906 into Finschia:release/v0.47.x May 17, 2023
@0Tech 0Tech deleted the foundation-update-params branch May 17, 2023 01:00
0Tech added a commit to Finschia/finschia that referenced this pull request May 23, 2023
* Bump github.com/Finschia/finschia-sdk from v0.47.0 to v0.47.1-0.20230517010045-e9fe90608161

* Set an upgrade handler for Daisy

* Update CHANGELOG.md

* Update CHANGELOG.md
zemyblue pushed a commit to zemyblue/finschia-sdk that referenced this pull request Jul 4, 2023
* Remove relevant messages from proto

* Remove relevant logics from x/foundation

* Use x/param

* Add migration logic

* Update docs

* Update CHANGELOG.md

* Update x/foundation/foundation.go

Co-authored-by: zemyblue <[email protected]>

* Revert lint on protos

---------

Co-authored-by: zemyblue <[email protected]>
(cherry picked from commit e9fe906)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: State Machine Breaking Any changes that result in a different AppState given same genesisState and txList. C:x/foundation x/foundation module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants