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, storeKey storetypes.StoreKey, cdc codec.Codec, ...) 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 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, storeKey storetypes.StoreKey, cdc codec.Codec, logger log.Logger, saveDenom SaveDenom, ) error
Migrate is used to migrate nft data from furymod/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.
func UnsafeStrToBytes ¶
UnsafeStrToBytes uses unsafe to convert string into byte array. Returned bytes must not be altered after this function is called as it will cause a segmentation fault.
Types ¶
Click to show internal directories.
Click to hide internal directories.