Private
_configPrivate
_feePrivate
_internalProtected
eventsProtected
storesAdds dependencies from other module methods.
Mints a new NFT. The NFT will always be native to the chain creating it.
create(methodContext,address,collectionID,attributesArray);
Method context
Address of the NFT owner
ID of the collection the NFT belongs to
Attributes of the NFT
Destroys the specified NFT. The NFT will be removed from the NFT substore and cannot be retrieved, except in the case of destroying NFT on a foreign chain: the information about the NFT (e.g., the attributes) will still be available in the corresponding escrow entry of the NFT substore in the native chain.
destroy(methodContext,address,nftID);
method context
Address of the account who initiated the destruction
ID of the NFT to be destroyed
immutable method context
ID of the NFT
Returns the next free index inside an NFT collection.
getNextAvailableIndex(methodContext,collectionID);
Index of the next free slot inside an NFT collection.
method context
ID of an NFT collection
Checks whether the NFT is supported by the network, or not.
isNFTSupported(methodContext,nftID);
true
if the NFT is supported, false
if not.
Immutable method context
ID of an NFT
This function locks an NFT to a given module. A locked NFT cannot be transferred (within the chain or across chains). This can be useful, for example, when the NFT is used as a deposit for a service. Module is specified both when locking and unlocking the NFT, thus preventing NFTs being accidentally locked and unlocked by different modules. Note that an NFT can not be locked to the NFT module.
lock(methodContext,module,nftID);
Method context
The module locking the NFT
ID of the NFT to be locked
This function recovers an NFT escrowed to a terminated chain. It should only be called by the module to trigger the recovery of NFTs escrowed to terminated chains.
recover(methodContext,terminatedChainID,substorePrefix,nftID,nft);
Method context
ID of the terminated chain
Prefix of the NFT substore
ID of the nft to recover
The NFT to recover
This function removes support for all non-native NFTs.
removeSupportAllNFTs(methodContext);
This function removes support for all non-native NFTs of a specified foreign chain.
removeSupportAllNFTsFromChain(methodContext,chainID);
ID of a chain
This function removes support for all non-native NFTs of a specified collection.
removeSupportAllNFTsFromCollection(methodContext,chainID,collectionID);
Method context
The chain ID the NFT collection belongs to
The NFT collection to be un-supported
This function is used to modify the attributes of NFTs. Each custom module can define the rules surrounding modifying NFT attributes and should call this function. This function will be executed even if the NFT is locked.
setAttributes(methodContext,module,nftID,attributes);
Method context
Name of the module updating the NFT attributes
ID of an NFT
Attributes to add to the NFT
This function updates the supported NFTs substore to support all NFTs of the Lisk ecosystem.
supportAllNFTs(methodContext);
This function updates the supported NFTs substore to support all non-native NFTs of a specified foreign chain.
supportAllNFTsFromChain(methodContext,chainID);
Method context
ID of a chain
This function updates the supported NFTs substore to support all non-native NFTs of a specified collection.
supportAllNFTsFromCollection(methodContext,chainID,collectionID);
Method context
The chain ID the NFT collection belongs to
The NFT collection to be supported
This function is used to transfer ownership of NFTs within one chain.
transfer(methodContext,senderAddress,recipientAddress,nftID);
Method context
Address of the current owner of the NFT
Address of the new owner of the NFT
ID of the NFT to be transferred
This function is used to transfer ownership of NFTs across chains in the Lisk ecosystem.
transferCrossChain(methodContext,senderAddress,recipientAddress,nftID,receivingChainID,messageFee,data,includeAttributes);
Method context
Address of the current owner of the NFT
Address of the new owner of the NFT
ID of the NFT to be transferred
ID of the chain where the NFT is being transferred to
Fee for the CCM
Message field
Boolean, if the attributes of the NFT should be included in the transfer
This function is used to unlock an NFT that was locked to a module.
unlock(methodContext,module,nftID);
Method context
The module unlocking the NFT
ID of the NFT to be unlocked
Generated using TypeDoc
Methods of the NFT Module.