Skip to content

Commit

Permalink
fix CreationHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 25, 2023
1 parent 885f42f commit fa9e760
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions x/cronos/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,33 @@ type ExportStakingValidator struct {
UnbondingHeight int64 `json:"unbonding_height,string"`
}

type ExportUnbondingDelegationEntry struct {
stakingtypes.UnbondingDelegationEntry
CreationHeight int64 `json:"creation_height,string"`
}

type ExportUnbondingDelegation struct {
stakingtypes.UnbondingDelegation
Entries []ExportUnbondingDelegationEntry `json:"entries"`
}

type ExportRedelegationEntry struct {
stakingtypes.RedelegationEntry
CreationHeight int64 `json:"creation_height,string"`
}

type ExportRedelegation struct {
stakingtypes.Redelegation
Entries []ExportRedelegationEntry `json:"entries"`
}

type ExportStakingGenesisState struct {
stakingtypes.GenesisState
Params ExportStakingParams `json:"params"`
LastValidatorPowers []ExportLastValidatorPower `json:"last_validator_powers"`
Validators []ExportStakingValidator `json:"validators"`
Params ExportStakingParams `json:"params"`
LastValidatorPowers []ExportLastValidatorPower `json:"last_validator_powers"`
Validators []ExportStakingValidator `json:"validators"`
UnbondingDelegations []ExportUnbondingDelegation `json:"unbonding_delegations"`
Redelegations []ExportRedelegation `json:"redelegations"`
}

func Migrate(appState genutiltypes.AppMap, clientCtx client.Context) genutiltypes.AppMap {
Expand Down

0 comments on commit fa9e760

Please sign in to comment.