Skip to content

Commit

Permalink
chore: v5 release changes (#472)
Browse files Browse the repository at this point in the history
* fixing lint

* renaming upgrade handlers from latest to v5

* update interchaintest version reference

* Update CHANGELOG.md
  • Loading branch information
spoo-bar authored Oct 17, 2023
1 parent 9c91298 commit ffde5eb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
7 changes: 1 addition & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Contains bug fixes.
Contains all the PRs that improved the code without changing the behaviours.
-->

## [Unreleased]
## [v5.0.0]

### Added

Expand All @@ -49,11 +49,6 @@ Contains all the PRs that improved the code without changing the behaviours.
- [#439](https://github.com/archway-network/archway/pull/439) - Renaming `debug` image to `dev`
- [#461](https://github.com/archway-network/archway/pull/461) - Remove titus network deployment

### Removed

### Fixed

### Improvements

## [v4.0.2](https://github.com/archway-network/archway/releases/tag/v4.0.2)

Expand Down
5 changes: 2 additions & 3 deletions app/app_upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
upgrade3_0_0 "github.com/archway-network/archway/app/upgrades/3_0_0"
upgrade4_0_0 "github.com/archway-network/archway/app/upgrades/4_0_0"
upgrade4_0_2 "github.com/archway-network/archway/app/upgrades/4_0_2"
upgradelatest "github.com/archway-network/archway/app/upgrades/latest"
upgrade5_0_0 "github.com/archway-network/archway/app/upgrades/5_0_0"
)

// UPGRADES
Expand All @@ -24,8 +24,7 @@ var Upgrades = []upgrades.Upgrade{
upgrade3_0_0.Upgrade, // v3.0.0
upgrade4_0_0.Upgrade, // v4.0.0
upgrade4_0_2.Upgrade, // v4.0.2

upgradelatest.Upgrade, // latest - This upgrade handler is used for all the current changes to the protocol
upgrade5_0_0.Upgrade, // v5.0.0
}

func (app *ArchwayApp) setupUpgrades() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package upgradelatest
package upgrade5_0_0

import (
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
Expand Down Expand Up @@ -32,7 +32,7 @@ import (

// This upgrade handler is used for all the current changes to the protocol

const Name = "latest"
const Name = "v5.0.0"

const NameAsciiArt = `
### ### ###
Expand Down
2 changes: 1 addition & 1 deletion interchaintest/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const (
initialVersion = "v4.0.2" // The last release of the chain. The one the mainnet is running on
upgradeName = "latest" // The next upgrade name. Should match the upgrade handler.
upgradeName = "v5.0.0" // The next upgrade name. Should match the upgrade handler.
chainName = "archway"
)

Expand Down
3 changes: 2 additions & 1 deletion x/rewards/ante/min_cons_fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ func TestRewardsMinFeeAnteHandler(t *testing.T) {
coin, err := sdk.ParseDecCoin(tc.minPoG)
require.NoError(t, err)
params.MinPriceOfGas = coin
keepers.RewardsKeeper.SetParams(ctx, params)
err = keepers.RewardsKeeper.SetParams(ctx, params)
require.NoError(t, err)

// Build transaction
txFees, err := sdk.ParseCoinsNormalized(tc.txFees)
Expand Down
3 changes: 2 additions & 1 deletion x/rewards/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func (s *KeeperTestSuite) TestGRPC_Params() {
MaxWithdrawRecords: uint64(2),
MinPriceOfGas: rewardsTypes.DefaultMinPriceOfGas,
}
k.SetParams(ctx, params)
err := k.SetParams(ctx, params)
s.Assert().NoError(err)

s.Run("err: empty request", func() {
_, err := querySrvr.Params(sdk.WrapSDKContext(ctx), nil)
Expand Down
3 changes: 2 additions & 1 deletion x/rewards/keeper/withdraw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ func (s *KeeperTestSuite) TestWithdrawRewardsByIDs() {
ctx := s.chain.GetContext()
params := keeper.GetParams(ctx)
params.MaxWithdrawRecords = 5
keeper.SetParams(ctx, params)
err := keeper.SetParams(ctx, params)
s.Assert().NoError(err)
}

// Invalid inputs
Expand Down

0 comments on commit ffde5eb

Please sign in to comment.