-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Closes: #XXXX <!-- 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 - [ ] 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
Showing
7 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
.changeset/entries/3a184bbe897e045ad77c088ea8c1170da446358153bcc5fdbaa33a1d68bc952f.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
.changeset/entries/949c3ef6e6aaea51b5bb253dc3eedc16e6f3b9dd6dfbf0cbb7406719d61285d8.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
.changeset/entries/bf68d0c892177d2c1249cdacc6e9f283c42413d91a6fa33be87a8288ae5d2b0f.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package v430 | ||
|
||
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.3.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.3.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{} | ||
} |