Class CLTypeTuple3

Represents a Tuple3 type in the Casper type system. This class implements the CLType interface for tuples containing three elements.

Hierarchy

  • CLTypeTuple3

Implements

Constructors

Properties

inner1: CLType

The CLType of the first element in the Tuple3.

inner2: CLType

The CLType of the second element in the Tuple3.

inner3: CLType

The CLType of the third element in the Tuple3.

Methods

  • Converts the CLTypeTuple3 instance to its byte representation. This includes the type ID for Tuple3 followed by the byte representations of the three inner types.

    Returns

    A Uint8Array representing the CLTypeTuple3.

    Returns Uint8Array

  • Converts the CLTypeTuple3 instance to a JSON-compatible representation. The JSON object contains a "Tuple3" key with an array that includes the three inner types.

    Returns

    A JSON object representing the Tuple3 type and its inner types.

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

  • Creates a CLTypeTuple3 instance from a JSON representation. Parses JSON input to determine the three inner types for the Tuple3.

    Returns

    A new CLTypeTuple3 instance with the parsed inner types.

    Throws

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

    Parameters

    • source: any

      The JSON representation of the CLTypeTuple3.

    Returns CLTypeTuple3

Generated using TypeDoc