Open Cap Table Protocol Canton SDK - v0.2.224
    Preparing search index...

    Function convertToDaml

    • Convert native OCF data to DAML format based on entity type.

      This function automatically normalizes deprecated OCF fields before conversion, making deprecated field handling transparent to end-users. For example, a StockPlan with stock_class_id (deprecated) will automatically be converted to use stock_class_ids (current).

      Type Parameters

      Parameters

      • type: T

        The OCF entity type

      • data: OcfDataTypeFor<T>

        The native OCF data object (may contain deprecated fields)

      Returns Record<string, unknown>

      The DAML-formatted data object with normalized fields