Skip to content

Commit

Permalink
chore: release v4.6.0 (#1025)
Browse files Browse the repository at this point in the history
## Description

This PR prepares the code for the next `v4.6.0` release of Desmos



---

### 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
- [ ] followed the guidelines for [building modules](https://docs.cosmos.network/v0.44/building-modules/intro.html)
- [ ] 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)
- [x] updated the relevant documentation or specification
- [x] reviewed "Files changed" and left comments if necessary
- [x] 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 authored Oct 18, 2022
1 parent fa111ee commit 4797bb5
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 13 deletions.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/on-chain-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.5.0"
UPGRADE_NAME: "v4.6.0"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
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.6.0
### Bug Fixes
#### Subspaces
- ([\#1014](https://github.com/desmos-labs/desmos/pull/1014)) Fixed the argument order when editing a subspace

### Dependencies
- ([\#1020](https://github.com/desmos-labs/desmos/pull/1020)) Updated Cosmos SDK to `v0.45.9`

## Version 4.5.0
### Bug Fixes
#### Relationships
Expand Down
2 changes: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
v430 "github.com/desmos-labs/desmos/v4/app/upgrades/v430"
v441 "github.com/desmos-labs/desmos/v4/app/upgrades/v441"
v450 "github.com/desmos-labs/desmos/v4/app/upgrades/v450"
v460 "github.com/desmos-labs/desmos/v4/app/upgrades/v460"

profilesv4 "github.com/desmos-labs/desmos/v4/x/profiles/legacy/v4"

Expand Down Expand Up @@ -1076,6 +1077,7 @@ func (app *DesmosApp) registerUpgradeHandlers() {
app.registerUpgrade(v430.NewUpgrade(app.mm, app.configurator))
app.registerUpgrade(v441.NewUpgrade(app.mm, app.configurator))
app.registerUpgrade(v450.NewUpgrade(app.mm, app.configurator))
app.registerUpgrade(v460.NewUpgrade(app.mm, app.configurator))
}

// registerUpgrade registers the given upgrade to be supported by the app
Expand Down
46 changes: 46 additions & 0 deletions app/upgrades/v460/upgrade.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package v460

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.6.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.6.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{}
}

0 comments on commit 4797bb5

Please sign in to comment.