Skip to content

Commit 22b8f67

Browse files
authored
chore: prepare v7.1.0 (#1325)
## Description Closes: #XXXX This PR preares v7.1.0 version <!-- 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... - [ ] 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 - [ ] 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) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] 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) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a new upgrade handler for version 7.1.0 with enhanced functionality. - **Chores** - Updated dependencies like `cosmos-sdk`, `wasmd`, and `ibc-go` for improved stability and performance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 7da6d2b commit 22b8f67

7 files changed

+54
-24
lines changed

.changeset/entries/2f61b31c2a0efc82ad62e160cf7f20d99521e231389fab25bd9433d01a498442.yaml

-6
This file was deleted.

.changeset/entries/45179d9352064561d86b7ded21f3f8fa5d9bc6063a1e59e34ef251c795dcd119.yaml

-6
This file was deleted.

.changeset/entries/4a8bcefce1839e29ef2044523379927fe4807b3619084f50dd8f22f4b22f00ea.yaml

-6
This file was deleted.

.changeset/entries/6a2bc0788a319a5b56de4908bf20a27982dbe823977d30fb4cb174621658b2d5.yaml

-6
This file was deleted.

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file.
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44
-->
5+
## Version 7.1.0
6+
### Dependencies
7+
- ([\#1323](https://github.com/desmos-labs/desmos/pull/1323)) Bumped `cosmos-sdk` to `v0.47.10`
8+
- ([\#1324](https://github.com/desmos-labs/desmos/pull/1324)) Bumped `wasmd` to `v1.5.2`
9+
- ([\#1322](https://github.com/desmos-labs/desmos/pull/1322)) Bumped `ibc-go` to `v7.4.0`
10+
511
## Version 7.0.1
612
### Dependencies
713
- ([\#1305](https://github.com/desmos-labs/desmos/pull/1305)) Updated `cosmos-sdk` to `v0.47.9`

app/upgrades.go

+2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ package app
22

33
import (
44
v700 "github.com/desmos-labs/desmos/v7/app/upgrades/v700"
5+
v710 "github.com/desmos-labs/desmos/v7/app/upgrades/v710"
56
)
67

78
// registerUpgradeHandlers registers all the upgrade handlers that are supported by the app
89
func (app *DesmosApp) registerUpgradeHandlers() {
910
app.registerUpgrade(v700.NewUpgrade(app.ModuleManager, app.Configurator()))
11+
app.registerUpgrade(v710.NewUpgrade(app.ModuleManager, app.Configurator()))
1012
}

app/upgrades/v710/upgrade.go

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
package v710
2+
3+
import (
4+
storetypes "github.com/cosmos/cosmos-sdk/store/types"
5+
sdk "github.com/cosmos/cosmos-sdk/types"
6+
"github.com/cosmos/cosmos-sdk/types/module"
7+
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
8+
9+
"github.com/desmos-labs/desmos/v7/app/upgrades"
10+
)
11+
12+
var (
13+
_ upgrades.Upgrade = &Upgrade{}
14+
)
15+
16+
// Upgrade represents the v7.1.0 upgrade
17+
type Upgrade struct {
18+
mm *module.Manager
19+
configurator module.Configurator
20+
}
21+
22+
// NewUpgrade returns a new Upgrade instance
23+
func NewUpgrade(mm *module.Manager, configurator module.Configurator) *Upgrade {
24+
return &Upgrade{
25+
mm: mm,
26+
configurator: configurator,
27+
}
28+
}
29+
30+
// Name implements upgrades.Upgrade
31+
func (u *Upgrade) Name() string {
32+
return "v7.1.0"
33+
}
34+
35+
// Handler implements upgrades.Upgrade
36+
func (u *Upgrade) Handler() upgradetypes.UpgradeHandler {
37+
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
38+
// This upgrade does not require any migration, so we can simply return the current version map
39+
return u.mm.RunMigrations(ctx, u.configurator, fromVM)
40+
}
41+
}
42+
43+
// StoreUpgrades implements upgrades.Upgrade
44+
func (u *Upgrade) StoreUpgrades() *storetypes.StoreUpgrades {
45+
return &storetypes.StoreUpgrades{}
46+
}

0 commit comments

Comments
 (0)