Skip to content
CCPEDIAby Unity Nodes

RFP 18: STL, a Sandbox testing library for JS/TS. Feedback welcome, seeking a champion

1 posts20 viewsLast activity 12d ago

  1. CoBuildersOP

    Hi everyone,

    We’re CoBuilders. We have submitted a Development Fund proposal under RFP 18, Integration into SDLCs, and we’d like feedback from this SIG. We are also looking for a champion.

    The problem. Teams that test JavaScript or TypeScript code against the Canton Sandbox each write their own harness: start the Sandbox, wait until the Ledger API is ready, avoid port clashes, upload DARs, allocate parties and users, control ledger time, and tear it all down cleanly. We found 15 public repositories that start the Sandbox from their own code. Each team maintains that setup separately, so fixes are not automatically shared.

    What STL does. STL is an open-source npm package that replaces that setup code. Teams keep their own test runner, fixtures, and assertions. The beta is on npm today: it starts and stops a Sandbox, creates fresh parties and users for each test, and runs unchanged OpenZeppelin contracts against a real Sandbox in public CI.

    What the grant adds.

    • Authenticated submission and queries as the test users.
    • Control of ledger time through static time.
    • Party and contract lookup helpers.
    • Compatibility tests and 12 months of maintenance.
    • Three migration PRs against projects owned by independent teams, plus a Node.js testing tutorial for docs.canton.network.

    The request is 400,000 CC over 8 weeks of development and 12 months of maintenance. 69,000 CC of it is paid only when an independent project adopts STL in its own CI.

    Full proposal: STL: Sandbox Testing Library

    Where we’d value input.

    1. If your team tests against the Sandbox today, what does your harness handle that this list misses?
    2. Would your project be open to a migration PR? We prepare the changes, provide a passing CI run, and address your review feedback.
    3. Is anything in scope that should not be, or missing that should be there?
    4. Would someone from the SIG be willing to champion the proposal?

    Happy to answer questions here or on the PR.

    CoBuilders Team