Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Post v7.0.0 release maintenance #565

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ Contains bug fixes.
Contains all the PRs that improved the code without changing the behaviors.
-->

## [Unreleased]

### Added

### Changed

### Deprecated

### Removed

### Fixed

### Improvements

## [v7.0.0](https://github.com/archway-network/archway/releases/tag/v7.0.0)

### Added
Expand Down
3 changes: 3 additions & 0 deletions app/app_upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
upgrade4_0_2 "github.com/archway-network/archway/app/upgrades/4_0_2"
upgrade6_0_0 "github.com/archway-network/archway/app/upgrades/6_0_0"
upgrade7_0_0 "github.com/archway-network/archway/app/upgrades/7_0_0"
upgradelatest "github.com/archway-network/archway/app/upgrades/latest"
)

// UPGRADES
Expand All @@ -27,6 +28,8 @@ var Upgrades = []upgrades.Upgrade{
upgrade4_0_2.Upgrade, // v4.0.2
upgrade6_0_0.Upgrade, // v6.0.0
upgrade7_0_0.Upgrade, // v7.0.0

upgradelatest.Upgrade, // latest - This upgrade handler is used for all the current changes to the protocol
}

func (app *ArchwayApp) setupUpgrades() {
Expand Down
32 changes: 32 additions & 0 deletions app/upgrades/latest/upgrades.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package upgradelatest

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/archway-network/archway/app/keepers"
"github.com/archway-network/archway/app/upgrades"
)

// This upgrade handler is used for all the current changes to the protocol

const Name = "latest"
const NameAsciiArt = ""

var Upgrade = upgrades.Upgrade{
UpgradeName: Name,
CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator, keepers keepers.ArchwayKeepers) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
migrations, err := mm.RunMigrations(ctx, cfg, fromVM)
if err != nil {
return nil, err
}

ctx.Logger().Info(upgrades.ArchwayLogo + NameAsciiArt)
return migrations, nil
}
},
StoreUpgrades: storetypes.StoreUpgrades{},
}
4 changes: 2 additions & 2 deletions interchaintest/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
)

const (
initialVersion = "v6.0.3" // The last release of the chain. The one the mainnet is running on
upgradeName = "v7.0.0" // The next upgrade name. Should match the upgrade handler.
initialVersion = "v7.0.0" // The last release of the chain. The one the mainnet is running on
upgradeName = "latest" // The next upgrade name. Should match the upgrade handler.
chainName = "archway"
)

Expand Down
Loading