noble-asset-registry

Crates.ionoble-asset-registry
lib.rsnoble-asset-registry
version0.0.0
sourcesrc
created_at2021-05-25 23:35:03.812841
updated_at2021-05-25 23:35:03.812841
descriptionAsset registry provides functionality to create, store and keep tracking of existing assets in a system.
homepagehttps://github.com/tetched/tetched-node
repositoryhttps://github.com/tetched/tetched-node.git
max_upload_size
id402081
size2,016
Marlon Hanks (marlonhanks)

documentation

https://docs.rs/noble-asset-registry

README

Asset registry

Overview

Asset registry provides functionality to create, store and keep tracking of existing assets in a system.

Terminology

  • CoreAssetId - asset id of native/core asset. Usually 0. - NextAssetId - asset id to be assigned for next asset added to the system. Must be > CoreAssetId - AssetIds - list of existing asset ids

Interface

  • get_or_create_asset - creates new asset id for give asset name. If such asset already exists, it returns the corresponding asset id.
Commit count: 607

cargo fmt