upgrades

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Upgrade_0_4_0 = Upgrade{
	UpgradeName: "v0.4.0",
	CreateUpgradeHandler: func(m *module.Manager, c module.Configurator, bapm BaseAppParamManager, lk *keepers.LavaKeepers) upgradetypes.UpgradeHandler {
		return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
			return m.RunMigrations(ctx, c, vm)
		}
	},
	StoreUpgrades: store.StoreUpgrades{},
}
View Source
var Upgrade_0_4_3 = Upgrade{
	UpgradeName: "v0.4.3",
	CreateUpgradeHandler: func(m *module.Manager, c module.Configurator, bapm BaseAppParamManager, lk *keepers.LavaKeepers) upgradetypes.UpgradeHandler {
		return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
			return m.RunMigrations(ctx, c, vm)
		}
	},
	StoreUpgrades: store.StoreUpgrades{},
}
View Source
var Upgrade_0_4_4 = Upgrade{
	UpgradeName: "v0.4.4",
	CreateUpgradeHandler: func(m *module.Manager, c module.Configurator, bapm BaseAppParamManager, lk *keepers.LavaKeepers) upgradetypes.UpgradeHandler {
		return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
			return m.RunMigrations(ctx, c, vm)
		}
	},
	StoreUpgrades: store.StoreUpgrades{},
}
View Source
var Upgrade_0_4_5 = Upgrade{
	UpgradeName: "v0.4.5",
	CreateUpgradeHandler: func(m *module.Manager, c module.Configurator, bapm BaseAppParamManager, lk *keepers.LavaKeepers) upgradetypes.UpgradeHandler {
		return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
			return m.RunMigrations(ctx, c, vm)
		}
	},
	StoreUpgrades: store.StoreUpgrades{},
}

Functions

This section is empty.

Types

type BaseAppParamManager

type BaseAppParamManager interface {
	GetConsensusParams(ctx sdk.Context) *abci.ConsensusParams
	StoreConsensusParams(ctx sdk.Context, cp *abci.ConsensusParams)
}

type Upgrade

type Upgrade struct {
	// Upgrade version name.
	UpgradeName          string
	CreateUpgradeHandler func(*module.Manager, module.Configurator, BaseAppParamManager, *keepers.LavaKeepers) upgradetypes.UpgradeHandler
	StoreUpgrades        store.StoreUpgrades
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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