From fba0f0e8d86a2d5ac9bfd1946ca2c5e1f556738f Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Fri, 30 Aug 2024 22:35:51 +0700 Subject: [PATCH] feat: add v4.2.4 handler --- app/app.go | 8 ++++---- app/upgrades/{v4_2_3 => v4_2_4}/constants.go | 4 ++-- app/upgrades/{v4_2_3 => v4_2_4}/upgrades.go | 2 +- scripts/upgrade_test.sh | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) rename app/upgrades/{v4_2_3 => v4_2_4}/constants.go (75%) rename app/upgrades/{v4_2_3 => v4_2_4}/upgrades.go (99%) diff --git a/app/app.go b/app/app.go index dbb0f4a1..aecafcd9 100644 --- a/app/app.go +++ b/app/app.go @@ -161,7 +161,7 @@ import ( v46 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_1_6" v420 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_0" v422 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_2" - v423 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_3" + v424 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_4" "github.com/rakyll/statik/fs" // unnamed import of statik for swagger UI support @@ -1203,8 +1203,8 @@ func (app *MigalooApp) setupUpgradeHandlers() { ), ) app.UpgradeKeeper.SetUpgradeHandler( - v423.UpgradeName, - v423.CreateUpgradeHandler( + v424.UpgradeName, + v424.CreateUpgradeHandler( app.mm, app.StakingKeeper, app.configurator, @@ -1223,7 +1223,7 @@ func (app *MigalooApp) setupUpgradeHandlers() { return } - if upgradeInfo.Name == v423.UpgradeName { + if upgradeInfo.Name == v424.UpgradeName { storeUpgrades := &storetypes.StoreUpgrades{ Added: []string{}, Deleted: []string{}, diff --git a/app/upgrades/v4_2_3/constants.go b/app/upgrades/v4_2_4/constants.go similarity index 75% rename from app/upgrades/v4_2_3/constants.go rename to app/upgrades/v4_2_4/constants.go index a7536b9d..eca55134 100644 --- a/app/upgrades/v4_2_3/constants.go +++ b/app/upgrades/v4_2_4/constants.go @@ -1,7 +1,7 @@ package v4 -// UpgradeName defines the on-chain upgrade name for the Migaloo v4.2.3 upgrade. +// UpgradeName defines the on-chain upgrade name for the Migaloo v4.2.4 upgrade. // this upgrade includes the fix for pfm const ( - UpgradeName = "v4.2.3" + UpgradeName = "v4.2.4" ) diff --git a/app/upgrades/v4_2_3/upgrades.go b/app/upgrades/v4_2_4/upgrades.go similarity index 99% rename from app/upgrades/v4_2_3/upgrades.go rename to app/upgrades/v4_2_4/upgrades.go index c79a93d6..db3651d0 100644 --- a/app/upgrades/v4_2_3/upgrades.go +++ b/app/upgrades/v4_2_4/upgrades.go @@ -7,7 +7,7 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) -// CreateUpgradeHandler that migrates the chain from v4.2.2 to v4.2.3 +// CreateUpgradeHandler that migrates the chain from v4.2.2 to v4.2.4 func CreateUpgradeHandler( mm *module.Manager, _ *stakingKeeper.Keeper, diff --git a/scripts/upgrade_test.sh b/scripts/upgrade_test.sh index 16e185b4..5c3a7974 100755 --- a/scripts/upgrade_test.sh +++ b/scripts/upgrade_test.sh @@ -9,7 +9,7 @@ HOME=mytestnet ROOT=$(pwd) DENOM=uwhale CHAIN_ID=localmigaloo -SOFTWARE_UPGRADE_NAME="v4.2.3" +SOFTWARE_UPGRADE_NAME="v4.2.4" ADDITIONAL_PRE_SCRIPTS=${ADDITIONAL_PRE_SCRIPTS:-""} ADDITIONAL_AFTER_SCRIPTS=${ADDITIONAL_AFTER_SCRIPTS:-""}