canton-test-generator
OfficialAuto-generate TypeScript tests from Daml scripts.
AuthorMoonsong-Labs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Manually translating Daml test scripts into TypeScript tests is time-consuming and error-prone. This Skill automates the translation process by generating Vitest-compatible tests that exercise the Canton SDK against the same workflows described in Daml scripts.
Core Features & Use Cases
- Daml-to-TypeScript translation: Converts Daml Scripts into TypeScript tests that validate the same business logic.
- SDK-driven testing: Uses the Canton SDK to create contracts, exercise choices, and query ledger state in tests.
- Structured, independent tests: Each Daml script yields a standalone test file with setup verification and clear assertions.
- Quick-start workflow: Ideal for teams adopting Canton for contract testing and regression suites.
Quick Start
After adding your Daml project, run the skill to generate tests and then execute them with vitest against a running Canton ledger.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: canton-test-generator Download link: https://github.com/Moonsong-Labs/canton-dev/archive/main.zip#canton-test-generator Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.