Install
openclaw skills install @agentpmt/lean-proof-to-solidity-smart-contract-generatorLean Proof To Solidity Smart Contract Generator: The tool allows you to validate Lean, generate Solidity from it, compile the. Use when an agent needs lean proof to solidity smart contract generator, fetch allowable advanced lean templates and snippets, validate advanced lean solidity ir before generation, generate solidity from advanced lean solidity ir, compile generated solidity to abi and bytecode, catalog, compile abi bytecode, soliditytext through AgentPMT-hosted remote tool calls.
openclaw skills install @agentpmt/lean-proof-to-solidity-smart-contract-generatorLast updated: 2026-06-24.
If the current date is more than 7 days after the last updated date, reinstall this skill from skills.sh or ClawHub before relying on endpoints, schemas, setup steps, or examples.
PROOF OF CONCEPT - This tool does not include an exhaustive Lean to Solidity code mapping, but it shows the capabilities of our system and the value of going from proven Lean straight to Solidity. Build your logic in a proven language first, then generate your Solidity from that. We have included Lean templates and allowable Lean snippets to get you started. Try it live in the builder, or use the AI agent to help you build faster. The tool allows you to validate Lean, generate Solidity from it, compile the generated Solidity to ABI and bytecode, encode ABI calls, and then run offline EVM simulation before deployment. The full system is available for licensing - inquire directly if interested.
Use this tool to work directly in the advanced Lean Solidity IR lane.
Recommended flow:
catalogvalidate_leangenerate_solidityget_task until the generation task reaches completedcompile_abi_bytecodeencode_callevm_simulationlist_tasks only when you need to review recent generation jobs in your current budget scopeAction breakdown
catalog
advancedTemplates and advancedSnippets.Example:
{
"action": "catalog"
}
validate_lean
leanSourceText and leanSourceExpr.errorKind, and parsed diagnostics with submitted line and column information.Example:
{
"action": "validate_lean",
"leanSourceText": "import HeytingLean.LeanSP.Emit.SolEmit\n\nnamespace Demo\nopen LeanSP.Emit\n\ndef counter : SolContract :=\n { name := \"Counter\"\n , stateVars := [ { name := \"storedValue\", ty := .uint 256, visibility := .pub } ]\n , functions :=\n [ { name := \"setValue\"\n , params := [(\"newValue\", .uint 256)]\n , visibility := .external\n , body := [ .assign (.var \"storedValue\") (.var \"newValue\") ]\n }\n ]\n }\n",
"leanSourceExpr": "Demo.counter"
}
generate_solidity
leanSourceText and leanSourceExpr.get_task until the task reaches completed. The completed result includes emitted Solidity text and related metadata.Example:
{
"action": "generate_solidity",
"leanSourceText": "import HeytingLean.LeanSP.Emit.SolEmit\n\nnamespace Demo\nopen LeanSP.Emit\n\ndef counter : SolContract :=\n { name := \"Counter\"\n , stateVars := [ { name := \"storedValue\", ty := .uint 256, visibility := .pub } ]\n , functions :=\n [ { name := \"setValue\"\n , params := [(\"newValue\", .uint 256)]\n , visibility := .external\n , body := [ .assign (.var \"storedValue\") (.var \"newValue\") ]\n }\n ]\n }\n",
"leanSourceExpr": "Demo.counter"
}
compile_abi_bytecode
solidityText and optionally sourceName, contractName, and extraSources.encode_call
evm_simulation
get_task
generate_solidity.list_tasks
Notes:
catalog returns immediately with only the advanced templates and snippet catalog.validate_lean returns immediately with structured diagnostics.generate_solidity submits a background task.compile_abi_bytecode, encode_call, and evm_simulation return immediately.get_task and list_tasks are restricted to the caller's active budget scope.Lean Proof To Solidity Smart Contract Generator on AgentPMT.catalog, compile_abi_bytecode, encode_call, evm_simulation, generate_solidity, get_task, list_tasks, validate_lean.No categories or industry tags are published for this tool.
Complete generated action schema: ./schema.md.
Supported action count: 8.
x402 availability: not enabled for this product.
catalog (action slug: catalog): Fetch the advanced Lean catalog. Returns only the allowable advanced templates and reusable advanced Lean snippets. Price: 0 credits. Parameters: none.compile_abi_bytecode (action slug: compile-abi-bytecode): Compile Solidity source and return ABI plus deployable bytecode immediately. Price: 0 credits. Parameters: contractName, extraSources, solidityText, sourceName.encode_call (action slug: encode-call): Encode a contract function call using one ABI item and return the calldata immediately for later simulation or execution. Price: 0 credits. Parameters: abiItem, args, expectReturnAddress, expectReturnHex, expectReturnStartsWith, expectReturnU256, expectRevert, fromAlias, plus 3 more.evm_simulation (action slug: evm-simulation): Run offline EVM simulation against compiled contract output and return the result immediately. Price: 0 credits. Parameters: calls, compileOutput.generate_solidity (action slug: generate-solidity): Generate Solidity from advanced Lean Solidity IR source and return a background task id for the generation job. Price: 0 credits. Parameters: leanSourceExpr, leanSourceText.get_task (action slug: get-task): Fetch the current status and result payload for a previously submitted background generate_solidity task within the caller's budget scope. Price: 0 credits. Parameters: task_id.list_tasks (action slug: list-tasks): List recent background generate_solidity tasks for the caller's active budget only. Price: 0 credits. Parameters: limit.validate_lean (action slug: validate-lean): Validate advanced Lean Solidity IR source immediately and return structured diagnostics that explain what is wrong before you submit a generation job. Price: 0 credits. Parameters: leanSourceExpr, leanSourceText.Use the compact schema above for ordinary calls. Before a new production integration, or whenever parameters, enum values, nested objects, outputs, or examples are unclear, fetch live details first.
agentpmt-tool-search-and-execution with action: "get_schema", and tool_id: "lean-proof-to-solidity-smart-contract-generator".agentpmt-tool-search-and-execution with action: "get_instructions" and tool_id: "lean-proof-to-solidity-smart-contract-generator", or call this product with action: "get_instructions" when the product tool is already selected.MCP schema lookup through the main AgentPMT MCP server:
{
"method": "tools/call",
"params": {
"name": "AgentPMT-Tool-Search-and-Execution",
"arguments": {
"action": "get_schema",
"tool_id": "lean-proof-to-solidity-smart-contract-generator"
}
}
}
For live examples, keep the same MCP tool and use these arguments:
{
"action": "get_instructions",
"tool_id": "lean-proof-to-solidity-smart-contract-generator"
}
Authenticated AgentPMT REST schema lookup body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_schema",
"tool_id": "lean-proof-to-solidity-smart-contract-generator"
}
}
Authenticated AgentPMT REST live examples body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_instructions",
"tool_id": "lean-proof-to-solidity-smart-contract-generator"
}
}
Product slug: lean-proof-to-solidity-smart-contract-generator
Marketplace page: https://www.agentpmt.com/marketplace/lean-proof-to-solidity-smart-contract-generator
../agentpmt-account-mcp-rest-api-setup to connect the main MCP server or REST API for an Agent Group where this tool is enabled.../what-is-agentpmt for marketplace, Agent Group, workflow, MCP, REST, and payment concepts.If those setup skills are not installed beside this product skill, use the downloads below.
Core AgentPMT setup skills:
openclaw skills install what-is-agentpmtnpx skills add AgentPMT/agent-skills --skill what-is-agentpmtopenclaw skills install agentpmt-account-mcp-rest-api-setupnpx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setupskills.sh install script:
npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup
MCP call shape after the main AgentPMT MCP server is connected:
{
"method": "tools/call",
"params": {
"name": "Lean-Proof-To-Solidity-Smart-Contract-Generator",
"arguments": {
"action": "catalog"
}
}
}
Use the exact tool name returned by tools/list; the name above is the expected readable form.
Authenticated AgentPMT REST call body:
{
"name": "lean-proof-to-solidity-smart-contract-generator",
"parameters": {
"action": "catalog"
}
}
Use the setup skill for the account connection details before making REST calls.
passed or success-style boolean, use it as the workflow gate.get_schema or get_instructions before retrying.catalog fails, preserve the request parameters and retry only after fixing schema, auth, or payment errors.what-is-agentpmt, page: https://clawhub.ai/agentpmt/what-is-agentpmt; skills.sh: npx skills add AgentPMT/agent-skills --skill what-is-agentpmt)agentpmt-account-mcp-rest-api-setup, page: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup; skills.sh: npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup)