Skip to content

Commit

Permalink
feat: release v1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kioqq committed Oct 27, 2023
1 parent 26aff69 commit b6e7768
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DIFF_TAG=$(shell git rev-list --tags="v*" --max-count=1 --not $(shell git rev-li
DEFAULT_TAG=$(shell git rev-list --tags="v*" --max-count=1)
# VERSION ?= $(shell echo $(shell git describe --tags $(or $(DIFF_TAG), $(DEFAULT_TAG))) | sed 's/^v//')

VERSION := "1.6.2"
VERSION := "1.6.3"
TMVERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
COMMIT := $(shell git log -1 --format='%H')
LEDGER_ENABLED ?= true
Expand Down
9 changes: 8 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ import (
v160 "github.com/haqq-network/haqq/app/upgrades/v1.6.0"
v161 "github.com/haqq-network/haqq/app/upgrades/v1.6.1"
v162 "github.com/haqq-network/haqq/app/upgrades/v1.6.2"
v163 "github.com/haqq-network/haqq/app/upgrades/v1.6.3"

// NOTE: override ICS20 keeper to support IBC transfers of ERC20 tokens
"github.com/haqq-network/haqq/x/ibc/transfer"
Expand Down Expand Up @@ -180,7 +181,7 @@ func init() {
const (
// Name defines the application binary name
Name = "haqqd"
UpgradeName = "v1.6.2"
UpgradeName = "v1.6.3"
MainnetChainID = "haqq_11235"
)

Expand Down Expand Up @@ -1216,6 +1217,12 @@ func (app *Haqq) setupUpgradeHandlers() {
),
)

// v1.6.3 RPC Balances fix
app.UpgradeKeeper.SetUpgradeHandler(
v163.UpgradeName,
v163.CreateUpgradeHandler(app.mm, app.configurator),
)

// When a planned update height is reached, the old binary will panic
// writing on disk the height and name of the update that triggered it
// This will read that value, and execute the preparations for the upgrade.
Expand Down
6 changes: 6 additions & 0 deletions app/upgrades/v1.6.3/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package v163

const (
// UpgradeName is the shared upgrade plan name for mainnet and testnet
UpgradeName = "v1.6.3"
)
20 changes: 20 additions & 0 deletions app/upgrades/v1.6.3/upgrades.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package v163

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

// CreateUpgradeHandler creates an SDK upgrade handler for v1.6.3
func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
logger := ctx.Logger()
logger.Info("run migration v1.6.3")

return mm.RunMigrations(ctx, configurator, vm)
}
}

0 comments on commit b6e7768

Please sign in to comment.