DisplayInfo<K>: {
    assetKind: K;
    decimalPlaces?: number;
}

Type Parameters

Type declaration

  • assetKind: K
    • the kind of asset, either AssetKind.NAT (fungible) or AssetKind.SET or AssetKind.COPY_SET (non-fungible)
  • OptionaldecimalPlaces?: number

    Tells the display software how many decimal places to move the decimal over to the left, or in other words, which position corresponds to whole numbers. We require fungible digital assets to be represented in integers, in the smallest unit (i.e. USD might be represented in mill, a thousandth of a dollar. In that case, decimalPlaces would be 3.) This property is optional, and for non-fungible digital assets, should not be specified. The decimalPlaces property should be used for display purposes only. Any other use is an anti-pattern.