Skip to content

OCP Canton SDK

Guides

Contributor workflow, workflow recipes for OCP on Canton, troubleshooting, and where public ADRs live.

Application developers

  1. Quickstart — peers, OcpClient, FeaturedAppRight context
  2. Workflow recipes — Canton wiring, cap table batches, streams, valuations, validation
  3. Reference catalog — searchable namespace list + sources

Transport (OAuth / JSON API / Validator commands) stays in @fairmint/canton-node-sdk — treat that package as the dependency you install beside @open-captable-protocol/canton. Detailed transport docs ship from the Canton Node SDK repository; this header stays OCP-focused by design.

Contributors & testing

Testing strategy

Test typeCommandPurpose
Unitnpm testConversions + validation with mocks
Integrationnpm run test:integrationLocalNet + DAML contracts
Typesnpm run typechecktsc / project references

Integration tests expect cn-quickstart (LocalNet) to be running.

LocalNet scripts

npm run localnet:start
npm run localnet:status
npm run localnet:smoke
npm run localnet:test
npm run localnet:stop

One-shot: npm run localnet:verify · Force rebuild: CANTON_LOCALNET_FORCE_FULL_START=true npm run localnet:start

Pre-push checklist

  1. npm run fix
  2. npm run test:ci
  3. npm run test:integration (when converters or DAML bindings move)

Protocol Architecture Decision Records (ADRs) and governance write-ups remain in the ocp-canton-sdk wiki — this docs site avoids duplicating that archive.


Repository layout & policies

Deep layering reference: Architecture

Wiki hub: ocp-canton-sdk wiki · Contributing: Contributing wiki.