Documentation
¶
Index ¶
Constants ¶
View Source
const UpgradeName = "v15b3"
next upgrade name
Variables ¶
View Source
var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator, _ keepers.StargazeKeepers) upgradetypes.UpgradeHandler { return func(ctx context.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { startTime := time.Now() wctx := sdk.UnwrapSDKContext(ctx) wctx.Logger().Info("upgrade started", "upgrade_name", UpgradeName) migrations, err := mm.RunMigrations(ctx, cfg, fromVM) if err != nil { return nil, err } wctx.Logger().Info("upgrade completed", "duration_ms", time.Since(startTime).Milliseconds()) return migrations, nil } }, StoreUpgrades: storetypes.StoreUpgrades{ Added: []string{}, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.