Skip to content

Commit

Permalink
upgrade: add v1.4.5-rc2 upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bowman committed Dec 27, 2023
1 parent 690e815 commit 05cbe56
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
12 changes: 6 additions & 6 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ func (app *Quicksilver) setUpgradeStoreLoaders() {
var storeUpgrades *storetypes.StoreUpgrades

switch upgradeInfo.Name { // nolint:gocritic
// case v001000UpgradeName:

// storeUpgrades = &storetypes.StoreUpgrades{
// Added: []string{claimsmanagertypes.ModuleName},
// }

case upgrades.V010402rc3UpgradeName:

storeUpgrades = &storetypes.StoreUpgrades{
Expand All @@ -57,6 +51,12 @@ func (app *Quicksilver) setUpgradeStoreLoaders() {
storeUpgrades = &storetypes.StoreUpgrades{
Added: []string{supplytypes.ModuleName},
}

case upgrades.V010405UpgradeName:
storeUpgrades = &storetypes.StoreUpgrades{
Added: []string{packetforwardtypes.ModuleName, supplytypes.ModuleName},
}

Check warning on line 58 in app/upgrades.go

View check run for this annotation

Codecov / codecov/patch

app/upgrades.go#L55-L58

Added lines #L55 - L58 were not covered by tests

default:
// no-op
}
Expand Down
9 changes: 7 additions & 2 deletions app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import (
// upgrade name consts: vMMmmppUpgradeName (M=Major, m=minor, p=patch).
const (
ProductionChainID = "quicksilver-2"
RhyeChainID = "rhye-1"
DevnetChainID = "magic-1"
RhyeChainID = "rhye-2"
DevnetChainID = "magic-2"
TestChainID = "testchain1"
OsmosisTestnetChainID = "osmo-test-5"
JunoTestnetChainID = "uni-6"
StargazeTestnetChainID = "elgafar-1"
SommelierChainID = "sommelier-3"

// testnet upgrades
V010402rc1UpgradeName = "v1.4.2-rc1"
V010402rc2UpgradeName = "v1.4.2-rc2"
V010402rc3UpgradeName = "v1.4.2-rc3"
Expand All @@ -41,6 +42,10 @@ const (
V010404rc3UpgradeName = "v1.4.4-rc.3"
V010404rc4UpgradeName = "v1.4.4-rc.4"
V010405rc0UpgradeName = "v1.4.5-rc0"
V010405rc2UpgradeName = "v1.4.5-rc2"

// mainnet upgrades
V010405UpgradeName = "v1.4.5"
)

// Upgrade defines a struct containing necessary fields that a SoftwareUpgradeProposal
Expand Down
2 changes: 2 additions & 0 deletions app/upgrades/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func Upgrades() []Upgrade {
{UpgradeName: V010404rc2UpgradeName, CreateUpgradeHandler: V010404beta10UpgradeHandler},
{UpgradeName: V010404rc3UpgradeName, CreateUpgradeHandler: NoOpHandler},
{UpgradeName: V010404rc4UpgradeName, CreateUpgradeHandler: NoOpHandler},
{UpgradeName: V010405rc2UpgradeName, CreateUpgradeHandler: NoOpHandler},
{UpgradeName: V010405UpgradeName, CreateUpgradeHandler: NoOpHandler},
}
}

Expand Down

0 comments on commit 05cbe56

Please sign in to comment.