
⚡Super Charging NFTs
Detailed description of what it means to super charge your NFT
What is super charging?
struct PlayerData {
// ...
// your nft data
}
Contract Gamify (
admin: Address,
// ..
) {
// mapping -> super charge
mapping [ByteVec, PlayerData] player
// function
pub fn supercharge() -> () {
// .. supercharge code
}
}
TxScript Supercharge (
contract: Gamify,
nft: ByteVec
) {
// the nft is never used in the function; approved in the APS to ensure you own it
contract.supercharge{callerAddress!() -> nft: 1}(nft)
}What utility do I get?
Possible Applications
Last updated