Documentation ¶
Index ¶
- Variables
- func KeyCollection(denomID string) []byte
- func KeyDenom(id string) []byte
- func KeyDenomName(name string) []byte
- func KeyNFT(denomID, tokenID string) []byte
- func KeyOwner(address sdk.AccAddress, denomID, tokenID string) []byte
- func Migrate(ctx sdk.Context, storeService store.KVStoreService, cdc codec.BinaryCodec, ...) error
- func UnsafeBytesToStr(b []byte) string
- func UnsafeStrToBytes(s string) []byte
- type SaveDenom
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func KeyCollection ¶
KeyCollection gets the storeKey by the collection
func KeyDenomName ¶
KeyDenomName gets the storeKey by the denom name
func KeyNFT ¶
KeyNFT gets the key of nft stored by an denom and id
func KeyOwner ¶
func KeyOwner(address sdk.AccAddress, denomID, tokenID string) []byte
KeyOwner gets the key of a collection owned by an account address
func Migrate ¶
func Migrate(ctx sdk.Context, storeService store.KVStoreService, cdc codec.BinaryCodec, logger log.Logger, saveDenom SaveDenom, ) error
Migrate is used to migrate nft data from irismod/nft to x/nft
func UnsafeBytesToStr ¶
UnsafeBytesToStr is meant to make a zero allocation conversion from []byte -> string to speed up operations, it is not meant to be used generally, but for a specific pattern to delete keys from a map.
Types ¶
Click to show internal directories.
Click to hide internal directories.