Skip to content

Development and Testing

HardlyDifficult edited this page Jul 17, 2026 · 1 revision

Development and testing

Setup

git submodule update --init --recursive
npm install
scripts/install-dpm-sdks.sh
npm run build
npm test

scripts/install-dpm-sdks.sh reads package manifests and installs the required DAML SDK versions. npm run build regenerates the aggregate before building active packages.

Change-dependent checks

npm run lint:daml
npm run check-upgrade-compat
npm run codegen
npm run verify-package

Run the checks that match the changed boundary. Replay and cross-participant traffic have separate scripts and workflows; read their source for exact inputs, secret boundaries, and artifacts.

Generated artifacts

  • CapTable.daml, generated JavaScript bindings, and lib/ are derived output.
  • published-dars/OpenCapTable.dar is staged for the npm DAR export.
  • generated/ocp-factory-contract-id.json is reviewed deployment metadata.
  • dars/ and dars/dars.lock preserve candidate and deployed bytes.

Change the owning source or generator and rerun its command. Do not hand-edit generated output to make a check pass.

Clone this wiki locally