From 7bf89aec5b2e6cd6f4ff2fdc41cc2df4418d293a Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Fri, 5 Jul 2024 14:30:03 +0700 Subject: [PATCH] update version --- app/app.go | 8 ++++---- app/upgrades/{v4_1_7 => v4_2_0}/constants.go | 4 ++-- app/upgrades/{v4_1_7 => v4_2_0}/upgrades.go | 2 +- scripts/upgrade_test.sh | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) rename app/upgrades/{v4_1_7 => v4_2_0}/constants.go (75%) rename app/upgrades/{v4_1_7 => v4_2_0}/upgrades.go (98%) diff --git a/app/app.go b/app/app.go index 9be55b4d..c5c07a40 100644 --- a/app/app.go +++ b/app/app.go @@ -159,7 +159,7 @@ import ( v42 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_1_2" v45 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_1_5" v46 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_1_6" - v47 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_1_7" + v420 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_0" "github.com/rakyll/statik/fs" // unnamed import of statik for swagger UI support @@ -1184,8 +1184,8 @@ func (app *MigalooApp) setupUpgradeHandlers() { ) app.UpgradeKeeper.SetUpgradeHandler( - v47.UpgradeName, - v47.CreateUpgradeHandler( + v420.UpgradeName, + v420.CreateUpgradeHandler( app.mm, app.configurator, ), @@ -1203,7 +1203,7 @@ func (app *MigalooApp) setupUpgradeHandlers() { return } - if upgradeInfo.Name == v46.UpgradeName { + if upgradeInfo.Name == v420.UpgradeName { storeUpgrades := &storetypes.StoreUpgrades{ Added: []string{}, Deleted: []string{}, diff --git a/app/upgrades/v4_1_7/constants.go b/app/upgrades/v4_2_0/constants.go similarity index 75% rename from app/upgrades/v4_1_7/constants.go rename to app/upgrades/v4_2_0/constants.go index 9bb9ac25..b4ae8476 100644 --- a/app/upgrades/v4_1_7/constants.go +++ b/app/upgrades/v4_2_0/constants.go @@ -1,7 +1,7 @@ package v4 -// UpgradeName defines the on-chain upgrade name for the Migaloo v4.1.5 upgrade. +// UpgradeName defines the on-chain upgrade name for the Migaloo v4.2.0 upgrade. // this upgrade includes the fix for pfm const ( - UpgradeName = "v4.1.7" + UpgradeName = "v4.2.0" ) diff --git a/app/upgrades/v4_1_7/upgrades.go b/app/upgrades/v4_2_0/upgrades.go similarity index 98% rename from app/upgrades/v4_1_7/upgrades.go rename to app/upgrades/v4_2_0/upgrades.go index efd3c63d..9e898135 100644 --- a/app/upgrades/v4_1_7/upgrades.go +++ b/app/upgrades/v4_2_0/upgrades.go @@ -6,7 +6,7 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) -// CreateUpgradeHandler that migrates the chain from v4.1.5 to v4.1.6 +// CreateUpgradeHandler that migrates the chain from v4.1.5 to v4.2.0 func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, diff --git a/scripts/upgrade_test.sh b/scripts/upgrade_test.sh index 283338a7..841c97bc 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.1.7" +SOFTWARE_UPGRADE_NAME="v4.2.0" ADDITIONAL_PRE_SCRIPTS=${ADDITIONAL_PRE_SCRIPTS:-""} ADDITIONAL_AFTER_SCRIPTS=${ADDITIONAL_AFTER_SCRIPTS:-""}