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 ¶
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.
Click to show internal directories.
Click to hide internal directories.