Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove v0.3.0-rc upgrades #369

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ func (app App) RegisterUpgradeHandlers() {
app.registerUpgrade0_2_1(upgradeInfo)
app.registerUpgrade0_2_2(upgradeInfo)
app.registerUpgrade0_3_0(upgradeInfo)
app.registerUpgrade0_3_0Rc2(upgradeInfo)
app.registerUpgrade0_3_0Rc3(upgradeInfo)
app.registerUpgrade0_3_0Rc4(upgradeInfo)
app.registerUpgrade0_3_0Rc5(upgradeInfo)
app.registerUpgrade0_3_0Rc6(upgradeInfo)
app.registerUpgrade0_3_0Rc7(upgradeInfo)
}

// performs upgrade from v0.1.3 to v0.1.4
Expand Down Expand Up @@ -156,66 +150,6 @@ func (app *App) registerUpgrade0_3_0(upgradeInfo upgradetypes.Plan) {
})
}

func (app *App) registerUpgrade0_3_0Rc2(_ upgradetypes.Plan) {
const planName = "v0.3.0-rc2"
app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("Upgrade handler execution", "name", planName)
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
}

func (app *App) registerUpgrade0_3_0Rc3(_ upgradetypes.Plan) {
const planName = "v0.3.0-rc3"
app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("Upgrade handler execution", "name", planName)
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
}

func (app *App) registerUpgrade0_3_0Rc4(_ upgradetypes.Plan) {
const planName = "v0.3.0-rc4"
app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("Upgrade handler execution", "name", planName)
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
}

func (app *App) registerUpgrade0_3_0Rc5(_ upgradetypes.Plan) {
const planName = "v0.3.0-rc5"
app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("Upgrade handler execution", "name", planName)
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
}

func (app *App) registerUpgrade0_3_0Rc6(_ upgradetypes.Plan) {
const planName = "v0.3.0-rc6"
app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("Upgrade handler execution", "name", planName)
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
}

func (app *App) registerUpgrade0_3_0Rc7(_ upgradetypes.Plan) {
const planName = "v0.3.0-rc7"
app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("Upgrade handler execution", "name", planName)
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
}

// helper function to check if the store loader should be upgraded
func (app *App) storeUpgrade(planName string, ui upgradetypes.Plan, stores storetypes.StoreUpgrades) {
if ui.Name == planName && !app.UpgradeKeeper.IsSkipHeight(ui.Height) {
Expand Down
Loading