https://nft.kalepail.com/smart-nft-01

Welcome to the second SmartNFT drop! The purpose of Smart NFTs is to explore interesting payment mechanics on the decentralized layer 2 smart contract protocol Stellar Turrets. Who knows what or how it will happen but hopefully you'll have a cool NFT to show for it in the end.

Seem interesting? Got questions? You should join our Discord server.

The Overview

Drop 01 of Smart NFTs is code named “The Dig”. This contract is made up of three unique stages. dig, mint and issue. They are each sequentially dependent yet all baked into the same smart contract. There's a sort of hidden and entirely un-minted NFT which has been fragmented into 40 x 40 = 1,600 individual pixel assets all issued by the Issuer or ctrlAccount. In order to mint the final form NFT "diggers" will need to purchase individual pixel assets until all 1,600 are gone. The price has been statically set at 10 XLM per pixel with a minimum buy in of 10 pixels (100 XLM) and a max of 20 (200 XLM).

Dig all the pixels, mint the final form NFT then finally issue that clean SmartNFT to yourself. Seem simple? It's not. I haven't talked about the SmartPlotNFT which diggers receive whenever they dig their set of pixels. It's drawn and minted on chain in a single atomic transaction and issued by your own unique derived account. You get to decide what form this NFT takes. You have 20 pixels max per account to generate your own pixel dig plots. It's a 1 of 1 NFT truly uniquely and only yours.

Seem cool? Just wait, there's more. Your SmartPlotNFT isn't just the new wackiest NFT you own, it's also your exclusive golden ticket granting access to both the mint and issue commands. Only diggers can mint and issue. What does this mean? The SmartNFT01 supply will be capped at the total number of diggers so if my math is right that number will be somewhere between 1,600 / 10 = 160 and 1,600 / 20 = 80. That's a pretty tight cap considering SmartNFT00 sold 119 times by October 8th, 2021.

Oh and finally don't let me forget to mention there's a 100 XLM award for whoever runs the mint command first. It can only be run a single time (I hope) and whoever does will be issued 100 XLM as a reward giving them a potential 100% discount on both their SmartPlotNFT and SmartNFT01.

Okay actually finally. Once you've successfully run the issue command both SmartNFT01 and SmartPlotNFT will be fully authorized assets for you to sell, trade, swap, burn, etc. anywhere and everywhere the Stellar DEX exists. This is in stark contrast to SmartNFT00 which is and will remain an auth required asset.

The Details

So that's the overview. Let's talk about the nitty gritty details for each of these smart contract commands. As mentioned SmartNFT Drop 01 is a singular contract made up of three sequential commands.

Dig

Provides an API for burning pixel assets into a SmartPlotNFT which is then issued to the User

Dig is the big command of the contract. There's a ton of stuff going on in the transaction this command outputs so let's dig into it operation by operation.

// TODO WILL FILL THESE IN MORE

  1. Begin reserve sponsorship for the Plot account
  2. Begin reserve sponsorship for the Issuer account
  3. Create the Plot account with a 0 XLM balance