Skip to content

Commit 47b6f47

Browse files
authored
Merge pull request #994 from neutron-org/feat/v8.2.0
release: v8.2.0.
2 parents defda2c + fb4d945 commit 47b6f47

File tree

8 files changed

+98
-5
lines changed

8 files changed

+98
-5
lines changed

app/app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
v800 "github.com/neutron-org/neutron/v8/app/upgrades/v8.0.0"
1515
v800_rc0 "github.com/neutron-org/neutron/v8/app/upgrades/v8.0.0-rc0"
1616
v810 "github.com/neutron-org/neutron/v8/app/upgrades/v8.1.0"
17+
v820 "github.com/neutron-org/neutron/v8/app/upgrades/v8.2.0"
1718
dynamicfeestypes "github.com/neutron-org/neutron/v8/x/dynamicfees/types"
1819
stateverifier "github.com/neutron-org/neutron/v8/x/state-verifier"
1920
svkeeper "github.com/neutron-org/neutron/v8/x/state-verifier/keeper"
@@ -241,6 +242,7 @@ var (
241242
v800_rc0.Upgrade,
242243
v800.Upgrade,
243244
v810.Upgrade,
245+
v820.Upgrade,
244246
}
245247

246248
// DefaultNodeHome default home directories for the application daemon

app/upgrades/v8.2.0/constants.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package v820
2+
3+
import (
4+
storetypes "cosmossdk.io/store/types"
5+
6+
"github.com/neutron-org/neutron/v8/app/upgrades"
7+
)
8+
9+
const (
10+
// UpgradeName defines the on-chain upgrade name.
11+
UpgradeName = "v8.2.0"
12+
)
13+
14+
var Upgrade = upgrades.Upgrade{
15+
UpgradeName: UpgradeName,
16+
CreateUpgradeHandler: CreateUpgradeHandler,
17+
StoreUpgrades: storetypes.StoreUpgrades{},
18+
}

