migrations

package
v0.5.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BaseSchemaVersion = uint32(0)

Variables

View Source
var Migrations = []Migration{
	m001GasPerTokenToRatio32,
	m002CleanupFeePolicy,
}

Add new migrations to the end of this list, and they will be applied before creating the next block. The first migration on the list is applied when schema version = BaseSchemaVersion, and after applying each migration the schema version is incremented. Old migrations can be pruned; for each migration pruned increment BaseSchemaVersion by one.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	Contract *coreutil.ContractInfo
	Apply    func(state kv.KVStore, log *logger.Logger) error
}

Jump to

Keyboard shortcuts

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