Skip to content

Commit

Permalink
chore: Post v7.0.0 release maintenance (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
spoo-bar authored Apr 29, 2024
1 parent 6b7bbb5 commit 24ab519
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 2 deletions.
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

0 comments on commit 24ab519

Please sign in to comment.