diff --git a/.changeset/entries/3a184bbe897e045ad77c088ea8c1170da446358153bcc5fdbaa33a1d68bc952f.yaml b/.changeset/entries/3a184bbe897e045ad77c088ea8c1170da446358153bcc5fdbaa33a1d68bc952f.yaml deleted file mode 100644 index 1f96b6610b..0000000000 --- a/.changeset/entries/3a184bbe897e045ad77c088ea8c1170da446358153bcc5fdbaa33a1d68bc952f.yaml +++ /dev/null @@ -1,6 +0,0 @@ -type: fix -module: x/posts -pull_request: 978 -description: Fixed the REST endpoints version -backward_compatible: true -date: 2022-07-27T10:02:20.481025995Z diff --git a/.changeset/entries/949c3ef6e6aaea51b5bb253dc3eedc16e6f3b9dd6dfbf0cbb7406719d61285d8.yaml b/.changeset/entries/949c3ef6e6aaea51b5bb253dc3eedc16e6f3b9dd6dfbf0cbb7406719d61285d8.yaml deleted file mode 100644 index c888c54229..0000000000 --- a/.changeset/entries/949c3ef6e6aaea51b5bb253dc3eedc16e6f3b9dd6dfbf0cbb7406719d61285d8.yaml +++ /dev/null @@ -1,6 +0,0 @@ -type: fix -module: x/subspaces -pull_request: 981 -description: Added missing subspaces authorizations migration -backward_compatible: true -date: 2022-07-29T08:13:00.050919588Z diff --git a/.changeset/entries/bf68d0c892177d2c1249cdacc6e9f283c42413d91a6fa33be87a8288ae5d2b0f.yaml b/.changeset/entries/bf68d0c892177d2c1249cdacc6e9f283c42413d91a6fa33be87a8288ae5d2b0f.yaml deleted file mode 100644 index 1628ee61b0..0000000000 --- a/.changeset/entries/bf68d0c892177d2c1249cdacc6e9f283c42413d91a6fa33be87a8288ae5d2b0f.yaml +++ /dev/null @@ -1,6 +0,0 @@ -type: fix -module: x/profiles -pull_request: 980 -description: Added missing params migration -backward_compatible: false -date: 2022-07-29T08:15:08.462224891Z diff --git a/.github/workflows/on-chain-upgrade.yml b/.github/workflows/on-chain-upgrade.yml index 1444519847..aea423ef01 100644 --- a/.github/workflows/on-chain-upgrade.yml +++ b/.github/workflows/on-chain-upgrade.yml @@ -24,7 +24,7 @@ jobs: env: GENESIS_DESMOS_VERSION: "v4.1.0" GENESIS_URL: "https://raw.githubusercontent.com/RiccardoM/desmos-states/master/morpheus-apollo-2-6608740.json" - UPGRADE_NAME: "v4.2.0" + UPGRADE_NAME: "v4.3.0" steps: - name: Checkout 🛎️ uses: actions/checkout@v3 diff --git a/CHANGELOG.md b/CHANGELOG.md index a54b1d6528..82dc8a2d26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). --> +## Version 4.3.0 +### Bug Fixes +#### Profiles +- ([\#980](https://github.com/desmos-labs/desmos/pull/980)) Added missing params migration + +#### Subspaces +- ([\#981](https://github.com/desmos-labs/desmos/pull/981)) Added missing subspaces authorizations migration + +#### Posts +- ([\#978](https://github.com/desmos-labs/desmos/pull/978)) Fixed the REST endpoints version + ## Version 4.2.0 ### Features #### Profiles diff --git a/app/app.go b/app/app.go index 1bae9f3929..5fae53a359 100644 --- a/app/app.go +++ b/app/app.go @@ -21,6 +21,7 @@ import ( v400 "github.com/desmos-labs/desmos/v4/app/upgrades/v400" v410 "github.com/desmos-labs/desmos/v4/app/upgrades/v410" v420 "github.com/desmos-labs/desmos/v4/app/upgrades/v420" + v430 "github.com/desmos-labs/desmos/v4/app/upgrades/v430" profilesv4 "github.com/desmos-labs/desmos/v4/x/profiles/legacy/v4" @@ -1067,6 +1068,7 @@ func (app *DesmosApp) registerUpgradeHandlers() { app.registerUpgrade(v400.NewUpgrade(app.mm, app.configurator)) app.registerUpgrade(v410.NewUpgrade(app.mm, app.configurator)) app.registerUpgrade(v420.NewUpgrade(app.mm, app.configurator)) + app.registerUpgrade(v430.NewUpgrade(app.mm, app.configurator)) } // registerUpgrade registers the given upgrade to be supported by the app diff --git a/app/upgrades/v430/upgrade.go b/app/upgrades/v430/upgrade.go new file mode 100644 index 0000000000..2d36310a4a --- /dev/null +++ b/app/upgrades/v430/upgrade.go @@ -0,0 +1,46 @@ +package v430 + +import ( + storetypes "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/desmos-labs/desmos/v4/app/upgrades" +) + +var ( + _ upgrades.Upgrade = &Upgrade{} +) + +// Upgrade represents the v4.3.0 upgrade +type Upgrade struct { + mm *module.Manager + configurator module.Configurator +} + +// NewUpgrade returns a new Upgrade instance +func NewUpgrade(mm *module.Manager, configurator module.Configurator) *Upgrade { + return &Upgrade{ + mm: mm, + configurator: configurator, + } +} + +// Name implements upgrades.Upgrade +func (u *Upgrade) Name() string { + return "v4.3.0" +} + +// Handler implements upgrades.Upgrade +func (u *Upgrade) Handler() upgradetypes.UpgradeHandler { + return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + // Do nothing here as we don't have anything particular in this update + return u.mm.RunMigrations(ctx, u.configurator, fromVM) + } +} + +// StoreUpgrades implements upgrades.Upgrade +func (u *Upgrade) StoreUpgrades() *storetypes.StoreUpgrades { + return &storetypes.StoreUpgrades{} +}