Skip to content

Commit

Permalink
chore: prepare v1.2 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey authored Apr 19, 2023
1 parent b07023d commit f89babb
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 2,065 deletions.
8 changes: 8 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ pull_request_rules:
backport:
branches:
- release/v1.1.x
- name: backport patches to v1.2.x branch
conditions:
- base=main
- label=backport/v1.2.x
actions:
backport:
branches:
- release/v1.2.x
18 changes: 5 additions & 13 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"path/filepath"

v11 "github.com/KYVENetwork/chain/app/upgrades/v1_1"
v12 "github.com/KYVENetwork/chain/app/upgrades/v1_2"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -775,18 +775,10 @@ func NewKYVEApp(
app.SetEndBlocker(app.EndBlocker)

app.UpgradeKeeper.SetUpgradeHandler(
v11.UpgradeName,
v11.CreateUpgradeHandler(
v12.UpgradeName,
v12.CreateUpgradeHandler(
app.mm,
app.configurator,
appCodec,
keys[bundlesTypes.StoreKey],
keys[delegationTypes.StoreKey],
keys[stakersTypes.StoreKey],
app.AccountKeeper,
app.ICAControllerKeeper,
app.ICAHostKeeper,
app.IBCTransferKeeper,
),
)

Expand All @@ -795,8 +787,8 @@ func NewKYVEApp(
panic(err)
}

if upgradeInfo.Name == v11.UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
app.SetStoreLoader(v11.CreateStoreLoader(upgradeInfo.Height))
if upgradeInfo.Name == v12.UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
app.SetStoreLoader(v12.CreateStoreLoader(upgradeInfo.Height))
}

if loadLatest {
Expand Down
58 changes: 0 additions & 58 deletions app/upgrades/v1_1/constants.go

This file was deleted.

Loading

0 comments on commit f89babb

Please sign in to comment.