Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brady Lee
authored and
Brady Lee
committed
Nov 27, 2023
1 parent
63f72ca
commit 9d7f074
Showing
49 changed files
with
4,142 additions
and
4,925 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package app | ||
|
||
import ( | ||
storetypes "github.com/cosmos/cosmos-sdk/store/types" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/types/module" | ||
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
) | ||
|
||
func (app *App) setupUpgradeHandlers( | ||
configurator module.Configurator, | ||
) { | ||
app.UpgradeKeeper.SetUpgradeHandler("10.0", func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { | ||
return app.mm.RunMigrations(ctx, configurator, fromVM) | ||
}) | ||
var storeUpgrades *storetypes.StoreUpgrades | ||
|
||
storeUpgrades = &storetypes.StoreUpgrades{ | ||
Deleted: []string{"faucet"}, | ||
} | ||
|
||
if storeUpgrades != nil { | ||
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(3333333, storeUpgrades)) | ||
} | ||
} |
Oops, something went wrong.