From c60535a52b8772428ec37c7d04de70e6a46bcacc Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 12 Jan 2024 19:22:53 +0300 Subject: [PATCH] renamed upgrade --- app/app.go | 11 ++++++----- app/upgrades/{nextupgrade => v2.0.2}/constants.go | 4 ++-- app/upgrades/{nextupgrade => v2.0.2}/upgrades.go | 3 ++- 3 files changed, 10 insertions(+), 8 deletions(-) rename app/upgrades/{nextupgrade => v2.0.2}/constants.go (83%) rename app/upgrades/{nextupgrade => v2.0.2}/upgrades.go (96%) diff --git a/app/app.go b/app/app.go index d105b6d22..9050b12d1 100644 --- a/app/app.go +++ b/app/app.go @@ -2,7 +2,6 @@ package app import ( "fmt" - "github.com/neutron-org/neutron/v2/app/upgrades/nextupgrade" "io" "io/fs" "net/http" @@ -22,9 +21,11 @@ import ( "github.com/neutron-org/neutron/v2/docs" "github.com/neutron-org/neutron/v2/app/upgrades" - v030 "github.com/neutron-org/neutron/v2/app/upgrades/v0.3.0" - v044 "github.com/neutron-org/neutron/v2/app/upgrades/v0.4.4" - v200 "github.com/neutron-org/neutron/v2/app/upgrades/v2.0.0" + "github.com/neutron-org/neutron/v2/app/upgrades/v0.3.0" + "github.com/neutron-org/neutron/v2/app/upgrades/v0.4.4" + "github.com/neutron-org/neutron/v2/app/upgrades/v2.0.0" + "github.com/neutron-org/neutron/v2/app/upgrades/v2.0.2" + "github.com/neutron-org/neutron/v2/x/cron" "github.com/CosmWasm/wasmd/x/wasm" @@ -167,7 +168,7 @@ const ( ) var ( - Upgrades = []upgrades.Upgrade{v030.Upgrade, v044.Upgrade, v200.Upgrade, nextupgrade.Upgrade} + Upgrades = []upgrades.Upgrade{v030.Upgrade, v044.Upgrade, v200.Upgrade, v202.Upgrade} // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string diff --git a/app/upgrades/nextupgrade/constants.go b/app/upgrades/v2.0.2/constants.go similarity index 83% rename from app/upgrades/nextupgrade/constants.go rename to app/upgrades/v2.0.2/constants.go index e7c19294f..a01a24522 100644 --- a/app/upgrades/nextupgrade/constants.go +++ b/app/upgrades/v2.0.2/constants.go @@ -1,4 +1,4 @@ -package nextupgrade +package v202 import ( "github.com/neutron-org/neutron/v2/app/upgrades" @@ -6,7 +6,7 @@ import ( const ( // UpgradeName defines the on-chain upgrade name. - UpgradeName = "NextUpgrade" + UpgradeName = "v2.0.2" ) var Upgrade = upgrades.Upgrade{ diff --git a/app/upgrades/nextupgrade/upgrades.go b/app/upgrades/v2.0.2/upgrades.go similarity index 96% rename from app/upgrades/nextupgrade/upgrades.go rename to app/upgrades/v2.0.2/upgrades.go index 236e2e5a2..0fb4dc3f4 100644 --- a/app/upgrades/nextupgrade/upgrades.go +++ b/app/upgrades/v2.0.2/upgrades.go @@ -1,7 +1,8 @@ -package nextupgrade +package v202 import ( "fmt" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module"