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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "midnight_compile_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Compact contract source code or file path | |
| output_dir | No | ||
| contract_name | No |