8000 chore: prepare v14.0.0 rc4 by MalteHerrmann · Pull Request #1735 · evmos/evmos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: prepare v14.0.0 rc4 #1735

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

Merged
merged 5 commits into from
Aug 30, 2023
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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

## Unreleased
## [v14.0.0-rc4] - 2023-08-30

### State Machine Breaking

- (evm) [#1727](https://github.com/evmos/evmos/pull/1727) Return an error when calling inactive EVM extensions
- (deps) [#1732](https://github.com/evmos/evmos/pull/1732) Bump ibc-go version with error message fix.
- (vesting) [#1730](https://github.com/evmos/evmos/pull/1730) Remove smart contract conversion to `ClawbackVestingAccount`

## [v14.0.0-rc3] - 2023-08-22

Expand All @@ -50,7 +51,6 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Bug Fixes

- (vesting) [#1730](https://github.com/evmos/evmos/pull/1730) Remove smart contract conversion to `ClawbackVestingAccount`
- (proto) [#1713](https://github.com/evmos/evmos/pull/1713) Add proto file for v1 vesting module account
- (deps) [#1718](https://github.com/evmos/evmos/pull/1718) Update rosetta types import.

Expand Down
12 changes: 12 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ import (
v13 "github.com/evmos/evmos/v14/app/upgrades/v13"
v14 "github.com/evmos/evmos/v14/app/upgrades/v14"
"github.com/evmos/evmos/v14/app/upgrades/v14rc2"
"github.com/evmos/evmos/v14/app/upgrades/v14rc4"
v8 "github.com/evmos/evmos/v14/app/upgrades/v8"
v81 "github.com/evmos/evmos/v14/app/upgrades/v8_1"
v82 "github.com/evmos/evmos/v14/app/upgrades/v8_2"
Expand Down Expand Up @@ -1330,6 +1331,15 @@ func (app *Evmos) setupUpgradeHandlers() {
),
)

// v14rc4 upgrade handler
app.UpgradeKeeper.SetUpgradeHandler(
v14rc4.UpgradeName,
v14rc4.CreateUpgradeHandler(
app.mm, app.configurator,
app.EvmKeeper,
),
)

// When a planned update height is reached, the old binary will panic
// writing on disk the height and name of the update that triggered it
// This will read that value, and execute the preparations for the upgrade.
Expand Down Expand Up @@ -1387,6 +1397,8 @@ func (app *Evmos) setupUpgradeHandlers() {
},
}
// !! ATTENTION !!
case v14rc4.UpgradeName:
// no store upgrades
}

if storeUpgrades != nil {
Expand Down
11 changes: 11 additions & 0 deletions app/upgrades/v14rc4/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)

package v14rc4

const (
// UpgradeName is the shared upgrade plan name for mainnet
UpgradeName = "v14.0.0-rc4"
// UpgradeInfo defines the binaries that will be used for the upgrade
UpgradeInfo = `'{"binaries":{"darwin/arm64":"https://github.com/evmos/evmos/releases/download/v14.0.0-rc4/evmos_14.0.0-rc4_Darwin_arm64.tar.gz","darwin/amd64":"https://github.com/evmos/evmos/releases/download/v14.0.0-rc4/evmos_14.0.0-rc4_Darwin_amd64.tar.gz","linux/arm64":"https://github.com/evmos/evmos/releases/download/v14.0.0-rc4/evmos_14.0.0-rc4_Linux_arm64.tar.gz","linux/amd64":"https://github.com/evmos/evmos/releases/download/v14.0.0-rc4/evmos_14.0.0-rc4_Linux_amd64.tar.gz","windows/x86_64":"https://github.com/evmos/evmos/releases/download/v14.0.0-rc4/evmos_14.0.0-rc4_Windows_x86_64.zip"}}'`
)
46 changes: 46 additions & 0 deletions app/upgrades/v14rc4/upgrades.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)

package v14rc4

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
distprecompile "github.com/evmos/evmos/v14/precompiles/distribution"
ics20precompile "github.com/evmos/evmos/v14/precompiles/ics20"
stakingprecompile "github.com/evmos/evmos/v14/precompiles/staking"
evmkeeper "github.com/evmos/evmos/v14/x/evm/keeper"
)

// CreateUpgradeHandler creates an SDK upgrade handler for v13
func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
ek *evmkeeper.Keeper,
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
logger := ctx.Logger().With("upgrade", UpgradeName)

// Disable vesting precompile in the EVM module
//
// NOTE: This only serves testing purposes and should NOT be used in the mainnet handler.
// In order to test the changed behavior of calling non-active EVM extensions, it is necessary
// to disable one to test this.
evmParams := ek.GetParams(ctx)
evmParams.ActivePrecompiles = []string{
stakingprecompile.Precompile{}.Address().String(),
distprecompile.Precompile{}.Address().String(),
ics20precompile.Precompile{}.Address().String(),
}
err := ek.SetParams(ctx, evmParams)
if err != nil {
// log error instead of aborting the upgrade
logger.Error("failed to set EVM params", "err", err)
}

// Leave modules are as-is to avoid running InitGenesis.
logger.Debug("running module migrations ...")
return mm.RunMigrations(ctx, configurator, vm)
}
}
0