Class EntryPointAddr

Represents an entry point address in the system, which may be a V1 or V2 Casper VM entry point.

Hierarchy

  • EntryPointAddr

Constructors

  • Creates a new EntryPointAddr instance.

    Parameters

    • Optional vmCasperV1: VmCasperV1

      The V1 Casper VM entry point, if applicable.

    • Optional vmCasperV2: VmCasperV2

      The V2 Casper VM entry point, if applicable.

    Returns EntryPointAddr

Properties

vmCasperV1?: VmCasperV1
vmCasperV2?: VmCasperV2

Methods

  • Converts the EntryPointAddr to a byte array.

    Returns

    The byte array representation of the EntryPointAddr.

    Throws

    EntryPointError if the EntryPointAddr type is unexpected.

    Returns Uint8Array

  • Converts the EntryPointAddr to its JSON representation.

    Returns

    The JSON string representation of the EntryPointAddr.

    Returns string

  • Returns a prefixed string representation of the EntryPointAddr.

    Returns

    The prefixed string representation.

    Throws

    EntryPointError if the EntryPointAddr type is unexpected.

    Returns string

  • Creates an EntryPointAddr from a string representation.

    Returns

    A new EntryPointAddr instance.

    Throws

    EntryPointError if the format is invalid.

    Parameters

    • source: string

      The string representation of the entry point address.

    Returns EntryPointAddr

Generated using TypeDoc