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

    Class OcpContextManager

    Manager for OCP operation context.

    Provides methods to set, get, and clear cached context values.

    Implements

    Index

    Constructors

    Accessors

    • get featuredAppRight(): | {
          contractId: string;
          createdEventBlob: string;
          synchronizerId: string;
          templateId: string;
      }
      | null

      Get the cached FeaturedAppRight disclosed contract details

      Returns
          | {
              contractId: string;
              createdEventBlob: string;
              synchronizerId: string;
              templateId: string;
          }
          | null

    Methods

    • Check if the context has all required values for batch operations

      Returns boolean

    • Get the cap table contract ID or throw if not set.

      Returns string

      OcpValidationError if cap table contract ID has not been set

    • Get the FeaturedAppRight or throw if not set.

      Returns {
          contractId: string;
          createdEventBlob: string;
          synchronizerId: string;
          templateId: string;
      }

      OcpValidationError if FeaturedAppRight has not been set

    • Get the issuer party or throw if not set.

      Returns string

      OcpValidationError if issuer party has not been set

    • Set the cap table contract ID.

      Parameters

      • contractId: string

        The contract ID to cache

      Returns void

    • Set the FeaturedAppRight disclosed contract details.

      Parameters

      • details: {
            contractId: string;
            createdEventBlob: string;
            synchronizerId: string;
            templateId: string;
        }

        The disclosed contract details to cache

      Returns void

    • Set the issuer party ID.

      Parameters

      • partyId: string

        The party ID to cache

      Returns void