Interface that should be implemented by ABI serializable objects.

Implements

Constructors

Properties

value: UInt64
abiName: string = 'symbol'
maxPrecision: number = 18

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.

    Parameters

    Returns number

    Throws

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