Non-Fungible Tokens Overview
📄️ Introduction to CW721 NFTs
NFT is a very hot keyword on search engines in recent years on the topic of digital assets. It is a fun fact that many of us know NFT before we know anything about blockchain.
📄️ What will we build?
In this serires, we will create cw721-dapp project by using Beaker toolchain.
📄️ Create cw721-dapp project
This article will guide you in setting up an NFT smart contract, and show you how to build, test and deploy your NFT contract by using beaker toolchain. You can clone source code at cw721-repository.
📄️ Instantiating a Contract
When contracts are stored on the chain they must be instantiated. I cover storing contracts on a chain in a later section. Instantiating a contract is like creating an object in other languages, however, it is achieved by a special message. This message is an InstantiateMsg located under src/lib.rs.
📄️ Execute
In this chapter, we will write core execution logic for our contract.
📄️ Query
So you're asking, How do we change the state of our contract but what if we want to read some details? We don't need to pay transaction fees on that, do we? No, my friend, this is what querying is for!
📄️ Testing
Testing are vital to smart contract development, every developer should be implementing tests and striving to maximize test coverage. Tests are what give you and your protocol sleep at night and ensure changes can be rapidly deployed to the contracts codebase without breaking everything else. A great set of contracts will have a great set of tests generally divided into two areas of testing. Unit testing and Integration testing.
📄️ Deploy our contract and play with it
1. Generate and test the schema