Skip to content

Commit

Permalink
chore!: release v5.0.0 (#1131)
Browse files Browse the repository at this point in the history
## Description

This PR prepares the Desmos Core codebase for the `v5.0.0` release.

To do this, the following changes have been made: 

1. bump the Go package name to `github.com/desmos-labs/desmos/v5`
2. update the on-chain upgrade workflow to test the `v5.0.0` upgrade handler
3. updated the `CHANGELOG.md` file with the new changes 
4. deleted all the changeset entries

Depends-On: #1132
Depends-On: #1133

[DCD-348](https://forbole.atlassian.net/browse/DCD-348)

---

### 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
- [x] 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))
- [x] 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)
- [ ] 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)

[DCD-348]: https://forbole.atlassian.net/browse/DCD-348?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
  • Loading branch information
RiccardoM authored May 16, 2023
1 parent e6ab946 commit 0cd5379
Show file tree
Hide file tree
Showing 583 changed files with 3,102 additions and 4,849 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.

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.

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 4 additions & 4 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.6.3"
GENESIS_URL: "https://raw.githubusercontent.com/RiccardoM/desmos-states/master/morpheus-apollo-3-9238240.json"
UPGRADE_NAME: "v4.7.1"
GENESIS_DESMOS_VERSION: "v4.8.1"
GENESIS_URL: "https://github.com/desmos-labs/states/raw/main/morpheus-apollo-3-10883000.json"
UPGRADE_NAME: "v5.0.0"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
Expand All @@ -46,4 +46,4 @@ jobs:
- name: Submit upgrade ✅
run: |
./contrib/upgrade_testnet/submit_upgrade_proposal.sh 4 $UPGRADE_NAME 50
./contrib/upgrade_testnet/submit_upgrade_proposal.sh 4 $GENESIS_DESMOS_VERSION $UPGRADE_NAME 50
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,38 @@
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 5.0.0
### Features
#### Fees
- ([\#1135](https://github.com/desmos-labs/desmos/pull/1135)) Removed the `x/fees` module

#### Subspaces
- ([\#1067](https://github.com/desmos-labs/desmos/pull/1067)) Changed how subspace treasury addresses are generated and managed
- ([\#1071](https://github.com/desmos-labs/desmos/pull/1071)) Implemented the ability for subspace admins to grant authorizations on behalf of the subspace treasury

#### Other
- ([\#1059](https://github.com/desmos-labs/desmos/pull/1059)) Added proper support for Ledger devices inside the `sign` command
- ([\#1081](https://github.com/desmos-labs/desmos/pull/1081)) Added the IBC fee middleware
- ([\#1082](https://github.com/desmos-labs/desmos/pull/1082)) Added the InterChain Accounts module
- ([\#1083](https://github.com/desmos-labs/desmos/pull/1083)) Added missing stargate querier accepted list

### Bug Fixes
#### Subspaces
- ([\#1074](https://github.com/desmos-labs/desmos/pull/1074)) Added missing `MsgDeleteSubspace` Amino registration
- ([\#1139](https://github.com/desmos-labs/desmos/pull/1139)) Made it impossible to use the `DefaultUserGroup` to another section

#### Posts
- ([\#1075](https://github.com/desmos-labs/desmos/pull/1075)) Changed `Poll_ProvidedAnswer` attachments type from `Attachment` to `AttachmentContent`

#### Other
- ([\#1069](https://github.com/desmos-labs/desmos/pull/1069)) Registered missing Wasm snapshotter extension

### Dependencies
#### Other
- ([\#1079](https://github.com/desmos-labs/desmos/pull/1079)) Updated `ibc-go` to `v4.3.0`
- ([\#1124](https://github.com/desmos-labs/desmos/pull/1124)) Updated `cosmos-sdk` to `v0.47.2`
- ([\#1133](https://github.com/desmos-labs/desmos/pull/1133)) Updated `wasmd` to `v0.40.0-rc.1`

## Version 4.8.1
### Dependencies
#### Other
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ build-docker-desmosnode:
# Setups 4 folders representing each one the genesis state of a testnet node
setup-localnet: build-linux
if ! [ -f build/node0/desmos/config/genesis.json ]; then $(BUILDDIR)/desmos testnet \
-o ./build --starting-ip-address 192.168.10.2 --keyring-backend=test \
-o ./build --starting-ip-address 192.168.255.2 --keyring-backend=test \
--v=$(if $(NODES),$(NODES),4) \
--gentx-coin-denom=$(if $(COIN_DENOM),$(COIN_DENOM),"stake") \
--minimum-gas-prices="0.000006$(if $(COIN_DENOM),$(COIN_DENOM),"stake")"; fi
Expand Down
6 changes: 3 additions & 3 deletions app/ante.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package app

import (
errors "cosmossdk.io/errors"
"cosmossdk.io/errors"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"

subspaceante "github.com/desmos-labs/desmos/v4/x/subspaces/ante"
subspaceskeeper "github.com/desmos-labs/desmos/v4/x/subspaces/keeper"
subspaceante "github.com/desmos-labs/desmos/v5/x/subspaces/ante"
subspaceskeeper "github.com/desmos-labs/desmos/v5/x/subspaces/keeper"

wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmTypes "github.com/CosmWasm/wasmd/x/wasm/types"
Expand Down
58 changes: 25 additions & 33 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,25 @@ import (

"github.com/gorilla/mux"

"github.com/desmos-labs/desmos/v4/x/reactions"
reactionstypes "github.com/desmos-labs/desmos/v4/x/reactions/types"
"github.com/desmos-labs/desmos/v5/x/reactions"
reactionstypes "github.com/desmos-labs/desmos/v5/x/reactions/types"

postskeeper "github.com/desmos-labs/desmos/v4/x/posts/keeper"
poststypes "github.com/desmos-labs/desmos/v4/x/posts/types"
postskeeper "github.com/desmos-labs/desmos/v5/x/posts/keeper"
poststypes "github.com/desmos-labs/desmos/v5/x/posts/types"

"github.com/desmos-labs/desmos/v4/app/upgrades"
v4 "github.com/desmos-labs/desmos/v4/app/upgrades/v4"
v471 "github.com/desmos-labs/desmos/v4/app/upgrades/v471"
v480 "github.com/desmos-labs/desmos/v4/app/upgrades/v480"
v500 "github.com/desmos-labs/desmos/v4/app/upgrades/v500"
v510 "github.com/desmos-labs/desmos/v4/app/upgrades/v510"
"github.com/desmos-labs/desmos/v5/app/upgrades"
v500 "github.com/desmos-labs/desmos/v5/app/upgrades/v500"

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

"github.com/cosmos/cosmos-sdk/runtime"
"github.com/cosmos/cosmos-sdk/server"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
"github.com/cosmos/cosmos-sdk/version"

"github.com/desmos-labs/desmos/v4/x/posts"
"github.com/desmos-labs/desmos/v4/x/relationships"
relationshipstypes "github.com/desmos-labs/desmos/v4/x/relationships/types"
"github.com/desmos-labs/desmos/v5/x/posts"
"github.com/desmos-labs/desmos/v5/x/relationships"
relationshipstypes "github.com/desmos-labs/desmos/v5/x/relationships/types"

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1"
Expand Down Expand Up @@ -124,21 +120,21 @@ import (
"github.com/cosmos/cosmos-sdk/x/upgrade"
upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client"

"github.com/desmos-labs/desmos/v4/x/profiles"
profileskeeper "github.com/desmos-labs/desmos/v4/x/profiles/keeper"
profilestypes "github.com/desmos-labs/desmos/v4/x/profiles/types"
reactionskeeper "github.com/desmos-labs/desmos/v4/x/reactions/keeper"
relationshipskeeper "github.com/desmos-labs/desmos/v4/x/relationships/keeper"
"github.com/desmos-labs/desmos/v4/x/reports"
reportskeeper "github.com/desmos-labs/desmos/v4/x/reports/keeper"
reportstypes "github.com/desmos-labs/desmos/v4/x/reports/types"
"github.com/desmos-labs/desmos/v4/x/subspaces"
subspaceskeeper "github.com/desmos-labs/desmos/v4/x/subspaces/keeper"
subspacestypes "github.com/desmos-labs/desmos/v4/x/subspaces/types"

"github.com/desmos-labs/desmos/v4/x/supply"
supplykeeper "github.com/desmos-labs/desmos/v4/x/supply/keeper"
supplytypes "github.com/desmos-labs/desmos/v4/x/supply/types"
"github.com/desmos-labs/desmos/v5/x/profiles"
profileskeeper "github.com/desmos-labs/desmos/v5/x/profiles/keeper"
profilestypes "github.com/desmos-labs/desmos/v5/x/profiles/types"
reactionskeeper "github.com/desmos-labs/desmos/v5/x/reactions/keeper"
relationshipskeeper "github.com/desmos-labs/desmos/v5/x/relationships/keeper"
"github.com/desmos-labs/desmos/v5/x/reports"
reportskeeper "github.com/desmos-labs/desmos/v5/x/reports/keeper"
reportstypes "github.com/desmos-labs/desmos/v5/x/reports/types"
"github.com/desmos-labs/desmos/v5/x/subspaces"
subspaceskeeper "github.com/desmos-labs/desmos/v5/x/subspaces/keeper"
subspacestypes "github.com/desmos-labs/desmos/v5/x/subspaces/types"

"github.com/desmos-labs/desmos/v5/x/supply"
supplykeeper "github.com/desmos-labs/desmos/v5/x/supply/keeper"
supplytypes "github.com/desmos-labs/desmos/v5/x/supply/types"

authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
Expand Down Expand Up @@ -1232,11 +1228,7 @@ func (app *DesmosApp) RegisterNodeService(clientCtx client.Context) {

// registerUpgradeHandlers registers all the upgrade handlers that are supported by the app
func (app *DesmosApp) registerUpgradeHandlers() {
app.registerUpgrade(v471.NewUpgrade(app.mm, app.configurator, app.BankKeeper))
app.registerUpgrade(v4.NewUpgrade(app.mm, app.configurator, app.BankKeeper))
app.registerUpgrade(v480.NewUpgrade(app.mm, app.configurator))
app.registerUpgrade(v500.NewUpgrade(app.mm, app.configurator, app.ParamsKeeper, app.ConsensusParamsKeeper))
app.registerUpgrade(v510.NewUpgrade(app.mm, app.configurator))
}

// registerUpgrade registers the given upgrade to be supported by the app
Expand Down
4 changes: 2 additions & 2 deletions app/desmos/cmd/chainlink/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package builder
import (
"github.com/cosmos/cosmos-sdk/codec"

"github.com/desmos-labs/desmos/v4/app/desmos/cmd/chainlink/types"
"github.com/desmos-labs/desmos/v4/x/profiles/client/utils"
"github.com/desmos-labs/desmos/v5/app/desmos/cmd/chainlink/types"
"github.com/desmos-labs/desmos/v5/x/profiles/client/utils"
)

// ChainLinkJSONBuilder allows to build a ChainLinkJSON instance
Expand Down
10 changes: 5 additions & 5 deletions app/desmos/cmd/chainlink/builder/multi/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"github.com/cosmos/cosmos-sdk/types/tx/signing"
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"

"github.com/desmos-labs/desmos/v4/app"
"github.com/desmos-labs/desmos/v4/app/desmos/cmd/chainlink/getter"
"github.com/desmos-labs/desmos/v4/app/desmos/cmd/chainlink/types"
"github.com/desmos-labs/desmos/v4/x/profiles/client/utils"
profilestypes "github.com/desmos-labs/desmos/v4/x/profiles/types"
"github.com/desmos-labs/desmos/v5/app"
"github.com/desmos-labs/desmos/v5/app/desmos/cmd/chainlink/getter"
"github.com/desmos-labs/desmos/v5/app/desmos/cmd/chainlink/types"
"github.com/desmos-labs/desmos/v5/x/profiles/client/utils"
profilestypes "github.com/desmos-labs/desmos/v5/x/profiles/types"
)

// AccountChainLinkJSONBuilder implements the ChainLinkJSONBuilder for multi signature accounts
Expand Down
8 changes: 4 additions & 4 deletions app/desmos/cmd/chainlink/builder/single/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/desmos-labs/desmos/v4/app/desmos/cmd/chainlink/getter"
"github.com/desmos-labs/desmos/v4/app/desmos/cmd/chainlink/types"
"github.com/desmos-labs/desmos/v4/x/profiles/client/utils"
profilestypes "github.com/desmos-labs/desmos/v4/x/profiles/types"
"github.com/desmos-labs/desmos/v5/app/desmos/cmd/chainlink/getter"
"github.com/desmos-labs/desmos/v5/app/desmos/cmd/chainlink/types"
"github.com/desmos-labs/desmos/v5/x/profiles/client/utils"
profilestypes "github.com/desmos-labs/desmos/v5/x/profiles/types"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions app/desmos/cmd/chainlink/create_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (

"github.com/cosmos/cosmos-sdk/client"

"github.com/desmos-labs/desmos/v4/app/desmos/cmd/chainlink/builder"
chainlinktypes "github.com/desmos-labs/desmos/v4/app/desmos/cmd/chainlink/getter"
"github.com/desmos-labs/desmos/v5/app/desmos/cmd/chainlink/builder"
chainlinktypes "github.com/desmos-labs/desmos/v5/app/desmos/cmd/chainlink/getter"

"github.com/spf13/cobra"

"github.com/desmos-labs/desmos/v4/app"
"github.com/desmos-labs/desmos/v5/app"
)

// GetCreateChainLinkJSON returns the command allowing to generate the chain link JSON
Expand Down
4 changes: 2 additions & 2 deletions app/desmos/cmd/chainlink/create_json_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"testing"

"github.com/desmos-labs/desmos/v4/app/desmos/cmd/chainlink/types"
"github.com/desmos-labs/desmos/v5/app/desmos/cmd/chainlink/types"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
Expand All @@ -17,7 +17,7 @@ import (
authclient "github.com/cosmos/cosmos-sdk/x/auth/client"
"github.com/stretchr/testify/suite"

"github.com/desmos-labs/desmos/v4/app"
"github.com/desmos-labs/desmos/v5/app"
)

func TestCreateJSONChainLinkSuite(t *testing.T) {
Expand Down
Loading

0 comments on commit 0cd5379

Please sign in to comment.