Documentation
¶
Index ¶
- func MigrateValue(store sdk.KVStore, cdc codec.BinaryCodec, prefixBz []byte, ...) (err error)
- func ModuleMigrations(module string, migrator Migrator, ...)
- func ModuleVersion(module string) uint64
- func RegisterMigration(module string, version uint64, initFn NewMigrationFn)
- type Migration
- type Migrator
- type NewMigrationFn
- type ValueMigrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateValue ¶
func MigrateValue(store sdk.KVStore, cdc codec.BinaryCodec, prefixBz []byte, migrator ValueMigrator) (err error)
MigrateValue is a helper function that migrates values stored in a KV store for the given key prefix using the given value migrator function.
func ModuleMigrations ¶
func ModuleVersion ¶
func RegisterMigration ¶
func RegisterMigration(module string, version uint64, initFn NewMigrationFn)
Types ¶
type Migration ¶
type Migration interface {
GetHandler() sdkmodule.MigrationHandler
}
type NewMigrationFn ¶
type ValueMigrator ¶
type ValueMigrator func(oldValueBz []byte, cdc codec.BinaryCodec) codec.ProtoMarshaler
ValueMigrator migrates a value to the new protobuf type given its old protobuf serialized bytes.
Click to show internal directories.
Click to hide internal directories.