05 - NFTs: More than Solidity Code

NFTs: More than Solidity Code

What are NFTs

An engineer walks into a meetup. How do we explain the significance of NFTs? Why are NFTs useful? Let’s explain!

Non-fungible tokens or NFTs are more than just code. NFTs are smart contract representations of unique and non-fungible items. Fungibility is characterized by goods being uniform in their properties, interchangeable, and indistinguishable from each other. Examples of fungibility include US Dollars or Coca-Cola bottles.

NFTs can represent ownership of digital scarce goods like art, collectables or any unique non-fungible item. They can also represent unique trading positions on a bonding curve like Uniswap v3, intellectual property, licenses, insurance, options, bonds, real estate, game items, deeds, domain names and more. Even when considering two identical collectables, other factors can make them unique, like their provenance, history, year of production and more.

NFTs are created with the ERC-721 standard. Popularized by CryptoKitties in 2017, they share these properties:

  • Unique, with their particular qualities usually stored in the metadata
  • Indivisible since they cannot be split up.
  • Provably scarce. Usually, one or a limited number of NFTS and can be verified on-chain
  • Provable ownership, since you check on-chain
  • Fraud proof. They can’t be faked. We will cover some issues around this later.
  • Easily transferable

ERC-1155 further builds upon ERC-721 and allows for mixed-use of fungible and non-fungible tokens, among other features. You can explore the difference between 721 and 1155 here. You can also see the difference between all three standards and their use cases. ERC-1155 was created by Enjin and can be used in gaming, so non-fungible items like a player or item can hold fungible assets like gold or coins. We will see later on how this is applicable.

NFT Hype via Art

Maybe you have heard of Crypto Punks, Disaster Girl NFT, Beeple’s 69 million dollar NFT, Damien Hirst’s NFTs, Bored Yacht Club, RarePizzas, Pudgy Penguins, EulerBeats and pplpleasr? Even Edward Snowden and others have found a new market for their art. Haven’t heard of them? You can get hip to it on CryptoTwitter, sign up for Bankless’s MetaVersal newsletteror use Non-fungible.com for real time digital asset tracking to help you to navigate NFT markets.

What’s the deal with the hype? Why is this so important? First, you may want to learn the quick History of NFTs via Potion. Then, two highly recommended videos on NFTs that can explain more are The Defiant Guide to Digital Art and NFTs and The Greatest NFT Film Ever Made by The Defiant.

The most prolific and accessible usage of NFTs is art and gaming. What is art? According to Andy Warhol, “Art is what you can get away with”. The message can be the medium as Andy Wahorl proved by using mass production and consumerism in his art.

How are they a better way than just releasing art on the internet?

Why NFTS

Telephone problem: Provenance

Ethereum also solves the “telephone problem”, where information is changed over time. Since Ethereum has an immutable ledger, one could track changes to historical digital artefacts over time. Most importantly, it can track provenance for items, whether cultural or utilitarian, like olive oil. This is important because Ethereum can be used as a store of historical value, like culture.

Zero costs, zero pricing

The internet of information allowed anyone to disseminate culture. Easy copying means that due to the near-zero cost of replicating information, the value of any art that could be digitized is reduced close to zero. Additionally, any value accrued was captured by the middlemen who controlled the servers and could set the market rules. Even with strong branding and engagement, the middlemen can extract large amounts of value, as we will see in the following section.

Power through markets

The properties of Ethereum change this. The commoditization of network servers and databases through a single world computer allows the artist to move between providers. Enforced digital scarcity limits authentic copies and enforces legitimacy and social signalling. Programmable smart contracts enable creators to set the rules of the game for their art and capture value how they see fit. In theory, this means being paid every time the art changes owners, not just on the first sale. It also means that the art can carry its own set of tokenomics, creating hype via price action.

Ownership means that the asset can be used as collateral, rented, or licensed in a digitally enforced manner. These are unique only to blockchain-based networks. With EIP-2981- The Royalty Standard, creators can enable universal support for royalty payments across all NFT marketplaces and ecosystem participants. This solves the problem of being tied to any NFT marketplace, which we will discuss later. In addition, creators can leverage EIP-2615 - The Non-Fungible Token with mortgage and rental functions to turn their NFTs into streams of income. These EIPs can be helpful in art markets as well as gaming economies, as we shall see.

