midnight_analyze_contract
Analyze Compact smart contracts for security flaws, gas inefficiencies, and best practice violations to optimize contract design and reduce deployment risks.
Instructions
Perform static analysis on a Compact smart contract.
Analyzes:
Contract structure and patterns
Potential security issues
Gas/complexity estimates
Best practice violations
Privacy considerations
Use this tool to:
Review contracts before deployment
Identify potential issues
Learn Compact best practices
Optimize contract design
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_analyze_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Compact contract source code to analyze | |
| check_security | No | ||
| check_gas | No |