@iov/asset-directory
v4.2.6
Published
Metadata for crypto assets
Downloads
6
Readme
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