Skip to content

Commit

Permalink
chore: add v1.4.0 upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed Jun 4, 2024
1 parent e024582 commit 9ff225a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/NibiruChain/nibiru/app/upgrades/v1_1_0"
"github.com/NibiruChain/nibiru/app/upgrades/v1_2_0"
"github.com/NibiruChain/nibiru/app/upgrades/v1_3_0"
"github.com/NibiruChain/nibiru/app/upgrades/v1_4_0"
)

var Upgrades = []upgrades.Upgrade{
Expand All @@ -22,6 +23,7 @@ var Upgrades = []upgrades.Upgrade{
v1_1_0.Upgrade,
v1_2_0.Upgrade,
v1_3_0.Upgrade,
v1_4_0.Upgrade,
}

func (app *NibiruApp) setupUpgrades() {
Expand Down
24 changes: 24 additions & 0 deletions app/upgrades/v1_4_0/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package v1_4_0

import (
"github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

"github.com/NibiruChain/nibiru/app/upgrades"
)

const UpgradeName = "v1.4.0"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return mm.RunMigrations(ctx, cfg, fromVM)
}
},
StoreUpgrades: types.StoreUpgrades{
Added: []string{},
},
}

0 comments on commit 9ff225a

Please sign in to comment.