@kleros/kleros-sdk) is a TypeScript library for interacting with the Kleros V2 protocol. It succeeds Archon and provides utilities for dispute template population, evidence handling, and contract interactions.
Installation
Packages
The SDK lives at github.com/kleros/kleros-v2 inside thekleros-sdk/ workspace. It is published as @kleros/kleros-sdk.
Key Features
Dispute Template Population
The SDK resolvestemplateDataMappings to populate {{variable}} placeholders in dispute templates. This is the primary use case - run mappings client-side to display rich dispute context.