Skip to content

Commit

Permalink
chore: release v6.2.0 (#1255)
Browse files Browse the repository at this point in the history
## Description

This PR prepares the code to release `v6.2.0` of the software.

Closes: DCD-412

<!-- Add a description of the changes that this PR introduces and the
files that
are the most critical to review. -->

---

### Author Checklist

*All items are required. Please add a note to the item if the item is
not applicable and
please add links to any relevant follow up issues.*

I have...

- [x] included the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [x] targeted the correct branch (see [PR
Targeting](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [x] followed the guidelines for [building
modules](https://docs.cosmos.network/v0.44/building-modules/intro.html)
- [x] included the necessary unit and integration
[tests](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#testing)
- [x] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go
code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [x] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable
and please add
your handle next to the items reviewed if you only reviewed selected
items.*

I have...

- [ ] confirmed the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
  • Loading branch information
RiccardoM committed Oct 17, 2023
1 parent a13f2e2 commit d5cc9d5
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 309 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/on-chain-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
GENESIS_DESMOS_VERSION: "v5.2.0"
GENESIS_URL: "https://github.com/desmos-labs/states/raw/main/morpheus-apollo-3-12526100.json"
UPGRADE_NAME: "v6"
GENESIS_DESMOS_VERSION: "v6.0.0"
GENESIS_URL: "https://github.com/desmos-labs/states/raw/main/morpheus-apollo-3-13462545.json"
UPGRADE_NAME: "v6.2.0"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
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 6.2.0
### Bug Fixes
#### Profiles
- ([\#1250](https://github.com/desmos-labs/desmos/pull/1250)) Fixed missing account number when creating an account due to an incoming DTag transfer request

#### Posts
- ([\#1226](https://github.com/desmos-labs/desmos/pull/1226)) Fixed Wasm configuration for incoming post owner transfer requests query

### Dependencies
#### Other
- ([\#1245](https://github.com/desmos-labs/desmos/pull/1245)) Updated `cosmos-sdk` to `v0.47.5`
- ([\#1245](https://github.com/desmos-labs/desmos/pull/1245)) Updated `wasmd` to `v0.43.0`

## Version 6.1.1
### Bug Fixes
#### Other
Expand Down
8 changes: 2 additions & 6 deletions app/upgrades.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package app

import (
v500 "github.com/desmos-labs/desmos/v6/app/upgrades/v500"
v520 "github.com/desmos-labs/desmos/v6/app/upgrades/v520"
v6 "github.com/desmos-labs/desmos/v6/app/upgrades/v6"
v620 "github.com/desmos-labs/desmos/v6/app/upgrades/v620"
)

// registerUpgradeHandlers registers all the upgrade handlers that are supported by the app
func (app *DesmosApp) registerUpgradeHandlers() {
app.registerUpgrade(v500.NewUpgrade(app.ModuleManager, app.Configurator(), app.ParamsKeeper, app.ConsensusParamsKeeper))
app.registerUpgrade(v520.NewUpgrade(app.ModuleManager, app.Configurator(), app.ParamsKeeper, app.ConsensusParamsKeeper))
app.registerUpgrade(v6.NewUpgrade(app.ModuleManager, app.Configurator(), app.StakingKeeper, app.IBCKeeper.ClientKeeper))
app.registerUpgrade(v620.NewUpgrade(app.ModuleManager, app.Configurator()))
}
155 changes: 0 additions & 155 deletions app/upgrades/v500/upgrade.go

This file was deleted.

90 changes: 0 additions & 90 deletions app/upgrades/v6/upgrade.go

This file was deleted.

20 changes: 7 additions & 13 deletions app/upgrades/v520/upgrade.go → app/upgrades/v620/upgrade.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package v500
package v620

import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
consensusparamskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper"
paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

"github.com/desmos-labs/desmos/v6/app/upgrades"
Expand All @@ -15,33 +13,29 @@ var (
_ upgrades.Upgrade = &Upgrade{}
)

// Upgrade represents the v5.2.0 upgrade
// Upgrade represents the v6.2.0 upgrade
type Upgrade struct {
mm *module.Manager
configurator module.Configurator

paramsKeeper paramskeeper.Keeper
consensusParamsKeeper consensusparamskeeper.Keeper
}

// NewUpgrade returns a new Upgrade instance
func NewUpgrade(mm *module.Manager, configurator module.Configurator, pk paramskeeper.Keeper, consensusParamsKeeper consensusparamskeeper.Keeper) *Upgrade {
func NewUpgrade(mm *module.Manager, configurator module.Configurator) *Upgrade {
return &Upgrade{
mm: mm,
configurator: configurator,
paramsKeeper: pk,
consensusParamsKeeper: consensusParamsKeeper,
mm: mm,
configurator: configurator,
}
}

// Name implements upgrades.Upgrade
func (u *Upgrade) Name() string {
return "v5.2.0"
return "v6.2.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) {
// This upgrade does not require any migration, so we can simply return the current version map
return u.mm.RunMigrations(ctx, u.configurator, fromVM)
}
}
Expand Down

0 comments on commit d5cc9d5

Please sign in to comment.