Skip to content

Commit dfda1a3

Browse files
Yurist-85kioqq
authored andcommitted
chore: prepare upgrade handler and bump app version
1 parent f72a345 commit dfda1a3

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DIFF_TAG=$(shell git rev-list --tags="v*" --max-count=1 --not $(shell git rev-li
66
DEFAULT_TAG=$(shell git rev-list --tags="v*" --max-count=1)
77
# VERSION ?= $(shell echo $(shell git describe --tags $(or $(DIFF_TAG), $(DEFAULT_TAG))) | sed 's/^v//')
88

9-
VERSION := "1.8.1"
9+
VERSION := "1.8.2"
1010
CBFTVERSION := $(shell go list -m github.com/cometbft/cometbft | sed 's:.* ::')
1111
COMMIT := $(shell git log -1 --format='%H')
1212
LEDGER_ENABLED ?= true

app/app.go

+7
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ import (
175175
v178 "github.com/haqq-network/haqq/app/upgrades/v1.7.8"
176176
v180 "github.com/haqq-network/haqq/app/upgrades/v1.8.0"
177177
v181 "github.com/haqq-network/haqq/app/upgrades/v1.8.1"
178+
v182 "github.com/haqq-network/haqq/app/upgrades/v1.8.2"
178179

179180
// NOTE: override ICS20 keeper to support IBC transfers of ERC20 tokens
180181
"github.com/haqq-network/haqq/x/ibc/transfer"
@@ -1288,6 +1289,12 @@ func (app *Haqq) setupUpgradeHandlers(keys map[string]*storetypes.KVStoreKey) {
12881289
v181.CreateUpgradeHandler(app.mm, app.configurator, app.AccountKeeper, *app.StakingKeeper.Keeper),
12891290
)
12901291

1292+
// v1.8.2 Add partial transfer ownership in UC DAO module, improve integration tests and fix IBC Forwarding
1293+
app.UpgradeKeeper.SetUpgradeHandler(
1294+
v182.UpgradeName,
1295+
v182.CreateUpgradeHandler(app.mm, app.configurator),
1296+
)
1297+
12911298
// When a planned update height is reached, the old binary will panic
12921299
// writing on disk the height and name of the update that triggered it
12931300
// This will read that value, and execute the preparations for the upgrade.

app/upgrades/v1.8.2/constants.go

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package v182
2+
3+
const (
4+
// UpgradeName is the shared upgrade plan name for mainnet
5+
UpgradeName = "v1.8.2"
6+
)

app/upgrades/v1.8.2/upgrades.go

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package v182
2+
3+
import (
4+
sdk "github.com/cosmos/cosmos-sdk/types"
5+
"github.com/cosmos/cosmos-sdk/types/module"
6+
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
7+
)
8+
9+
// CreateUpgradeHandler creates an SDK upgrade handler for v1.8.2
10+
func CreateUpgradeHandler(
11+
mm *module.Manager,
12+
configurator module.Configurator,
13+
) upgradetypes.UpgradeHandler {
14+
return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
15+
logger := ctx.Logger()
16+
logger.Info("run migration v1.8.2")
17+
18+
return mm.RunMigrations(ctx, configurator, vm)
19+
}
20+
}

0 commit comments

Comments
 (0)