Skip to content

Commit

Permalink
Removed legacy and previous upgrade related code
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Oct 10, 2022
1 parent 0c3317e commit 82156ab
Show file tree
Hide file tree
Showing 56 changed files with 0 additions and 1,139 deletions.
23 changes: 0 additions & 23 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
"github.com/cosmos/cosmos-sdk/simapp"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/version"
Expand Down Expand Up @@ -104,7 +103,6 @@ import (
tmdb "github.com/tendermint/tm-db"

hubparams "github.com/sentinel-official/hub/params"
upgrade3 "github.com/sentinel-official/hub/upgrades/upgrade-3"
deposittypes "github.com/sentinel-official/hub/x/deposit/types"
custommint "github.com/sentinel-official/hub/x/mint"
custommintkeeper "github.com/sentinel-official/hub/x/mint/keeper"
Expand Down Expand Up @@ -664,27 +662,6 @@ func NewApp(
}
}

app.upgradeKeeper.SetUpgradeHandler(
upgrade3.Name,
upgrade3.Handler(app.moduleManager, app.configurator, &app.ibcKeeper.ConnectionKeeper),
)

upgradeInfo, err := app.upgradeKeeper.ReadUpgradeInfoFromDisk()
if err != nil {
panic(fmt.Sprintf("failed to read upgrade info from disk %s", err))
}

if upgradeInfo.Name == upgrade3.Name && !app.upgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := storetypes.StoreUpgrades{
Added: []string{
ibcicahosttypes.StoreKey,
wasmtypes.StoreKey,
},
}

app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
}

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
tmos.Exit(err.Error())
Expand Down
12 changes: 0 additions & 12 deletions types/legacy/v0.5/bandwidth.go

This file was deleted.

5 changes: 0 additions & 5 deletions types/legacy/v0.5/status.go

This file was deleted.

13 changes: 0 additions & 13 deletions types/legacy/v0.6/bandwidth.go

This file was deleted.

10 changes: 0 additions & 10 deletions types/legacy/v0.6/status.go

This file was deleted.

16 changes: 0 additions & 16 deletions upgrades/upgrade-1/handler.go

This file was deleted.

5 changes: 0 additions & 5 deletions upgrades/upgrade-1/keys.go

This file was deleted.

222 changes: 0 additions & 222 deletions upgrades/upgrade-2/handler.go

This file was deleted.

5 changes: 0 additions & 5 deletions upgrades/upgrade-2/keys.go

This file was deleted.

39 changes: 0 additions & 39 deletions upgrades/upgrade-3/handler.go

This file was deleted.

5 changes: 0 additions & 5 deletions upgrades/upgrade-3/keys.go

This file was deleted.

Loading

0 comments on commit 82156ab

Please sign in to comment.