10 releases (4 breaking)

new 0.10.0 Apr 17, 2024
0.9.1 Apr 9, 2024
0.8.0 Mar 18, 2024
0.7.0 Jan 29, 2024
0.6.7 Nov 21, 2023

#1747 in Magic Beans

Download history 6/week @ 2024-01-28 37/week @ 2024-02-18 39/week @ 2024-02-25 6/week @ 2024-03-10 141/week @ 2024-03-17 1/week @ 2024-03-24 9/week @ 2024-03-31 214/week @ 2024-04-07 170/week @ 2024-04-14

404 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–36MB
~603K SLoC