v042

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "bank"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)

Variables

View Source
var (
	BalancesPrefix      = []byte("balances")
	SupplyKey           = []byte{0x00}
	DenomMetadataPrefix = []byte{0x1}
)

KVStore keys

Functions

func AddressFromBalancesStore

func AddressFromBalancesStore(key []byte) sdk.AccAddress

AddressFromBalancesStore returns an account address from a balances prefix store. The key must not contain the perfix BalancesPrefix as the prefix store iterator discards the actual prefix.

func DenomMetadataKey

func DenomMetadataKey(denom string) []byte

DenomMetadataKey returns the denomination metadata key.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers interfaces required for the v0.40 migrations.

Types

type SupplyI

type SupplyI interface {
	proto.Message
}

SupplyI defines an inflationary supply interface for modules that handle token supply. It is copy-pasted from: https://github.com/cosmos/cosmos-sdk/blob/v0.42.3/x/bank/exported/exported.go where we stripped off the unnecessary methods.

It is used in the migration script, because we save this interface as an Any in the supply state.

Deprecated.

Jump to

Keyboard shortcuts

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