Class Amount

A Value Object to facilitate SIGNA and Planck conversions/calculations.

This class is a convenient wrapper around ChainValue with decimals = 8

Note: This class uses a big number representation (ES5 compatible) under the hood, so number limits and numeric calculations are much more precise than JS number type

Methods

  • Checks for equality

    Parameters

    • amount: Amount

      The other value to be compared

    Returns boolean

    true if equal, otherwise false

  • Leaky value getter

    Returns BigNumber

    the underlying value in its big number representation (immutable)

  • Checks for greater value

    Parameters

    • amount: Amount

      The other value to be compared

    Returns boolean

    true if greater, otherwise false

  • Checks for greater or equality value

    Parameters

    • amount: Amount

      The other value to be compared

    Returns boolean

    true if greater or equal, otherwise false

  • Checks for lesser value

    Parameters

    • amount: Amount

      The other value to be compared

    Returns boolean

    true if less, otherwise false

  • Checks for lesser or equality

    Parameters

    • amount: Amount

      The other value to be compared

    Returns boolean

    true if less or equal, otherwise false

  • Returns string

    The Signa Currency Symbol

    Due to Multiverse feature it's not recommended to use this hard coded stuff.