app/upgrades/v8.2.0/upgrades.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package v820
2+
3+
import (
4+
"context"
5+
"fmt"
6+
7+
upgradetypes "cosmossdk.io/x/upgrade/types"
8+
"github.com/cosmos/cosmos-sdk/codec"
9+
sdk "github.com/cosmos/cosmos-sdk/types"
10+
"github.com/cosmos/cosmos-sdk/types/module"
11+
12+
"github.com/neutron-org/neutron/v8/app/upgrades"
13+
)
14+
15+
func CreateUpgradeHandler(
16+
mm *module.Manager,
17+
configurator module.Configurator,
18+
_ *upgrades.UpgradeKeepers,
19+
_ upgrades.StoreKeys,
20+
_ codec.Codec,
21+
) upgradetypes.UpgradeHandler {
22+
return func(c context.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
23+
ctx := sdk.UnwrapSDKContext(c)
24+
25+
ctx.Logger().Info("Starting module migrations...")
26+
27+
vm, err := mm.RunMigrations(ctx, configurator, vm)
28+
if err != nil {
29+
return vm, err
30+
}
31+
32+
ctx.Logger().Info(fmt.Sprintf("Migration {%s} applied", UpgradeName))
33+
return vm, nil
34+
}
35+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package v820_test
2+
3+
import (
4+
"testing"
5+
6+
upgradetypes "cosmossdk.io/x/upgrade/types"
7+
"github.com/stretchr/testify/require"
8+
"github.com/stretchr/testify/suite"
9+
10+
v820 "github.com/neutron-org/neutron/v8/app/upgrades/v8.2.0"
11+
"github.com/neutron-org/neutron/v8/testutil"
12+
)
13+
14+
type UpgradeTestSuite struct {
15+
testutil.IBCConnectionTestSuite
16+
}
17+
18+
func TestKeeperTestSuite(t *testing.T) {
19+
suite.Run(t, new(UpgradeTestSuite))
20+
}
21+
22+
func (suite *UpgradeTestSuite) SetupTest() {
23+
suite.IBCConnectionTestSuite.SetupTest()
24+
}
25+
26+
func (suite *UpgradeTestSuite) TestUpgrade() {
27+
app := suite.GetNeutronZoneApp(suite.ChainA)
28+
ctx := suite.ChainA.GetContext().WithChainID("neutron-1")
29+
t := suite.T()
30+
31+
upgrade := upgradetypes.Plan{
32+
Name: v820.UpgradeName,
33+
Info: "some text here",
34+
Height: 100,
35+
}
36+
require.True(t, app.UpgradeKeeper.HasHandler(upgrade.Name))
37+
require.NoError(t, app.UpgradeKeeper.ApplyUpgrade(ctx, upgrade))
38+
}
0 Bytes
Binary file not shown.

contracts/vesting_investors.wasm

10.5 KB
Binary file not shown.

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/neutron-org/neutron/v8
22

3-
go 1.23.1
3+
go 1.23.2
44

55
toolchain go1.23.4
66

@@ -22,7 +22,7 @@ require (
2222
github.com/cosmos/admin-module/v2 v2.0.0-20240430142959-8b3328d1b1a2
2323
github.com/cosmos/cosmos-db v1.1.1
2424
github.com/cosmos/cosmos-proto v1.0.0-beta.5
25-
github.com/cosmos/cosmos-sdk v0.50.11
25+
github.com/cosmos/cosmos-sdk v0.50.14
2626
github.com/cosmos/go-bip39 v1.0.0
2727
github.com/cosmos/gogoproto v1.7.0
2828
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.2.0
@@ -224,7 +224,7 @@ require (
224224

225225
replace (
226226
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
227-
github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.54.1-neutron
227+
github.com/CosmWasm/wasmd => github.com/neutron-org/wasmd v0.54.3-neutron
228228
github.com/btcsuite/btcd/btcec/v2 => github.com/btcsuite/btcd/btcec/v2 v2.3.2
229229
github.com/cosmos/admin-module/v2 => github.com/neutron-org/admin-module/v2 v2.0.3
230230
github.com/cosmos/cosmos-sdk => github.com/neutron-org/cosmos-sdk v0.50.13-neutron.0.20250512094026-b5afd837c4de

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,8 @@ github.com/neutron-org/cosmos-sdk v0.50.13-neutron.0.20250512094026-b5afd837c4de
843843
github.com/neutron-org/cosmos-sdk v0.50.13-neutron.0.20250512094026-b5afd837c4de/go.mod h1:hrWEFMU1eoXqLJeE6VVESpJDQH67FS1nnMrQIjO2daw=
844844
github.com/neutron-org/feemarket v0.0.0-20250127141246-4ffcf3d43464 h1:5mbzd7sqp8pPYWzIhIYKFovMRBL0ru24N2E6dIWjL0o=
845845
github.com/neutron-org/feemarket v0.0.0-20250127141246-4ffcf3d43464/go.mod h1:DUa6djUsTeMOrbrcIZqWSVxU9IZNCXp96ruaojyBNpc=
846-
github.com/neutron-org/wasmd v0.54.1-neutron h1:aIEOBz00VJmt49azOobu/OnKeHEj/Pm6oGPnQ8Ju1LI=
847-
github.com/neutron-org/wasmd v0.54.1-neutron/go.mod h1:m0ozcN3Zv+MIUck+grRbUegdAPYgAyEuVFt05H1qARc=
846+
github.com/neutron-org/wasmd v0.54.3-neutron h1:so+figs8104F32Ttx0Ik6ThNQ0iC9uNzLxfOXBtcsI0=
847+
github.com/neutron-org/wasmd v0.54.3-neutron/go.mod h1:2FX9+3mf0FmlRHUoUwF8Vg/kkNdtey9TogE5N6nX4Ng=
848848
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
849849
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
850850
github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=

0 commit comments

Comments
 (0)