midnight_compile_contract
Compile Compact smart contracts into TypeScript bindings, circuit metadata, and ZK proving keys for deployment and SDK integration. Requires local compactc compiler.
Instructions
Compile a Compact smart contract to TypeScript bindings and ZK artifacts.
Generates:
TypeScript type definitions
Contract interaction code
Circuit metadata
ZK proving/verifying keys (references)
Use this tool to:
Compile Compact source code
Generate TypeScript bindings for SDK
Prepare contracts for deployment
Note: Full compilation requires the compactc compiler installed locally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Compact contract source code or file path | |
| output_dir | No | ||
| contract_name | No |