Skip to main content

Assets

The Assets Pallet provides a flexible framework for managing a variety of digital assets within a Substrate-based blockchain. It supports creating new assets, transferring assets between accounts, updating metadata, setting assets as ecosystem tokens, and deleting assets.

Goals

Asset Creation: Enables users to create new types of digital assets.

Asset Transfer: Allows assets to be transferred between user accounts.

Metadata Management: Facilitates updating metadata associated with each asset.

Ecosystem Token: Provides the ability to mark certain assets as ecosystem tokens, giving them special status within the ecosystem.

Asset Deletion: Supports the removal of assets from the system.

Key Features

Permissionless Functions: Certain actions, like asset transfer, can be performed without special permissions, making the pallet flexible and accessible. Extensive Metadata: Assets can have detailed metadata, including a name, symbol, description, and various URLs for social media or websites, enhancing the informational richness of each asset.

In the Unit blockchain, all tokens have the following attributes:

  • ID: Unique identifier for the token

  • Name: Name of the token

  • Symbol: Symbol representing the token

  • Owner: Address of the token creator

  • Maximum Supply: Maximum number of tokens that can ever exist

  • Supply (Circulating Supply) Current number of tokens in circulation

  • Description: Description providing information about the token

  • Website: Website associated with the Token

  • Token Type: Type of token (e.g., Crypto, WrappedCrypto, Stable, UNIT)

  • Color: Color associated with the token

  • Initials: Initials representing the token

  • Ecosystem Token: A token of type "Crypto" can be designated as an ecosystem token, allowing it to manage tokens within its ecosystem.

  • Bank and Treasury: Tokens designated as ecosystem tokens can have a bank and treasury. Transfers to the bank redirect funds to the token's treasury.

  • Deletion: Only the token creator can delete the token. Deletion is allowed only if no tokens have been transferred out of the bank and if no other tokens have been transferred into the bank and treasury.

  • Unique Symbol: Symbols must be unique. If a symbol has been used previously, a number is concatenated to the end of the symbol to ensure uniqueness.

  • Symbol Restrictions: Symbols are restricted to numbers and alphabetic characters

  • Updating Supply and Symbol: The supply and symbol of a token can only be updated if no tokens have been transferred out of the bank.

Token Types