Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

WIP: v0.29 to v0.30 genesis port script #260

Closed
wants to merge 7 commits into from
Closed

WIP: v0.29 to v0.30 genesis port script #260

wants to merge 7 commits into from

Conversation

cwgoes
Copy link
Contributor

@cwgoes cwgoes commented Jan 15, 2019

Manually performs the following state modifications:

  • Renames "STAKE" to "stake"
  • Changes sdk.Dec to sdk.Int for validator tokens
  • Sets new auth parameters
  • Alters distribution state to port from v0.29.x ("piggy bank") to v0.30.x ("F1").
  • Renames x/stake to x/staking

Are there any other changes we need to make in genesis?

Probably doesn't quite work, needs to be tested (waiting on a v0.29.x state export).

If you're having trouble exporting, try cosmos/cosmos-sdk#3304.

@cwgoes cwgoes requested a review from zmanian as a code owner January 15, 2019 17:07
@zmanian
Copy link
Member

zmanian commented Jan 15, 2019

Thank you so much for working on this. I kind of assumed I was on my own

@cwgoes
Copy link
Contributor Author

cwgoes commented Jan 16, 2019

The export.json committed here is not final - just a GoS export from this afternoon for testing.

@rigelrozanski
Copy link

rigelrozanski commented Jan 16, 2019

Yes genesis requirements have changed based on cosmos/cosmos-sdk#3243 (comment)

namely fields are different in UnbondingDelegation and Redelegation objects (x/staking/types/delegation.go), to convert from the old struct to the new struct we will need to populate the fields of one Entry in either parent object

@cwgoes
Copy link
Contributor Author

cwgoes commented Jan 29, 2019

Closing in favor of #261; the source branch got screwed up.

@cwgoes cwgoes closed this Jan 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants