Skip to content

Commit

Permalink
Add back v1.0.1 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Dusek committed Apr 27, 2023
1 parent d2beeec commit 7b22778
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ import (
"github.com/onomyprotocol/cosmos-gravity-bridge/module/x/gravity"
gravitykeeper "github.com/onomyprotocol/cosmos-gravity-bridge/module/x/gravity/keeper"
gravitytypes "github.com/onomyprotocol/cosmos-gravity-bridge/module/x/gravity/types"
v1_0_1 "github.com/onomyprotocol/onomy/app/upgrades/v1.0.1"
v1_0_3 "github.com/onomyprotocol/onomy/app/upgrades/v1.0.3"
"github.com/onomyprotocol/onomy/docs"
"github.com/onomyprotocol/onomy/x/dao"
Expand Down Expand Up @@ -326,6 +327,7 @@ func New( // nolint:funlen // app new cosmos func
app.FeeGrantKeeper = feegrantkeeper.NewKeeper(appCodec, keys[feegrant.StoreKey], app.AccountKeeper)
app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp)

app.UpgradeKeeper.SetUpgradeHandler(v1_0_1.Name, v1_0_1.UpgradeHandler)
app.UpgradeKeeper.SetUpgradeHandler(v1_0_3.Name, v1_0_3.UpgradeHandler)

// Create IBC Keeper
Expand Down
1 change: 1 addition & 0 deletions app/upgrades/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ This folder contains sub-folders for every chain upgrade.
## Version History

- v1.0.1 - IBC integration fix
- v1.0.3 - Hyperinflation fix

16 changes: 16 additions & 0 deletions app/upgrades/v1.0.1/upgrade.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Package v1_0_1 is contains chain upgrade of the corresponding version.
package v1_0_1 //nolint:revive,stylecheck // app version

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

// Name is migration name.
const Name = "v1.0.1"

// UpgradeHandler is an x/upgrade handler.
func UpgradeHandler(_ sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
return vm, nil
}

0 comments on commit 7b22778

Please sign in to comment.