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

    Interface OcpContext

    Context for OCP operations that can be cached and reused.

    Store commonly used contract details to avoid passing them repeatedly.

      const ocp = new OcpClient({ network: 'localnet' });

    // Set context once after initial setup
    ocp.context.setFeaturedAppRight(featuredAppRightDetails);

    // Later, retrieve cached values when needed
    const batch = ocp.OpenCapTable.capTable.update({
    capTableContractId,
    featuredAppRightContractDetails: ocp.context.requireFeaturedAppRight(),
    actAs: [issuerParty],
    });
    interface OcpContext {
        capTableContractId: string | null;
        featuredAppRight:
            | {
                contractId: string;
                createdEventBlob: string;
                synchronizerId: string;
                templateId: string;
            }
            | null;
        issuerParty: string
        | null;
    }

    Implemented by

    Index

    Properties

    capTableContractId: string | null

    The cached cap table contract ID

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

    The cached FeaturedAppRight disclosed contract details

    issuerParty: string | null

    The cached issuer party ID