Skip to content

Commit

Permalink
v11 upgrade (#840)
Browse files Browse the repository at this point in the history
Co-authored-by: sampocs <[email protected]>
  • Loading branch information
shellvish and sampocs authored Jun 24, 2023
1 parent f61119e commit 4b5d80a
Show file tree
Hide file tree
Showing 452 changed files with 2,025 additions and 1,976 deletions.
42 changes: 26 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- GH ACTIONS TEMPLATE - INSERT NEW VERSION HERE -->
### Changelog

## [v11.0.0](https://github.com/Stride-Labs/stride/releases/tag/v11.0.0) - 2023-06-23

### On-Chain changes
1. IBCv7 version bump ([#840](https://github.com/Stride-Labs/stride/pull/840))
2. Modified version command ([#831](https://github.com/Stride-Labs/stride/pull/831))

### Off-Chain Changes
1. Remove redundant build tags ([#829](https://github.com/Stride-Labs/stride/pull/829))

## [v10.0.0](https://github.com/Stride-Labs/stride/releases/tag/v10.0.0) - 2023-06-15

### On-Chain changes
1. SDK 47 / IBC v7 ([#765](https://github.com/org/repo/pull/765))
2. Fix bug in ICA SendTx ([#812](https://github.com/org/repo/pull/812))
3. IBC Rate Limiting Audit Fixes ([#818](https://github.com/org/repo/pull/818))
4. V10 import paths ([#825](https://github.com/org/repo/pull/825))
5. v10 Upgrade Handler ([#805](https://github.com/org/repo/pull/805))
6. Removed comdex from list of new rate limits ([#826](https://github.com/org/repo/pull/826))
1. SDK 47 / IBC v7 ([#765](https://github.com/Stride-Labs/stride/pull/765))
2. Fix bug in ICA SendTx ([#812](https://github.com/Stride-Labs/stride/pull/812))
3. IBC Rate Limiting Audit Fixes ([#818](https://github.com/Stride-Labs/stride/pull/818))
4. V10 import paths ([#825](https://github.com/Stride-Labs/stride/pull/825))
5. v10 Upgrade Handler ([#805](https://github.com/Stride-Labs/stride/pull/805))
6. Removed comdex from list of new rate limits ([#826](https://github.com/Stride-Labs/stride/pull/826))
7. Dependency bumps ([0fb5fb6](https://github.com/Stride-Labs/stride/commit/0fb5fb6c014338a7837a569ba5b081235fd9af8a), [fc70522](https://github.com/Stride-Labs/stride/commit/fc7052268cd21c941dfebcb9560123e40e14e5b8), [6aac1d5](https://github.com/Stride-Labs/stride/commit/6aac1d5bb2c4f6cbc00ed0c31793cfc091f7550f), [eddf1ea](https://github.com/Stride-Labs/stride/commit/eddf1eae49e669432dfcce56d28ec71f67f8cff6), [4871518](https://github.com/Stride-Labs/stride/commit/b89d88ce02a23ca01fc574ae1c1a0226a9b2ef74), [b89d88c](https://github.com/Stride-Labs/stride/commit/0fb5fb6c014338a7837a569ba5b081235fd9af8a), [7a332fc](https://github.com/Stride-Labs/stride/commit/7a332fc5e690b71c10b48b6630cba1488fa2f90b), [7eea5ee](https://github.com/Stride-Labs/stride/commit/7eea5eea66973241edbb4261c1408410bfffc4e3), [c74f8f2](https://github.com/Stride-Labs/stride/commit/c74f8f28c9bbc794e70f5ded0af6930d2d10a3a8))

### Off-Chain Changes
1. Automated changelog [Part 1] ([#788](https://github.com/org/repo/pull/788))
2. Automated changelog [Part 2] ([#799](https://github.com/org/repo/pull/799))
3. Automated version increment [Part 1] ([#770](https://github.com/org/repo/pull/770))
4. Automated version increment [Part 2] ([#786](https://github.com/org/repo/pull/786))
5. Automate binary versioning ([#789](https://github.com/org/repo/pull/789))
6. Check if binaries exist during dockernet startup ([#816](https://github.com/org/repo/pull/816))
7. Fix dockernet typos ([#754](https://github.com/org/repo/pull/754))
8. Remove third party protos ([#782](https://github.com/org/repo/pull/782))
9. Changes required to get local to mainnet testing working with Umee ([#776](https://github.com/org/repo/pull/776))
10. Enabled evmos in upgrade integration tests ([#736](https://github.com/org/repo/pull/736))
1. Automated changelog [Part 1] ([#788](https://github.com/Stride-Labs/stride/pull/788))
2. Automated changelog [Part 2] ([#799](https://github.com/Stride-Labs/stride/pull/799))
3. Automated version increment [Part 1] ([#770](https://github.com/Stride-Labs/stride/pull/770))
4. Automated version increment [Part 2] ([#786](https://github.com/Stride-Labs/stride/pull/786))
5. Automate binary versioning ([#789](https://github.com/Stride-Labs/stride/pull/789))
6. Check if binaries exist during dockernet startup ([#816](https://github.com/Stride-Labs/stride/pull/816))
7. Fix dockernet typos ([#754](https://github.com/Stride-Labs/stride/pull/754))
8. Remove third party protos ([#782](https://github.com/Stride-Labs/stride/pull/782))
9. Changes required to get local to mainnet testing working with Umee ([#776](https://github.com/Stride-Labs/stride/pull/776))
10. Enabled evmos in upgrade integration tests ([#736](https://github.com/Stride-Labs/stride/pull/736))


## [v9.0.0](https://github.com/Stride-Labs/stride/releases/tag/v9.0.0) - 2023-04-19
Expand Down
70 changes: 35 additions & 35 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node"

"github.com/Stride-Labs/stride/v10/utils"
"github.com/Stride-Labs/stride/v11/utils"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -61,12 +61,12 @@ import (
govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
govtypesv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"

claimvesting "github.com/Stride-Labs/stride/v10/x/claim/vesting"
claimvestingtypes "github.com/Stride-Labs/stride/v10/x/claim/vesting/types"
claimvesting "github.com/Stride-Labs/stride/v11/x/claim/vesting"
claimvestingtypes "github.com/Stride-Labs/stride/v11/x/claim/vesting/types"

"github.com/Stride-Labs/stride/v10/x/mint"
mintkeeper "github.com/Stride-Labs/stride/v10/x/mint/keeper"
minttypes "github.com/Stride-Labs/stride/v10/x/mint/types"
"github.com/Stride-Labs/stride/v11/x/mint"
mintkeeper "github.com/Stride-Labs/stride/v11/x/mint/keeper"
minttypes "github.com/Stride-Labs/stride/v11/x/mint/types"

dbm "github.com/cometbft/cometbft-db"
abci "github.com/cometbft/cometbft/abci/types"
Expand Down Expand Up @@ -114,35 +114,35 @@ import (
// monitoringp "github.com/tendermint/spn/x/monitoringp"
// monitoringpkeeper "github.com/tendermint/spn/x/monitoringp/keeper"

epochsmodule "github.com/Stride-Labs/stride/v10/x/epochs"
epochsmodulekeeper "github.com/Stride-Labs/stride/v10/x/epochs/keeper"
epochsmoduletypes "github.com/Stride-Labs/stride/v10/x/epochs/types"

"github.com/Stride-Labs/stride/v10/x/interchainquery"
interchainquerykeeper "github.com/Stride-Labs/stride/v10/x/interchainquery/keeper"
interchainquerytypes "github.com/Stride-Labs/stride/v10/x/interchainquery/types"

"github.com/Stride-Labs/stride/v10/x/autopilot"
autopilotkeeper "github.com/Stride-Labs/stride/v10/x/autopilot/keeper"
autopilottypes "github.com/Stride-Labs/stride/v10/x/autopilot/types"

"github.com/Stride-Labs/stride/v10/x/claim"
claimkeeper "github.com/Stride-Labs/stride/v10/x/claim/keeper"
claimtypes "github.com/Stride-Labs/stride/v10/x/claim/types"
icacallbacksmodule "github.com/Stride-Labs/stride/v10/x/icacallbacks"
icacallbacksmodulekeeper "github.com/Stride-Labs/stride/v10/x/icacallbacks/keeper"
icacallbacksmoduletypes "github.com/Stride-Labs/stride/v10/x/icacallbacks/types"
ratelimitmodule "github.com/Stride-Labs/stride/v10/x/ratelimit"
ratelimitclient "github.com/Stride-Labs/stride/v10/x/ratelimit/client"
ratelimitmodulekeeper "github.com/Stride-Labs/stride/v10/x/ratelimit/keeper"
ratelimitmoduletypes "github.com/Stride-Labs/stride/v10/x/ratelimit/types"
recordsmodule "github.com/Stride-Labs/stride/v10/x/records"
recordsmodulekeeper "github.com/Stride-Labs/stride/v10/x/records/keeper"
recordsmoduletypes "github.com/Stride-Labs/stride/v10/x/records/types"
stakeibcmodule "github.com/Stride-Labs/stride/v10/x/stakeibc"
stakeibcclient "github.com/Stride-Labs/stride/v10/x/stakeibc/client"
stakeibcmodulekeeper "github.com/Stride-Labs/stride/v10/x/stakeibc/keeper"
stakeibcmoduletypes "github.com/Stride-Labs/stride/v10/x/stakeibc/types"
epochsmodule "github.com/Stride-Labs/stride/v11/x/epochs"
epochsmodulekeeper "github.com/Stride-Labs/stride/v11/x/epochs/keeper"
epochsmoduletypes "github.com/Stride-Labs/stride/v11/x/epochs/types"

"github.com/Stride-Labs/stride/v11/x/interchainquery"
interchainquerykeeper "github.com/Stride-Labs/stride/v11/x/interchainquery/keeper"
interchainquerytypes "github.com/Stride-Labs/stride/v11/x/interchainquery/types"

"github.com/Stride-Labs/stride/v11/x/autopilot"
autopilotkeeper "github.com/Stride-Labs/stride/v11/x/autopilot/keeper"
autopilottypes "github.com/Stride-Labs/stride/v11/x/autopilot/types"

"github.com/Stride-Labs/stride/v11/x/claim"
claimkeeper "github.com/Stride-Labs/stride/v11/x/claim/keeper"
claimtypes "github.com/Stride-Labs/stride/v11/x/claim/types"
icacallbacksmodule "github.com/Stride-Labs/stride/v11/x/icacallbacks"
icacallbacksmodulekeeper "github.com/Stride-Labs/stride/v11/x/icacallbacks/keeper"
icacallbacksmoduletypes "github.com/Stride-Labs/stride/v11/x/icacallbacks/types"
ratelimitmodule "github.com/Stride-Labs/stride/v11/x/ratelimit"
ratelimitclient "github.com/Stride-Labs/stride/v11/x/ratelimit/client"
ratelimitmodulekeeper "github.com/Stride-Labs/stride/v11/x/ratelimit/keeper"
ratelimitmoduletypes "github.com/Stride-Labs/stride/v11/x/ratelimit/types"
recordsmodule "github.com/Stride-Labs/stride/v11/x/records"
recordsmodulekeeper "github.com/Stride-Labs/stride/v11/x/records/keeper"
recordsmoduletypes "github.com/Stride-Labs/stride/v11/x/records/types"
stakeibcmodule "github.com/Stride-Labs/stride/v11/x/stakeibc"
stakeibcclient "github.com/Stride-Labs/stride/v11/x/stakeibc/client"
stakeibcmodulekeeper "github.com/Stride-Labs/stride/v11/x/stakeibc/keeper"
stakeibcmoduletypes "github.com/Stride-Labs/stride/v11/x/stakeibc/types"

storetypes "github.com/cosmos/cosmos-sdk/store/types"
ibctestingtypes "github.com/cosmos/ibc-go/v7/testing/types"
Expand Down
4 changes: 2 additions & 2 deletions app/apptesting/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"

"github.com/Stride-Labs/stride/v10/app"
"github.com/Stride-Labs/stride/v10/utils"
"github.com/Stride-Labs/stride/v11/app"
"github.com/Stride-Labs/stride/v11/utils"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion app/test_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
ibctesting "github.com/cosmos/ibc-go/v7/testing"

cmdcfg "github.com/Stride-Labs/stride/v10/cmd/strided/config"
cmdcfg "github.com/Stride-Labs/stride/v11/cmd/strided/config"
)

const Bech32Prefix = "stride"
Expand Down
42 changes: 25 additions & 17 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@ import (

capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"

v10 "github.com/Stride-Labs/stride/v10/app/upgrades/v10"
v2 "github.com/Stride-Labs/stride/v10/app/upgrades/v2"
v3 "github.com/Stride-Labs/stride/v10/app/upgrades/v3"
v4 "github.com/Stride-Labs/stride/v10/app/upgrades/v4"
v5 "github.com/Stride-Labs/stride/v10/app/upgrades/v5"
v6 "github.com/Stride-Labs/stride/v10/app/upgrades/v6"
v7 "github.com/Stride-Labs/stride/v10/app/upgrades/v7"
v8 "github.com/Stride-Labs/stride/v10/app/upgrades/v8"
v9 "github.com/Stride-Labs/stride/v10/app/upgrades/v9"
autopilottypes "github.com/Stride-Labs/stride/v10/x/autopilot/types"
claimtypes "github.com/Stride-Labs/stride/v10/x/claim/types"
icacallbacktypes "github.com/Stride-Labs/stride/v10/x/icacallbacks/types"
ratelimittypes "github.com/Stride-Labs/stride/v10/x/ratelimit/types"
recordtypes "github.com/Stride-Labs/stride/v10/x/records/types"
stakeibctypes "github.com/Stride-Labs/stride/v10/x/stakeibc/types"
v10 "github.com/Stride-Labs/stride/v11/app/upgrades/v10"
v11 "github.com/Stride-Labs/stride/v11/app/upgrades/v11"
v2 "github.com/Stride-Labs/stride/v11/app/upgrades/v2"
v3 "github.com/Stride-Labs/stride/v11/app/upgrades/v3"
v4 "github.com/Stride-Labs/stride/v11/app/upgrades/v4"
v5 "github.com/Stride-Labs/stride/v11/app/upgrades/v5"
v6 "github.com/Stride-Labs/stride/v11/app/upgrades/v6"
v7 "github.com/Stride-Labs/stride/v11/app/upgrades/v7"
v8 "github.com/Stride-Labs/stride/v11/app/upgrades/v8"
v9 "github.com/Stride-Labs/stride/v11/app/upgrades/v9"
autopilottypes "github.com/Stride-Labs/stride/v11/x/autopilot/types"
claimtypes "github.com/Stride-Labs/stride/v11/x/claim/types"
icacallbacktypes "github.com/Stride-Labs/stride/v11/x/icacallbacks/types"
ratelimittypes "github.com/Stride-Labs/stride/v11/x/ratelimit/types"
recordtypes "github.com/Stride-Labs/stride/v11/x/records/types"
stakeibctypes "github.com/Stride-Labs/stride/v11/x/stakeibc/types"
)

func (app *StrideApp) setupUpgradeHandlers() {
Expand Down Expand Up @@ -133,6 +134,15 @@ func (app *StrideApp) setupUpgradeHandlers() {
),
)

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

upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk()
if err != nil {
panic(fmt.Errorf("Failed to read upgrade info from disk: %w", err))
Expand Down Expand Up @@ -162,8 +172,6 @@ func (app *StrideApp) setupUpgradeHandlers() {
Added: []string{crisistypes.StoreKey, consensustypes.StoreKey},
}
}
// TODO: v10 UPGRADE HANDLER
// Add module and ICA accounts for each host zone to the rate limit whitelist

if storeUpgrades != nil {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, storeUpgrades))
Expand Down
12 changes: 6 additions & 6 deletions app/upgrades/v10/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Upgrade v10 Changelog
1. SDK 47 / IBC v7 ([#765](https://github.com/org/repo/pull/765))
2. Fix bug in ICA SendTx ([#812](https://github.com/org/repo/pull/812))
3. IBC Rate Limiting Audit Fixes ([#818](https://github.com/org/repo/pull/818))
4. V10 import paths ([#825](https://github.com/org/repo/pull/825))
5. v10 Upgrade Handler ([#805](https://github.com/org/repo/pull/805))
6. Removed comdex from list of new rate limits ([#826](https://github.com/org/repo/pull/826))
1. SDK 47 / IBC v7 ([#765](https://github.com/Stride-Labs/stride/pull/765))
2. Fix bug in ICA SendTx ([#812](https://github.com/Stride-Labs/stride/pull/812))
3. IBC Rate Limiting Audit Fixes ([#818](https://github.com/Stride-Labs/stride/pull/818))
4. V10 import paths ([#825](https://github.com/Stride-Labs/stride/pull/825))
5. v10 Upgrade Handler ([#805](https://github.com/Stride-Labs/stride/pull/805))
6. Removed comdex from list of new rate limits ([#826](https://github.com/Stride-Labs/stride/pull/826))
7. Dependency bumps ([0fb5fb6](https://github.com/Stride-Labs/stride/commit/0fb5fb6c014338a7837a569ba5b081235fd9af8a), [fc70522](https://github.com/Stride-Labs/stride/commit/fc7052268cd21c941dfebcb9560123e40e14e5b8), [6aac1d5](https://github.com/Stride-Labs/stride/commit/6aac1d5bb2c4f6cbc00ed0c31793cfc091f7550f), [eddf1ea](https://github.com/Stride-Labs/stride/commit/eddf1eae49e669432dfcce56d28ec71f67f8cff6), [4871518](https://github.com/Stride-Labs/stride/commit/b89d88ce02a23ca01fc574ae1c1a0226a9b2ef74), [b89d88c](https://github.com/Stride-Labs/stride/commit/0fb5fb6c014338a7837a569ba5b081235fd9af8a), [7a332fc](https://github.com/Stride-Labs/stride/commit/7a332fc5e690b71c10b48b6630cba1488fa2f90b), [7eea5ee](https://github.com/Stride-Labs/stride/commit/7eea5eea66973241edbb4261c1408410bfffc4e3), [c74f8f2](https://github.com/Stride-Labs/stride/commit/c74f8f28c9bbc794e70f5ded0af6930d2d10a3a8))
24 changes: 12 additions & 12 deletions app/upgrades/v10/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ import (
"github.com/cosmos/ibc-go/v7/modules/core/exported"
ibctmmigrations "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint/migrations"

claimkeeper "github.com/Stride-Labs/stride/v10/x/claim/keeper"
claimtypes "github.com/Stride-Labs/stride/v10/x/claim/types"
icacallbackskeeper "github.com/Stride-Labs/stride/v10/x/icacallbacks/keeper"
mintkeeper "github.com/Stride-Labs/stride/v10/x/mint/keeper"
minttypes "github.com/Stride-Labs/stride/v10/x/mint/types"
ratelimitkeeper "github.com/Stride-Labs/stride/v10/x/ratelimit/keeper"
ratelimitgov "github.com/Stride-Labs/stride/v10/x/ratelimit/keeper/gov"
ratelimittypes "github.com/Stride-Labs/stride/v10/x/ratelimit/types"
recordskeeper "github.com/Stride-Labs/stride/v10/x/records/keeper"
recordstypes "github.com/Stride-Labs/stride/v10/x/records/types"
stakeibckeeper "github.com/Stride-Labs/stride/v10/x/stakeibc/keeper"
stakeibctypes "github.com/Stride-Labs/stride/v10/x/stakeibc/types"
claimkeeper "github.com/Stride-Labs/stride/v11/x/claim/keeper"
claimtypes "github.com/Stride-Labs/stride/v11/x/claim/types"
icacallbackskeeper "github.com/Stride-Labs/stride/v11/x/icacallbacks/keeper"
mintkeeper "github.com/Stride-Labs/stride/v11/x/mint/keeper"
minttypes "github.com/Stride-Labs/stride/v11/x/mint/types"
ratelimitkeeper "github.com/Stride-Labs/stride/v11/x/ratelimit/keeper"
ratelimitgov "github.com/Stride-Labs/stride/v11/x/ratelimit/keeper/gov"
ratelimittypes "github.com/Stride-Labs/stride/v11/x/ratelimit/types"
recordskeeper "github.com/Stride-Labs/stride/v11/x/records/keeper"
recordstypes "github.com/Stride-Labs/stride/v11/x/records/types"
stakeibckeeper "github.com/Stride-Labs/stride/v11/x/stakeibc/keeper"
stakeibctypes "github.com/Stride-Labs/stride/v11/x/stakeibc/types"

cosmosproto "github.com/cosmos/gogoproto/proto"
deprecatedproto "github.com/golang/protobuf/proto" //nolint:staticcheck
Expand Down
24 changes: 12 additions & 12 deletions app/upgrades/v10/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ import (
transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"

"github.com/Stride-Labs/stride/v10/app/apptesting"
v10 "github.com/Stride-Labs/stride/v10/app/upgrades/v10"
"github.com/Stride-Labs/stride/v10/utils"

icacallbackstypes "github.com/Stride-Labs/stride/v10/x/icacallbacks/types"
ratelimittypes "github.com/Stride-Labs/stride/v10/x/ratelimit/types"
recordskeeper "github.com/Stride-Labs/stride/v10/x/records/keeper"
recordstypes "github.com/Stride-Labs/stride/v10/x/records/types"
stakeibckeeper "github.com/Stride-Labs/stride/v10/x/stakeibc/keeper"
"github.com/Stride-Labs/stride/v10/x/stakeibc/types"
stakeibctypes "github.com/Stride-Labs/stride/v10/x/stakeibc/types"
"github.com/Stride-Labs/stride/v11/app/apptesting"
v10 "github.com/Stride-Labs/stride/v11/app/upgrades/v10"
"github.com/Stride-Labs/stride/v11/utils"

icacallbackstypes "github.com/Stride-Labs/stride/v11/x/icacallbacks/types"
ratelimittypes "github.com/Stride-Labs/stride/v11/x/ratelimit/types"
recordskeeper "github.com/Stride-Labs/stride/v11/x/records/keeper"
recordstypes "github.com/Stride-Labs/stride/v11/x/records/types"
stakeibckeeper "github.com/Stride-Labs/stride/v11/x/stakeibc/keeper"
"github.com/Stride-Labs/stride/v11/x/stakeibc/types"
stakeibctypes "github.com/Stride-Labs/stride/v11/x/stakeibc/types"

cosmosproto "github.com/cosmos/gogoproto/proto"
deprecatedproto "github.com/golang/protobuf/proto" //nolint:staticcheck

claimtypes "github.com/Stride-Labs/stride/v10/x/claim/types"
claimtypes "github.com/Stride-Labs/stride/v11/x/claim/types"
)

var initialRateLimitChannelValue = sdk.NewInt(1_000_000)
Expand Down
2 changes: 2 additions & 0 deletions app/upgrades/v11/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Upgrade v11 Changelog
1. IBCv7 version bump ([#840](https://github.com/Stride-Labs/stride/pull/840))
22 changes: 22 additions & 0 deletions app/upgrades/v11/upgrades.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package v11

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

var (
UpgradeName = "v11"
)

// CreateUpgradeHandler creates an SDK upgrade handler for v11
func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("Starting upgrade v11...")
return mm.RunMigrations(ctx, configurator, vm)
}
}
6 changes: 3 additions & 3 deletions app/upgrades/v3/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

claimkeeper "github.com/Stride-Labs/stride/v10/x/claim/keeper"
"github.com/Stride-Labs/stride/v10/x/claim/types"
claimtypes "github.com/Stride-Labs/stride/v10/x/claim/types"
claimkeeper "github.com/Stride-Labs/stride/v11/x/claim/keeper"
"github.com/Stride-Labs/stride/v11/x/claim/types"
claimtypes "github.com/Stride-Labs/stride/v11/x/claim/types"
)

// Note: ensure these values are properly set before running upgrade
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v3/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/suite"

"github.com/Stride-Labs/stride/v10/app/apptesting"
"github.com/Stride-Labs/stride/v11/app/apptesting"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v4/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/suite"

"github.com/Stride-Labs/stride/v10/app/apptesting"
"github.com/Stride-Labs/stride/v11/app/apptesting"
)

const dummyUpgradeHeight = 5
Expand Down
Loading

0 comments on commit 4b5d80a

Please sign in to comment.