To test out a crafting/evolution system, I've begun work on a Pokemon-type evolution smart contract. Burning two of the same ERC-1155 IDs (e.g. a base-class spaceship) creates a new NFT (e.g. a second-tier spaceship) using the following data flow:
msg.sender holds contract.tokenId = 0 * 2
- Contract
_burns contract.tokenID = 0 * 2
- Contract
_mints contract.tokenId = 1 & sends it to msg.sender
This can be used for crafting items, transferring items, etc
Let's try and get user NFT metadata working inside the frontend, add a crafting feature (triggering _burn & _mint functions of deployed contract using Moralis Unity/C# SDK) and have all actions be recorded & retrievable from our backend infrastructure in #1 #5
To test out a crafting/evolution system, I've begun work on a Pokemon-type evolution smart contract. Burning two of the same
ERC-1155IDs (e.g. a base-class spaceship) creates a new NFT (e.g. a second-tier spaceship) using the following data flow:msg.senderholdscontract.tokenId = 0* 2_burnscontract.tokenID = 0* 2_mintscontract.tokenId = 1& sends it tomsg.senderThis can be used for crafting items, transferring items, etc
Let's try and get user NFT metadata working inside the frontend, add a crafting feature (triggering
_burn&_mintfunctions of deployed contract using Moralis Unity/C# SDK) and have all actions be recorded & retrievable from our backend infrastructure in #1 #5