Skip to content

Commit

Permalink
feat: register upgrade handler v1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpioborn committed Jun 3, 2024
1 parent 4fedef0 commit f3109c0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/upgrades/v10/consts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package v10

import (
store "github.com/cosmos/cosmos-sdk/store/types"

"github.com/sge-network/sge/app/upgrades"
)

// UpgradeName defines the on-chain upgrade name for the v1.7.1 upgrade.
const UpgradeName = "v1.7.1"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{
Added: []string{},
Deleted: []string{},
},
}
20 changes: 20 additions & 0 deletions app/upgrades/v10/upgrades.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package v10

import (
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/sge-network/sge/app/keepers"
)

//nolint:staticcheck

Check failure on line 11 in app/upgrades/v10/upgrades.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

directive `//nolint:staticcheck` is unused for linter "staticcheck" (nolintlint)
func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
k *keepers.AppKeepers,

Check failure on line 15 in app/upgrades/v10/upgrades.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

unused-parameter: parameter 'k' seems to be unused, consider removing or renaming it as _ (revive)
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return mm.RunMigrations(ctx, configurator, fromVM)
}
}

0 comments on commit f3109c0

Please sign in to comment.