There are various ways users and artists can make money off NFTs. Services like reNFT allow users to rent their NFTs. NFTfi enables users to use them as collateral. This solves the issue of using assets with potentially illiquid markets for collateralized loans. Don’t know what NFT to buy or don’t have enough cash to buy a whole one? NFTx allows users to mint and buy into decentralized NFT index funds that fractionalize NFTs into ERC-20 tokens.

Platforms like Rariable and Unicly even engage in a liquidity mining program to incentivize users to buy and sell NFTs in exchange for tokens. These can be used for governance or sold on open markets.

Ethereum can help decentralize art markets and games, giving artists and users/collectors a more direct connection, reducing dominant brokers’ cartel-like behaviour. It also unites fragmented markets by placing them on the internet and helping to bring a new crowd to Ethereum. In the process, users begin to understand decentralization and are exposed to DeFi-like mechanics.

Myths: Legitimacy and Coordination

Why is disseminating culture important? Myths are all around us. They inform and are part of the substrate of our belief and value systems. Pragmatically speaking, it’s why people attach value to Yeezys or Balenciaga. Or why they choose Harvard over their local state college. It’s why Jordans have a better cultural cache than Shaqs. According to Yoval Noah Harari in his book Sapiens, myths are social fiction that allows humans to scale collaboration from small tribes to millions of people.

Legitimacy is what separates the in-group from the outgroup. It keeps the imposters who wish to mimic and gain a group’s benefits without the costs. Legitimacy underpins social signalling, which allows for coordination between groups. We find social signalling in economics and evolutionary biology. On a practical level, NFTs make it easier to call out posers. Or as they say, “You gotta pay the cost to be da boss”. Being provable scarce allows for legitimacy to be enforced. However, this is not to say that the technology is perfect. There are some issues with using NFTs to prove outright authenticity, as fraudsters try to impersonate others and reupload their works.

Myths > values > choice > signalling > legitimacy > coordination.

@punk6929 in this tweet thread :thread: beautifully sums up the role of NFTs in creating culture, myths and scaling human collaboration.

Myth Building, or “branding and marketing”, allows companies to place a logo on an item and charge the idea. It allows celebrities to earn hefty sums of money for a brand’s association with them. Myths underpin even cryptocurrencies if we take a look at Bitcoin or Dogecoin.

Myths inform branding, which informs a user’s choices based on their values. Creators can be artists or scientists. NFTs can even give control to creators of scientific intellectual property. Ultimately, NFTs give the economics and control of these myths to their creators :muscle:.

They can be used in conjunction with DAO to create art to fund causes like how Rare Pizzas uses NFTs to fund free pizza for people on Bitcoin Pizza Day. Or FlamingoDAO to fund NFTs.

How to get NFTs

There are various places where you buy or sell NFTs. Check out the links for guides on leading platforms OpenSea, Foundation, Rarible, Zora, SuperRare, Mintable, or Palm NFT Sidechain. Get a deep dive into the status of the industry here.

As convenient as these platforms are, there are issues with them. Some of these issues relate to centralization risk, which increases censorship or your assets being deleted. Some platforms control your keys, which means you don’t really own the NFT. There is a lack of data portability fragments markets and limits royalties between platforms. Finally, there is a centralization risk with any data which underpins the NFT could also be stored on a centralized server.

In the next part, we will see how to create an NFT and leverage tools to decentralize your assets.

Creating NFTs

You can create your own NFTs! Learn how to create your own NFT via Ethereum.org. Furthermore, you can host them on a decentralized file storage solution like NFT.storage. It’s powered by IPFS and Filecoin. To set up, go through the nft.storage instructions. Want to learn more? Go to nftschool.dev to learn about best practices. Feel free to check out the Filecoin Truffle Box and these set up instructions.

But what about art? You can use Adobe Photoshop or open-source tools like GIMP image editor or Blender for 3D creation. Pro tip: you can check out the Decentraland Discord and ask what tools developers use to build things.

Want to go the programmatic route to create NFTs like this generative art example or this example? Generative Art let’s the code create the art. Use P5.js, the JavaScript library, for creating coding. It focuses on making coding accessible for artists, designers, beginners and anyone else! See a great example of generative art here.

