compact-core:typescript-integration

Community

Bridge Compact contracts with TypeScript apps

Authoraaronbassett
Version1.0.0
Installs0

System Documentation

What problem does it solve?

TypeScript developers often need to bridge Midnight Compact contracts with modern TS apps. This Skill provides a clear mapping between Compact types and TypeScript types, a pattern for implementing witnesses with WitnessContext, and a guided flow to deploy contracts and interact with circuits from TS.

Core Features & Use Cases

  • Type mapping for Compact to TypeScript: Field → bigint, Bytes → Uint8Array, Opaque<'string'> → string, etc.
  • Witness patterns and contract interaction: Implement witnesses, deploy, call circuits, read ledger state.
  • Quick-start examples: Demonstrations of deployment, contract interface usage, and ledger reads.

Quick Start

Compile the Compact contract to TypeScript types, implement witnesses with WitnessContext, deploy the contract, and start calling circuits from your app.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: compact-core:typescript-integration
Download link: https://github.com/aaronbassett/midnight-knowledgebase/archive/main.zip#compact-core-typescript-integration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.