Lint Intelligent Contract
genlayer_lint_contractCheck a GenLayer contract for common pre-deploy errors that cause invalid deployment or consensus failure, including runner header issues, missing gl.Contract, and Python-subset violations.
Instructions
Static pre-deploy checks for a GenLayer contract. Catches the mistakes that make a deploy finalize with a bare invalid_contract or fail consensus: a comment directly under the runner header, unpinned/alias runners, missing gl.Contract, and GenVM Python-subset issues (for/sorted/lambda) and storage anti-patterns.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "genlayer_lint_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Full contract source to lint. |