Skip to content

Commit

Permalink
ibc crosschain migration
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed May 15, 2024
1 parent da3f613 commit 54f131b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions app/setup_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/upgrade/types"
ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
"github.com/zeta-chain/zetacore/pkg/constant"
emissionstypes "github.com/zeta-chain/zetacore/x/emissions/types"
ibccrosschaintypes "github.com/zeta-chain/zetacore/x/ibccrosschain/types"
)
Expand Down Expand Up @@ -105,6 +106,12 @@ func SetupHandlers(app *App) {
Added: []string{capabilitytypes.ModuleName, ibcexported.ModuleName, ibctransfertypes.ModuleName},
},
},
{
index: 1715707436,
storeUpgrade: &storetypes.StoreUpgrades{
Added: []string{ibccrosschaintypes.ModuleName},
},
},
},
}

Expand Down Expand Up @@ -140,16 +147,6 @@ func SetupHandlers(app *App) {
panic(err)
}
if upgradeInfo.Name == constant.Version && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := storetypes.StoreUpgrades{
Added: []string{
consensustypes.ModuleName,
crisistypes.ModuleName,
capabilitytypes.ModuleName,
ibcexported.ModuleName,
ibctransfertypes.ModuleName,
ibccrosschaintypes.ModuleName,
},
}
// Use upgrade store loader for the initial loading of all stores when app starts,
// it checks if version == upgradeHeight and applies store upgrades before loading the stores,
// so that new stores start with the correct version (the current height of chain),
Expand Down

0 comments on commit 54f131b

Please sign in to comment.