Skip to content

Commit 5829b91

Browse files
authored
chore: add upgrade handler for v2.4.0 (#2306)
* chore: update changelog for v2.3.0 * chore: add upgrade handler for v2.4.0 * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md
1 parent b22e24d commit 5829b91

File tree

3 files changed

+36
-8
lines changed

3 files changed

+36
-8
lines changed

CHANGELOG.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ All notable changes to this project will be documented in this file.
3838
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3939
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4040

41-
## [Unreleased]
41+
## Unreleased
42+
43+
## v2.4.0
4244

43-
- [#2271](https://github.com/NibiruChain/nibiru/pull/2271) - fix(ci): update tag-pattern for changelog step in releases
44-
- [#2270](https://github.com/NibiruChain/nibiru/pull/2270) - refactor(app): remove private keeper struct and transient/mem keys from app
4545
- [#2274](https://github.com/NibiruChain/nibiru/pull/2274) - feat(evm)!: update to geth v1.13 with EIP-1153, PRECOMPILE_ADDRS, and transient storage support
4646
- [#2275](https://github.com/NibiruChain/nibiru/pull/2275) - feat(evm)!: update
4747
to geth v1.14 with tracing updates and new StateDB methods.
@@ -50,25 +50,22 @@ to geth v1.14 with tracing updates and new StateDB methods.
5050
setup. Namely, blobs (Cancun) and Verkle additions for zkEVM.
5151
- The jump to v1.14 was necessary to use an up-to-date "cockroach/pebble" DB
5252
dependency and leverage new generics features added in Go 1.23+.
53-
- [#2278](https://github.com/NibiruChain/nibiru/pull/2278) - chore: migrate to cosmossdk.io/mathLegacyDec and cosmossdk.io/math.Int
54-
- [#2288](https://github.com/NibiruChain/nibiru/pull/2288) - chore(ci): add workflow to check for missing upgrade handler
5553
- [#2289](https://github.com/NibiruChain/nibiru/pull/2289) - fix(eth-rpc): error propagation fixes and tests for the methods exposed by Nibiru's EVM JSON-RPC
5654
- [#2290](https://github.com/NibiruChain/nibiru/pull/2290) - refactor: use importas linter for consistent imports
57-
- [#2292](https://github.com/NibiruChain/nibiru/pull/2292) - fix: use tmp directory for pre-instantiating app
58-
- [#2293](https://github.com/NibiruChain/nibiru/pull/2293) - ci(release): pack nibid binary with no enclosing directory
5955
- [#2296](https://github.com/NibiruChain/nibiru/pull/2296) - chore(ci): use shell script for generating changelog in releases
6056
- [#2297](https://github.com/NibiruChain/nibiru/pull/2297) - fix(evm): fix error handling for revert errors
6157
- [#2298](https://github.com/NibiruChain/nibiru/pull/2298) - fix(eth-rpc): clean up error propagation and descriptions in eth namespace
6258
- [#2300](https://github.com/NibiruChain/nibiru/pull/2300) - refactor(eth-rpc): combine rpc/backend and rpc/rpcapi since they essentially one package
6359
- [#2301](https://github.com/NibiruChain/nibiru/pull/2301) - fix(.github): glob patterns broken in nibiru-go filter for dorny/paths-filter
60+
- [#2306](https://github.com/NibiruChain/nibiru/pull/2306) - feat(evm): add v2.4.0 upgrade handler
6461
- [#2303](https://github.com/NibiruChain/nibiru/pull/2303) - test(eth/rpc/rpcapi): increase coverage of the rpcapi package using JSON-RPC calls
6562

6663
### Dependencies
6764

6865
- Bump `golang.org/x/net` from 0.37.0 to 0.39.0. ([#2284](https://github.com/NibiruChain/nibiru/pull/2284))
6966
- Bump `github.com/golang-jwt/jwt/v4` from 4.5.1 to 4.5.2 ([#2294](https://github.com/NibiruChain/nibiru/pull/2294))
7067

71-
## v2.3.0
68+
## [v2.3.0](https://github.com/NibiruChain/nibiru/releases/tag/v2.3.0) - 2025-04-22
7269

7370
- [#2242](https://github.com/NibiruChain/nibiru/pull/2242) - feat(tokenfactory): tx msg SudoSetDenomMetadata
7471
- [#2244](https://github.com/NibiruChain/nibiru/pull/2244) - refactor(test): update how tests are wired with `NewNibiruTestApp`
@@ -90,6 +87,12 @@ to geth v1.14 with tracing updates and new StateDB methods.
9087
- [#2265](https://github.com/NibiruChain/nibiru/pull/2265) - feat: add depinject wiring for x/inflation module
9188
- [#2266](https://github.com/NibiruChain/nibiru/pull/2266) - feat: add depinject wiring for x/evm module
9289
- [#2272](https://github.com/NibiruChain/nibiru/pull/2272) - feat: add depinject wiring for x/tokenfactory module
90+
- [#2271](https://github.com/NibiruChain/nibiru/pull/2271) - fix(ci): update tag-pattern for changelog step in releases
91+
- [#2270](https://github.com/NibiruChain/nibiru/pull/2270) - refactor(app): remove private keeper struct and transient/mem keys from app
92+
- [#2288](https://github.com/NibiruChain/nibiru/pull/2288) - chore(ci): add workflow to check for missing upgrade handler
93+
- [#2278](https://github.com/NibiruChain/nibiru/pull/2278) - chore: migrate to cosmossdk.io/mathLegacyDec and cosmossdk.io/math.Int
94+
- [#2293](https://github.com/NibiruChain/nibiru/pull/2293) - ci(release): pack nibid binary with no enclosing directory
95+
- [#2292](https://github.com/NibiruChain/nibiru/pull/2292) - fix: use tmp directory for pre-instantiating app
9396

9497
## [v2.2.0](https://github.com/NibiruChain/nibiru/releases/tag/v2.2.0) - 2025-03-27
9598

app/upgrades.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"github.com/NibiruChain/nibiru/v2/app/upgrades/v2_1_0"
2828
"github.com/NibiruChain/nibiru/v2/app/upgrades/v2_2_0"
2929
"github.com/NibiruChain/nibiru/v2/app/upgrades/v2_3_0"
30+
"github.com/NibiruChain/nibiru/v2/app/upgrades/v2_4_0"
3031
)
3132

3233
var Upgrades = []upgrades.Upgrade{
@@ -42,6 +43,7 @@ var Upgrades = []upgrades.Upgrade{
4243
v2_1_0.Upgrade,
4344
v2_2_0.Upgrade,
4445
v2_3_0.Upgrade,
46+
v2_4_0.Upgrade,
4547
}
4648

4749
func (app *NibiruApp) setupUpgrades() {

app/upgrades/v2_4_0/constants.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package v2_4_0
2+
3+
import (
4+
"github.com/cosmos/cosmos-sdk/store/types"
5+
sdk "github.com/cosmos/cosmos-sdk/types"
6+
"github.com/cosmos/cosmos-sdk/types/module"
7+
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
8+
clientkeeper "github.com/cosmos/ibc-go/v7/modules/core/02-client/keeper"
9+
10+
"github.com/NibiruChain/nibiru/v2/app/upgrades"
11+
)
12+
13+
const UpgradeName = "v2.4.0"
14+
15+
var Upgrade = upgrades.Upgrade{
16+
UpgradeName: UpgradeName,
17+
CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator, clientKeeper clientkeeper.Keeper) upgradetypes.UpgradeHandler {
18+
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
19+
return mm.RunMigrations(ctx, cfg, fromVM)
20+
}
21+
},
22+
StoreUpgrades: types.StoreUpgrades{},
23+
}

0 commit comments

Comments
 (0)