Skip to content

Commit

Permalink
v8 Upgrade Handler (#683)
Browse files Browse the repository at this point in the history
Co-authored-by: vish-stride <vishal@stridelabs.co>
  • Loading branch information
sampocs and shellvish authored Mar 25, 2023
1 parent 0a42766 commit 31c5dc4
Show file tree
Hide file tree
Showing 6 changed files with 25,769 additions and 1 deletion.
13 changes: 13 additions & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
v5 "github.com/Stride-Labs/stride/v8/app/upgrades/v5"
v6 "github.com/Stride-Labs/stride/v8/app/upgrades/v6"
v7 "github.com/Stride-Labs/stride/v8/app/upgrades/v7"
v8 "github.com/Stride-Labs/stride/v8/app/upgrades/v8"
autopilottypes "github.com/Stride-Labs/stride/v8/x/autopilot/types"
claimtypes "github.com/Stride-Labs/stride/v8/x/claim/types"
icacallbacktypes "github.com/Stride-Labs/stride/v8/x/icacallbacks/types"
Expand Down Expand Up @@ -84,6 +85,18 @@ func (app *StrideApp) setupUpgradeHandlers() {
),
)

// v8 upgrade handler
app.UpgradeKeeper.SetUpgradeHandler(
v8.UpgradeName,
v8.CreateUpgradeHandler(
app.mm,
app.configurator,
app.appCodec,
app.ClaimKeeper,
app.AutopilotKeeper,
),
)

upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk()
if err != nil {
panic(fmt.Errorf("Failed to read upgrade info from disk: %w", err))
Expand Down
2 changes: 2 additions & 0 deletions app/upgrades/v8/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Upgrade v8 Changelog
TODO
Loading

0 comments on commit 31c5dc4

Please sign in to comment.