Skip to content

Commit

Permalink
initial skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Jul 24, 2020
1 parent e906c01 commit 2ea1842
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/genutil/client/cli/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
v036 "github.com/cosmos/cosmos-sdk/x/genutil/legacy/v0_36"
v038 "github.com/cosmos/cosmos-sdk/x/genutil/legacy/v0_38"
v039 "github.com/cosmos/cosmos-sdk/x/genutil/legacy/v0_39"
v040 "github.com/cosmos/cosmos-sdk/x/genutil/legacy/v0_40"
"github.com/cosmos/cosmos-sdk/x/genutil/types"
)

Expand All @@ -31,6 +32,7 @@ var migrationMap = types.MigrationMap{
"v0.36": v036.Migrate,
"v0.38": v038.Migrate, // NOTE: v0.37 and v0.38 are genesis compatible
"v0.39": v039.Migrate,
"v0.40": v040.Migrate,
}

// GetMigrationCallback returns a MigrationCallback for a given version.
Expand Down
1 change: 1 addition & 0 deletions x/genutil/legacy/v0_39/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/genutil/types"
)

// Migrate migrates exported state from v0.38 to a v0.39 genesis state.
func Migrate(appState types.AppMap) types.AppMap {
v038Codec := codec.New()
cryptocodec.RegisterCrypto(v038Codec)
Expand Down
11 changes: 11 additions & 0 deletions x/genutil/legacy/v0_40/migrate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package v040

import (
"github.com/cosmos/cosmos-sdk/x/genutil/types"
)

// Migrate migrates exported state from v0.39 to a v0.40 genesis state.
func Migrate(appState types.AppMap) types.AppMap {
// TODO
return appState
}

0 comments on commit 2ea1842

Please sign in to comment.