Interface that should be implemented by ABI serializable objects.

Hierarchy

  • Symbol

Implements

Constructors

  • Parameters

    Returns Symbol

Properties

value: UInt64
abiName: string
maxPrecision: number
symbolNamePattern: RegExp

Accessors

  • get code(): SymbolCode
  • Returns SymbolCode

  • get name(): string
  • Returns string

  • get precision(): number
  • Returns number

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

  • Return true if the object equals the other object passed.

    Parameters

    Returns boolean

  • Called when encoding to binary abi format.

    Parameters

    Returns void

  • Called when encoding to json abi format.

    Returns string

  • Returns string

  • Returns Symbol

  • Parameters

    • name: string
    • precision: number

    Returns Symbol