Skip to content

Commit

Permalink
chore: cleanup post v3.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey authored and agouin committed Sep 26, 2023
1 parent 5ded383 commit 7ee48b5
Show file tree
Hide file tree
Showing 14 changed files with 102 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
project_url = "https://github.com/strangelove-ventures/noble"
5 changes: 5 additions & 0 deletions .changelog/epilogue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

## Previous Changes

This changelog has yet to be fully initialized. For previous verions please refer to the release notes for a summary of changes.
Empty file added .changelog/unreleased/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions .changelog/unreleased/features/215-rosetta-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Support for Coinbase's [Rosetta API](https://docs.cloud.coinbase.com/rosetta/docs/welcome). ([#215](https://github.com/strangelove-ventures/noble/pull/215))
1 change: 1 addition & 0 deletions .changelog/v3.1.0/features/235-ibc-authority.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Include support for IBC inside the ParamAuthority. ([#235](https://github.com/strangelove-ventures/noble/pull/235))
1 change: 1 addition & 0 deletions .changelog/v3.1.0/improvements/234-module-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Align module path with Go's [naming convention](https://go.dev/doc/modules/version-numbers#major-version). ([#234](https://github.com/strangelove-ventures/noble/pull/234))
5 changes: 5 additions & 0 deletions .changelog/v3.1.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*Sep 15, 2023*

This is a minor release to the v3 Radon line.

In response to multiple IBC channels expiring on Noble's mainnet network, it was decided to expand the functionality of Noble's Maintenance Multisig to include IBC upgrade functionality (allowing expired clients to be changed).
8 changes: 8 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ pull_request_rules:
backport:
branches:
- release/v3.0.x
- name: backport patches to v3.1.x branch
conditions:
- base=main
- label=backport/v3.1.x
actions:
backport:
branches:
- release/v3.1.x
- name: backport patches to v4.0.x branch
conditions:
- base=main
Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# CHANGELOG

## v3.1.0

*Sep 15, 2023*

This is a minor release to the v3 Radon line.

In response to multiple IBC channels expiring on Noble's mainnet network, it was decided to expand the functionality of Noble's Maintenance Multisig to include IBC upgrade functionality (allowing expired clients to be changed).

### FEATURES

- Include support for IBC inside the ParamAuthority. ([#235](https://github.com/strangelove-ventures/noble/pull/235))

### IMPROVEMENTS

- Align module path with Go's [naming convention](https://go.dev/doc/modules/version-numbers#major-version). ([#234](https://github.com/strangelove-ventures/noble/pull/234))

---

## Previous Changes

This changelog has yet to be fully initialized. For previous verions please refer to the release notes for a summary of changes.

11 changes: 11 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ import (
"github.com/strangelove-ventures/noble/app/upgrades/argon4"
"github.com/strangelove-ventures/noble/app/upgrades/neon"
"github.com/strangelove-ventures/noble/app/upgrades/radon"
v3m1p0 "github.com/strangelove-ventures/noble/app/upgrades/v3.1.0"
"github.com/strangelove-ventures/noble/cmd"
"github.com/strangelove-ventures/noble/docs"
"github.com/strangelove-ventures/noble/x/blockibc"
Expand Down Expand Up @@ -907,6 +908,14 @@ func (app *App) setupUpgradeHandlers() {
app.FiatTokenFactoryKeeper,
))

// v3.1.0 upgrade
app.UpgradeKeeper.SetUpgradeHandler(
v3m1p0.UpgradeName,
v3m1p0.CreateUpgradeHandler(
app.mm,
app.configurator,
))

// argon upgrade
app.UpgradeKeeper.SetUpgradeHandler(
argon.UpgradeName,
Expand Down Expand Up @@ -944,6 +953,8 @@ func (app *App) setupUpgradeHandlers() {
storeLoader = neon.CreateStoreLoader(upgradeInfo.Height)
case radon.UpgradeName:
storeLoader = radon.CreateStoreLoader(upgradeInfo.Height)
case v3m1p0.UpgradeName:
storeLoader = v3m1p0.CreateStoreLoader(upgradeInfo.Height)
case argon.UpgradeName:
storeLoader = argon.CreateStoreLoader(upgradeInfo.Height)
case argon4.UpgradeName:
Expand Down
6 changes: 6 additions & 0 deletions app/upgrades/v3.1.0/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package v3m1p0

const (
// UpgradeName is the name of this specific software upgrade used on-chain.
UpgradeName = "v3.1.0"
)
15 changes: 15 additions & 0 deletions app/upgrades/v3.1.0/store.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package v3m1p0

import (
"github.com/cosmos/cosmos-sdk/baseapp"
storeTypes "github.com/cosmos/cosmos-sdk/store/types"

// Upgrade
upgradeTypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

func CreateStoreLoader(upgradeHeight int64) baseapp.StoreLoader {
storeUpgrades := storeTypes.StoreUpgrades{}

return upgradeTypes.UpgradeStoreLoader(upgradeHeight, &storeUpgrades)
}
16 changes: 16 additions & 0 deletions app/upgrades/v3.1.0/upgrade.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package v3m1p0

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
upgradeTypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

func CreateUpgradeHandler(
mm *module.Manager,
cfg module.Configurator,
) upgradeTypes.UpgradeHandler {
return func(ctx sdk.Context, _ upgradeTypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
return mm.RunMigrations(ctx, cfg, vm)
}
}
8 changes: 8 additions & 0 deletions interchaintest/upgrade_noble-1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ func TestNoble1ChainUpgrade(t *testing.T) {
image: ghcrImage("v3.1.0"),
postUpgrade: testPostRadonUpgrade,
},
{
upgradeName: "v3.1.0",
image: ibc.DockerImage{
Repository: "ghcr.io/strangelove-ventures/noble",
Version: "v3.1.0",
UidGid: containerUidGid,
},
},
{
upgradeName: "argon",
image: nobleImageInfo[0],
Expand Down

0 comments on commit 7ee48b5

Please sign in to comment.