Dan Shiffman, the creator of The Coding Train, has the most comprehensive videos on how to use P5.js on the internet. He also has some of the best and most ENTERTAINING videos on learning to code. In addition, he wrote a fantastic book called The Nature of Code, which shows you how to model nature with JavaScript. The book has a video series you can follow along. If you can support his channel, please donate to support his work :heart:.

You can combine P5.js with physics libraries like Matter.js or PhysicsJS. For a 3D library, you can try out ThreeJS. You can check out this tutorial to see how to create generative art using P5.js and React, mint an NFT and host it on your website. Also, check out BeyondNFT to learn how to build interactive NFTs with p5JS and ThreeJS.

How about using TensorFlowJS to get user input and try to figure out how to get interactions with your NFTs. Maybe, they can “learn” from their users and record some version of that data on-chain :man_shrugging:.

You can also explore how to add royalties for various platform secondary sales with this tutorial.

What if you can go beyond NFTs and create in-game assets that can make money?

The MetaVerse: Gaming and NFTs

Fun fact: the genesis of Ethereum sort of started with games. Vitalik Buterin discovered the evils of centralized entities after losing his World of Warcraft assets. The first NFTs were created by a blockchain-based game called CryptoKitties. Enjin created the ERC1155 standard for gaming applications.

Turns out, NFTs are a crucial building block to the metaverse and in-game economies. AXIE Infinity is proving to be the killer app of Gaming and NFTs, with more revenue than Uniswap and even Ethereum itself. Gaming is the best place due to feedback loops and the utility of the NFT. In-game items can be represented as NFTs. A game’s feedback loop keeps the users engaged and can give added value to the NFTs. Straight out of the book Ready Player One, play-to-earn is an emerging phenomenon where people playing games are earning more than the average income in some developing nations.

Massively multiplayer online role-playing games like Everquest, World of Warcraft, EVE Online, have already had internal game economies for years. Fortnite and Roblox make massive amounts of money. These game economies can yield interesting data. However, centralization plagues the game creators and players themselves. Game developers can act as central banks and skew imperfect “markets”. Game developers themselves have to fork over tons of money to app stores. Worst of all, markets don’t exist since players can’t trade with each other.

Blockchains are the new app stores

Fortnite, Roblox, and other games have to pay massive fees to centralized app store providers for all the money they make. Roblox pays 24% of all money generated to App Stores. Fortnite famously sued Google and Apple for the large cut they took.

See Chiris Dixon’s thread :thread:

Blockchain-based games can solve a lot of market-based problems caused by centralized games for users and games. Costly fees could be avoided. Better player-led internal economies where users own their assets forever and freely trade with each other. Games and assets can be transferred between platforms. Third-party developers won’t have to worry about changing in-game economics.

DeFi within Gaming economies

Games like AXIE Infinity, Decentraland,and Gods Unchained build actual in-game economies where players can trade. Decentralized App stores like MetaZone are emerging where users can create assets for open-world games. By using DeFi patterns like AMMs, lending markets, index funds, using assets as collateral, users can help manage their economies. Emerging standards around rental, royalty will expand the ways users can play games to earn money. That way, the rewards of this cultural product can go to the creators and players, not just the game companies.

These in-game economies grow because of the demand for scarce assets. Internal economies can use the existing DeFi patterns we have seen to help this. However, different games will have fragmented liquidity and assets since they would conceivably use their own custom EVM compatible chain. Using cross-chain lending markets and yield farming for in-game assets sounds familiar to cross-chain yield farming or lending markets in DeFi. Projects like Yield Guild are looking to help fix this issue. Worst case scenario, all these assets can convert to ETH, and we would see network effects between games and other ecosystems.

We have already seen tokenized real estate in games like Decentraland. Out of this is emerging rental agreements, which could eventually be applied in other scenarios. Rental income can allow for usage of NFT to earn a yield and split the income to the originator. Say if one rents a plot of land on a digital game like Decentraland, and an NFT represents that plot. Lending markets would allow players to rent assets and share the profits, or XP points can be another application. You can even buy ad space within Decentraland.

Over time, it will be easy to see how game guilds could transform into DAO managing, trading, collaborating, and competing over resources. This sounds a lot like modern companies. And it all happened with memes and magical internet money.

Additional Resources

نقل‌قول