test: example upgrade handler and systems test (#24182)

This commit is contained in:
Alex | Interchain Labs
2025-03-29 00:46:08 +00:00
committed by GitHub
parent e85a5c0bc1
commit 056bcd7022
5 changed files with 145 additions and 29 deletions
+6 -5
View File
@@ -4,19 +4,19 @@ import (
"context"
storetypes "cosmossdk.io/store/types"
circuittypes "cosmossdk.io/x/circuit/types"
upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/cosmos/cosmos-sdk/types/module"
epochstypes "github.com/cosmos/cosmos-sdk/x/epochs/types"
)
// UpgradeName defines the on-chain upgrade name for the sample SimApp upgrade
// from v047 to v050.
// from v050 to v053.
//
// NOTE: This upgrade defines a reference implementation of what an upgrade
// could look like when an application is migrating from Cosmos SDK version
// v0.47.x to v0.50.x.
const UpgradeName = "v047-to-v050"
// v0.50.x to v0.53.x.
const UpgradeName = "v050-to-v053"
func (app SimApp) RegisterUpgradeHandlers() {
app.UpgradeKeeper.SetUpgradeHandler(
@@ -34,7 +34,8 @@ func (app SimApp) RegisterUpgradeHandlers() {
if upgradeInfo.Name == UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := storetypes.StoreUpgrades{
Added: []string{
circuittypes.ModuleName,
epochstypes.ModuleName,
// protocolpooltypes.ModuleName,
},
}