29 lines
651 B
Go
29 lines
651 B
Go
package keeper
|
|
|
|
import "context"
|
|
|
|
// Migrator is a struct for handling in-place store migrations.
|
|
type Migrator struct {
|
|
keeper BaseKeeper
|
|
}
|
|
|
|
// NewMigrator returns a new Migrator.
|
|
func NewMigrator(keeper BaseKeeper) Migrator {
|
|
return Migrator{keeper: keeper}
|
|
}
|
|
|
|
// Migrate1to2 migrates from version 1 to 2.
|
|
func (m Migrator) Migrate1to2(ctx context.Context) error {
|
|
return nil
|
|
}
|
|
|
|
// Migrate2to3 migrates x/bank storage from version 2 to 3.
|
|
func (m Migrator) Migrate2to3(ctx context.Context) error {
|
|
return nil
|
|
}
|
|
|
|
// Migrate3to4 migrates x/bank storage from version 3 to 4.
|
|
func (m Migrator) Migrate3to4(ctx context.Context) error {
|
|
return nil
|
|
}
|