Class CLTypeTuple1

Represents a Tuple1 type in the Casper type system. This class implements the CLType interface for tuples containing a single element.

Hierarchy

  • CLTypeTuple1

Implements

Constructors

Properties

Methods

Constructors

Properties

inner: CLType

The CLType of the single element in the Tuple1.

Methods

  • Converts the CLTypeTuple1 instance to its byte representation. This includes the type ID for Tuple1 followed by the byte representation of the inner type.

    Returns

    A Uint8Array representing the CLTypeTuple1.

    Returns Uint8Array

  • Converts the CLTypeTuple1 instance to a JSON-compatible representation. The JSON object contains a "Tuple1" key with an array that includes the inner type.

    Returns

    A JSON object representing the Tuple1 type and its inner type.

    Returns {
        [key: string]: CLType[];
    }

  • Creates a CLTypeTuple1 instance from a JSON representation. Parses JSON input to determine the inner type for the Tuple1.

    Returns

    A new CLTypeTuple1 instance with the parsed inner type.

    Throws

    Error if the JSON structure is invalid or the inner type is not correctly specified.

    Parameters

    • source: any

      The JSON representation of the CLTypeTuple1.

    Returns CLTypeTuple1

Generated using TypeDoc