v015

package
v0.0.0-...-b3a6efc Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	V014Bech32AddrLen = 44 // length of an akash address when encoded as a bech32 string in v0.14
)

Variables

This section is empty.

Functions

func MigratePrefixBech32AddrBytes

func MigratePrefixBech32AddrBytes(store sdk.KVStore, prefixBz []byte)

MigratePrefixBech32AddrBytes is a helper function that migrates all keys of format: prefix_bytes | address_bech32_bytes | arbitrary_bytes into format: prefix_bytes | address_len (1 byte) | address_bytes | arbitrary_bytes

func MigrateValue

func MigrateValue(store sdk.KVStore, cdc codec.BinaryCodec, prefixBz []byte, migrator ValueMigrator)

MigrateValue is a helper function that migrates values stored in a KV store for the given key prefix using the given value migrator function.

Types

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.

Jump to

Keyboard shortcuts

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