Class Circuit

The circuit class holds the signer object, exposes amount conversion and exposes the Tx class, which can then be used to submit.

Hierarchy

  • Circuit

Constructors

Properties

Methods

Constructors

Properties

signer: any
tx: Tx

Methods

  • Converts a float to a BN with the correct decimal precision

    Returns

    The converted value

    Parameters

    • value: number

      The value to convert

    Returns BN

  • Converts a BN to a float with the correct decimal precision

    Returns

    The converted value

    Parameters

    • value: number | BN

      The value to convert

    Returns number

Generated using TypeDoc