14 releases (2 stable)

new 1.1.0 Dec 10, 2024
1.0.0 Aug 1, 2024
0.13.0 Jun 26, 2024
0.8.0 Mar 18, 2024
0.6.7 Nov 21, 2023

#712 in Magic Beans

Download history 25/week @ 2024-09-15 9/week @ 2024-09-22 12/week @ 2024-09-29 165/week @ 2024-12-08

165 downloads per month

Apache-2.0 and GPL-3.0-only

140KB
3.5K SLoC

Asset Registry Module

Overview

This module provides functionality for storing asset metadata. For each asset, it stores the number of decimals, asset name, asset symbol, existential deposit and (optional) location. Additionally, it stores a value of a generic type that chains can use to store any other metadata that the parachain may need (such as the fee rate, for example). It is designed to be easy to integrate into xcm setups. Various default implementations are provided for this purpose.

The pallet only contains two extrinsics, register_asset and update_asset:

  • register_asset creates a new asset
  • update_asset modifies some (or all) of the fields of an existing asset

Dependencies

~21–37MB
~624K SLoC