Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddyMc authored and github-actions[bot] committed Nov 27, 2024
1 parent d652dfb commit 2f1da57
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"OSMOSIS_E2E_SKIP_UPGRADE": "false",
"OSMOSIS_E2E_SKIP_CLEANUP": "true",
"OSMOSIS_E2E_SKIP_STATE_SYNC": "true",
"OSMOSIS_E2E_UPGRADE_VERSION": "v27",
"OSMOSIS_E2E_UPGRADE_VERSION": "v28",
"OSMOSIS_E2E_DEBUG_LOG": "false",
},
"preLaunchTask": "e2e-setup"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ LEDGER_ENABLED ?= true
SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g')
BUILDDIR ?= $(CURDIR)/build
DOCKER := $(shell which docker)
E2E_UPGRADE_VERSION := "v27"
E2E_UPGRADE_VERSION := "v28"
#SHELL := /bin/bash

# Go version to be used in docker images
Expand Down
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ import (
v25 "github.com/osmosis-labs/osmosis/v27/app/upgrades/v25"
v26 "github.com/osmosis-labs/osmosis/v27/app/upgrades/v26"
v27 "github.com/osmosis-labs/osmosis/v27/app/upgrades/v27"
v28 "github.com/osmosis-labs/osmosis/v27/app/upgrades/v28"
v3 "github.com/osmosis-labs/osmosis/v27/app/upgrades/v3"
v4 "github.com/osmosis-labs/osmosis/v27/app/upgrades/v4"
v5 "github.com/osmosis-labs/osmosis/v27/app/upgrades/v5"
Expand Down Expand Up @@ -193,7 +194,7 @@ var (

_ runtime.AppI = (*OsmosisApp)(nil)

Upgrades = []upgrades.Upgrade{v4.Upgrade, v5.Upgrade, v7.Upgrade, v9.Upgrade, v11.Upgrade, v12.Upgrade, v13.Upgrade, v14.Upgrade, v15.Upgrade, v16.Upgrade, v17.Upgrade, v18.Upgrade, v19.Upgrade, v20.Upgrade, v21.Upgrade, v22.Upgrade, v23.Upgrade, v24.Upgrade, v25.Upgrade, v26.Upgrade, v27.Upgrade}
Upgrades = []upgrades.Upgrade{v4.Upgrade, v5.Upgrade, v7.Upgrade, v9.Upgrade, v11.Upgrade, v12.Upgrade, v13.Upgrade, v14.Upgrade, v15.Upgrade, v16.Upgrade, v17.Upgrade, v18.Upgrade, v19.Upgrade, v20.Upgrade, v21.Upgrade, v22.Upgrade, v23.Upgrade, v24.Upgrade, v25.Upgrade, v26.Upgrade, v27.Upgrade, v28.Upgrade}
Forks = []upgrades.Fork{v3.Fork, v6.Fork, v8.Fork, v10.Fork}

// rpcAddressConfigName is the name of the config key that holds the RPC address.
Expand Down
19 changes: 19 additions & 0 deletions app/upgrades/v28/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package v28

import (
"github.com/osmosis-labs/osmosis/v27/app/upgrades"

store "cosmossdk.io/store/types"
)

// UpgradeName defines the on-chain upgrade name for the Osmosis v28 upgrade.
const UpgradeName = "v28"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{
Added: []string{},
Deleted: []string{},
},
}
29 changes: 29 additions & 0 deletions app/upgrades/v28/upgrades.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package v28

import (
"context"

upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/cosmos/cosmos-sdk/types/module"

"github.com/osmosis-labs/osmosis/v27/app/keepers"
"github.com/osmosis-labs/osmosis/v27/app/upgrades"
)

func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
bpm upgrades.BaseAppParamManager,
keepers *keepers.AppKeepers,
) upgradetypes.UpgradeHandler {
return func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
// Run migrations before applying any other state changes.
// NOTE: DO NOT PUT ANY STATE CHANGES BEFORE RunMigrations().
migrations, err := mm.RunMigrations(ctx, configurator, fromVM)
if err != nil {
return nil, err
}

return migrations, nil
}
}
4 changes: 2 additions & 2 deletions tests/e2e/containers/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const (
// It should be uploaded to Docker Hub. OSMOSIS_E2E_SKIP_UPGRADE should be unset
// for this functionality to be used.
previousVersionOsmoRepository = "osmolabs/osmosis"
previousVersionOsmoTag = "26.0.0-alpine"
previousVersionOsmoTag = "27.0.0-alpine"
// Pre-upgrade repo/tag for osmosis initialization (this should be one version below upgradeVersion)
previousVersionInitRepository = "osmolabs/osmosis-e2e-init-chain"
previousVersionInitTag = "main-edaa9483-1727355809"
previousVersionInitTag = "27.0.0"
// Hermes repo/version for relayer
relayerRepository = "informalsystems/hermes"
relayerTag = "1.10.0"
Expand Down

0 comments on commit 2f1da57

Please sign in to comment.