Interactive NFTs Explained
The furture of NFT is coming! CoinMarketCap x Cybertino CyberBox will be available exclusively at cybertino.com for a limited time starting at 1:00 PM UTC on August 18th, 2021. The sale will be live only for a total of four hours and once the sale ends all unsold NFTs will be burned.
The CoinMarketCap NFT will feature the first NFT that will allow a real-time state change within the NFT. These interactive NFTs' appearance will be tied to the price of Bitcoin (BTC) and changed based on the price fluctuation of Bitcoin.
Each NFT will have three states: "MOON", "HODL", and "FUD". If Bitcoin price is up more than 5% in the past 24 hours, the NFT will show the "MOON" state, and vice versa. If the price has no significant change, then the NFT will appear as "HODL". The state will refresh every 24 hours.
A token standard is a set of rules that defines the data structure — and therefore the functions — of each token. Each Cybertino Interactive NFT has two parts, the Canvas NFT in the form of ERC1155, and the Layer NFT in the form of ERC721.
There will only be one Canvas contract for all the Cybertino Interactive NFTs, each Canvas NFT knows its composing layers with an identifier. In this way, for different purposes, there will be multiple layers that each layer has multiple states.
How we did it?
The Canvas NFT’s metadata is currently stored on a centralized server, in order to provide a better user experience. We use Chainlink, a decentralized oracle network, to provide reliable, tamper-proof inputs and outputs for our smart contract. For each Layer of the Canvas, a smart contract is deployed with a function called every 24 hours to calculate the correct new state and to change the Canvas, which is the appearance of the NFTs. This state updating process is fully transparent and anyone could simply call "updateAll" in the Layer contract to trigger an update.
Is my NFT secured?
Although a central server is involved in changing the image, there are only 3 images that the server could choose from for each of the 5 NFTs. As a result, the server could not arbitrarily modify anyone’s NFTs. When the Layer token is created, images of the 3 states (MOON, HOLD, FUD) are determined and uniquely identified by their IPFS CID. Anyone could download the image and calculate its IPFS CID to verify that they are in fact the same as stated in the Layer Contract.