Firma CW craft tool is a desktop application designed to help manage tokens based on the CW20 and CW721 standards, allowing users to easily issue their own tokens and NFTs. With an intuitive interface, it allows users to create and manage tokens and NFTs without a deep understanding of complex blockchain technology.
CW20 is a token standard used in the CosmWasm smart contract platform, providing specifications for issuing, transferring, and managing tokens on blockchain networks based on the Cosmos SDK. Similar to Ethereum's ERC20 standard, CW20 offers the following key functions and interfaces:
-
Instantiate
- Deploy tokens by setting the name, symbol, initial issuance amount, and issuer of the token.
-
Mint
- Issue additional tokens to a specific address.
-
Burn
- Burn tokens to reduce the total supply.
-
Allowance
- Increase or decrease the amount another address is allowed to use on your behalf.
-
Transfer
- Transfer tokens to another address.
CW721 is a Non-Fungible Token (NFT) standard used on the CosmWasm smart contract platform, where each token has unique attributes and represents a non-fungible asset. This standard is similar to Ethereum's ERC721 and provides functionalities for issuing, managing, and transferring NFTs. CW721 includes basic features for collection uniqueness, ownership management, and metadata storage, making it applicable to various NFT projects. It offers the following key features and interfaces:
-
Instantiate
- Deploy an NFT contract by setting the collection name, symbol, and owner. This process registers the collection's basic information and metadata.
-
Mint
- Create a new NFT with a unique ID and assign it to a specific address. Each NFT can have its own unique metadata.
-
Burn
- Burn an existing NFT, making it no longer valid. This process permanently deletes the non-fungible asset.
-
Transfer
- Transfer ownership to a specific address, changing the NFT's owner. This is used to transfer the non-fungible asset to another user.
-
Approve
- Grant permission for a specific address to transfer the NFT on behalf of the owner. This is used for delegated transfers and is similar to the approve method in ERC721.
This section explains how to set up and run the project locally.
Clone the project repository and install the required dependencies.
git clone https://github.com/FirmaChain/firma-cw-craft-tool.git
cd firma-cw-craft-tool
npm install
-
Create the config.tsx file using the following command:
cp config.sample.tsx config.tsx
-
Fill in the empty environment variable information:
To run the project after installing the packages, execute the following command:
npm run start
For more information, please refer to the following URLs:
- CW20 Standard: CW20 Standard
- CW20 Spec: CW20 Spec