Documentation ¶
Index ¶
- Constants
- Variables
- func AddressFromBalancesStore(key []byte) (sdk.AccAddress, error)
- func CreateAccountBalancesPrefix(addr []byte) []byte
- func DenomMetadataKey(denom string) []byte
- func MigrateJSON(oldState *types.GenesisState) *types.GenesisState
- func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
Constants ¶
View Source
const (
ModuleName = "bank"
)
Variables ¶
Functions ¶
func AddressFromBalancesStore ¶
func AddressFromBalancesStore(key []byte) (sdk.AccAddress, error)
func DenomMetadataKey ¶
DenomMetadataKey returns the denomination metadata key.
func MigrateJSON ¶
func MigrateJSON(oldState *types.GenesisState) *types.GenesisState
MigrateJSON accepts exported v0.40 x/bank genesis state and migrates it to v0.43 x/bank genesis state. The migration includes: - Prune balances & supply with zero coins (ref: https://github.com/blockgenx/blockgen-sdk/pull/9229)
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
MigrateStore performs in-place store migrations from v0.40 to v0.43. The migration includes:
- Change addresses to be length-prefixed. - Change balances prefix to 1 byte - Change supply to be indexed by denom - Prune balances & supply with zero coins (ref: https://github.com/blockgenx/blockgen-sdk/pull/9229)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.