upgrade

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeightTask

type HeightTask interface {
	GetOrderer() int16
	Execute(c sdk.Context) error
	ValidateBasic() error
}

func NewHeightTask

func NewHeightTask(orderer int16, taskExecutor func(ctx sdk.Context) error) HeightTask

type HeightTasks

type HeightTasks []HeightTask

func (HeightTasks) Len

func (h HeightTasks) Len() int

func (HeightTasks) Less

func (h HeightTasks) Less(i, j int) bool

func (HeightTasks) Swap

func (h HeightTasks) Swap(i, j int)

type UpgradeModule

type UpgradeModule interface {
	RegisterTask() HeightTask
	UpgradeHeight() int64
	RegisterParam() params.ParamSet
	ModuleName() string
	CommitFilter() *store.StoreFilter
	PruneFilter() *store.StoreFilter
	VersionFilter() *store.VersionFilter
}

Jump to

Keyboard shortcuts

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