Interface that should be implemented by ABI serializable objects.

Hierarchy

  • Symbol

Implements

Constructors

Properties

value: UInt64
abiName: string = 'symbol'
maxPrecision: number = 18
symbolNamePattern: RegExp = ...

Accessors

Methods

  • Convert floating point to units according to symbol precision. Note that the value will be rounded to closest precision.

    Parameters

    • float: number

    Returns Int64

  • Convert units to floating point number according to symbol precision.

    Throws

    If the given units can't be represented in 53 bits.

    Parameters

    Returns number

Generated using TypeDoc