From 2ea18423b3b2d5885639fb4548ebdea53d6ea2bf Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Fri, 24 Jul 2020 18:26:57 +0200 Subject: [PATCH] initial skeleton --- x/genutil/client/cli/migrate.go | 2 ++ x/genutil/legacy/v0_39/migrate.go | 1 + x/genutil/legacy/v0_40/migrate.go | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 x/genutil/legacy/v0_40/migrate.go diff --git a/x/genutil/client/cli/migrate.go b/x/genutil/client/cli/migrate.go index 2ac83338394f..c0453e8344cd 100644 --- a/x/genutil/client/cli/migrate.go +++ b/x/genutil/client/cli/migrate.go @@ -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" ) @@ -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. diff --git a/x/genutil/legacy/v0_39/migrate.go b/x/genutil/legacy/v0_39/migrate.go index 6c285bdd8efc..8c0c00e9e324 100644 --- a/x/genutil/legacy/v0_39/migrate.go +++ b/x/genutil/legacy/v0_39/migrate.go @@ -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) diff --git a/x/genutil/legacy/v0_40/migrate.go b/x/genutil/legacy/v0_40/migrate.go new file mode 100644 index 000000000000..a692bebafa0c --- /dev/null +++ b/x/genutil/legacy/v0_40/migrate.go @@ -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 +}