Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( DenomMetadataPrefix = []byte{0x1} DenomAddressPrefix = []byte{0x03} )
Functions ¶
func CreateDenomAddressPrefix ¶
CreateDenomAddressPrefix creates a prefix for a reverse index of denomination to account balance for that denomination.
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
MigrateStore performs in-place store migrations from v0.43 to v0.45. The migration includes:
- Migrate coin storage to save only amount. - Add an additional reverse index from denomination to address. - Remove duplicate denom from denom metadata store key.
func Migrate_V046_4_To_V046_5 ¶
Migrate_V046_4_To_V046_5 is a helper function to migrate chains from <=v0.46.4 to v0.46.5 ONLY.
IMPORTANT: Please do not use this function if you are upgrading to v0.46 from <=v0.45.
This function migrates the store in-place by fixing the bank denom bug discovered in https://github.com/cosmos/cosmos-sdk/pull/13821. It has been fixed in v0.46.5, but if your chain had already migrated to v0.46, then you can apply this patch (in a coordinated upgrade, e.g. in the upgrade handler) to fix the bank denom state.
The store is expected to be the bank store, and not any prefixed substore.
Types ¶
This section is empty.