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

    Interface ComputeReplicationDiffOptions

    Options for computing the replication diff.

    interface ComputeReplicationDiffOptions {
        cantonOcfData?: CantonOcfDataMap;
        reportDifferences?: boolean;
        securityIds?: Map<OcfEntityType, Set<string>>;
    }
    Index

    Properties

    cantonOcfData?: CantonOcfDataMap

    Canton OCF data for deep comparison. When provided, items that exist in both source and Canton are compared using semantic OCF equality (ocfDeepEqual). Only items with actual data differences are marked for edit.

    The map should be structured as: Map<OcfEntityType, Map<objectId, ocfDataObject>>

    This enables propagating database corrections to Canton without blindly updating all existing items.

    When not provided, only creates are detected (no edits).

    reportDifferences?: boolean

    Enable detailed diff logging for diagnostics. When true, logs field-level differences for items marked as edits. Default: false (opt-in to avoid leaking sensitive data in production logs)

    securityIds?: Map<OcfEntityType, Set<string>>

    Security IDs currently on Canton, grouped by issuance entity type. When provided, creates for issuance types (stockIssuance, convertibleIssuance, equityCompensationIssuance, warrantIssuance) are checked against this map to detect security_id conflicts before DAML rejects them.

    Populated from CapTableState.securityIds (returned by getCapTableState).