contractJs

Contract JavaScript as an InputStream. Accepts either:

  • Manually-preprocessed IIFE (the older BBoard pattern — import * as __compactRuntime replaced with a comment, export keywords stripped), or

  • Raw compactc output with ES module syntax intact (the natural shape of contract/src/managed/<name>/contract/index.js).

The builder normalizes ES module syntax to script-compatible form via normalizeContractJs before handing the content to the circuit executor — consuming dApps no longer need a per-project preprocessing step in their Gradle build.