13 releases (1 stable)

1.0.0 Aug 1, 2024
0.13.0 Jun 26, 2024
0.12.0 Jun 3, 2024
0.8.0 Mar 18, 2024
0.6.7 Nov 21, 2023

#11 in #fee

Download history 191/week @ 2024-07-29 26/week @ 2024-09-16 8/week @ 2024-09-23 12/week @ 2024-09-30

961 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
~622K SLoC