-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29b85b7
commit 41e0339
Showing
6 changed files
with
27 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package keeper | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
v042 "github.com/cosmos/cosmos-sdk/x/bank/legacy/v042" | ||
) | ||
|
||
// MigrationKeeper is an interface that the keeper implements for handling | ||
// in-place store migrations. | ||
type MigrationKeeper interface { | ||
// Migrate1 migrates the store from version 1 to 2. | ||
Migrate1(ctx sdk.Context) error | ||
} | ||
|
||
var _ MigrationKeeper = (*BaseKeeper)(nil) | ||
|
||
// Migrate1 implements MigrationKeeper.Migrate1 method. | ||
func (keeper BaseKeeper) Migrate1(ctx sdk.Context) error { | ||
return v042.MigrateStore(ctx, keeper.storeKey) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters