diff --git a/CHANGELOG.md b/CHANGELOG.md index 32e967267..27d9c02e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,7 +88,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Bump `github.com/cosmos/ibc-go/v7` from 7.3.0 to 7.3.1 ([#1647](https://github.com/NibiruChain/nibiru/pull/1647)) * Bump `github.com/CosmWasm/wasmd` from 0.40.2 to 0.43.0 ([#1660](https://github.com/NibiruChain/nibiru/pull/1660)) * Bump `github.com/CosmWasm/wasmd` from 0.43.0 to 0.44.0 ([#1666](https://github.com/NibiruChain/nibiru/pull/1666)) -* [#1808](https://github.com/NibiruChain/nibiru/pull/1808) - Bump `cosmos-sdk` to v0.47.9 +* [65c06ba](https://github.com/NibiruChain/nibiru/commit/65c06ba774c260ece942131ad7a93de0e162266e) - Bump `cosmos-sdk` to v0.47.10 ### Bug Fixes diff --git a/app/upgrades.go b/app/upgrades.go index 4bf9b7c20..5a57a758f 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -6,11 +6,11 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" "github.com/NibiruChain/nibiru/app/upgrades" - "github.com/NibiruChain/nibiru/app/upgrades/v1_0_2" + "github.com/NibiruChain/nibiru/app/upgrades/v1_0_1" ) var Upgrades = []upgrades.Upgrade{ - v1_0_2.Upgrade, + v1_0_1.Upgrade, } func (app *NibiruApp) setupUpgrades() { diff --git a/app/upgrades/v1_0_1/constants.go b/app/upgrades/v1_0_1/constants.go new file mode 100644 index 000000000..79444f0b5 --- /dev/null +++ b/app/upgrades/v1_0_1/constants.go @@ -0,0 +1,23 @@ +package v1_0_1 + +import ( + "github.com/cosmos/cosmos-sdk/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + + "github.com/NibiruChain/nibiru/app/upgrades" +) + +const UpgradeName = "v1.0.1" + +// pretty much a no-op store upgrade to test the upgrade process and include the newer version of rocksdb +var Upgrade = upgrades.Upgrade{ + UpgradeName: UpgradeName, + CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator) upgradetypes.UpgradeHandler { + return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + return mm.RunMigrations(ctx, cfg, fromVM) + } + }, + StoreUpgrades: types.StoreUpgrades{}, +} diff --git a/app/upgrades/v1_0_2/constants.go b/app/upgrades/v1_0_2/constants.go index 417e241ef..8b878729c 100644 --- a/app/upgrades/v1_0_2/constants.go +++ b/app/upgrades/v1_0_2/constants.go @@ -11,7 +11,7 @@ import ( const UpgradeName = "v1.0.2" -// pretty much a no-op store upgrade to test the upgrade process and include the newer version of rocksdb + cosmos-sdk +// a no-op store upgrade to test the upgrade process and include the newer version cosmos-sdk var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator) upgradetypes.UpgradeHandler {