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

    Function getOcfTypeLabel

    • Get human-readable display label for an OCF type.

      Useful for logging, notifications, and UI display.

      Parameters

      • type: OcfObjectType

        The OCF object type

      • count: number

        Number of items (for pluralization)

      Returns string

      Human-readable label

        getOcfTypeLabel('STAKEHOLDER', 1); // '1 Stakeholder'
      getOcfTypeLabel('STAKEHOLDER', 5); // '5 Stakeholders'
      getOcfTypeLabel('TX_STOCK_ISSUANCE', 1); // '1 Stock Issuance'