@iov/asset-directory
TypeScript icon, indicating that this package has built-in type declarations

4.2.6 • Public • Published

IOV Asset Directory

A digital asset directory, that holds metadata of various crypto tokens

How to add an asset

MY_FORK=github_id # replace 'github_id' with your github id
git clone --recurse-submodules https://github.com/${MY_FORK}/asset-directory.git \
  && cd asset-directory \
  && yarn install \
  && yarn add-asset \
  && yarn aggregate

follow the prompt(s). You will see a success message at the end after aggregation of assets
If all goes well, commit your changes, push and then submit a PR.

Installation

yarn add @iov/asset-directory

Usage

import assets, { Asset } from "@iov/asset-directory";

assets.map((asset: Asset) => console.log(asset.name));

// Output
Algorand
Bitcoin
Crypto.org
...

Scripts

  • asset.ts - adds an asset to the directory
  • aggregate.ts - combines indivdual asset data into single assets file
  • writer.ts - writes aggregated assets.ts(json) file

Readme

Keywords

none

Package Sidebar

Install

npm i @iov/asset-directory

Weekly Downloads

2

Version

4.2.6

License

Apache-2.0

Unpacked Size

5.25 MB

Total Files

13

Last publish

Collaborators

  • xpt1x
  • iovdave
  • iharob