v4

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateTokenConfigs

func MigrateTokenConfigs(ctx sdk.Context, k *keeper.Keeper) error

MigrateTokenConfigs canonicalizes token storage keys and backfills the PRC20 reverse index (F-2026-17022). Before this version tokens were keyed by the raw address (case-sensitive) and there was no PRC20 index. The keeper now keys every row by the canonical address (EIP-55 for EVM) and maintains a PRC20 → storage-key index for O(1) GetTokenConfigByPRC20.

This migration re-keys any row whose stored key differs from its canonical key, then (re)builds the PRC20 index over every row. Both steps are idempotent and safe to run on already-canonical / empty state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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