Skip to content

Commit

Permalink
include upgrade 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jgimeno committed Mar 5, 2024
1 parent 0fd5a86 commit 7fe566f
Show file tree
Hide file tree
Showing 2 changed files with 25 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 @@ -2,6 +2,7 @@ package app

import (
"fmt"
"github.com/NibiruChain/nibiru/app/upgrades/v1_0_3"

upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

Expand All @@ -13,6 +14,7 @@ import (
var Upgrades = []upgrades.Upgrade{
v1_0_1.Upgrade,
v1_0_2.Upgrade,
v1_0_3.Upgrade,
}

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

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.0.3"

// a no-op store upgrade to test the upgrade process and include the newer version cosmos-sdk
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{},
}

0 comments on commit 7fe566f

Please sign in to comment.