Skip to content

Commit

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

 This PR includes all the last changes to be done before releasing `v4.2.0` 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)
- [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
- [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 Jul 25, 2022
1 parent ffd6e13 commit 987ec5d
Show file tree
Hide file tree
Showing 13 changed files with 72 additions and 43 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.

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: 30
env:
GENESIS_DESMOS_VERSION: "v4.0.0"
GENESIS_URL: "https://raw.githubusercontent.com/RiccardoM/desmos-states/master/morpheus-apollo-2-6288500.json"
UPGRADE_NAME: "v4.1.0"
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"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
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.2.0
### Features
#### Profiles
- ([\#723](https://github.com/desmos-labs/desmos/pull/723)) Added expiration time to application links
- ([\#887](https://github.com/desmos-labs/desmos/pull/887)) Added the ability to specify per-chain default external links
- ([\#968](https://github.com/desmos-labs/desmos/pull/968)) Added the support for EVM-specific chain link signatures

#### Subspaces
- ([\#974](https://github.com/desmos-labs/desmos/pull/974)) Allow setting initial group members when creating a user group

### Bug Fixes
#### Profiles
- ([\#971](https://github.com/desmos-labs/desmos/pull/971)) `QueryProfile` now returns an error instead of `nil` when a profile is not found

#### Posts
- ([\#964](https://github.com/desmos-labs/desmos/pull/964)) Do not allow to answer a poll after voting period ends

## Version 4.1.0
### Features
#### Posts
Expand Down
2 changes: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
v320 "github.com/desmos-labs/desmos/v4/app/upgrades/v320"
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"

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

Expand Down Expand Up @@ -1065,6 +1066,7 @@ func (app *DesmosApp) registerUpgradeHandlers() {
app.registerUpgrade(v320.NewUpgrade(app.mm, app.configurator))
app.registerUpgrade(v400.NewUpgrade(app.mm, app.configurator))
app.registerUpgrade(v410.NewUpgrade(app.mm, app.configurator))
app.registerUpgrade(v420.NewUpgrade(app.mm, app.configurator))
}

// registerUpgrade registers the given upgrade to be supported by the app
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v410/upgrade.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v400
package v410

import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
Expand Down
46 changes: 46 additions & 0 deletions app/upgrades/v420/upgrade.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package v420

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.2.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.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) {
// 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{}
}
1 change: 1 addition & 0 deletions contrib/images/desmos-cosmovisor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ENV GOBIN /go/bin
# Set working directory for the build
WORKDIR /go/src/github.com/cosmos/cosmos-sdk
RUN git clone https://github.com/cosmos/cosmos-sdk.git /go/src/github.com/cosmos/cosmos-sdk
RUN git checkout tags/cosmovisor/v1.0.0
RUN cd /go/src/github.com/cosmos/cosmos-sdk/cosmovisor
RUN make cosmovisor

Expand Down
4 changes: 2 additions & 2 deletions contrib/images/desmos-cosmovisor/wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fi

# Run the command
if [ -d "$(dirname "${DESMOSDHOME}"/"${LOG}")" ]; then
"${BINARY}" "run" "$@" --home "${DESMOSDHOME}" | tee "${DESMOSDHOME}/${LOG}"
"${BINARY}" "$@" --home "${DESMOSDHOME}" | tee "${DESMOSDHOME}/${LOG}"
else
"${BINARY}" "run" "$@" --home "${DESMOSDHOME}"
"${BINARY}" "$@" --home "${DESMOSDHOME}"
fi

0 comments on commit 987ec5d

Please sign in to comment.