v2_1_0

package
v2.1.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const UpgradeName = "v2.1.0"

Variables

View Source
var Upgrade = upgrades.Upgrade{
	UpgradeName: UpgradeName,
	CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator, clientKeeper clientkeeper.Keeper) upgradetypes.UpgradeHandler {
		return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {

			params := clientKeeper.GetParams(ctx)

			hasWasmClient := false
			for _, client := range params.AllowedClients {
				if client == ibcwasmtypes.Wasm {
					hasWasmClient = true
					break
				}
			}

			if !hasWasmClient {
				params.AllowedClients = append(params.AllowedClients, ibcwasmtypes.Wasm)
				clientKeeper.SetParams(ctx, params)
			}

			return mm.RunMigrations(ctx, cfg, fromVM)
		}
	},
	StoreUpgrades: types.StoreUpgrades{
		Added: []string{ibcwasmtypes.ModuleName},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL